]> 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 FTGL_LIBS
620 GL_LIBS
621 SDL_LIBS
622 GUILE_LDFLAGS
623 GUILE_CFLAGS
624 GUILE_LTLIBS
625 GUILE_LIBS
626 GUILE_TOOLS
627 GUILE_CONFIG
628 GUILE
629 CPP
630 OTOOL64
631 OTOOL
632 LIPO
633 NMEDIT
634 DSYMUTIL
635 MANIFEST_TOOL
636 RANLIB
637 ac_ct_AR
638 AR
639 DLLTOOL
640 OBJDUMP
641 LN_S
642 NM
643 ac_ct_DUMPBIN
644 DUMPBIN
645 LD
646 FGREP
647 EGREP
648 GREP
649 SED
650 am__fastdepCC_FALSE
651 am__fastdepCC_TRUE
652 CCDEPMODE
653 AMDEPBACKSLASH
654 AMDEP_FALSE
655 AMDEP_TRUE
656 am__quote
657 am__include
658 DEPDIR
659 OBJEXT
660 EXEEXT
661 ac_ct_CC
662 CPPFLAGS
663 LDFLAGS
664 CFLAGS
665 CC
666 host_os
667 host_vendor
668 host_cpu
669 host
670 build_os
671 build_vendor
672 build_cpu
673 build
674 LIBTOOL
675 am__untar
676 am__tar
677 AMTAR
678 am__leading_dot
679 SET_MAKE
680 AWK
681 mkdir_p
682 MKDIR_P
683 INSTALL_STRIP_PROGRAM
684 STRIP
685 install_sh
686 MAKEINFO
687 AUTOHEADER
688 AUTOMAKE
689 AUTOCONF
690 ACLOCAL
691 VERSION
692 PACKAGE
693 CYGPATH_W
694 am__isrc
695 INSTALL_DATA
696 INSTALL_SCRIPT
697 INSTALL_PROGRAM
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_shared
740 enable_static
741 with_pic
742 enable_fast_install
743 enable_dependency_tracking
744 with_gnu_ld
745 with_sysroot
746 enable_libtool_lock
747 enable_rpath
748 '
749       ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CPP'
758
759
760 # Initialize some variables set by options.
761 ac_init_help=
762 ac_init_version=false
763 ac_unrecognized_opts=
764 ac_unrecognized_sep=
765 # The variables have the same names as the options, with
766 # dashes changed to underlines.
767 cache_file=/dev/null
768 exec_prefix=NONE
769 no_create=
770 no_recursion=
771 prefix=NONE
772 program_prefix=NONE
773 program_suffix=NONE
774 program_transform_name=s,x,x,
775 silent=
776 site=
777 srcdir=
778 verbose=
779 x_includes=NONE
780 x_libraries=NONE
781
782 # Installation directory options.
783 # These are left unexpanded so users can "make install exec_prefix=/foo"
784 # and all the variables that are supposed to be based on exec_prefix
785 # by default will actually change.
786 # Use braces instead of parens because sh, perl, etc. also accept them.
787 # (The list follows the same order as the GNU Coding Standards.)
788 bindir='${exec_prefix}/bin'
789 sbindir='${exec_prefix}/sbin'
790 libexecdir='${exec_prefix}/libexec'
791 datarootdir='${prefix}/share'
792 datadir='${datarootdir}'
793 sysconfdir='${prefix}/etc'
794 sharedstatedir='${prefix}/com'
795 localstatedir='${prefix}/var'
796 includedir='${prefix}/include'
797 oldincludedir='/usr/include'
798 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
799 infodir='${datarootdir}/info'
800 htmldir='${docdir}'
801 dvidir='${docdir}'
802 pdfdir='${docdir}'
803 psdir='${docdir}'
804 libdir='${exec_prefix}/lib'
805 localedir='${datarootdir}/locale'
806 mandir='${datarootdir}/man'
807
808 ac_prev=
809 ac_dashdash=
810 for ac_option
811 do
812   # If the previous option needs an argument, assign it.
813   if test -n "$ac_prev"; then
814     eval $ac_prev=\$ac_option
815     ac_prev=
816     continue
817   fi
818
819   case $ac_option in
820   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
821   *=)   ac_optarg= ;;
822   *)    ac_optarg=yes ;;
823   esac
824
825   # Accept the important Cygnus configure options, so we can diagnose typos.
826
827   case $ac_dashdash$ac_option in
828   --)
829     ac_dashdash=yes ;;
830
831   -bindir | --bindir | --bindi | --bind | --bin | --bi)
832     ac_prev=bindir ;;
833   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
834     bindir=$ac_optarg ;;
835
836   -build | --build | --buil | --bui | --bu)
837     ac_prev=build_alias ;;
838   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
839     build_alias=$ac_optarg ;;
840
841   -cache-file | --cache-file | --cache-fil | --cache-fi \
842   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
843     ac_prev=cache_file ;;
844   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
845   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
846     cache_file=$ac_optarg ;;
847
848   --config-cache | -C)
849     cache_file=config.cache ;;
850
851   -datadir | --datadir | --datadi | --datad)
852     ac_prev=datadir ;;
853   -datadir=* | --datadir=* | --datadi=* | --datad=*)
854     datadir=$ac_optarg ;;
855
856   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
857   | --dataroo | --dataro | --datar)
858     ac_prev=datarootdir ;;
859   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
860   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
861     datarootdir=$ac_optarg ;;
862
863   -disable-* | --disable-*)
864     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
865     # Reject names that are not valid shell variable names.
866     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
867       as_fn_error $? "invalid feature name: $ac_useropt"
868     ac_useropt_orig=$ac_useropt
869     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
870     case $ac_user_opts in
871       *"
872 "enable_$ac_useropt"
873 "*) ;;
874       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
875          ac_unrecognized_sep=', ';;
876     esac
877     eval enable_$ac_useropt=no ;;
878
879   -docdir | --docdir | --docdi | --doc | --do)
880     ac_prev=docdir ;;
881   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
882     docdir=$ac_optarg ;;
883
884   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
885     ac_prev=dvidir ;;
886   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
887     dvidir=$ac_optarg ;;
888
889   -enable-* | --enable-*)
890     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
891     # Reject names that are not valid shell variable names.
892     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
893       as_fn_error $? "invalid feature name: $ac_useropt"
894     ac_useropt_orig=$ac_useropt
895     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
896     case $ac_user_opts in
897       *"
898 "enable_$ac_useropt"
899 "*) ;;
900       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
901          ac_unrecognized_sep=', ';;
902     esac
903     eval enable_$ac_useropt=\$ac_optarg ;;
904
905   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
906   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
907   | --exec | --exe | --ex)
908     ac_prev=exec_prefix ;;
909   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
910   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
911   | --exec=* | --exe=* | --ex=*)
912     exec_prefix=$ac_optarg ;;
913
914   -gas | --gas | --ga | --g)
915     # Obsolete; use --with-gas.
916     with_gas=yes ;;
917
918   -help | --help | --hel | --he | -h)
919     ac_init_help=long ;;
920   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
921     ac_init_help=recursive ;;
922   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
923     ac_init_help=short ;;
924
925   -host | --host | --hos | --ho)
926     ac_prev=host_alias ;;
927   -host=* | --host=* | --hos=* | --ho=*)
928     host_alias=$ac_optarg ;;
929
930   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
931     ac_prev=htmldir ;;
932   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
933   | --ht=*)
934     htmldir=$ac_optarg ;;
935
936   -includedir | --includedir | --includedi | --included | --include \
937   | --includ | --inclu | --incl | --inc)
938     ac_prev=includedir ;;
939   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
940   | --includ=* | --inclu=* | --incl=* | --inc=*)
941     includedir=$ac_optarg ;;
942
943   -infodir | --infodir | --infodi | --infod | --info | --inf)
944     ac_prev=infodir ;;
945   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
946     infodir=$ac_optarg ;;
947
948   -libdir | --libdir | --libdi | --libd)
949     ac_prev=libdir ;;
950   -libdir=* | --libdir=* | --libdi=* | --libd=*)
951     libdir=$ac_optarg ;;
952
953   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
954   | --libexe | --libex | --libe)
955     ac_prev=libexecdir ;;
956   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
957   | --libexe=* | --libex=* | --libe=*)
958     libexecdir=$ac_optarg ;;
959
960   -localedir | --localedir | --localedi | --localed | --locale)
961     ac_prev=localedir ;;
962   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
963     localedir=$ac_optarg ;;
964
965   -localstatedir | --localstatedir | --localstatedi | --localstated \
966   | --localstate | --localstat | --localsta | --localst | --locals)
967     ac_prev=localstatedir ;;
968   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
969   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
970     localstatedir=$ac_optarg ;;
971
972   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
973     ac_prev=mandir ;;
974   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
975     mandir=$ac_optarg ;;
976
977   -nfp | --nfp | --nf)
978     # Obsolete; use --without-fp.
979     with_fp=no ;;
980
981   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
982   | --no-cr | --no-c | -n)
983     no_create=yes ;;
984
985   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
986   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
987     no_recursion=yes ;;
988
989   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
990   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
991   | --oldin | --oldi | --old | --ol | --o)
992     ac_prev=oldincludedir ;;
993   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
994   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
995   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
996     oldincludedir=$ac_optarg ;;
997
998   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
999     ac_prev=prefix ;;
1000   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1001     prefix=$ac_optarg ;;
1002
1003   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1004   | --program-pre | --program-pr | --program-p)
1005     ac_prev=program_prefix ;;
1006   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1007   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1008     program_prefix=$ac_optarg ;;
1009
1010   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1011   | --program-suf | --program-su | --program-s)
1012     ac_prev=program_suffix ;;
1013   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1014   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1015     program_suffix=$ac_optarg ;;
1016
1017   -program-transform-name | --program-transform-name \
1018   | --program-transform-nam | --program-transform-na \
1019   | --program-transform-n | --program-transform- \
1020   | --program-transform | --program-transfor \
1021   | --program-transfo | --program-transf \
1022   | --program-trans | --program-tran \
1023   | --progr-tra | --program-tr | --program-t)
1024     ac_prev=program_transform_name ;;
1025   -program-transform-name=* | --program-transform-name=* \
1026   | --program-transform-nam=* | --program-transform-na=* \
1027   | --program-transform-n=* | --program-transform-=* \
1028   | --program-transform=* | --program-transfor=* \
1029   | --program-transfo=* | --program-transf=* \
1030   | --program-trans=* | --program-tran=* \
1031   | --progr-tra=* | --program-tr=* | --program-t=*)
1032     program_transform_name=$ac_optarg ;;
1033
1034   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1035     ac_prev=pdfdir ;;
1036   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1037     pdfdir=$ac_optarg ;;
1038
1039   -psdir | --psdir | --psdi | --psd | --ps)
1040     ac_prev=psdir ;;
1041   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1042     psdir=$ac_optarg ;;
1043
1044   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1045   | -silent | --silent | --silen | --sile | --sil)
1046     silent=yes ;;
1047
1048   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1049     ac_prev=sbindir ;;
1050   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1051   | --sbi=* | --sb=*)
1052     sbindir=$ac_optarg ;;
1053
1054   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1055   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1056   | --sharedst | --shareds | --shared | --share | --shar \
1057   | --sha | --sh)
1058     ac_prev=sharedstatedir ;;
1059   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1060   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1061   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1062   | --sha=* | --sh=*)
1063     sharedstatedir=$ac_optarg ;;
1064
1065   -site | --site | --sit)
1066     ac_prev=site ;;
1067   -site=* | --site=* | --sit=*)
1068     site=$ac_optarg ;;
1069
1070   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1071     ac_prev=srcdir ;;
1072   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1073     srcdir=$ac_optarg ;;
1074
1075   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1076   | --syscon | --sysco | --sysc | --sys | --sy)
1077     ac_prev=sysconfdir ;;
1078   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1079   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1080     sysconfdir=$ac_optarg ;;
1081
1082   -target | --target | --targe | --targ | --tar | --ta | --t)
1083     ac_prev=target_alias ;;
1084   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1085     target_alias=$ac_optarg ;;
1086
1087   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1088     verbose=yes ;;
1089
1090   -version | --version | --versio | --versi | --vers | -V)
1091     ac_init_version=: ;;
1092
1093   -with-* | --with-*)
1094     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1095     # Reject names that are not valid shell variable names.
1096     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097       as_fn_error $? "invalid package name: $ac_useropt"
1098     ac_useropt_orig=$ac_useropt
1099     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100     case $ac_user_opts in
1101       *"
1102 "with_$ac_useropt"
1103 "*) ;;
1104       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1105          ac_unrecognized_sep=', ';;
1106     esac
1107     eval with_$ac_useropt=\$ac_optarg ;;
1108
1109   -without-* | --without-*)
1110     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1111     # Reject names that are not valid shell variable names.
1112     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113       as_fn_error $? "invalid package name: $ac_useropt"
1114     ac_useropt_orig=$ac_useropt
1115     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116     case $ac_user_opts in
1117       *"
1118 "with_$ac_useropt"
1119 "*) ;;
1120       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1121          ac_unrecognized_sep=', ';;
1122     esac
1123     eval with_$ac_useropt=no ;;
1124
1125   --x)
1126     # Obsolete; use --with-x.
1127     with_x=yes ;;
1128
1129   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1130   | --x-incl | --x-inc | --x-in | --x-i)
1131     ac_prev=x_includes ;;
1132   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1133   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1134     x_includes=$ac_optarg ;;
1135
1136   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1137   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1138     ac_prev=x_libraries ;;
1139   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1140   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1141     x_libraries=$ac_optarg ;;
1142
1143   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1144 Try \`$0 --help' for more information"
1145     ;;
1146
1147   *=*)
1148     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1149     # Reject names that are not valid shell variable names.
1150     case $ac_envvar in #(
1151       '' | [0-9]* | *[!_$as_cr_alnum]* )
1152       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1153     esac
1154     eval $ac_envvar=\$ac_optarg
1155     export $ac_envvar ;;
1156
1157   *)
1158     # FIXME: should be removed in autoconf 3.0.
1159     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1160     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1162     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1163     ;;
1164
1165   esac
1166 done
1167
1168 if test -n "$ac_prev"; then
1169   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1170   as_fn_error $? "missing argument to $ac_option"
1171 fi
1172
1173 if test -n "$ac_unrecognized_opts"; then
1174   case $enable_option_checking in
1175     no) ;;
1176     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1177     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1178   esac
1179 fi
1180
1181 # Check all directory arguments for consistency.
1182 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1183                 datadir sysconfdir sharedstatedir localstatedir includedir \
1184                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1185                 libdir localedir mandir
1186 do
1187   eval ac_val=\$$ac_var
1188   # Remove trailing slashes.
1189   case $ac_val in
1190     */ )
1191       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1192       eval $ac_var=\$ac_val;;
1193   esac
1194   # Be sure to have absolute directory names.
1195   case $ac_val in
1196     [\\/$]* | ?:[\\/]* )  continue;;
1197     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1198   esac
1199   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1200 done
1201
1202 # There might be people who depend on the old broken behavior: `$host'
1203 # used to hold the argument of --host etc.
1204 # FIXME: To remove some day.
1205 build=$build_alias
1206 host=$host_alias
1207 target=$target_alias
1208
1209 # FIXME: To remove some day.
1210 if test "x$host_alias" != x; then
1211   if test "x$build_alias" = x; then
1212     cross_compiling=maybe
1213     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1214     If a cross compiler is detected then cross compile mode will be used" >&2
1215   elif test "x$build_alias" != "x$host_alias"; then
1216     cross_compiling=yes
1217   fi
1218 fi
1219
1220 ac_tool_prefix=
1221 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1222
1223 test "$silent" = yes && exec 6>/dev/null
1224
1225
1226 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1227 ac_ls_di=`ls -di .` &&
1228 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1229   as_fn_error $? "working directory cannot be determined"
1230 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1231   as_fn_error $? "pwd does not report name of working directory"
1232
1233
1234 # Find the source files, if location was not specified.
1235 if test -z "$srcdir"; then
1236   ac_srcdir_defaulted=yes
1237   # Try the directory containing this script, then the parent directory.
1238   ac_confdir=`$as_dirname -- "$as_myself" ||
1239 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1240          X"$as_myself" : 'X\(//\)[^/]' \| \
1241          X"$as_myself" : 'X\(//\)$' \| \
1242          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1243 $as_echo X"$as_myself" |
1244     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1245             s//\1/
1246             q
1247           }
1248           /^X\(\/\/\)[^/].*/{
1249             s//\1/
1250             q
1251           }
1252           /^X\(\/\/\)$/{
1253             s//\1/
1254             q
1255           }
1256           /^X\(\/\).*/{
1257             s//\1/
1258             q
1259           }
1260           s/.*/./; q'`
1261   srcdir=$ac_confdir
1262   if test ! -r "$srcdir/$ac_unique_file"; then
1263     srcdir=..
1264   fi
1265 else
1266   ac_srcdir_defaulted=no
1267 fi
1268 if test ! -r "$srcdir/$ac_unique_file"; then
1269   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1270   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1271 fi
1272 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1273 ac_abs_confdir=`(
1274         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1275         pwd)`
1276 # When building in place, set srcdir=.
1277 if test "$ac_abs_confdir" = "$ac_pwd"; then
1278   srcdir=.
1279 fi
1280 # Remove unnecessary trailing slashes from srcdir.
1281 # Double slashes in file names in object file debugging info
1282 # mess up M-x gdb in Emacs.
1283 case $srcdir in
1284 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1285 esac
1286 for ac_var in $ac_precious_vars; do
1287   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1288   eval ac_env_${ac_var}_value=\$${ac_var}
1289   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1290   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1291 done
1292
1293 #
1294 # Report the --help message.
1295 #
1296 if test "$ac_init_help" = "long"; then
1297   # Omit some internal or obsolete options to make the list less imposing.
1298   # This message is too long to be a string in the A/UX 3.1 sh.
1299   cat <<_ACEOF
1300 \`configure' configures gacela 0.5 to adapt to many kinds of systems.
1301
1302 Usage: $0 [OPTION]... [VAR=VALUE]...
1303
1304 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1305 VAR=VALUE.  See below for descriptions of some of the useful variables.
1306
1307 Defaults for the options are specified in brackets.
1308
1309 Configuration:
1310   -h, --help              display this help and exit
1311       --help=short        display options specific to this package
1312       --help=recursive    display the short help of all the included packages
1313   -V, --version           display version information and exit
1314   -q, --quiet, --silent   do not print \`checking ...' messages
1315       --cache-file=FILE   cache test results in FILE [disabled]
1316   -C, --config-cache      alias for \`--cache-file=config.cache'
1317   -n, --no-create         do not create output files
1318       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1319
1320 Installation directories:
1321   --prefix=PREFIX         install architecture-independent files in PREFIX
1322                           [$ac_default_prefix]
1323   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1324                           [PREFIX]
1325
1326 By default, \`make install' will install all the files in
1327 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1328 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1329 for instance \`--prefix=\$HOME'.
1330
1331 For better control, use the options below.
1332
1333 Fine tuning of the installation directories:
1334   --bindir=DIR            user executables [EPREFIX/bin]
1335   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1336   --libexecdir=DIR        program executables [EPREFIX/libexec]
1337   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1338   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1339   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1340   --libdir=DIR            object code libraries [EPREFIX/lib]
1341   --includedir=DIR        C header files [PREFIX/include]
1342   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1343   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1344   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1345   --infodir=DIR           info documentation [DATAROOTDIR/info]
1346   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1347   --mandir=DIR            man documentation [DATAROOTDIR/man]
1348   --docdir=DIR            documentation root [DATAROOTDIR/doc/gacela]
1349   --htmldir=DIR           html documentation [DOCDIR]
1350   --dvidir=DIR            dvi documentation [DOCDIR]
1351   --pdfdir=DIR            pdf documentation [DOCDIR]
1352   --psdir=DIR             ps documentation [DOCDIR]
1353 _ACEOF
1354
1355   cat <<\_ACEOF
1356
1357 Program names:
1358   --program-prefix=PREFIX            prepend PREFIX to installed program names
1359   --program-suffix=SUFFIX            append SUFFIX to installed program names
1360   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1361
1362 System types:
1363   --build=BUILD     configure for building on BUILD [guessed]
1364   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1365 _ACEOF
1366 fi
1367
1368 if test -n "$ac_init_help"; then
1369   case $ac_init_help in
1370      short | recursive ) echo "Configuration of gacela 0.5:";;
1371    esac
1372   cat <<\_ACEOF
1373
1374 Optional Features:
1375   --disable-option-checking  ignore unrecognized --enable/--with options
1376   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1377   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1378   --enable-shared[=PKGS]  build shared libraries [default=yes]
1379   --enable-static[=PKGS]  build static libraries [default=yes]
1380   --enable-fast-install[=PKGS]
1381                           optimize for fast installation [default=yes]
1382   --disable-dependency-tracking  speeds up one-time build
1383   --enable-dependency-tracking   do not reject slow dependency extractors
1384   --disable-libtool-lock  avoid locking (might break parallel builds)
1385   --disable-rpath         do not hardcode runtime library paths
1386
1387 Optional Packages:
1388   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1389   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1390   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1391                           both]
1392   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1393   --with-sysroot=DIR Search for dependent libraries within DIR
1394                         (or the compiler's sysroot if not specified).
1395   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1396
1397 Some influential environment variables:
1398   CC          C compiler command
1399   CFLAGS      C compiler flags
1400   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1401               nonstandard directory <lib dir>
1402   LIBS        libraries to pass to the linker, e.g. -l<library>
1403   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1404               you have headers in a nonstandard directory <include dir>
1405   CPP         C preprocessor
1406
1407 Use these variables to override the choices made by `configure' or to help
1408 it to find libraries and programs with nonstandard names/locations.
1409
1410 Report bugs to <jsf@jsancho.org>.
1411 _ACEOF
1412 ac_status=$?
1413 fi
1414
1415 if test "$ac_init_help" = "recursive"; then
1416   # If there are subdirs, report their specific --help.
1417   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1418     test -d "$ac_dir" ||
1419       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1420       continue
1421     ac_builddir=.
1422
1423 case "$ac_dir" in
1424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *)
1426   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1427   # A ".." for each directory in $ac_dir_suffix.
1428   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1429   case $ac_top_builddir_sub in
1430   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1432   esac ;;
1433 esac
1434 ac_abs_top_builddir=$ac_pwd
1435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1436 # for backward compatibility:
1437 ac_top_builddir=$ac_top_build_prefix
1438
1439 case $srcdir in
1440   .)  # We are building in place.
1441     ac_srcdir=.
1442     ac_top_srcdir=$ac_top_builddir_sub
1443     ac_abs_top_srcdir=$ac_pwd ;;
1444   [\\/]* | ?:[\\/]* )  # Absolute name.
1445     ac_srcdir=$srcdir$ac_dir_suffix;
1446     ac_top_srcdir=$srcdir
1447     ac_abs_top_srcdir=$srcdir ;;
1448   *) # Relative name.
1449     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1450     ac_top_srcdir=$ac_top_build_prefix$srcdir
1451     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1452 esac
1453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1454
1455     cd "$ac_dir" || { ac_status=$?; continue; }
1456     # Check for guested configure.
1457     if test -f "$ac_srcdir/configure.gnu"; then
1458       echo &&
1459       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1460     elif test -f "$ac_srcdir/configure"; then
1461       echo &&
1462       $SHELL "$ac_srcdir/configure" --help=recursive
1463     else
1464       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1465     fi || ac_status=$?
1466     cd "$ac_pwd" || { ac_status=$?; break; }
1467   done
1468 fi
1469
1470 test -n "$ac_init_help" && exit $ac_status
1471 if $ac_init_version; then
1472   cat <<\_ACEOF
1473 gacela configure 0.5
1474 generated by GNU Autoconf 2.68
1475
1476 Copyright (C) 2010 Free Software Foundation, Inc.
1477 This configure script is free software; the Free Software Foundation
1478 gives unlimited permission to copy, distribute and modify it.
1479 _ACEOF
1480   exit
1481 fi
1482
1483 ## ------------------------ ##
1484 ## Autoconf initialization. ##
1485 ## ------------------------ ##
1486
1487 # ac_fn_c_try_compile LINENO
1488 # --------------------------
1489 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1490 ac_fn_c_try_compile ()
1491 {
1492   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1493   rm -f conftest.$ac_objext
1494   if { { ac_try="$ac_compile"
1495 case "(($ac_try" in
1496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1497   *) ac_try_echo=$ac_try;;
1498 esac
1499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1500 $as_echo "$ac_try_echo"; } >&5
1501   (eval "$ac_compile") 2>conftest.err
1502   ac_status=$?
1503   if test -s conftest.err; then
1504     grep -v '^ *+' conftest.err >conftest.er1
1505     cat conftest.er1 >&5
1506     mv -f conftest.er1 conftest.err
1507   fi
1508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1509   test $ac_status = 0; } && {
1510          test -z "$ac_c_werror_flag" ||
1511          test ! -s conftest.err
1512        } && test -s conftest.$ac_objext; then :
1513   ac_retval=0
1514 else
1515   $as_echo "$as_me: failed program was:" >&5
1516 sed 's/^/| /' conftest.$ac_ext >&5
1517
1518         ac_retval=1
1519 fi
1520   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1521   as_fn_set_status $ac_retval
1522
1523 } # ac_fn_c_try_compile
1524
1525 # ac_fn_c_try_link LINENO
1526 # -----------------------
1527 # Try to link conftest.$ac_ext, and return whether this succeeded.
1528 ac_fn_c_try_link ()
1529 {
1530   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1531   rm -f conftest.$ac_objext conftest$ac_exeext
1532   if { { ac_try="$ac_link"
1533 case "(($ac_try" in
1534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1535   *) ac_try_echo=$ac_try;;
1536 esac
1537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1538 $as_echo "$ac_try_echo"; } >&5
1539   (eval "$ac_link") 2>conftest.err
1540   ac_status=$?
1541   if test -s conftest.err; then
1542     grep -v '^ *+' conftest.err >conftest.er1
1543     cat conftest.er1 >&5
1544     mv -f conftest.er1 conftest.err
1545   fi
1546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1547   test $ac_status = 0; } && {
1548          test -z "$ac_c_werror_flag" ||
1549          test ! -s conftest.err
1550        } && test -s conftest$ac_exeext && {
1551          test "$cross_compiling" = yes ||
1552          $as_test_x conftest$ac_exeext
1553        }; then :
1554   ac_retval=0
1555 else
1556   $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1558
1559         ac_retval=1
1560 fi
1561   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1562   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1563   # interfere with the next link command; also delete a directory that is
1564   # left behind by Apple's compiler.  We do this before executing the actions.
1565   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1566   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1567   as_fn_set_status $ac_retval
1568
1569 } # ac_fn_c_try_link
1570
1571 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1572 # -------------------------------------------------------
1573 # Tests whether HEADER exists and can be compiled using the include files in
1574 # INCLUDES, setting the cache variable VAR accordingly.
1575 ac_fn_c_check_header_compile ()
1576 {
1577   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1579 $as_echo_n "checking for $2... " >&6; }
1580 if eval \${$3+:} false; then :
1581   $as_echo_n "(cached) " >&6
1582 else
1583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1584 /* end confdefs.h.  */
1585 $4
1586 #include <$2>
1587 _ACEOF
1588 if ac_fn_c_try_compile "$LINENO"; then :
1589   eval "$3=yes"
1590 else
1591   eval "$3=no"
1592 fi
1593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1594 fi
1595 eval ac_res=\$$3
1596                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1598   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599
1600 } # ac_fn_c_check_header_compile
1601
1602 # ac_fn_c_try_cpp LINENO
1603 # ----------------------
1604 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1605 ac_fn_c_try_cpp ()
1606 {
1607   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1608   if { { ac_try="$ac_cpp conftest.$ac_ext"
1609 case "(($ac_try" in
1610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1611   *) ac_try_echo=$ac_try;;
1612 esac
1613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1614 $as_echo "$ac_try_echo"; } >&5
1615   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1616   ac_status=$?
1617   if test -s conftest.err; then
1618     grep -v '^ *+' conftest.err >conftest.er1
1619     cat conftest.er1 >&5
1620     mv -f conftest.er1 conftest.err
1621   fi
1622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1623   test $ac_status = 0; } > conftest.i && {
1624          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1625          test ! -s conftest.err
1626        }; then :
1627   ac_retval=0
1628 else
1629   $as_echo "$as_me: failed program was:" >&5
1630 sed 's/^/| /' conftest.$ac_ext >&5
1631
1632     ac_retval=1
1633 fi
1634   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1635   as_fn_set_status $ac_retval
1636
1637 } # ac_fn_c_try_cpp
1638
1639 # ac_fn_c_try_run LINENO
1640 # ----------------------
1641 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1642 # that executables *can* be run.
1643 ac_fn_c_try_run ()
1644 {
1645   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646   if { { ac_try="$ac_link"
1647 case "(($ac_try" in
1648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649   *) ac_try_echo=$ac_try;;
1650 esac
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653   (eval "$ac_link") 2>&5
1654   ac_status=$?
1655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1657   { { case "(($ac_try" in
1658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659   *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663   (eval "$ac_try") 2>&5
1664   ac_status=$?
1665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666   test $ac_status = 0; }; }; then :
1667   ac_retval=0
1668 else
1669   $as_echo "$as_me: program exited with status $ac_status" >&5
1670        $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673        ac_retval=$ac_status
1674 fi
1675   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1676   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1677   as_fn_set_status $ac_retval
1678
1679 } # ac_fn_c_try_run
1680
1681 # ac_fn_c_check_func LINENO FUNC VAR
1682 # ----------------------------------
1683 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1684 ac_fn_c_check_func ()
1685 {
1686   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688 $as_echo_n "checking for $2... " >&6; }
1689 if eval \${$3+:} false; then :
1690   $as_echo_n "(cached) " >&6
1691 else
1692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1693 /* end confdefs.h.  */
1694 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1696 #define $2 innocuous_$2
1697
1698 /* System header to define __stub macros and hopefully few prototypes,
1699     which can conflict with char $2 (); below.
1700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1701     <limits.h> exists even on freestanding compilers.  */
1702
1703 #ifdef __STDC__
1704 # include <limits.h>
1705 #else
1706 # include <assert.h>
1707 #endif
1708
1709 #undef $2
1710
1711 /* Override any GCC internal prototype to avoid an error.
1712    Use char because int might match the return type of a GCC
1713    builtin and then its argument prototype would still apply.  */
1714 #ifdef __cplusplus
1715 extern "C"
1716 #endif
1717 char $2 ();
1718 /* The GNU C library defines this for functions which it implements
1719     to always fail with ENOSYS.  Some functions are actually named
1720     something starting with __ and the normal name is an alias.  */
1721 #if defined __stub_$2 || defined __stub___$2
1722 choke me
1723 #endif
1724
1725 int
1726 main ()
1727 {
1728 return $2 ();
1729   ;
1730   return 0;
1731 }
1732 _ACEOF
1733 if ac_fn_c_try_link "$LINENO"; then :
1734   eval "$3=yes"
1735 else
1736   eval "$3=no"
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext \
1739     conftest$ac_exeext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_func
1747 cat >config.log <<_ACEOF
1748 This file contains any messages produced by compilers while
1749 running configure, to aid debugging if configure makes a mistake.
1750
1751 It was created by gacela $as_me 0.5, which was
1752 generated by GNU Autoconf 2.68.  Invocation command line was
1753
1754   $ $0 $@
1755
1756 _ACEOF
1757 exec 5>>config.log
1758 {
1759 cat <<_ASUNAME
1760 ## --------- ##
1761 ## Platform. ##
1762 ## --------- ##
1763
1764 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1765 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1766 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1767 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1768 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1769
1770 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1771 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1772
1773 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1774 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1775 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1776 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1777 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1778 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1779 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1780
1781 _ASUNAME
1782
1783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1784 for as_dir in $PATH
1785 do
1786   IFS=$as_save_IFS
1787   test -z "$as_dir" && as_dir=.
1788     $as_echo "PATH: $as_dir"
1789   done
1790 IFS=$as_save_IFS
1791
1792 } >&5
1793
1794 cat >&5 <<_ACEOF
1795
1796
1797 ## ----------- ##
1798 ## Core tests. ##
1799 ## ----------- ##
1800
1801 _ACEOF
1802
1803
1804 # Keep a trace of the command line.
1805 # Strip out --no-create and --no-recursion so they do not pile up.
1806 # Strip out --silent because we don't want to record it for future runs.
1807 # Also quote any args containing shell meta-characters.
1808 # Make two passes to allow for proper duplicate-argument suppression.
1809 ac_configure_args=
1810 ac_configure_args0=
1811 ac_configure_args1=
1812 ac_must_keep_next=false
1813 for ac_pass in 1 2
1814 do
1815   for ac_arg
1816   do
1817     case $ac_arg in
1818     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1819     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1820     | -silent | --silent | --silen | --sile | --sil)
1821       continue ;;
1822     *\'*)
1823       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1824     esac
1825     case $ac_pass in
1826     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1827     2)
1828       as_fn_append ac_configure_args1 " '$ac_arg'"
1829       if test $ac_must_keep_next = true; then
1830         ac_must_keep_next=false # Got value, back to normal.
1831       else
1832         case $ac_arg in
1833           *=* | --config-cache | -C | -disable-* | --disable-* \
1834           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1835           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1836           | -with-* | --with-* | -without-* | --without-* | --x)
1837             case "$ac_configure_args0 " in
1838               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1839             esac
1840             ;;
1841           -* ) ac_must_keep_next=true ;;
1842         esac
1843       fi
1844       as_fn_append ac_configure_args " '$ac_arg'"
1845       ;;
1846     esac
1847   done
1848 done
1849 { ac_configure_args0=; unset ac_configure_args0;}
1850 { ac_configure_args1=; unset ac_configure_args1;}
1851
1852 # When interrupted or exit'd, cleanup temporary files, and complete
1853 # config.log.  We remove comments because anyway the quotes in there
1854 # would cause problems or look ugly.
1855 # WARNING: Use '\'' to represent an apostrophe within the trap.
1856 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1857 trap 'exit_status=$?
1858   # Save into config.log some information that might help in debugging.
1859   {
1860     echo
1861
1862     $as_echo "## ---------------- ##
1863 ## Cache variables. ##
1864 ## ---------------- ##"
1865     echo
1866     # The following way of writing the cache mishandles newlines in values,
1867 (
1868   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1869     eval ac_val=\$$ac_var
1870     case $ac_val in #(
1871     *${as_nl}*)
1872       case $ac_var in #(
1873       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1874 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1875       esac
1876       case $ac_var in #(
1877       _ | IFS | as_nl) ;; #(
1878       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1879       *) { eval $ac_var=; unset $ac_var;} ;;
1880       esac ;;
1881     esac
1882   done
1883   (set) 2>&1 |
1884     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1885     *${as_nl}ac_space=\ *)
1886       sed -n \
1887         "s/'\''/'\''\\\\'\'''\''/g;
1888           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1889       ;; #(
1890     *)
1891       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1892       ;;
1893     esac |
1894     sort
1895 )
1896     echo
1897
1898     $as_echo "## ----------------- ##
1899 ## Output variables. ##
1900 ## ----------------- ##"
1901     echo
1902     for ac_var in $ac_subst_vars
1903     do
1904       eval ac_val=\$$ac_var
1905       case $ac_val in
1906       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1907       esac
1908       $as_echo "$ac_var='\''$ac_val'\''"
1909     done | sort
1910     echo
1911
1912     if test -n "$ac_subst_files"; then
1913       $as_echo "## ------------------- ##
1914 ## File substitutions. ##
1915 ## ------------------- ##"
1916       echo
1917       for ac_var in $ac_subst_files
1918       do
1919         eval ac_val=\$$ac_var
1920         case $ac_val in
1921         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1922         esac
1923         $as_echo "$ac_var='\''$ac_val'\''"
1924       done | sort
1925       echo
1926     fi
1927
1928     if test -s confdefs.h; then
1929       $as_echo "## ----------- ##
1930 ## confdefs.h. ##
1931 ## ----------- ##"
1932       echo
1933       cat confdefs.h
1934       echo
1935     fi
1936     test "$ac_signal" != 0 &&
1937       $as_echo "$as_me: caught signal $ac_signal"
1938     $as_echo "$as_me: exit $exit_status"
1939   } >&5
1940   rm -f core *.core core.conftest.* &&
1941     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1942     exit $exit_status
1943 ' 0
1944 for ac_signal in 1 2 13 15; do
1945   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1946 done
1947 ac_signal=0
1948
1949 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1950 rm -f -r conftest* confdefs.h
1951
1952 $as_echo "/* confdefs.h */" > confdefs.h
1953
1954 # Predefined preprocessor variables.
1955
1956 cat >>confdefs.h <<_ACEOF
1957 #define PACKAGE_NAME "$PACKAGE_NAME"
1958 _ACEOF
1959
1960 cat >>confdefs.h <<_ACEOF
1961 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1962 _ACEOF
1963
1964 cat >>confdefs.h <<_ACEOF
1965 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1966 _ACEOF
1967
1968 cat >>confdefs.h <<_ACEOF
1969 #define PACKAGE_STRING "$PACKAGE_STRING"
1970 _ACEOF
1971
1972 cat >>confdefs.h <<_ACEOF
1973 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1974 _ACEOF
1975
1976 cat >>confdefs.h <<_ACEOF
1977 #define PACKAGE_URL "$PACKAGE_URL"
1978 _ACEOF
1979
1980
1981 # Let the site file select an alternate cache file if it wants to.
1982 # Prefer an explicitly selected file to automatically selected ones.
1983 ac_site_file1=NONE
1984 ac_site_file2=NONE
1985 if test -n "$CONFIG_SITE"; then
1986   # We do not want a PATH search for config.site.
1987   case $CONFIG_SITE in #((
1988     -*)  ac_site_file1=./$CONFIG_SITE;;
1989     */*) ac_site_file1=$CONFIG_SITE;;
1990     *)   ac_site_file1=./$CONFIG_SITE;;
1991   esac
1992 elif test "x$prefix" != xNONE; then
1993   ac_site_file1=$prefix/share/config.site
1994   ac_site_file2=$prefix/etc/config.site
1995 else
1996   ac_site_file1=$ac_default_prefix/share/config.site
1997   ac_site_file2=$ac_default_prefix/etc/config.site
1998 fi
1999 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2000 do
2001   test "x$ac_site_file" = xNONE && continue
2002   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2003     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2004 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2005     sed 's/^/| /' "$ac_site_file" >&5
2006     . "$ac_site_file" \
2007       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009 as_fn_error $? "failed to load site script $ac_site_file
2010 See \`config.log' for more details" "$LINENO" 5; }
2011   fi
2012 done
2013
2014 if test -r "$cache_file"; then
2015   # Some versions of bash will fail to source /dev/null (special files
2016   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2017   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2018     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2019 $as_echo "$as_me: loading cache $cache_file" >&6;}
2020     case $cache_file in
2021       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2022       *)                      . "./$cache_file";;
2023     esac
2024   fi
2025 else
2026   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2027 $as_echo "$as_me: creating cache $cache_file" >&6;}
2028   >$cache_file
2029 fi
2030
2031 # Check that the precious variables saved in the cache have kept the same
2032 # value.
2033 ac_cache_corrupted=false
2034 for ac_var in $ac_precious_vars; do
2035   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2036   eval ac_new_set=\$ac_env_${ac_var}_set
2037   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2038   eval ac_new_val=\$ac_env_${ac_var}_value
2039   case $ac_old_set,$ac_new_set in
2040     set,)
2041       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2042 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2043       ac_cache_corrupted=: ;;
2044     ,set)
2045       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2046 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2047       ac_cache_corrupted=: ;;
2048     ,);;
2049     *)
2050       if test "x$ac_old_val" != "x$ac_new_val"; then
2051         # differences in whitespace do not lead to failure.
2052         ac_old_val_w=`echo x $ac_old_val`
2053         ac_new_val_w=`echo x $ac_new_val`
2054         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2055           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2056 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2057           ac_cache_corrupted=:
2058         else
2059           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2060 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2061           eval $ac_var=\$ac_old_val
2062         fi
2063         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2064 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2065         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2066 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2067       fi;;
2068   esac
2069   # Pass precious variables to config.status.
2070   if test "$ac_new_set" = set; then
2071     case $ac_new_val in
2072     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2073     *) ac_arg=$ac_var=$ac_new_val ;;
2074     esac
2075     case " $ac_configure_args " in
2076       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2077       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2078     esac
2079   fi
2080 done
2081 if $ac_cache_corrupted; then
2082   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2084   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2085 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2086   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2087 fi
2088 ## -------------------- ##
2089 ## Main body of script. ##
2090 ## -------------------- ##
2091
2092 ac_ext=c
2093 ac_cpp='$CPP $CPPFLAGS'
2094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2097
2098
2099 am__api_version='1.11'
2100
2101 ac_aux_dir=
2102 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2103   if test -f "$ac_dir/install-sh"; then
2104     ac_aux_dir=$ac_dir
2105     ac_install_sh="$ac_aux_dir/install-sh -c"
2106     break
2107   elif test -f "$ac_dir/install.sh"; then
2108     ac_aux_dir=$ac_dir
2109     ac_install_sh="$ac_aux_dir/install.sh -c"
2110     break
2111   elif test -f "$ac_dir/shtool"; then
2112     ac_aux_dir=$ac_dir
2113     ac_install_sh="$ac_aux_dir/shtool install -c"
2114     break
2115   fi
2116 done
2117 if test -z "$ac_aux_dir"; then
2118   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2119 fi
2120
2121 # These three variables are undocumented and unsupported,
2122 # and are intended to be withdrawn in a future Autoconf release.
2123 # They can cause serious problems if a builder's source tree is in a directory
2124 # whose full name contains unusual characters.
2125 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2126 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2127 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2128
2129
2130 # Find a good install program.  We prefer a C program (faster),
2131 # so one script is as good as another.  But avoid the broken or
2132 # incompatible versions:
2133 # SysV /etc/install, /usr/sbin/install
2134 # SunOS /usr/etc/install
2135 # IRIX /sbin/install
2136 # AIX /bin/install
2137 # AmigaOS /C/install, which installs bootblocks on floppy discs
2138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2141 # OS/2's system install, which has a completely different semantic
2142 # ./install, which can be erroneously created by make from ./install.sh.
2143 # Reject install programs that cannot install multiple files.
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2145 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2146 if test -z "$INSTALL"; then
2147 if ${ac_cv_path_install+:} false; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2152 do
2153   IFS=$as_save_IFS
2154   test -z "$as_dir" && as_dir=.
2155     # Account for people who put trailing slashes in PATH elements.
2156 case $as_dir/ in #((
2157   ./ | .// | /[cC]/* | \
2158   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2159   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2160   /usr/ucb/* ) ;;
2161   *)
2162     # OSF1 and SCO ODT 3.0 have their own names for install.
2163     # Don't use installbsd from OSF since it installs stuff as root
2164     # by default.
2165     for ac_prog in ginstall scoinst install; do
2166       for ac_exec_ext in '' $ac_executable_extensions; do
2167         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2168           if test $ac_prog = install &&
2169             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170             # AIX install.  It has an incompatible calling convention.
2171             :
2172           elif test $ac_prog = install &&
2173             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174             # program-specific install script used by HP pwplus--don't use.
2175             :
2176           else
2177             rm -rf conftest.one conftest.two conftest.dir
2178             echo one > conftest.one
2179             echo two > conftest.two
2180             mkdir conftest.dir
2181             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2182               test -s conftest.one && test -s conftest.two &&
2183               test -s conftest.dir/conftest.one &&
2184               test -s conftest.dir/conftest.two
2185             then
2186               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2187               break 3
2188             fi
2189           fi
2190         fi
2191       done
2192     done
2193     ;;
2194 esac
2195
2196   done
2197 IFS=$as_save_IFS
2198
2199 rm -rf conftest.one conftest.two conftest.dir
2200
2201 fi
2202   if test "${ac_cv_path_install+set}" = set; then
2203     INSTALL=$ac_cv_path_install
2204   else
2205     # As a last resort, use the slow shell script.  Don't cache a
2206     # value for INSTALL within a source directory, because that will
2207     # break other packages using the cache if that directory is
2208     # removed, or if the value is a relative name.
2209     INSTALL=$ac_install_sh
2210   fi
2211 fi
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2213 $as_echo "$INSTALL" >&6; }
2214
2215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2216 # It thinks the first close brace ends the variable substitution.
2217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2218
2219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2220
2221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2222
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2224 $as_echo_n "checking whether build environment is sane... " >&6; }
2225 # Just in case
2226 sleep 1
2227 echo timestamp > conftest.file
2228 # Reject unsafe characters in $srcdir or the absolute working directory
2229 # name.  Accept space and tab only in the latter.
2230 am_lf='
2231 '
2232 case `pwd` in
2233   *[\\\"\#\$\&\'\`$am_lf]*)
2234     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2235 esac
2236 case $srcdir in
2237   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2238     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2239 esac
2240
2241 # Do `set' in a subshell so we don't clobber the current shell's
2242 # arguments.  Must try -L first in case configure is actually a
2243 # symlink; some systems play weird games with the mod time of symlinks
2244 # (eg FreeBSD returns the mod time of the symlink's containing
2245 # directory).
2246 if (
2247    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2248    if test "$*" = "X"; then
2249       # -L didn't work.
2250       set X `ls -t "$srcdir/configure" conftest.file`
2251    fi
2252    rm -f conftest.file
2253    if test "$*" != "X $srcdir/configure conftest.file" \
2254       && test "$*" != "X conftest.file $srcdir/configure"; then
2255
2256       # If neither matched, then we have a broken ls.  This can happen
2257       # if, for instance, CONFIG_SHELL is bash and it inherits a
2258       # broken ls alias from the environment.  This has actually
2259       # happened.  Such a system could not be considered "sane".
2260       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2261 alias in your environment" "$LINENO" 5
2262    fi
2263
2264    test "$2" = conftest.file
2265    )
2266 then
2267    # Ok.
2268    :
2269 else
2270    as_fn_error $? "newly created file is older than distributed files!
2271 Check your system clock" "$LINENO" 5
2272 fi
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2274 $as_echo "yes" >&6; }
2275 test "$program_prefix" != NONE &&
2276   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2277 # Use a double $ so make ignores it.
2278 test "$program_suffix" != NONE &&
2279   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2280 # Double any \ or $.
2281 # By default was `s,x,x', remove it if useless.
2282 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2283 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2284
2285 # expand $ac_aux_dir to an absolute path
2286 am_aux_dir=`cd $ac_aux_dir && pwd`
2287
2288 if test x"${MISSING+set}" != xset; then
2289   case $am_aux_dir in
2290   *\ * | *\     *)
2291     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2292   *)
2293     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2294   esac
2295 fi
2296 # Use eval to expand $SHELL
2297 if eval "$MISSING --run true"; then
2298   am_missing_run="$MISSING --run "
2299 else
2300   am_missing_run=
2301   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2302 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2303 fi
2304
2305 if test x"${install_sh}" != xset; then
2306   case $am_aux_dir in
2307   *\ * | *\     *)
2308     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2309   *)
2310     install_sh="\${SHELL} $am_aux_dir/install-sh"
2311   esac
2312 fi
2313
2314 # Installed binaries are usually stripped using `strip' when the user
2315 # run `make install-strip'.  However `strip' might not be the right
2316 # tool to use in cross-compilation environments, therefore Automake
2317 # will honor the `STRIP' environment variable to overrule this program.
2318 if test "$cross_compiling" != no; then
2319   if test -n "$ac_tool_prefix"; then
2320   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2321 set dummy ${ac_tool_prefix}strip; ac_word=$2
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if ${ac_cv_prog_STRIP+:} false; then :
2325   $as_echo_n "(cached) " >&6
2326 else
2327   if test -n "$STRIP"; then
2328   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335     for ac_exec_ext in '' $ac_executable_extensions; do
2336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2339     break 2
2340   fi
2341 done
2342   done
2343 IFS=$as_save_IFS
2344
2345 fi
2346 fi
2347 STRIP=$ac_cv_prog_STRIP
2348 if test -n "$STRIP"; then
2349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2350 $as_echo "$STRIP" >&6; }
2351 else
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2353 $as_echo "no" >&6; }
2354 fi
2355
2356
2357 fi
2358 if test -z "$ac_cv_prog_STRIP"; then
2359   ac_ct_STRIP=$STRIP
2360   # Extract the first word of "strip", so it can be a program name with args.
2361 set dummy strip; ac_word=$2
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2363 $as_echo_n "checking for $ac_word... " >&6; }
2364 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   if test -n "$ac_ct_STRIP"; then
2368   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2369 else
2370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 for as_dir in $PATH
2372 do
2373   IFS=$as_save_IFS
2374   test -z "$as_dir" && as_dir=.
2375     for ac_exec_ext in '' $ac_executable_extensions; do
2376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2377     ac_cv_prog_ac_ct_STRIP="strip"
2378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2379     break 2
2380   fi
2381 done
2382   done
2383 IFS=$as_save_IFS
2384
2385 fi
2386 fi
2387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2388 if test -n "$ac_ct_STRIP"; then
2389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2390 $as_echo "$ac_ct_STRIP" >&6; }
2391 else
2392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2393 $as_echo "no" >&6; }
2394 fi
2395
2396   if test "x$ac_ct_STRIP" = x; then
2397     STRIP=":"
2398   else
2399     case $cross_compiling:$ac_tool_warned in
2400 yes:)
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2403 ac_tool_warned=yes ;;
2404 esac
2405     STRIP=$ac_ct_STRIP
2406   fi
2407 else
2408   STRIP="$ac_cv_prog_STRIP"
2409 fi
2410
2411 fi
2412 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2415 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2416 if test -z "$MKDIR_P"; then
2417   if ${ac_cv_path_mkdir+:} false; then :
2418   $as_echo_n "(cached) " >&6
2419 else
2420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2421 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2422 do
2423   IFS=$as_save_IFS
2424   test -z "$as_dir" && as_dir=.
2425     for ac_prog in mkdir gmkdir; do
2426          for ac_exec_ext in '' $ac_executable_extensions; do
2427            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2428            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2429              'mkdir (GNU coreutils) '* | \
2430              'mkdir (coreutils) '* | \
2431              'mkdir (fileutils) '4.1*)
2432                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2433                break 3;;
2434            esac
2435          done
2436        done
2437   done
2438 IFS=$as_save_IFS
2439
2440 fi
2441
2442   test -d ./--version && rmdir ./--version
2443   if test "${ac_cv_path_mkdir+set}" = set; then
2444     MKDIR_P="$ac_cv_path_mkdir -p"
2445   else
2446     # As a last resort, use the slow shell script.  Don't cache a
2447     # value for MKDIR_P within a source directory, because that will
2448     # break other packages using the cache if that directory is
2449     # removed, or if the value is a relative name.
2450     MKDIR_P="$ac_install_sh -d"
2451   fi
2452 fi
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2454 $as_echo "$MKDIR_P" >&6; }
2455
2456 mkdir_p="$MKDIR_P"
2457 case $mkdir_p in
2458   [\\/$]* | ?:[\\/]*) ;;
2459   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2460 esac
2461
2462 for ac_prog in gawk mawk nawk awk
2463 do
2464   # Extract the first word of "$ac_prog", so it can be a program name with args.
2465 set dummy $ac_prog; ac_word=$2
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2467 $as_echo_n "checking for $ac_word... " >&6; }
2468 if ${ac_cv_prog_AWK+:} false; then :
2469   $as_echo_n "(cached) " >&6
2470 else
2471   if test -n "$AWK"; then
2472   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2473 else
2474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 for as_dir in $PATH
2476 do
2477   IFS=$as_save_IFS
2478   test -z "$as_dir" && as_dir=.
2479     for ac_exec_ext in '' $ac_executable_extensions; do
2480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2481     ac_cv_prog_AWK="$ac_prog"
2482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2483     break 2
2484   fi
2485 done
2486   done
2487 IFS=$as_save_IFS
2488
2489 fi
2490 fi
2491 AWK=$ac_cv_prog_AWK
2492 if test -n "$AWK"; then
2493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2494 $as_echo "$AWK" >&6; }
2495 else
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2497 $as_echo "no" >&6; }
2498 fi
2499
2500
2501   test -n "$AWK" && break
2502 done
2503
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2505 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2506 set x ${MAKE-make}
2507 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2508 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2509   $as_echo_n "(cached) " >&6
2510 else
2511   cat >conftest.make <<\_ACEOF
2512 SHELL = /bin/sh
2513 all:
2514         @echo '@@@%%%=$(MAKE)=@@@%%%'
2515 _ACEOF
2516 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2517 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2518   *@@@%%%=?*=@@@%%%*)
2519     eval ac_cv_prog_make_${ac_make}_set=yes;;
2520   *)
2521     eval ac_cv_prog_make_${ac_make}_set=no;;
2522 esac
2523 rm -f conftest.make
2524 fi
2525 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2527 $as_echo "yes" >&6; }
2528   SET_MAKE=
2529 else
2530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2531 $as_echo "no" >&6; }
2532   SET_MAKE="MAKE=${MAKE-make}"
2533 fi
2534
2535 rm -rf .tst 2>/dev/null
2536 mkdir .tst 2>/dev/null
2537 if test -d .tst; then
2538   am__leading_dot=.
2539 else
2540   am__leading_dot=_
2541 fi
2542 rmdir .tst 2>/dev/null
2543
2544 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2545   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2546   # is not polluted with repeated "-I."
2547   am__isrc=' -I$(srcdir)'
2548   # test to see if srcdir already configured
2549   if test -f $srcdir/config.status; then
2550     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2551   fi
2552 fi
2553
2554 # test whether we have cygpath
2555 if test -z "$CYGPATH_W"; then
2556   if (cygpath --version) >/dev/null 2>/dev/null; then
2557     CYGPATH_W='cygpath -w'
2558   else
2559     CYGPATH_W=echo
2560   fi
2561 fi
2562
2563
2564 # Define the identity of the package.
2565  PACKAGE='gacela'
2566  VERSION='0.5'
2567
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE "$PACKAGE"
2571 _ACEOF
2572
2573
2574 cat >>confdefs.h <<_ACEOF
2575 #define VERSION "$VERSION"
2576 _ACEOF
2577
2578 # Some tools Automake needs.
2579
2580 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2581
2582
2583 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2584
2585
2586 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2587
2588
2589 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2590
2591
2592 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2593
2594 # We need awk for the "check" target.  The system "awk" is bad on
2595 # some platforms.
2596 # Always define AMTAR for backward compatibility.
2597
2598 AMTAR=${AMTAR-"${am_missing_run}tar"}
2599
2600 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2601
2602
2603
2604
2605
2606 case `pwd` in
2607   *\ * | *\     *)
2608     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2609 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2610 esac
2611
2612
2613
2614 macro_version='2.4.2'
2615 macro_revision='1.3337'
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629 ltmain="$ac_aux_dir/ltmain.sh"
2630
2631 # Make sure we can run config.sub.
2632 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2633   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2634
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2636 $as_echo_n "checking build system type... " >&6; }
2637 if ${ac_cv_build+:} false; then :
2638   $as_echo_n "(cached) " >&6
2639 else
2640   ac_build_alias=$build_alias
2641 test "x$ac_build_alias" = x &&
2642   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2643 test "x$ac_build_alias" = x &&
2644   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2645 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2646   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647
2648 fi
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2650 $as_echo "$ac_cv_build" >&6; }
2651 case $ac_cv_build in
2652 *-*-*) ;;
2653 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2654 esac
2655 build=$ac_cv_build
2656 ac_save_IFS=$IFS; IFS='-'
2657 set x $ac_cv_build
2658 shift
2659 build_cpu=$1
2660 build_vendor=$2
2661 shift; shift
2662 # Remember, the first character of IFS is used to create $*,
2663 # except with old shells:
2664 build_os=$*
2665 IFS=$ac_save_IFS
2666 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2670 $as_echo_n "checking host system type... " >&6; }
2671 if ${ac_cv_host+:} false; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test "x$host_alias" = x; then
2675   ac_cv_host=$ac_cv_build
2676 else
2677   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2678     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 fi
2680
2681 fi
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2683 $as_echo "$ac_cv_host" >&6; }
2684 case $ac_cv_host in
2685 *-*-*) ;;
2686 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2687 esac
2688 host=$ac_cv_host
2689 ac_save_IFS=$IFS; IFS='-'
2690 set x $ac_cv_host
2691 shift
2692 host_cpu=$1
2693 host_vendor=$2
2694 shift; shift
2695 # Remember, the first character of IFS is used to create $*,
2696 # except with old shells:
2697 host_os=$*
2698 IFS=$ac_save_IFS
2699 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700
2701
2702 # Backslashify metacharacters that are still active within
2703 # double-quoted strings.
2704 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2705
2706 # Same as above, but do not quote variable references.
2707 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2708
2709 # Sed substitution to delay expansion of an escaped shell variable in a
2710 # double_quote_subst'ed string.
2711 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2712
2713 # Sed substitution to delay expansion of an escaped single quote.
2714 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2715
2716 # Sed substitution to avoid accidental globbing in evaled expressions
2717 no_glob_subst='s/\*/\\\*/g'
2718
2719 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2720 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2721 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2722
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2724 $as_echo_n "checking how to print strings... " >&6; }
2725 # Test print first, because it will be a builtin if present.
2726 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2727    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2728   ECHO='print -r --'
2729 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2730   ECHO='printf %s\n'
2731 else
2732   # Use this function as a fallback that always works.
2733   func_fallback_echo ()
2734   {
2735     eval 'cat <<_LTECHO_EOF
2736 $1
2737 _LTECHO_EOF'
2738   }
2739   ECHO='func_fallback_echo'
2740 fi
2741
2742 # func_echo_all arg...
2743 # Invoke $ECHO with all args, space-separated.
2744 func_echo_all ()
2745 {
2746     $ECHO ""
2747 }
2748
2749 case "$ECHO" in
2750   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2751 $as_echo "printf" >&6; } ;;
2752   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2753 $as_echo "print -r" >&6; } ;;
2754   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2755 $as_echo "cat" >&6; } ;;
2756 esac
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771 DEPDIR="${am__leading_dot}deps"
2772
2773 ac_config_commands="$ac_config_commands depfiles"
2774
2775
2776 am_make=${MAKE-make}
2777 cat > confinc << 'END'
2778 am__doit:
2779         @echo this is the am__doit target
2780 .PHONY: am__doit
2781 END
2782 # If we don't find an include directive, just comment out the code.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2784 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2785 am__include="#"
2786 am__quote=
2787 _am_result=none
2788 # First try GNU make style include.
2789 echo "include confinc" > confmf
2790 # Ignore all kinds of additional output from `make'.
2791 case `$am_make -s -f confmf 2> /dev/null` in #(
2792 *the\ am__doit\ target*)
2793   am__include=include
2794   am__quote=
2795   _am_result=GNU
2796   ;;
2797 esac
2798 # Now try BSD make style include.
2799 if test "$am__include" = "#"; then
2800    echo '.include "confinc"' > confmf
2801    case `$am_make -s -f confmf 2> /dev/null` in #(
2802    *the\ am__doit\ target*)
2803      am__include=.include
2804      am__quote="\""
2805      _am_result=BSD
2806      ;;
2807    esac
2808 fi
2809
2810
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2812 $as_echo "$_am_result" >&6; }
2813 rm -f confinc confmf
2814
2815 # Check whether --enable-dependency-tracking was given.
2816 if test "${enable_dependency_tracking+set}" = set; then :
2817   enableval=$enable_dependency_tracking;
2818 fi
2819
2820 if test "x$enable_dependency_tracking" != xno; then
2821   am_depcomp="$ac_aux_dir/depcomp"
2822   AMDEPBACKSLASH='\'
2823 fi
2824  if test "x$enable_dependency_tracking" != xno; then
2825   AMDEP_TRUE=
2826   AMDEP_FALSE='#'
2827 else
2828   AMDEP_TRUE='#'
2829   AMDEP_FALSE=
2830 fi
2831
2832
2833 ac_ext=c
2834 ac_cpp='$CPP $CPPFLAGS'
2835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2838 if test -n "$ac_tool_prefix"; then
2839   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if ${ac_cv_prog_CC+:} false; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$CC"; then
2847   ac_cv_prog_CC="$CC" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 CC=$ac_cv_prog_CC
2867 if test -n "$CC"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2869 $as_echo "$CC" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875
2876 fi
2877 if test -z "$ac_cv_prog_CC"; then
2878   ac_ct_CC=$CC
2879   # Extract the first word of "gcc", so it can be a program name with args.
2880 set dummy gcc; ac_word=$2
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2882 $as_echo_n "checking for $ac_word... " >&6; }
2883 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2884   $as_echo_n "(cached) " >&6
2885 else
2886   if test -n "$ac_ct_CC"; then
2887   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2888 else
2889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890 for as_dir in $PATH
2891 do
2892   IFS=$as_save_IFS
2893   test -z "$as_dir" && as_dir=.
2894     for ac_exec_ext in '' $ac_executable_extensions; do
2895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896     ac_cv_prog_ac_ct_CC="gcc"
2897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2898     break 2
2899   fi
2900 done
2901   done
2902 IFS=$as_save_IFS
2903
2904 fi
2905 fi
2906 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2907 if test -n "$ac_ct_CC"; then
2908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2909 $as_echo "$ac_ct_CC" >&6; }
2910 else
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2912 $as_echo "no" >&6; }
2913 fi
2914
2915   if test "x$ac_ct_CC" = x; then
2916     CC=""
2917   else
2918     case $cross_compiling:$ac_tool_warned in
2919 yes:)
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2922 ac_tool_warned=yes ;;
2923 esac
2924     CC=$ac_ct_CC
2925   fi
2926 else
2927   CC="$ac_cv_prog_CC"
2928 fi
2929
2930 if test -z "$CC"; then
2931           if test -n "$ac_tool_prefix"; then
2932     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2933 set dummy ${ac_tool_prefix}cc; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_CC+:} false; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$CC"; then
2940   ac_cv_prog_CC="$CC" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2949     ac_cv_prog_CC="${ac_tool_prefix}cc"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 CC=$ac_cv_prog_CC
2960 if test -n "$CC"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2962 $as_echo "$CC" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969   fi
2970 fi
2971 if test -z "$CC"; then
2972   # Extract the first word of "cc", so it can be a program name with args.
2973 set dummy cc; ac_word=$2
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2975 $as_echo_n "checking for $ac_word... " >&6; }
2976 if ${ac_cv_prog_CC+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   if test -n "$CC"; then
2980   ac_cv_prog_CC="$CC" # Let the user override the test.
2981 else
2982   ac_prog_rejected=no
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2985 do
2986   IFS=$as_save_IFS
2987   test -z "$as_dir" && as_dir=.
2988     for ac_exec_ext in '' $ac_executable_extensions; do
2989   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2990     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2991        ac_prog_rejected=yes
2992        continue
2993      fi
2994     ac_cv_prog_CC="cc"
2995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2996     break 2
2997   fi
2998 done
2999   done
3000 IFS=$as_save_IFS
3001
3002 if test $ac_prog_rejected = yes; then
3003   # We found a bogon in the path, so make sure we never use it.
3004   set dummy $ac_cv_prog_CC
3005   shift
3006   if test $# != 0; then
3007     # We chose a different compiler from the bogus one.
3008     # However, it has the same basename, so the bogon will be chosen
3009     # first if we set CC to just the basename; use the full file name.
3010     shift
3011     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3012   fi
3013 fi
3014 fi
3015 fi
3016 CC=$ac_cv_prog_CC
3017 if test -n "$CC"; then
3018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3019 $as_echo "$CC" >&6; }
3020 else
3021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3022 $as_echo "no" >&6; }
3023 fi
3024
3025
3026 fi
3027 if test -z "$CC"; then
3028   if test -n "$ac_tool_prefix"; then
3029   for ac_prog in cl.exe
3030   do
3031     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3032 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034 $as_echo_n "checking for $ac_word... " >&6; }
3035 if ${ac_cv_prog_CC+:} false; then :
3036   $as_echo_n "(cached) " >&6
3037 else
3038   if test -n "$CC"; then
3039   ac_cv_prog_CC="$CC" # Let the user override the test.
3040 else
3041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042 for as_dir in $PATH
3043 do
3044   IFS=$as_save_IFS
3045   test -z "$as_dir" && as_dir=.
3046     for ac_exec_ext in '' $ac_executable_extensions; do
3047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3048     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050     break 2
3051   fi
3052 done
3053   done
3054 IFS=$as_save_IFS
3055
3056 fi
3057 fi
3058 CC=$ac_cv_prog_CC
3059 if test -n "$CC"; then
3060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3061 $as_echo "$CC" >&6; }
3062 else
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 fi
3066
3067
3068     test -n "$CC" && break
3069   done
3070 fi
3071 if test -z "$CC"; then
3072   ac_ct_CC=$CC
3073   for ac_prog in cl.exe
3074 do
3075   # Extract the first word of "$ac_prog", so it can be a program name with args.
3076 set dummy $ac_prog; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3080   $as_echo_n "(cached) " >&6
3081 else
3082   if test -n "$ac_ct_CC"; then
3083   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088   IFS=$as_save_IFS
3089   test -z "$as_dir" && as_dir=.
3090     for ac_exec_ext in '' $ac_executable_extensions; do
3091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3092     ac_cv_prog_ac_ct_CC="$ac_prog"
3093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094     break 2
3095   fi
3096 done
3097   done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3103 if test -n "$ac_ct_CC"; then
3104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3105 $as_echo "$ac_ct_CC" >&6; }
3106 else
3107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111
3112   test -n "$ac_ct_CC" && break
3113 done
3114
3115   if test "x$ac_ct_CC" = x; then
3116     CC=""
3117   else
3118     case $cross_compiling:$ac_tool_warned in
3119 yes:)
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3121 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3122 ac_tool_warned=yes ;;
3123 esac
3124     CC=$ac_ct_CC
3125   fi
3126 fi
3127
3128 fi
3129
3130
3131 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "no acceptable C compiler found in \$PATH
3134 See \`config.log' for more details" "$LINENO" 5; }
3135
3136 # Provide some information about the compiler.
3137 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3138 set X $ac_compile
3139 ac_compiler=$2
3140 for ac_option in --version -v -V -qversion; do
3141   { { ac_try="$ac_compiler $ac_option >&5"
3142 case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3147 $as_echo "$ac_try_echo"; } >&5
3148   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3149   ac_status=$?
3150   if test -s conftest.err; then
3151     sed '10a\
3152 ... rest of stderr output deleted ...
3153          10q' conftest.err >conftest.er1
3154     cat conftest.er1 >&5
3155   fi
3156   rm -f conftest.er1 conftest.err
3157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158   test $ac_status = 0; }
3159 done
3160
3161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3162 /* end confdefs.h.  */
3163
3164 int
3165 main ()
3166 {
3167
3168   ;
3169   return 0;
3170 }
3171 _ACEOF
3172 ac_clean_files_save=$ac_clean_files
3173 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3174 # Try to create an executable without -o first, disregard a.out.
3175 # It will help us diagnose broken compilers, and finding out an intuition
3176 # of exeext.
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3178 $as_echo_n "checking whether the C compiler works... " >&6; }
3179 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3180
3181 # The possible output files:
3182 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3183
3184 ac_rmfiles=
3185 for ac_file in $ac_files
3186 do
3187   case $ac_file in
3188     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3190   esac
3191 done
3192 rm -f $ac_rmfiles
3193
3194 if { { ac_try="$ac_link_default"
3195 case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200 $as_echo "$ac_try_echo"; } >&5
3201   (eval "$ac_link_default") 2>&5
3202   ac_status=$?
3203   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204   test $ac_status = 0; }; then :
3205   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3206 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3207 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3208 # so that the user can short-circuit this test for compilers unknown to
3209 # Autoconf.
3210 for ac_file in $ac_files ''
3211 do
3212   test -f "$ac_file" || continue
3213   case $ac_file in
3214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3215         ;;
3216     [ab].out )
3217         # We found the default executable, but exeext='' is most
3218         # certainly right.
3219         break;;
3220     *.* )
3221         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3222         then :; else
3223            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224         fi
3225         # We set ac_cv_exeext here because the later test for it is not
3226         # safe: cross compilers may not add the suffix if given an `-o'
3227         # argument, so we may need to know it at that point already.
3228         # Even if this section looks crufty: it has the advantage of
3229         # actually working.
3230         break;;
3231     * )
3232         break;;
3233   esac
3234 done
3235 test "$ac_cv_exeext" = no && ac_cv_exeext=
3236
3237 else
3238   ac_file=''
3239 fi
3240 if test -z "$ac_file"; then :
3241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3243 $as_echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248 as_fn_error 77 "C compiler cannot create executables
3249 See \`config.log' for more details" "$LINENO" 5; }
3250 else
3251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3252 $as_echo "yes" >&6; }
3253 fi
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3255 $as_echo_n "checking for C compiler default output file name... " >&6; }
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3257 $as_echo "$ac_file" >&6; }
3258 ac_exeext=$ac_cv_exeext
3259
3260 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3261 ac_clean_files=$ac_clean_files_save
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3263 $as_echo_n "checking for suffix of executables... " >&6; }
3264 if { { ac_try="$ac_link"
3265 case "(($ac_try" in
3266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267   *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271   (eval "$ac_link") 2>&5
3272   ac_status=$?
3273   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274   test $ac_status = 0; }; then :
3275   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3276 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3277 # work properly (i.e., refer to `conftest.exe'), while it won't with
3278 # `rm'.
3279 for ac_file in conftest.exe conftest conftest.*; do
3280   test -f "$ac_file" || continue
3281   case $ac_file in
3282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3283     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3284           break;;
3285     * ) break;;
3286   esac
3287 done
3288 else
3289   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 fi
3294 rm -f conftest conftest$ac_cv_exeext
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3296 $as_echo "$ac_cv_exeext" >&6; }
3297
3298 rm -f conftest.$ac_ext
3299 EXEEXT=$ac_cv_exeext
3300 ac_exeext=$EXEEXT
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h.  */
3303 #include <stdio.h>
3304 int
3305 main ()
3306 {
3307 FILE *f = fopen ("conftest.out", "w");
3308  return ferror (f) || fclose (f) != 0;
3309
3310   ;
3311   return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run.  If not, either
3316 # the compiler is broken, or we cross compile.
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 $as_echo_n "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320   { { ac_try="$ac_link"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3326 $as_echo "$ac_try_echo"; } >&5
3327   (eval "$ac_link") 2>&5
3328   ac_status=$?
3329   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330   test $ac_status = 0; }
3331   if { ac_try='./conftest$ac_cv_exeext'
3332   { { case "(($ac_try" in
3333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334   *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 $as_echo "$ac_try_echo"; } >&5
3338   (eval "$ac_try") 2>&5
3339   ac_status=$?
3340   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341   test $ac_status = 0; }; }; then
3342     cross_compiling=no
3343   else
3344     if test "$cross_compiling" = maybe; then
3345         cross_compiling=yes
3346     else
3347         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349 as_fn_error $? "cannot run C compiled programs.
3350 If you meant to cross compile, use \`--host'.
3351 See \`config.log' for more details" "$LINENO" 5; }
3352     fi
3353   fi
3354 fi
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 $as_echo "$cross_compiling" >&6; }
3357
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3359 ac_clean_files=$ac_clean_files_save
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3361 $as_echo_n "checking for suffix of object files... " >&6; }
3362 if ${ac_cv_objext+:} false; then :
3363   $as_echo_n "(cached) " >&6
3364 else
3365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h.  */
3367
3368 int
3369 main ()
3370 {
3371
3372   ;
3373   return 0;
3374 }
3375 _ACEOF
3376 rm -f conftest.o conftest.obj
3377 if { { ac_try="$ac_compile"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383 $as_echo "$ac_try_echo"; } >&5
3384   (eval "$ac_compile") 2>&5
3385   ac_status=$?
3386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387   test $ac_status = 0; }; then :
3388   for ac_file in conftest.o conftest.obj conftest.*; do
3389   test -f "$ac_file" || continue;
3390   case $ac_file in
3391     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3392     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3393        break;;
3394   esac
3395 done
3396 else
3397   $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error $? "cannot compute suffix of object files: cannot compile
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 fi
3405 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3406 fi
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3408 $as_echo "$ac_cv_objext" >&6; }
3409 OBJEXT=$ac_cv_objext
3410 ac_objext=$OBJEXT
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3412 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3413 if ${ac_cv_c_compiler_gnu+:} false; then :
3414   $as_echo_n "(cached) " >&6
3415 else
3416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h.  */
3418
3419 int
3420 main ()
3421 {
3422 #ifndef __GNUC__
3423        choke me
3424 #endif
3425
3426   ;
3427   return 0;
3428 }
3429 _ACEOF
3430 if ac_fn_c_try_compile "$LINENO"; then :
3431   ac_compiler_gnu=yes
3432 else
3433   ac_compiler_gnu=no
3434 fi
3435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3436 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3437
3438 fi
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3440 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3441 if test $ac_compiler_gnu = yes; then
3442   GCC=yes
3443 else
3444   GCC=
3445 fi
3446 ac_test_CFLAGS=${CFLAGS+set}
3447 ac_save_CFLAGS=$CFLAGS
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3449 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3450 if ${ac_cv_prog_cc_g+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   ac_save_c_werror_flag=$ac_c_werror_flag
3454    ac_c_werror_flag=yes
3455    ac_cv_prog_cc_g=no
3456    CFLAGS="-g"
3457    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3458 /* end confdefs.h.  */
3459
3460 int
3461 main ()
3462 {
3463
3464   ;
3465   return 0;
3466 }
3467 _ACEOF
3468 if ac_fn_c_try_compile "$LINENO"; then :
3469   ac_cv_prog_cc_g=yes
3470 else
3471   CFLAGS=""
3472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h.  */
3474
3475 int
3476 main ()
3477 {
3478
3479   ;
3480   return 0;
3481 }
3482 _ACEOF
3483 if ac_fn_c_try_compile "$LINENO"; then :
3484
3485 else
3486   ac_c_werror_flag=$ac_save_c_werror_flag
3487          CFLAGS="-g"
3488          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3489 /* end confdefs.h.  */
3490
3491 int
3492 main ()
3493 {
3494
3495   ;
3496   return 0;
3497 }
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500   ac_cv_prog_cc_g=yes
3501 fi
3502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3503 fi
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 fi
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507    ac_c_werror_flag=$ac_save_c_werror_flag
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3510 $as_echo "$ac_cv_prog_cc_g" >&6; }
3511 if test "$ac_test_CFLAGS" = set; then
3512   CFLAGS=$ac_save_CFLAGS
3513 elif test $ac_cv_prog_cc_g = yes; then
3514   if test "$GCC" = yes; then
3515     CFLAGS="-g -O2"
3516   else
3517     CFLAGS="-g"
3518   fi
3519 else
3520   if test "$GCC" = yes; then
3521     CFLAGS="-O2"
3522   else
3523     CFLAGS=
3524   fi
3525 fi
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3527 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3528 if ${ac_cv_prog_cc_c89+:} false; then :
3529   $as_echo_n "(cached) " >&6
3530 else
3531   ac_cv_prog_cc_c89=no
3532 ac_save_CC=$CC
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #include <stdarg.h>
3536 #include <stdio.h>
3537 #include <sys/types.h>
3538 #include <sys/stat.h>
3539 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3540 struct buf { int x; };
3541 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3542 static char *e (p, i)
3543      char **p;
3544      int i;
3545 {
3546   return p[i];
3547 }
3548 static char *f (char * (*g) (char **, int), char **p, ...)
3549 {
3550   char *s;
3551   va_list v;
3552   va_start (v,p);
3553   s = g (p, va_arg (v,int));
3554   va_end (v);
3555   return s;
3556 }
3557
3558 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3559    function prototypes and stuff, but not '\xHH' hex character constants.
3560    These don't provoke an error unfortunately, instead are silently treated
3561    as 'x'.  The following induces an error, until -std is added to get
3562    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3563    array size at least.  It's necessary to write '\x00'==0 to get something
3564    that's true only with -std.  */
3565 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3566
3567 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3568    inside strings and character constants.  */
3569 #define FOO(x) 'x'
3570 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3571
3572 int test (int i, double x);
3573 struct s1 {int (*f) (int a);};
3574 struct s2 {int (*f) (double a);};
3575 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3576 int argc;
3577 char **argv;
3578 int
3579 main ()
3580 {
3581 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3582   ;
3583   return 0;
3584 }
3585 _ACEOF
3586 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3587         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3588 do
3589   CC="$ac_save_CC $ac_arg"
3590   if ac_fn_c_try_compile "$LINENO"; then :
3591   ac_cv_prog_cc_c89=$ac_arg
3592 fi
3593 rm -f core conftest.err conftest.$ac_objext
3594   test "x$ac_cv_prog_cc_c89" != "xno" && break
3595 done
3596 rm -f conftest.$ac_ext
3597 CC=$ac_save_CC
3598
3599 fi
3600 # AC_CACHE_VAL
3601 case "x$ac_cv_prog_cc_c89" in
3602   x)
3603     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3604 $as_echo "none needed" >&6; } ;;
3605   xno)
3606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3607 $as_echo "unsupported" >&6; } ;;
3608   *)
3609     CC="$CC $ac_cv_prog_cc_c89"
3610     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3611 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3612 esac
3613 if test "x$ac_cv_prog_cc_c89" != xno; then :
3614
3615 fi
3616
3617 ac_ext=c
3618 ac_cpp='$CPP $CPPFLAGS'
3619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3622
3623 depcc="$CC"   am_compiler_list=
3624
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3626 $as_echo_n "checking dependency style of $depcc... " >&6; }
3627 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3628   $as_echo_n "(cached) " >&6
3629 else
3630   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3631   # We make a subdir and do the tests there.  Otherwise we can end up
3632   # making bogus files that we don't know about and never remove.  For
3633   # instance it was reported that on HP-UX the gcc test will end up
3634   # making a dummy file named `D' -- because `-MD' means `put the output
3635   # in D'.
3636   mkdir conftest.dir
3637   # Copy depcomp to subdir because otherwise we won't find it if we're
3638   # using a relative directory.
3639   cp "$am_depcomp" conftest.dir
3640   cd conftest.dir
3641   # We will build objects and dependencies in a subdirectory because
3642   # it helps to detect inapplicable dependency modes.  For instance
3643   # both Tru64's cc and ICC support -MD to output dependencies as a
3644   # side effect of compilation, but ICC will put the dependencies in
3645   # the current directory while Tru64 will put them in the object
3646   # directory.
3647   mkdir sub
3648
3649   am_cv_CC_dependencies_compiler_type=none
3650   if test "$am_compiler_list" = ""; then
3651      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3652   fi
3653   am__universal=false
3654   case " $depcc " in #(
3655      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3656      esac
3657
3658   for depmode in $am_compiler_list; do
3659     # Setup a source with many dependencies, because some compilers
3660     # like to wrap large dependency lists on column 80 (with \), and
3661     # we should not choose a depcomp mode which is confused by this.
3662     #
3663     # We need to recreate these files for each test, as the compiler may
3664     # overwrite some of them when testing with obscure command lines.
3665     # This happens at least with the AIX C compiler.
3666     : > sub/conftest.c
3667     for i in 1 2 3 4 5 6; do
3668       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3669       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3670       # Solaris 8's {/usr,}/bin/sh.
3671       touch sub/conftst$i.h
3672     done
3673     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3674
3675     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3676     # mode.  It turns out that the SunPro C++ compiler does not properly
3677     # handle `-M -o', and we need to detect this.  Also, some Intel
3678     # versions had trouble with output in subdirs
3679     am__obj=sub/conftest.${OBJEXT-o}
3680     am__minus_obj="-o $am__obj"
3681     case $depmode in
3682     gcc)
3683       # This depmode causes a compiler race in universal mode.
3684       test "$am__universal" = false || continue
3685       ;;
3686     nosideeffect)
3687       # after this tag, mechanisms are not by side-effect, so they'll
3688       # only be used when explicitly requested
3689       if test "x$enable_dependency_tracking" = xyes; then
3690         continue
3691       else
3692         break
3693       fi
3694       ;;
3695     msvisualcpp | msvcmsys)
3696       # This compiler won't grok `-c -o', but also, the minuso test has
3697       # not run yet.  These depmodes are late enough in the game, and
3698       # so weak that their functioning should not be impacted.
3699       am__obj=conftest.${OBJEXT-o}
3700       am__minus_obj=
3701       ;;
3702     none) break ;;
3703     esac
3704     if depmode=$depmode \
3705        source=sub/conftest.c object=$am__obj \
3706        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3707        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3708          >/dev/null 2>conftest.err &&
3709        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3710        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3711        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3712        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3713       # icc doesn't choke on unknown options, it will just issue warnings
3714       # or remarks (even with -Werror).  So we grep stderr for any message
3715       # that says an option was ignored or not supported.
3716       # When given -MP, icc 7.0 and 7.1 complain thusly:
3717       #   icc: Command line warning: ignoring option '-M'; no argument required
3718       # The diagnosis changed in icc 8.0:
3719       #   icc: Command line remark: option '-MP' not supported
3720       if (grep 'ignoring option' conftest.err ||
3721           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3722         am_cv_CC_dependencies_compiler_type=$depmode
3723         break
3724       fi
3725     fi
3726   done
3727
3728   cd ..
3729   rm -rf conftest.dir
3730 else
3731   am_cv_CC_dependencies_compiler_type=none
3732 fi
3733
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3736 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3737 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3738
3739  if
3740   test "x$enable_dependency_tracking" != xno \
3741   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3742   am__fastdepCC_TRUE=
3743   am__fastdepCC_FALSE='#'
3744 else
3745   am__fastdepCC_TRUE='#'
3746   am__fastdepCC_FALSE=
3747 fi
3748
3749
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3751 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3752 if ${ac_cv_path_SED+:} false; then :
3753   $as_echo_n "(cached) " >&6
3754 else
3755             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3756      for ac_i in 1 2 3 4 5 6 7; do
3757        ac_script="$ac_script$as_nl$ac_script"
3758      done
3759      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3760      { ac_script=; unset ac_script;}
3761      if test -z "$SED"; then
3762   ac_path_SED_found=false
3763   # Loop through the user's path and test for each of PROGNAME-LIST
3764   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769     for ac_prog in sed gsed; do
3770     for ac_exec_ext in '' $ac_executable_extensions; do
3771       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3772       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3773 # Check for GNU ac_path_SED and select it if it is found.
3774   # Check for GNU $ac_path_SED
3775 case `"$ac_path_SED" --version 2>&1` in
3776 *GNU*)
3777   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3778 *)
3779   ac_count=0
3780   $as_echo_n 0123456789 >"conftest.in"
3781   while :
3782   do
3783     cat "conftest.in" "conftest.in" >"conftest.tmp"
3784     mv "conftest.tmp" "conftest.in"
3785     cp "conftest.in" "conftest.nl"
3786     $as_echo '' >> "conftest.nl"
3787     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3788     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3789     as_fn_arith $ac_count + 1 && ac_count=$as_val
3790     if test $ac_count -gt ${ac_path_SED_max-0}; then
3791       # Best one so far, save it but keep looking for a better one
3792       ac_cv_path_SED="$ac_path_SED"
3793       ac_path_SED_max=$ac_count
3794     fi
3795     # 10*(2^10) chars as input seems more than enough
3796     test $ac_count -gt 10 && break
3797   done
3798   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3799 esac
3800
3801       $ac_path_SED_found && break 3
3802     done
3803   done
3804   done
3805 IFS=$as_save_IFS
3806   if test -z "$ac_cv_path_SED"; then
3807     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3808   fi
3809 else
3810   ac_cv_path_SED=$SED
3811 fi
3812
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3815 $as_echo "$ac_cv_path_SED" >&6; }
3816  SED="$ac_cv_path_SED"
3817   rm -f conftest.sed
3818
3819 test -z "$SED" && SED=sed
3820 Xsed="$SED -e 1s/^X//"
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3833 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3834 if ${ac_cv_path_GREP+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   if test -z "$GREP"; then
3838   ac_path_GREP_found=false
3839   # Loop through the user's path and test for each of PROGNAME-LIST
3840   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3842 do
3843   IFS=$as_save_IFS
3844   test -z "$as_dir" && as_dir=.
3845     for ac_prog in grep ggrep; do
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3848       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3849 # Check for GNU ac_path_GREP and select it if it is found.
3850   # Check for GNU $ac_path_GREP
3851 case `"$ac_path_GREP" --version 2>&1` in
3852 *GNU*)
3853   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3854 *)
3855   ac_count=0
3856   $as_echo_n 0123456789 >"conftest.in"
3857   while :
3858   do
3859     cat "conftest.in" "conftest.in" >"conftest.tmp"
3860     mv "conftest.tmp" "conftest.in"
3861     cp "conftest.in" "conftest.nl"
3862     $as_echo 'GREP' >> "conftest.nl"
3863     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3864     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3865     as_fn_arith $ac_count + 1 && ac_count=$as_val
3866     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3867       # Best one so far, save it but keep looking for a better one
3868       ac_cv_path_GREP="$ac_path_GREP"
3869       ac_path_GREP_max=$ac_count
3870     fi
3871     # 10*(2^10) chars as input seems more than enough
3872     test $ac_count -gt 10 && break
3873   done
3874   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3875 esac
3876
3877       $ac_path_GREP_found && break 3
3878     done
3879   done
3880   done
3881 IFS=$as_save_IFS
3882   if test -z "$ac_cv_path_GREP"; then
3883     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3884   fi
3885 else
3886   ac_cv_path_GREP=$GREP
3887 fi
3888
3889 fi
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3891 $as_echo "$ac_cv_path_GREP" >&6; }
3892  GREP="$ac_cv_path_GREP"
3893
3894
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3896 $as_echo_n "checking for egrep... " >&6; }
3897 if ${ac_cv_path_EGREP+:} false; then :
3898   $as_echo_n "(cached) " >&6
3899 else
3900   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3901    then ac_cv_path_EGREP="$GREP -E"
3902    else
3903      if test -z "$EGREP"; then
3904   ac_path_EGREP_found=false
3905   # Loop through the user's path and test for each of PROGNAME-LIST
3906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911     for ac_prog in egrep; do
3912     for ac_exec_ext in '' $ac_executable_extensions; do
3913       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3914       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3915 # Check for GNU ac_path_EGREP and select it if it is found.
3916   # Check for GNU $ac_path_EGREP
3917 case `"$ac_path_EGREP" --version 2>&1` in
3918 *GNU*)
3919   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3920 *)
3921   ac_count=0
3922   $as_echo_n 0123456789 >"conftest.in"
3923   while :
3924   do
3925     cat "conftest.in" "conftest.in" >"conftest.tmp"
3926     mv "conftest.tmp" "conftest.in"
3927     cp "conftest.in" "conftest.nl"
3928     $as_echo 'EGREP' >> "conftest.nl"
3929     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931     as_fn_arith $ac_count + 1 && ac_count=$as_val
3932     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3933       # Best one so far, save it but keep looking for a better one
3934       ac_cv_path_EGREP="$ac_path_EGREP"
3935       ac_path_EGREP_max=$ac_count
3936     fi
3937     # 10*(2^10) chars as input seems more than enough
3938     test $ac_count -gt 10 && break
3939   done
3940   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941 esac
3942
3943       $ac_path_EGREP_found && break 3
3944     done
3945   done
3946   done
3947 IFS=$as_save_IFS
3948   if test -z "$ac_cv_path_EGREP"; then
3949     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3950   fi
3951 else
3952   ac_cv_path_EGREP=$EGREP
3953 fi
3954
3955    fi
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3958 $as_echo "$ac_cv_path_EGREP" >&6; }
3959  EGREP="$ac_cv_path_EGREP"
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3963 $as_echo_n "checking for fgrep... " >&6; }
3964 if ${ac_cv_path_FGREP+:} false; then :
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3968    then ac_cv_path_FGREP="$GREP -F"
3969    else
3970      if test -z "$FGREP"; then
3971   ac_path_FGREP_found=false
3972   # Loop through the user's path and test for each of PROGNAME-LIST
3973   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3974 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3975 do
3976   IFS=$as_save_IFS
3977   test -z "$as_dir" && as_dir=.
3978     for ac_prog in fgrep; do
3979     for ac_exec_ext in '' $ac_executable_extensions; do
3980       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3981       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3982 # Check for GNU ac_path_FGREP and select it if it is found.
3983   # Check for GNU $ac_path_FGREP
3984 case `"$ac_path_FGREP" --version 2>&1` in
3985 *GNU*)
3986   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3987 *)
3988   ac_count=0
3989   $as_echo_n 0123456789 >"conftest.in"
3990   while :
3991   do
3992     cat "conftest.in" "conftest.in" >"conftest.tmp"
3993     mv "conftest.tmp" "conftest.in"
3994     cp "conftest.in" "conftest.nl"
3995     $as_echo 'FGREP' >> "conftest.nl"
3996     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3997     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3998     as_fn_arith $ac_count + 1 && ac_count=$as_val
3999     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4000       # Best one so far, save it but keep looking for a better one
4001       ac_cv_path_FGREP="$ac_path_FGREP"
4002       ac_path_FGREP_max=$ac_count
4003     fi
4004     # 10*(2^10) chars as input seems more than enough
4005     test $ac_count -gt 10 && break
4006   done
4007   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4008 esac
4009
4010       $ac_path_FGREP_found && break 3
4011     done
4012   done
4013   done
4014 IFS=$as_save_IFS
4015   if test -z "$ac_cv_path_FGREP"; then
4016     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4017   fi
4018 else
4019   ac_cv_path_FGREP=$FGREP
4020 fi
4021
4022    fi
4023 fi
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4025 $as_echo "$ac_cv_path_FGREP" >&6; }
4026  FGREP="$ac_cv_path_FGREP"
4027
4028
4029 test -z "$GREP" && GREP=grep
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049 # Check whether --with-gnu-ld was given.
4050 if test "${with_gnu_ld+set}" = set; then :
4051   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4052 else
4053   with_gnu_ld=no
4054 fi
4055
4056 ac_prog=ld
4057 if test "$GCC" = yes; then
4058   # Check if gcc -print-prog-name=ld gives a path.
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4060 $as_echo_n "checking for ld used by $CC... " >&6; }
4061   case $host in
4062   *-*-mingw*)
4063     # gcc leaves a trailing carriage return which upsets mingw
4064     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4065   *)
4066     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4067   esac
4068   case $ac_prog in
4069     # Accept absolute paths.
4070     [\\/]* | ?:[\\/]*)
4071       re_direlt='/[^/][^/]*/\.\./'
4072       # Canonicalize the pathname of ld
4073       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4074       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4075         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4076       done
4077       test -z "$LD" && LD="$ac_prog"
4078       ;;
4079   "")
4080     # If it fails, then pretend we aren't using GCC.
4081     ac_prog=ld
4082     ;;
4083   *)
4084     # If it is relative, then search for the first ld in PATH.
4085     with_gnu_ld=unknown
4086     ;;
4087   esac
4088 elif test "$with_gnu_ld" = yes; then
4089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4090 $as_echo_n "checking for GNU ld... " >&6; }
4091 else
4092   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4093 $as_echo_n "checking for non-GNU ld... " >&6; }
4094 fi
4095 if ${lt_cv_path_LD+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   if test -z "$LD"; then
4099   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4100   for ac_dir in $PATH; do
4101     IFS="$lt_save_ifs"
4102     test -z "$ac_dir" && ac_dir=.
4103     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4104       lt_cv_path_LD="$ac_dir/$ac_prog"
4105       # Check to see if the program is GNU ld.  I'd rather use --version,
4106       # but apparently some variants of GNU ld only accept -v.
4107       # Break only if it was the GNU/non-GNU ld that we prefer.
4108       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4109       *GNU* | *'with BFD'*)
4110         test "$with_gnu_ld" != no && break
4111         ;;
4112       *)
4113         test "$with_gnu_ld" != yes && break
4114         ;;
4115       esac
4116     fi
4117   done
4118   IFS="$lt_save_ifs"
4119 else
4120   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4121 fi
4122 fi
4123
4124 LD="$lt_cv_path_LD"
4125 if test -n "$LD"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4127 $as_echo "$LD" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4134 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4135 if ${lt_cv_prog_gnu_ld+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4139 case `$LD -v 2>&1 </dev/null` in
4140 *GNU* | *'with BFD'*)
4141   lt_cv_prog_gnu_ld=yes
4142   ;;
4143 *)
4144   lt_cv_prog_gnu_ld=no
4145   ;;
4146 esac
4147 fi
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4149 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4150 with_gnu_ld=$lt_cv_prog_gnu_ld
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4161 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4162 if ${lt_cv_path_NM+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   if test -n "$NM"; then
4166   # Let the user override the test.
4167   lt_cv_path_NM="$NM"
4168 else
4169   lt_nm_to_check="${ac_tool_prefix}nm"
4170   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4171     lt_nm_to_check="$lt_nm_to_check nm"
4172   fi
4173   for lt_tmp_nm in $lt_nm_to_check; do
4174     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4175     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4176       IFS="$lt_save_ifs"
4177       test -z "$ac_dir" && ac_dir=.
4178       tmp_nm="$ac_dir/$lt_tmp_nm"
4179       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4180         # Check to see if the nm accepts a BSD-compat flag.
4181         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4182         #   nm: unknown option "B" ignored
4183         # Tru64's nm complains that /dev/null is an invalid object file
4184         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4185         */dev/null* | *'Invalid file or object type'*)
4186           lt_cv_path_NM="$tmp_nm -B"
4187           break
4188           ;;
4189         *)
4190           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4191           */dev/null*)
4192             lt_cv_path_NM="$tmp_nm -p"
4193             break
4194             ;;
4195           *)
4196             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4197             continue # so that we can try to find one that supports BSD flags
4198             ;;
4199           esac
4200           ;;
4201         esac
4202       fi
4203     done
4204     IFS="$lt_save_ifs"
4205   done
4206   : ${lt_cv_path_NM=no}
4207 fi
4208 fi
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4210 $as_echo "$lt_cv_path_NM" >&6; }
4211 if test "$lt_cv_path_NM" != "no"; then
4212   NM="$lt_cv_path_NM"
4213 else
4214   # Didn't find any BSD compatible name lister, look for dumpbin.
4215   if test -n "$DUMPBIN"; then :
4216     # Let the user override the test.
4217   else
4218     if test -n "$ac_tool_prefix"; then
4219   for ac_prog in dumpbin "link -dump"
4220   do
4221     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_DUMPBIN+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   if test -n "$DUMPBIN"; then
4229   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_exec_ext in '' $ac_executable_extensions; do
4237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243   done
4244 IFS=$as_save_IFS
4245
4246 fi
4247 fi
4248 DUMPBIN=$ac_cv_prog_DUMPBIN
4249 if test -n "$DUMPBIN"; then
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4251 $as_echo "$DUMPBIN" >&6; }
4252 else
4253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4255 fi
4256
4257
4258     test -n "$DUMPBIN" && break
4259   done
4260 fi
4261 if test -z "$DUMPBIN"; then
4262   ac_ct_DUMPBIN=$DUMPBIN
4263   for ac_prog in dumpbin "link -dump"
4264 do
4265   # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4270   $as_echo_n "(cached) " >&6
4271 else
4272   if test -n "$ac_ct_DUMPBIN"; then
4273   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4277 do
4278   IFS=$as_save_IFS
4279   test -z "$as_dir" && as_dir=.
4280     for ac_exec_ext in '' $ac_executable_extensions; do
4281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284     break 2
4285   fi
4286 done
4287   done
4288 IFS=$as_save_IFS
4289
4290 fi
4291 fi
4292 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4293 if test -n "$ac_ct_DUMPBIN"; then
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4295 $as_echo "$ac_ct_DUMPBIN" >&6; }
4296 else
4297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4299 fi
4300
4301
4302   test -n "$ac_ct_DUMPBIN" && break
4303 done
4304
4305   if test "x$ac_ct_DUMPBIN" = x; then
4306     DUMPBIN=":"
4307   else
4308     case $cross_compiling:$ac_tool_warned in
4309 yes:)
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4313 esac
4314     DUMPBIN=$ac_ct_DUMPBIN
4315   fi
4316 fi
4317
4318     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4319     *COFF*)
4320       DUMPBIN="$DUMPBIN -symbols"
4321       ;;
4322     *)
4323       DUMPBIN=:
4324       ;;
4325     esac
4326   fi
4327
4328   if test "$DUMPBIN" != ":"; then
4329     NM="$DUMPBIN"
4330   fi
4331 fi
4332 test -z "$NM" && NM=nm
4333
4334
4335
4336
4337
4338
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4340 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4341 if ${lt_cv_nm_interface+:} false; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   lt_cv_nm_interface="BSD nm"
4345   echo "int some_variable = 0;" > conftest.$ac_ext
4346   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4347   (eval "$ac_compile" 2>conftest.err)
4348   cat conftest.err >&5
4349   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4350   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4351   cat conftest.err >&5
4352   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4353   cat conftest.out >&5
4354   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4355     lt_cv_nm_interface="MS dumpbin"
4356   fi
4357   rm -f conftest*
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4360 $as_echo "$lt_cv_nm_interface" >&6; }
4361
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4363 $as_echo_n "checking whether ln -s works... " >&6; }
4364 LN_S=$as_ln_s
4365 if test "$LN_S" = "ln -s"; then
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4367 $as_echo "yes" >&6; }
4368 else
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4370 $as_echo "no, using $LN_S" >&6; }
4371 fi
4372
4373 # find the maximum length of command line arguments
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4375 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4376 if ${lt_cv_sys_max_cmd_len+:} false; then :
4377   $as_echo_n "(cached) " >&6
4378 else
4379     i=0
4380   teststring="ABCD"
4381
4382   case $build_os in
4383   msdosdjgpp*)
4384     # On DJGPP, this test can blow up pretty badly due to problems in libc
4385     # (any single argument exceeding 2000 bytes causes a buffer overrun
4386     # during glob expansion).  Even if it were fixed, the result of this
4387     # check would be larger than it should be.
4388     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4389     ;;
4390
4391   gnu*)
4392     # Under GNU Hurd, this test is not required because there is
4393     # no limit to the length of command line arguments.
4394     # Libtool will interpret -1 as no limit whatsoever
4395     lt_cv_sys_max_cmd_len=-1;
4396     ;;
4397
4398   cygwin* | mingw* | cegcc*)
4399     # On Win9x/ME, this test blows up -- it succeeds, but takes
4400     # about 5 minutes as the teststring grows exponentially.
4401     # Worse, since 9x/ME are not pre-emptively multitasking,
4402     # you end up with a "frozen" computer, even though with patience
4403     # the test eventually succeeds (with a max line length of 256k).
4404     # Instead, let's just punt: use the minimum linelength reported by
4405     # all of the supported platforms: 8192 (on NT/2K/XP).
4406     lt_cv_sys_max_cmd_len=8192;
4407     ;;
4408
4409   mint*)
4410     # On MiNT this can take a long time and run out of memory.
4411     lt_cv_sys_max_cmd_len=8192;
4412     ;;
4413
4414   amigaos*)
4415     # On AmigaOS with pdksh, this test takes hours, literally.
4416     # So we just punt and use a minimum line length of 8192.
4417     lt_cv_sys_max_cmd_len=8192;
4418     ;;
4419
4420   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4421     # This has been around since 386BSD, at least.  Likely further.
4422     if test -x /sbin/sysctl; then
4423       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4424     elif test -x /usr/sbin/sysctl; then
4425       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4426     else
4427       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4428     fi
4429     # And add a safety zone
4430     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4431     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4432     ;;
4433
4434   interix*)
4435     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4436     lt_cv_sys_max_cmd_len=196608
4437     ;;
4438
4439   os2*)
4440     # The test takes a long time on OS/2.
4441     lt_cv_sys_max_cmd_len=8192
4442     ;;
4443
4444   osf*)
4445     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4446     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4447     # nice to cause kernel panics so lets avoid the loop below.
4448     # First set a reasonable default.
4449     lt_cv_sys_max_cmd_len=16384
4450     #
4451     if test -x /sbin/sysconfig; then
4452       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4453         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4454       esac
4455     fi
4456     ;;
4457   sco3.2v5*)
4458     lt_cv_sys_max_cmd_len=102400
4459     ;;
4460   sysv5* | sco5v6* | sysv4.2uw2*)
4461     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4462     if test -n "$kargmax"; then
4463       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4464     else
4465       lt_cv_sys_max_cmd_len=32768
4466     fi
4467     ;;
4468   *)
4469     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4470     if test -n "$lt_cv_sys_max_cmd_len"; then
4471       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4472       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4473     else
4474       # Make teststring a little bigger before we do anything with it.
4475       # a 1K string should be a reasonable start.
4476       for i in 1 2 3 4 5 6 7 8 ; do
4477         teststring=$teststring$teststring
4478       done
4479       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4480       # If test is not a shell built-in, we'll probably end up computing a
4481       # maximum length that is only half of the actual maximum length, but
4482       # we can't tell.
4483       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4484                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4485               test $i != 17 # 1/2 MB should be enough
4486       do
4487         i=`expr $i + 1`
4488         teststring=$teststring$teststring
4489       done
4490       # Only check the string length outside the loop.
4491       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4492       teststring=
4493       # Add a significant safety factor because C++ compilers can tack on
4494       # massive amounts of additional arguments before passing them to the
4495       # linker.  It appears as though 1/2 is a usable value.
4496       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4497     fi
4498     ;;
4499   esac
4500
4501 fi
4502
4503 if test -n $lt_cv_sys_max_cmd_len ; then
4504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4505 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4506 else
4507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4508 $as_echo "none" >&6; }
4509 fi
4510 max_cmd_len=$lt_cv_sys_max_cmd_len
4511
4512
4513
4514
4515
4516
4517 : ${CP="cp -f"}
4518 : ${MV="mv -f"}
4519 : ${RM="rm -f"}
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4522 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4523 # Try some XSI features
4524 xsi_shell=no
4525 ( _lt_dummy="a/b/c"
4526   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4527       = c,a/b,b/c, \
4528     && eval 'test $(( 1 + 1 )) -eq 2 \
4529     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4530   && xsi_shell=yes
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4532 $as_echo "$xsi_shell" >&6; }
4533
4534
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4536 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4537 lt_shell_append=no
4538 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4539     >/dev/null 2>&1 \
4540   && lt_shell_append=yes
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4542 $as_echo "$lt_shell_append" >&6; }
4543
4544
4545 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4546   lt_unset=unset
4547 else
4548   lt_unset=false
4549 fi
4550
4551
4552
4553
4554
4555 # test EBCDIC or ASCII
4556 case `echo X|tr X '\101'` in
4557  A) # ASCII based system
4558     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4559   lt_SP2NL='tr \040 \012'
4560   lt_NL2SP='tr \015\012 \040\040'
4561   ;;
4562  *) # EBCDIC based system
4563   lt_SP2NL='tr \100 \n'
4564   lt_NL2SP='tr \r\n \100\100'
4565   ;;
4566 esac
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4577 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4578 if ${lt_cv_to_host_file_cmd+:} false; then :
4579   $as_echo_n "(cached) " >&6
4580 else
4581   case $host in
4582   *-*-mingw* )
4583     case $build in
4584       *-*-mingw* ) # actually msys
4585         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4586         ;;
4587       *-*-cygwin* )
4588         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4589         ;;
4590       * ) # otherwise, assume *nix
4591         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4592         ;;
4593     esac
4594     ;;
4595   *-*-cygwin* )
4596     case $build in
4597       *-*-mingw* ) # actually msys
4598         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4599         ;;
4600       *-*-cygwin* )
4601         lt_cv_to_host_file_cmd=func_convert_file_noop
4602         ;;
4603       * ) # otherwise, assume *nix
4604         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4605         ;;
4606     esac
4607     ;;
4608   * ) # unhandled hosts (and "normal" native builds)
4609     lt_cv_to_host_file_cmd=func_convert_file_noop
4610     ;;
4611 esac
4612
4613 fi
4614
4615 to_host_file_cmd=$lt_cv_to_host_file_cmd
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4617 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4618
4619
4620
4621
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4624 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4625 if ${lt_cv_to_tool_file_cmd+:} false; then :
4626   $as_echo_n "(cached) " >&6
4627 else
4628   #assume ordinary cross tools, or native build.
4629 lt_cv_to_tool_file_cmd=func_convert_file_noop
4630 case $host in
4631   *-*-mingw* )
4632     case $build in
4633       *-*-mingw* ) # actually msys
4634         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4635         ;;
4636     esac
4637     ;;
4638 esac
4639
4640 fi
4641
4642 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4644 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4645
4646
4647
4648
4649
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4651 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4652 if ${lt_cv_ld_reload_flag+:} false; then :
4653   $as_echo_n "(cached) " >&6
4654 else
4655   lt_cv_ld_reload_flag='-r'
4656 fi
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4658 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4659 reload_flag=$lt_cv_ld_reload_flag
4660 case $reload_flag in
4661 "" | " "*) ;;
4662 *) reload_flag=" $reload_flag" ;;
4663 esac
4664 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4665 case $host_os in
4666   cygwin* | mingw* | pw32* | cegcc*)
4667     if test "$GCC" != yes; then
4668       reload_cmds=false
4669     fi
4670     ;;
4671   darwin*)
4672     if test "$GCC" = yes; then
4673       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4674     else
4675       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4676     fi
4677     ;;
4678 esac
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688 if test -n "$ac_tool_prefix"; then
4689   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4690 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_OBJDUMP+:} false; then :
4694   $as_echo_n "(cached) " >&6
4695 else
4696   if test -n "$OBJDUMP"; then
4697   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4698 else
4699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 for as_dir in $PATH
4701 do
4702   IFS=$as_save_IFS
4703   test -z "$as_dir" && as_dir=.
4704     for ac_exec_ext in '' $ac_executable_extensions; do
4705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4707     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4708     break 2
4709   fi
4710 done
4711   done
4712 IFS=$as_save_IFS
4713
4714 fi
4715 fi
4716 OBJDUMP=$ac_cv_prog_OBJDUMP
4717 if test -n "$OBJDUMP"; then
4718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4719 $as_echo "$OBJDUMP" >&6; }
4720 else
4721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4723 fi
4724
4725
4726 fi
4727 if test -z "$ac_cv_prog_OBJDUMP"; then
4728   ac_ct_OBJDUMP=$OBJDUMP
4729   # Extract the first word of "objdump", so it can be a program name with args.
4730 set dummy objdump; ac_word=$2
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 $as_echo_n "checking for $ac_word... " >&6; }
4733 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4734   $as_echo_n "(cached) " >&6
4735 else
4736   if test -n "$ac_ct_OBJDUMP"; then
4737   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4738 else
4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4740 for as_dir in $PATH
4741 do
4742   IFS=$as_save_IFS
4743   test -z "$as_dir" && as_dir=.
4744     for ac_exec_ext in '' $ac_executable_extensions; do
4745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4746     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4748     break 2
4749   fi
4750 done
4751   done
4752 IFS=$as_save_IFS
4753
4754 fi
4755 fi
4756 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4757 if test -n "$ac_ct_OBJDUMP"; then
4758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4759 $as_echo "$ac_ct_OBJDUMP" >&6; }
4760 else
4761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4762 $as_echo "no" >&6; }
4763 fi
4764
4765   if test "x$ac_ct_OBJDUMP" = x; then
4766     OBJDUMP="false"
4767   else
4768     case $cross_compiling:$ac_tool_warned in
4769 yes:)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4772 ac_tool_warned=yes ;;
4773 esac
4774     OBJDUMP=$ac_ct_OBJDUMP
4775   fi
4776 else
4777   OBJDUMP="$ac_cv_prog_OBJDUMP"
4778 fi
4779
4780 test -z "$OBJDUMP" && OBJDUMP=objdump
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4791 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4792 if ${lt_cv_deplibs_check_method+:} false; then :
4793   $as_echo_n "(cached) " >&6
4794 else
4795   lt_cv_file_magic_cmd='$MAGIC_CMD'
4796 lt_cv_file_magic_test_file=
4797 lt_cv_deplibs_check_method='unknown'
4798 # Need to set the preceding variable on all platforms that support
4799 # interlibrary dependencies.
4800 # 'none' -- dependencies not supported.
4801 # `unknown' -- same as none, but documents that we really don't know.
4802 # 'pass_all' -- all dependencies passed with no checks.
4803 # 'test_compile' -- check by making test program.
4804 # 'file_magic [[regex]]' -- check by looking for files in library path
4805 # which responds to the $file_magic_cmd with a given extended regex.
4806 # If you have `file' or equivalent on your system and you're not sure
4807 # whether `pass_all' will *always* work, you probably want this one.
4808
4809 case $host_os in
4810 aix[4-9]*)
4811   lt_cv_deplibs_check_method=pass_all
4812   ;;
4813
4814 beos*)
4815   lt_cv_deplibs_check_method=pass_all
4816   ;;
4817
4818 bsdi[45]*)
4819   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4820   lt_cv_file_magic_cmd='/usr/bin/file -L'
4821   lt_cv_file_magic_test_file=/shlib/libc.so
4822   ;;
4823
4824 cygwin*)
4825   # func_win32_libid is a shell function defined in ltmain.sh
4826   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4827   lt_cv_file_magic_cmd='func_win32_libid'
4828   ;;
4829
4830 mingw* | pw32*)
4831   # Base MSYS/MinGW do not provide the 'file' command needed by
4832   # func_win32_libid shell function, so use a weaker test based on 'objdump',
4833   # unless we find 'file', for example because we are cross-compiling.
4834   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4835   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4836     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4837     lt_cv_file_magic_cmd='func_win32_libid'
4838   else
4839     # Keep this pattern in sync with the one in func_win32_libid.
4840     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4841     lt_cv_file_magic_cmd='$OBJDUMP -f'
4842   fi
4843   ;;
4844
4845 cegcc*)
4846   # use the weaker test based on 'objdump'. See mingw*.
4847   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4848   lt_cv_file_magic_cmd='$OBJDUMP -f'
4849   ;;
4850
4851 darwin* | rhapsody*)
4852   lt_cv_deplibs_check_method=pass_all
4853   ;;
4854
4855 freebsd* | dragonfly*)
4856   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4857     case $host_cpu in
4858     i*86 )
4859       # Not sure whether the presence of OpenBSD here was a mistake.
4860       # Let's accept both of them until this is cleared up.
4861       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4862       lt_cv_file_magic_cmd=/usr/bin/file
4863       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4864       ;;
4865     esac
4866   else
4867     lt_cv_deplibs_check_method=pass_all
4868   fi
4869   ;;
4870
4871 gnu*)
4872   lt_cv_deplibs_check_method=pass_all
4873   ;;
4874
4875 haiku*)
4876   lt_cv_deplibs_check_method=pass_all
4877   ;;
4878
4879 hpux10.20* | hpux11*)
4880   lt_cv_file_magic_cmd=/usr/bin/file
4881   case $host_cpu in
4882   ia64*)
4883     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4884     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4885     ;;
4886   hppa*64*)
4887     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]'
4888     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4889     ;;
4890   *)
4891     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4892     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4893     ;;
4894   esac
4895   ;;
4896
4897 interix[3-9]*)
4898   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4899   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4900   ;;
4901
4902 irix5* | irix6* | nonstopux*)
4903   case $LD in
4904   *-32|*"-32 ") libmagic=32-bit;;
4905   *-n32|*"-n32 ") libmagic=N32;;
4906   *-64|*"-64 ") libmagic=64-bit;;
4907   *) libmagic=never-match;;
4908   esac
4909   lt_cv_deplibs_check_method=pass_all
4910   ;;
4911
4912 # This must be glibc/ELF.
4913 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4914   lt_cv_deplibs_check_method=pass_all
4915   ;;
4916
4917 netbsd* | netbsdelf*-gnu)
4918   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4919     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4920   else
4921     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4922   fi
4923   ;;
4924
4925 newos6*)
4926   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4927   lt_cv_file_magic_cmd=/usr/bin/file
4928   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4929   ;;
4930
4931 *nto* | *qnx*)
4932   lt_cv_deplibs_check_method=pass_all
4933   ;;
4934
4935 openbsd*)
4936   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4937     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4938   else
4939     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4940   fi
4941   ;;
4942
4943 osf3* | osf4* | osf5*)
4944   lt_cv_deplibs_check_method=pass_all
4945   ;;
4946
4947 rdos*)
4948   lt_cv_deplibs_check_method=pass_all
4949   ;;
4950
4951 solaris*)
4952   lt_cv_deplibs_check_method=pass_all
4953   ;;
4954
4955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4956   lt_cv_deplibs_check_method=pass_all
4957   ;;
4958
4959 sysv4 | sysv4.3*)
4960   case $host_vendor in
4961   motorola)
4962     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]'
4963     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4964     ;;
4965   ncr)
4966     lt_cv_deplibs_check_method=pass_all
4967     ;;
4968   sequent)
4969     lt_cv_file_magic_cmd='/bin/file'
4970     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4971     ;;
4972   sni)
4973     lt_cv_file_magic_cmd='/bin/file'
4974     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4975     lt_cv_file_magic_test_file=/lib/libc.so
4976     ;;
4977   siemens)
4978     lt_cv_deplibs_check_method=pass_all
4979     ;;
4980   pc)
4981     lt_cv_deplibs_check_method=pass_all
4982     ;;
4983   esac
4984   ;;
4985
4986 tpf*)
4987   lt_cv_deplibs_check_method=pass_all
4988   ;;
4989 esac
4990
4991 fi
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4993 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4994
4995 file_magic_glob=
4996 want_nocaseglob=no
4997 if test "$build" = "$host"; then
4998   case $host_os in
4999   mingw* | pw32*)
5000     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5001       want_nocaseglob=yes
5002     else
5003       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5004     fi
5005     ;;
5006   esac
5007 fi
5008
5009 file_magic_cmd=$lt_cv_file_magic_cmd
5010 deplibs_check_method=$lt_cv_deplibs_check_method
5011 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034 if test -n "$ac_tool_prefix"; then
5035   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 $as_echo_n "checking for $ac_word... " >&6; }
5039 if ${ac_cv_prog_DLLTOOL+:} false; then :
5040   $as_echo_n "(cached) " >&6
5041 else
5042   if test -n "$DLLTOOL"; then
5043   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5044 else
5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5046 for as_dir in $PATH
5047 do
5048   IFS=$as_save_IFS
5049   test -z "$as_dir" && as_dir=.
5050     for ac_exec_ext in '' $ac_executable_extensions; do
5051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5052     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5054     break 2
5055   fi
5056 done
5057   done
5058 IFS=$as_save_IFS
5059
5060 fi
5061 fi
5062 DLLTOOL=$ac_cv_prog_DLLTOOL
5063 if test -n "$DLLTOOL"; then
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5065 $as_echo "$DLLTOOL" >&6; }
5066 else
5067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5068 $as_echo "no" >&6; }
5069 fi
5070
5071
5072 fi
5073 if test -z "$ac_cv_prog_DLLTOOL"; then
5074   ac_ct_DLLTOOL=$DLLTOOL
5075   # Extract the first word of "dlltool", so it can be a program name with args.
5076 set dummy dlltool; ac_word=$2
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078 $as_echo_n "checking for $ac_word... " >&6; }
5079 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   if test -n "$ac_ct_DLLTOOL"; then
5083   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5084 else
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090     for ac_exec_ext in '' $ac_executable_extensions; do
5091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5092     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094     break 2
5095   fi
5096 done
5097   done
5098 IFS=$as_save_IFS
5099
5100 fi
5101 fi
5102 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5103 if test -n "$ac_ct_DLLTOOL"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5105 $as_echo "$ac_ct_DLLTOOL" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111   if test "x$ac_ct_DLLTOOL" = x; then
5112     DLLTOOL="false"
5113   else
5114     case $cross_compiling:$ac_tool_warned in
5115 yes:)
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5118 ac_tool_warned=yes ;;
5119 esac
5120     DLLTOOL=$ac_ct_DLLTOOL
5121   fi
5122 else
5123   DLLTOOL="$ac_cv_prog_DLLTOOL"
5124 fi
5125
5126 test -z "$DLLTOOL" && DLLTOOL=dlltool
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5138 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5139 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   lt_cv_sharedlib_from_linklib_cmd='unknown'
5143
5144 case $host_os in
5145 cygwin* | mingw* | pw32* | cegcc*)
5146   # two different shell functions defined in ltmain.sh
5147   # decide which to use based on capabilities of $DLLTOOL
5148   case `$DLLTOOL --help 2>&1` in
5149   *--identify-strict*)
5150     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5151     ;;
5152   *)
5153     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5154     ;;
5155   esac
5156   ;;
5157 *)
5158   # fallback: assume linklib IS sharedlib
5159   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5160   ;;
5161 esac
5162
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5165 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5166 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5167 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5168
5169
5170
5171
5172
5173
5174
5175
5176 if test -n "$ac_tool_prefix"; then
5177   for ac_prog in ar
5178   do
5179     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if ${ac_cv_prog_AR+:} false; then :
5184   $as_echo_n "(cached) " >&6
5185 else
5186   if test -n "$AR"; then
5187   ac_cv_prog_AR="$AR" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201   done
5202 IFS=$as_save_IFS
5203
5204 fi
5205 fi
5206 AR=$ac_cv_prog_AR
5207 if test -n "$AR"; then
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5209 $as_echo "$AR" >&6; }
5210 else
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5213 fi
5214
5215
5216     test -n "$AR" && break
5217   done
5218 fi
5219 if test -z "$AR"; then
5220   ac_ct_AR=$AR
5221   for ac_prog in ar
5222 do
5223   # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5228   $as_echo_n "(cached) " >&6
5229 else
5230   if test -n "$ac_ct_AR"; then
5231   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240     ac_cv_prog_ac_ct_AR="$ac_prog"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247
5248 fi
5249 fi
5250 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5251 if test -n "$ac_ct_AR"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5253 $as_echo "$ac_ct_AR" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260   test -n "$ac_ct_AR" && break
5261 done
5262
5263   if test "x$ac_ct_AR" = x; then
5264     AR="false"
5265   else
5266     case $cross_compiling:$ac_tool_warned in
5267 yes:)
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272     AR=$ac_ct_AR
5273   fi
5274 fi
5275
5276 : ${AR=ar}
5277 : ${AR_FLAGS=cru}
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5290 $as_echo_n "checking for archiver @FILE support... " >&6; }
5291 if ${lt_cv_ar_at_file+:} false; then :
5292   $as_echo_n "(cached) " >&6
5293 else
5294   lt_cv_ar_at_file=no
5295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296 /* end confdefs.h.  */
5297
5298 int
5299 main ()
5300 {
5301
5302   ;
5303   return 0;
5304 }
5305 _ACEOF
5306 if ac_fn_c_try_compile "$LINENO"; then :
5307   echo conftest.$ac_objext > conftest.lst
5308       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5309       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5310   (eval $lt_ar_try) 2>&5
5311   ac_status=$?
5312   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5313   test $ac_status = 0; }
5314       if test "$ac_status" -eq 0; then
5315         # Ensure the archiver fails upon bogus file names.
5316         rm -f conftest.$ac_objext libconftest.a
5317         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5318   (eval $lt_ar_try) 2>&5
5319   ac_status=$?
5320   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5321   test $ac_status = 0; }
5322         if test "$ac_status" -ne 0; then
5323           lt_cv_ar_at_file=@
5324         fi
5325       fi
5326       rm -f conftest.* libconftest.a
5327
5328 fi
5329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5333 $as_echo "$lt_cv_ar_at_file" >&6; }
5334
5335 if test "x$lt_cv_ar_at_file" = xno; then
5336   archiver_list_spec=
5337 else
5338   archiver_list_spec=$lt_cv_ar_at_file
5339 fi
5340
5341
5342
5343
5344
5345
5346
5347 if test -n "$ac_tool_prefix"; then
5348   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5349 set dummy ${ac_tool_prefix}strip; ac_word=$2
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5351 $as_echo_n "checking for $ac_word... " >&6; }
5352 if ${ac_cv_prog_STRIP+:} false; then :
5353   $as_echo_n "(cached) " >&6
5354 else
5355   if test -n "$STRIP"; then
5356   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5357 else
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359 for as_dir in $PATH
5360 do
5361   IFS=$as_save_IFS
5362   test -z "$as_dir" && as_dir=.
5363     for ac_exec_ext in '' $ac_executable_extensions; do
5364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5365     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367     break 2
5368   fi
5369 done
5370   done
5371 IFS=$as_save_IFS
5372
5373 fi
5374 fi
5375 STRIP=$ac_cv_prog_STRIP
5376 if test -n "$STRIP"; then
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5378 $as_echo "$STRIP" >&6; }
5379 else
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 fi
5386 if test -z "$ac_cv_prog_STRIP"; then
5387   ac_ct_STRIP=$STRIP
5388   # Extract the first word of "strip", so it can be a program name with args.
5389 set dummy strip; ac_word=$2
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391 $as_echo_n "checking for $ac_word... " >&6; }
5392 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5393   $as_echo_n "(cached) " >&6
5394 else
5395   if test -n "$ac_ct_STRIP"; then
5396   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5397 else
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5400 do
5401   IFS=$as_save_IFS
5402   test -z "$as_dir" && as_dir=.
5403     for ac_exec_ext in '' $ac_executable_extensions; do
5404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405     ac_cv_prog_ac_ct_STRIP="strip"
5406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407     break 2
5408   fi
5409 done
5410   done
5411 IFS=$as_save_IFS
5412
5413 fi
5414 fi
5415 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5416 if test -n "$ac_ct_STRIP"; then
5417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5418 $as_echo "$ac_ct_STRIP" >&6; }
5419 else
5420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5422 fi
5423
5424   if test "x$ac_ct_STRIP" = x; then
5425     STRIP=":"
5426   else
5427     case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433     STRIP=$ac_ct_STRIP
5434   fi
5435 else
5436   STRIP="$ac_cv_prog_STRIP"
5437 fi
5438
5439 test -z "$STRIP" && STRIP=:
5440
5441
5442
5443
5444
5445
5446 if test -n "$ac_tool_prefix"; then
5447   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if ${ac_cv_prog_RANLIB+:} false; then :
5452   $as_echo_n "(cached) " >&6
5453 else
5454   if test -n "$RANLIB"; then
5455   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5459 do
5460   IFS=$as_save_IFS
5461   test -z "$as_dir" && as_dir=.
5462     for ac_exec_ext in '' $ac_executable_extensions; do
5463   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466     break 2
5467   fi
5468 done
5469   done
5470 IFS=$as_save_IFS
5471
5472 fi
5473 fi
5474 RANLIB=$ac_cv_prog_RANLIB
5475 if test -n "$RANLIB"; then
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5477 $as_echo "$RANLIB" >&6; }
5478 else
5479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5481 fi
5482
5483
5484 fi
5485 if test -z "$ac_cv_prog_RANLIB"; then
5486   ac_ct_RANLIB=$RANLIB
5487   # Extract the first word of "ranlib", so it can be a program name with args.
5488 set dummy ranlib; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5492   $as_echo_n "(cached) " >&6
5493 else
5494   if test -n "$ac_ct_RANLIB"; then
5495   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5496 else
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5498 for as_dir in $PATH
5499 do
5500   IFS=$as_save_IFS
5501   test -z "$as_dir" && as_dir=.
5502     for ac_exec_ext in '' $ac_executable_extensions; do
5503   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504     ac_cv_prog_ac_ct_RANLIB="ranlib"
5505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5506     break 2
5507   fi
5508 done
5509   done
5510 IFS=$as_save_IFS
5511
5512 fi
5513 fi
5514 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5515 if test -n "$ac_ct_RANLIB"; then
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5517 $as_echo "$ac_ct_RANLIB" >&6; }
5518 else
5519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 fi
5522
5523   if test "x$ac_ct_RANLIB" = x; then
5524     RANLIB=":"
5525   else
5526     case $cross_compiling:$ac_tool_warned in
5527 yes:)
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5531 esac
5532     RANLIB=$ac_ct_RANLIB
5533   fi
5534 else
5535   RANLIB="$ac_cv_prog_RANLIB"
5536 fi
5537
5538 test -z "$RANLIB" && RANLIB=:
5539
5540
5541
5542
5543
5544
5545 # Determine commands to create old-style static archives.
5546 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5547 old_postinstall_cmds='chmod 644 $oldlib'
5548 old_postuninstall_cmds=
5549
5550 if test -n "$RANLIB"; then
5551   case $host_os in
5552   openbsd*)
5553     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5554     ;;
5555   *)
5556     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5557     ;;
5558   esac
5559   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5560 fi
5561
5562 case $host_os in
5563   darwin*)
5564     lock_old_archive_extraction=yes ;;
5565   *)
5566     lock_old_archive_extraction=no ;;
5567 esac
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607 # If no C compiler was specified, use CC.
5608 LTCC=${LTCC-"$CC"}
5609
5610 # If no C compiler flags were specified, use CFLAGS.
5611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5612
5613 # Allow CC to be a program name with arguments.
5614 compiler=$CC
5615
5616
5617 # Check for command to grab the raw symbol name followed by C symbol from nm.
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5619 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5620 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623
5624 # These are sane defaults that work on at least a few old systems.
5625 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5626
5627 # Character class describing NM global symbol codes.
5628 symcode='[BCDEGRST]'
5629
5630 # Regexp to match symbols that can be accessed directly from C.
5631 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5632
5633 # Define system-specific variables.
5634 case $host_os in
5635 aix*)
5636   symcode='[BCDT]'
5637   ;;
5638 cygwin* | mingw* | pw32* | cegcc*)
5639   symcode='[ABCDGISTW]'
5640   ;;
5641 hpux*)
5642   if test "$host_cpu" = ia64; then
5643     symcode='[ABCDEGRST]'
5644   fi
5645   ;;
5646 irix* | nonstopux*)
5647   symcode='[BCDEGRST]'
5648   ;;
5649 osf*)
5650   symcode='[BCDEGQRST]'
5651   ;;
5652 solaris*)
5653   symcode='[BDRT]'
5654   ;;
5655 sco3.2v5*)
5656   symcode='[DT]'
5657   ;;
5658 sysv4.2uw2*)
5659   symcode='[DT]'
5660   ;;
5661 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5662   symcode='[ABDT]'
5663   ;;
5664 sysv4)
5665   symcode='[DFNSTU]'
5666   ;;
5667 esac
5668
5669 # If we're using GNU nm, then use its standard symbol codes.
5670 case `$NM -V 2>&1` in
5671 *GNU* | *'with BFD'*)
5672   symcode='[ABCDGIRSTW]' ;;
5673 esac
5674
5675 # Transform an extracted symbol line into a proper C declaration.
5676 # Some systems (esp. on ia64) link data and code symbols differently,
5677 # so use this general approach.
5678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5679
5680 # Transform an extracted symbol line into symbol name and symbol address
5681 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5682 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'"
5683
5684 # Handle CRLF in mingw tool chain
5685 opt_cr=
5686 case $build_os in
5687 mingw*)
5688   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5689   ;;
5690 esac
5691
5692 # Try without a prefix underscore, then with it.
5693 for ac_symprfx in "" "_"; do
5694
5695   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5696   symxfrm="\\1 $ac_symprfx\\2 \\2"
5697
5698   # Write the raw and C identifiers.
5699   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5700     # Fake it for dumpbin and say T for any non-static function
5701     # and D for any global variable.
5702     # Also find C++ and __fastcall symbols from MSVC++,
5703     # which start with @ or ?.
5704     lt_cv_sys_global_symbol_pipe="$AWK '"\
5705 "     {last_section=section; section=\$ 3};"\
5706 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5707 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5708 "     \$ 0!~/External *\|/{next};"\
5709 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5710 "     {if(hide[section]) next};"\
5711 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5712 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5713 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5714 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5715 "     ' prfx=^$ac_symprfx"
5716   else
5717     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5718   fi
5719   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5720
5721   # Check to see that the pipe works correctly.
5722   pipe_works=no
5723
5724   rm -f conftest*
5725   cat > conftest.$ac_ext <<_LT_EOF
5726 #ifdef __cplusplus
5727 extern "C" {
5728 #endif
5729 char nm_test_var;
5730 void nm_test_func(void);
5731 void nm_test_func(void){}
5732 #ifdef __cplusplus
5733 }
5734 #endif
5735 int main(){nm_test_var='a';nm_test_func();return(0);}
5736 _LT_EOF
5737
5738   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5739   (eval $ac_compile) 2>&5
5740   ac_status=$?
5741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5742   test $ac_status = 0; }; then
5743     # Now try to grab the symbols.
5744     nlist=conftest.nm
5745     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5746   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5747   ac_status=$?
5748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5749   test $ac_status = 0; } && test -s "$nlist"; then
5750       # Try sorting and uniquifying the output.
5751       if sort "$nlist" | uniq > "$nlist"T; then
5752         mv -f "$nlist"T "$nlist"
5753       else
5754         rm -f "$nlist"T
5755       fi
5756
5757       # Make sure that we snagged all the symbols we need.
5758       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5759         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5760           cat <<_LT_EOF > conftest.$ac_ext
5761 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5762 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5763 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5764    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5765 # define LT_DLSYM_CONST
5766 #elif defined(__osf__)
5767 /* This system does not cope well with relocations in const data.  */
5768 # define LT_DLSYM_CONST
5769 #else
5770 # define LT_DLSYM_CONST const
5771 #endif
5772
5773 #ifdef __cplusplus
5774 extern "C" {
5775 #endif
5776
5777 _LT_EOF
5778           # Now generate the symbol file.
5779           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5780
5781           cat <<_LT_EOF >> conftest.$ac_ext
5782
5783 /* The mapping between symbol names and symbols.  */
5784 LT_DLSYM_CONST struct {
5785   const char *name;
5786   void       *address;
5787 }
5788 lt__PROGRAM__LTX_preloaded_symbols[] =
5789 {
5790   { "@PROGRAM@", (void *) 0 },
5791 _LT_EOF
5792           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5793           cat <<\_LT_EOF >> conftest.$ac_ext
5794   {0, (void *) 0}
5795 };
5796
5797 /* This works around a problem in FreeBSD linker */
5798 #ifdef FREEBSD_WORKAROUND
5799 static const void *lt_preloaded_setup() {
5800   return lt__PROGRAM__LTX_preloaded_symbols;
5801 }
5802 #endif
5803
5804 #ifdef __cplusplus
5805 }
5806 #endif
5807 _LT_EOF
5808           # Now try linking the two files.
5809           mv conftest.$ac_objext conftstm.$ac_objext
5810           lt_globsym_save_LIBS=$LIBS
5811           lt_globsym_save_CFLAGS=$CFLAGS
5812           LIBS="conftstm.$ac_objext"
5813           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5814           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5815   (eval $ac_link) 2>&5
5816   ac_status=$?
5817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5818   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5819             pipe_works=yes
5820           fi
5821           LIBS=$lt_globsym_save_LIBS
5822           CFLAGS=$lt_globsym_save_CFLAGS
5823         else
5824           echo "cannot find nm_test_func in $nlist" >&5
5825         fi
5826       else
5827         echo "cannot find nm_test_var in $nlist" >&5
5828       fi
5829     else
5830       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5831     fi
5832   else
5833     echo "$progname: failed program was:" >&5
5834     cat conftest.$ac_ext >&5
5835   fi
5836   rm -rf conftest* conftst*
5837
5838   # Do not use the global_symbol_pipe unless it works.
5839   if test "$pipe_works" = yes; then
5840     break
5841   else
5842     lt_cv_sys_global_symbol_pipe=
5843   fi
5844 done
5845
5846 fi
5847
5848 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5849   lt_cv_sys_global_symbol_to_cdecl=
5850 fi
5851 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5853 $as_echo "failed" >&6; }
5854 else
5855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5856 $as_echo "ok" >&6; }
5857 fi
5858
5859 # Response file support.
5860 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5861   nm_file_list_spec='@'
5862 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
5863   nm_file_list_spec='@'
5864 fi
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
5893 $as_echo_n "checking for sysroot... " >&6; }
5894
5895 # Check whether --with-sysroot was given.
5896 if test "${with_sysroot+set}" = set; then :
5897   withval=$with_sysroot;
5898 else
5899   with_sysroot=no
5900 fi
5901
5902
5903 lt_sysroot=
5904 case ${with_sysroot} in #(
5905  yes)
5906    if test "$GCC" = yes; then
5907      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
5908    fi
5909    ;; #(
5910  /*)
5911    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
5912    ;; #(
5913  no|'')
5914    ;; #(
5915  *)
5916    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
5917 $as_echo "${with_sysroot}" >&6; }
5918    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
5919    ;;
5920 esac
5921
5922  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
5923 $as_echo "${lt_sysroot:-no}" >&6; }
5924
5925
5926
5927
5928
5929 # Check whether --enable-libtool-lock was given.
5930 if test "${enable_libtool_lock+set}" = set; then :
5931   enableval=$enable_libtool_lock;
5932 fi
5933
5934 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5935
5936 # Some flags need to be propagated to the compiler or linker for good
5937 # libtool support.
5938 case $host in
5939 ia64-*-hpux*)
5940   # Find out which ABI we are using.
5941   echo 'int i;' > conftest.$ac_ext
5942   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5943   (eval $ac_compile) 2>&5
5944   ac_status=$?
5945   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5946   test $ac_status = 0; }; then
5947     case `/usr/bin/file conftest.$ac_objext` in
5948       *ELF-32*)
5949         HPUX_IA64_MODE="32"
5950         ;;
5951       *ELF-64*)
5952         HPUX_IA64_MODE="64"
5953         ;;
5954     esac
5955   fi
5956   rm -rf conftest*
5957   ;;
5958 *-*-irix6*)
5959   # Find out which ABI we are using.
5960   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5961   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962   (eval $ac_compile) 2>&5
5963   ac_status=$?
5964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965   test $ac_status = 0; }; then
5966     if test "$lt_cv_prog_gnu_ld" = yes; then
5967       case `/usr/bin/file conftest.$ac_objext` in
5968         *32-bit*)
5969           LD="${LD-ld} -melf32bsmip"
5970           ;;
5971         *N32*)
5972           LD="${LD-ld} -melf32bmipn32"
5973           ;;
5974         *64-bit*)
5975           LD="${LD-ld} -melf64bmip"
5976         ;;
5977       esac
5978     else
5979       case `/usr/bin/file conftest.$ac_objext` in
5980         *32-bit*)
5981           LD="${LD-ld} -32"
5982           ;;
5983         *N32*)
5984           LD="${LD-ld} -n32"
5985           ;;
5986         *64-bit*)
5987           LD="${LD-ld} -64"
5988           ;;
5989       esac
5990     fi
5991   fi
5992   rm -rf conftest*
5993   ;;
5994
5995 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5996 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5997   # Find out which ABI we are using.
5998   echo 'int i;' > conftest.$ac_ext
5999   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6000   (eval $ac_compile) 2>&5
6001   ac_status=$?
6002   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6003   test $ac_status = 0; }; then
6004     case `/usr/bin/file conftest.o` in
6005       *32-bit*)
6006         case $host in
6007           x86_64-*kfreebsd*-gnu)
6008             LD="${LD-ld} -m elf_i386_fbsd"
6009             ;;
6010           x86_64-*linux*)
6011             LD="${LD-ld} -m elf_i386"
6012             ;;
6013           ppc64-*linux*|powerpc64-*linux*)
6014             LD="${LD-ld} -m elf32ppclinux"
6015             ;;
6016           s390x-*linux*)
6017             LD="${LD-ld} -m elf_s390"
6018             ;;
6019           sparc64-*linux*)
6020             LD="${LD-ld} -m elf32_sparc"
6021             ;;
6022         esac
6023         ;;
6024       *64-bit*)
6025         case $host in
6026           x86_64-*kfreebsd*-gnu)
6027             LD="${LD-ld} -m elf_x86_64_fbsd"
6028             ;;
6029           x86_64-*linux*)
6030             LD="${LD-ld} -m elf_x86_64"
6031             ;;
6032           ppc*-*linux*|powerpc*-*linux*)
6033             LD="${LD-ld} -m elf64ppc"
6034             ;;
6035           s390*-*linux*|s390*-*tpf*)
6036             LD="${LD-ld} -m elf64_s390"
6037             ;;
6038           sparc*-*linux*)
6039             LD="${LD-ld} -m elf64_sparc"
6040             ;;
6041         esac
6042         ;;
6043     esac
6044   fi
6045   rm -rf conftest*
6046   ;;
6047
6048 *-*-sco3.2v5*)
6049   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6050   SAVE_CFLAGS="$CFLAGS"
6051   CFLAGS="$CFLAGS -belf"
6052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6053 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6054 if ${lt_cv_cc_needs_belf+:} false; then :
6055   $as_echo_n "(cached) " >&6
6056 else
6057   ac_ext=c
6058 ac_cpp='$CPP $CPPFLAGS'
6059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6062
6063      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6064 /* end confdefs.h.  */
6065
6066 int
6067 main ()
6068 {
6069
6070   ;
6071   return 0;
6072 }
6073 _ACEOF
6074 if ac_fn_c_try_link "$LINENO"; then :
6075   lt_cv_cc_needs_belf=yes
6076 else
6077   lt_cv_cc_needs_belf=no
6078 fi
6079 rm -f core conftest.err conftest.$ac_objext \
6080     conftest$ac_exeext conftest.$ac_ext
6081      ac_ext=c
6082 ac_cpp='$CPP $CPPFLAGS'
6083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6086
6087 fi
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6089 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6090   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6091     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6092     CFLAGS="$SAVE_CFLAGS"
6093   fi
6094   ;;
6095 *-*solaris*)
6096   # Find out which ABI we are using.
6097   echo 'int i;' > conftest.$ac_ext
6098   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6099   (eval $ac_compile) 2>&5
6100   ac_status=$?
6101   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6102   test $ac_status = 0; }; then
6103     case `/usr/bin/file conftest.o` in
6104     *64-bit*)
6105       case $lt_cv_prog_gnu_ld in
6106       yes*)
6107         case $host in
6108         i?86-*-solaris*)
6109           LD="${LD-ld} -m elf_x86_64"
6110           ;;
6111         sparc*-*-solaris*)
6112           LD="${LD-ld} -m elf64_sparc"
6113           ;;
6114         esac
6115         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6116         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6117           LD="${LD-ld}_sol2"
6118         fi
6119         ;;
6120       *)
6121         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6122           LD="${LD-ld} -64"
6123         fi
6124         ;;
6125       esac
6126       ;;
6127     esac
6128   fi
6129   rm -rf conftest*
6130   ;;
6131 esac
6132
6133 need_locks="$enable_libtool_lock"
6134
6135 if test -n "$ac_tool_prefix"; then
6136   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6137 set dummy ${ac_tool_prefix}mt; ac_word=$2
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6139 $as_echo_n "checking for $ac_word... " >&6; }
6140 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6141   $as_echo_n "(cached) " >&6
6142 else
6143   if test -n "$MANIFEST_TOOL"; then
6144   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6145 else
6146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6147 for as_dir in $PATH
6148 do
6149   IFS=$as_save_IFS
6150   test -z "$as_dir" && as_dir=.
6151     for ac_exec_ext in '' $ac_executable_extensions; do
6152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6153     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6154     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6155     break 2
6156   fi
6157 done
6158   done
6159 IFS=$as_save_IFS
6160
6161 fi
6162 fi
6163 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6164 if test -n "$MANIFEST_TOOL"; then
6165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6166 $as_echo "$MANIFEST_TOOL" >&6; }
6167 else
6168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6169 $as_echo "no" >&6; }
6170 fi
6171
6172
6173 fi
6174 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6175   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6176   # Extract the first word of "mt", so it can be a program name with args.
6177 set dummy mt; ac_word=$2
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179 $as_echo_n "checking for $ac_word... " >&6; }
6180 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6181   $as_echo_n "(cached) " >&6
6182 else
6183   if test -n "$ac_ct_MANIFEST_TOOL"; then
6184   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6185 else
6186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 for as_dir in $PATH
6188 do
6189   IFS=$as_save_IFS
6190   test -z "$as_dir" && as_dir=.
6191     for ac_exec_ext in '' $ac_executable_extensions; do
6192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6193     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6195     break 2
6196   fi
6197 done
6198   done
6199 IFS=$as_save_IFS
6200
6201 fi
6202 fi
6203 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6204 if test -n "$ac_ct_MANIFEST_TOOL"; then
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6206 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6207 else
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6209 $as_echo "no" >&6; }
6210 fi
6211
6212   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6213     MANIFEST_TOOL=":"
6214   else
6215     case $cross_compiling:$ac_tool_warned in
6216 yes:)
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6219 ac_tool_warned=yes ;;
6220 esac
6221     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6222   fi
6223 else
6224   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6225 fi
6226
6227 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6229 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6230 if ${lt_cv_path_mainfest_tool+:} false; then :
6231   $as_echo_n "(cached) " >&6
6232 else
6233   lt_cv_path_mainfest_tool=no
6234   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6235   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6236   cat conftest.err >&5
6237   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6238     lt_cv_path_mainfest_tool=yes
6239   fi
6240   rm -f conftest*
6241 fi
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6243 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6244 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6245   MANIFEST_TOOL=:
6246 fi
6247
6248
6249
6250
6251
6252
6253   case $host_os in
6254     rhapsody* | darwin*)
6255     if test -n "$ac_tool_prefix"; then
6256   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6257 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6259 $as_echo_n "checking for $ac_word... " >&6; }
6260 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6261   $as_echo_n "(cached) " >&6
6262 else
6263   if test -n "$DSYMUTIL"; then
6264   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6265 else
6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6267 for as_dir in $PATH
6268 do
6269   IFS=$as_save_IFS
6270   test -z "$as_dir" && as_dir=.
6271     for ac_exec_ext in '' $ac_executable_extensions; do
6272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6273     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6275     break 2
6276   fi
6277 done
6278   done
6279 IFS=$as_save_IFS
6280
6281 fi
6282 fi
6283 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6284 if test -n "$DSYMUTIL"; then
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6286 $as_echo "$DSYMUTIL" >&6; }
6287 else
6288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6289 $as_echo "no" >&6; }
6290 fi
6291
6292
6293 fi
6294 if test -z "$ac_cv_prog_DSYMUTIL"; then
6295   ac_ct_DSYMUTIL=$DSYMUTIL
6296   # Extract the first word of "dsymutil", so it can be a program name with args.
6297 set dummy dsymutil; ac_word=$2
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299 $as_echo_n "checking for $ac_word... " >&6; }
6300 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6301   $as_echo_n "(cached) " >&6
6302 else
6303   if test -n "$ac_ct_DSYMUTIL"; then
6304   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6305 else
6306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6307 for as_dir in $PATH
6308 do
6309   IFS=$as_save_IFS
6310   test -z "$as_dir" && as_dir=.
6311     for ac_exec_ext in '' $ac_executable_extensions; do
6312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6313     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6315     break 2
6316   fi
6317 done
6318   done
6319 IFS=$as_save_IFS
6320
6321 fi
6322 fi
6323 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6324 if test -n "$ac_ct_DSYMUTIL"; then
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6326 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6327 else
6328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6329 $as_echo "no" >&6; }
6330 fi
6331
6332   if test "x$ac_ct_DSYMUTIL" = x; then
6333     DSYMUTIL=":"
6334   else
6335     case $cross_compiling:$ac_tool_warned in
6336 yes:)
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341     DSYMUTIL=$ac_ct_DSYMUTIL
6342   fi
6343 else
6344   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6345 fi
6346
6347     if test -n "$ac_tool_prefix"; then
6348   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6349 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351 $as_echo_n "checking for $ac_word... " >&6; }
6352 if ${ac_cv_prog_NMEDIT+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   if test -n "$NMEDIT"; then
6356   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6357 else
6358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_exec_ext in '' $ac_executable_extensions; do
6364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6365     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6367     break 2
6368   fi
6369 done
6370   done
6371 IFS=$as_save_IFS
6372
6373 fi
6374 fi
6375 NMEDIT=$ac_cv_prog_NMEDIT
6376 if test -n "$NMEDIT"; then
6377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6378 $as_echo "$NMEDIT" >&6; }
6379 else
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6381 $as_echo "no" >&6; }
6382 fi
6383
6384
6385 fi
6386 if test -z "$ac_cv_prog_NMEDIT"; then
6387   ac_ct_NMEDIT=$NMEDIT
6388   # Extract the first word of "nmedit", so it can be a program name with args.
6389 set dummy nmedit; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6393   $as_echo_n "(cached) " >&6
6394 else
6395   if test -n "$ac_ct_NMEDIT"; then
6396   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401   IFS=$as_save_IFS
6402   test -z "$as_dir" && as_dir=.
6403     for ac_exec_ext in '' $ac_executable_extensions; do
6404   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6406     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407     break 2
6408   fi
6409 done
6410   done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6416 if test -n "$ac_ct_NMEDIT"; then
6417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6418 $as_echo "$ac_ct_NMEDIT" >&6; }
6419 else
6420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424   if test "x$ac_ct_NMEDIT" = x; then
6425     NMEDIT=":"
6426   else
6427     case $cross_compiling:$ac_tool_warned in
6428 yes:)
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6431 ac_tool_warned=yes ;;
6432 esac
6433     NMEDIT=$ac_ct_NMEDIT
6434   fi
6435 else
6436   NMEDIT="$ac_cv_prog_NMEDIT"
6437 fi
6438
6439     if test -n "$ac_tool_prefix"; then
6440   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6441 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if ${ac_cv_prog_LIPO+:} false; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$LIPO"; then
6448   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 LIPO=$ac_cv_prog_LIPO
6468 if test -n "$LIPO"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6470 $as_echo "$LIPO" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477 fi
6478 if test -z "$ac_cv_prog_LIPO"; then
6479   ac_ct_LIPO=$LIPO
6480   # Extract the first word of "lipo", so it can be a program name with args.
6481 set dummy lipo; ac_word=$2
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 $as_echo_n "checking for $ac_word... " >&6; }
6484 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6485   $as_echo_n "(cached) " >&6
6486 else
6487   if test -n "$ac_ct_LIPO"; then
6488   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6489 else
6490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491 for as_dir in $PATH
6492 do
6493   IFS=$as_save_IFS
6494   test -z "$as_dir" && as_dir=.
6495     for ac_exec_ext in '' $ac_executable_extensions; do
6496   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497     ac_cv_prog_ac_ct_LIPO="lipo"
6498     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499     break 2
6500   fi
6501 done
6502   done
6503 IFS=$as_save_IFS
6504
6505 fi
6506 fi
6507 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6508 if test -n "$ac_ct_LIPO"; then
6509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6510 $as_echo "$ac_ct_LIPO" >&6; }
6511 else
6512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513 $as_echo "no" >&6; }
6514 fi
6515
6516   if test "x$ac_ct_LIPO" = x; then
6517     LIPO=":"
6518   else
6519     case $cross_compiling:$ac_tool_warned in
6520 yes:)
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6523 ac_tool_warned=yes ;;
6524 esac
6525     LIPO=$ac_ct_LIPO
6526   fi
6527 else
6528   LIPO="$ac_cv_prog_LIPO"
6529 fi
6530
6531     if test -n "$ac_tool_prefix"; then
6532   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6533 set dummy ${ac_tool_prefix}otool; ac_word=$2
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535 $as_echo_n "checking for $ac_word... " >&6; }
6536 if ${ac_cv_prog_OTOOL+:} false; then :
6537   $as_echo_n "(cached) " >&6
6538 else
6539   if test -n "$OTOOL"; then
6540   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6541 else
6542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543 for as_dir in $PATH
6544 do
6545   IFS=$as_save_IFS
6546   test -z "$as_dir" && as_dir=.
6547     for ac_exec_ext in '' $ac_executable_extensions; do
6548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6549     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551     break 2
6552   fi
6553 done
6554   done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 OTOOL=$ac_cv_prog_OTOOL
6560 if test -n "$OTOOL"; then
6561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6562 $as_echo "$OTOOL" >&6; }
6563 else
6564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 $as_echo "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_OTOOL"; then
6571   ac_ct_OTOOL=$OTOOL
6572   # Extract the first word of "otool", so it can be a program name with args.
6573 set dummy otool; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579   if test -n "$ac_ct_OTOOL"; then
6580   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6584 do
6585   IFS=$as_save_IFS
6586   test -z "$as_dir" && as_dir=.
6587     for ac_exec_ext in '' $ac_executable_extensions; do
6588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6589     ac_cv_prog_ac_ct_OTOOL="otool"
6590     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591     break 2
6592   fi
6593 done
6594   done
6595 IFS=$as_save_IFS
6596
6597 fi
6598 fi
6599 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6600 if test -n "$ac_ct_OTOOL"; then
6601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6602 $as_echo "$ac_ct_OTOOL" >&6; }
6603 else
6604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6606 fi
6607
6608   if test "x$ac_ct_OTOOL" = x; then
6609     OTOOL=":"
6610   else
6611     case $cross_compiling:$ac_tool_warned in
6612 yes:)
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6615 ac_tool_warned=yes ;;
6616 esac
6617     OTOOL=$ac_ct_OTOOL
6618   fi
6619 else
6620   OTOOL="$ac_cv_prog_OTOOL"
6621 fi
6622
6623     if test -n "$ac_tool_prefix"; then
6624   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6625 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6627 $as_echo_n "checking for $ac_word... " >&6; }
6628 if ${ac_cv_prog_OTOOL64+:} false; then :
6629   $as_echo_n "(cached) " >&6
6630 else
6631   if test -n "$OTOOL64"; then
6632   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6633 else
6634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6635 for as_dir in $PATH
6636 do
6637   IFS=$as_save_IFS
6638   test -z "$as_dir" && as_dir=.
6639     for ac_exec_ext in '' $ac_executable_extensions; do
6640   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6641     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643     break 2
6644   fi
6645 done
6646   done
6647 IFS=$as_save_IFS
6648
6649 fi
6650 fi
6651 OTOOL64=$ac_cv_prog_OTOOL64
6652 if test -n "$OTOOL64"; then
6653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6654 $as_echo "$OTOOL64" >&6; }
6655 else
6656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6657 $as_echo "no" >&6; }
6658 fi
6659
6660
6661 fi
6662 if test -z "$ac_cv_prog_OTOOL64"; then
6663   ac_ct_OTOOL64=$OTOOL64
6664   # Extract the first word of "otool64", so it can be a program name with args.
6665 set dummy otool64; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6669   $as_echo_n "(cached) " >&6
6670 else
6671   if test -n "$ac_ct_OTOOL64"; then
6672   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677   IFS=$as_save_IFS
6678   test -z "$as_dir" && as_dir=.
6679     for ac_exec_ext in '' $ac_executable_extensions; do
6680   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681     ac_cv_prog_ac_ct_OTOOL64="otool64"
6682     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683     break 2
6684   fi
6685 done
6686   done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6692 if test -n "$ac_ct_OTOOL64"; then
6693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6694 $as_echo "$ac_ct_OTOOL64" >&6; }
6695 else
6696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700   if test "x$ac_ct_OTOOL64" = x; then
6701     OTOOL64=":"
6702   else
6703     case $cross_compiling:$ac_tool_warned in
6704 yes:)
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     OTOOL64=$ac_ct_OTOOL64
6710   fi
6711 else
6712   OTOOL64="$ac_cv_prog_OTOOL64"
6713 fi
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6742 $as_echo_n "checking for -single_module linker flag... " >&6; }
6743 if ${lt_cv_apple_cc_single_mod+:} false; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   lt_cv_apple_cc_single_mod=no
6747       if test -z "${LT_MULTI_MODULE}"; then
6748         # By default we will add the -single_module flag. You can override
6749         # by either setting the environment variable LT_MULTI_MODULE
6750         # non-empty at configure time, or by adding -multi_module to the
6751         # link flags.
6752         rm -rf libconftest.dylib*
6753         echo "int foo(void){return 1;}" > conftest.c
6754         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6755 -dynamiclib -Wl,-single_module conftest.c" >&5
6756         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6757           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6758         _lt_result=$?
6759         # If there is a non-empty error log, and "single_module"
6760         # appears in it, assume the flag caused a linker warning
6761         if test -s conftest.err && $GREP single_module conftest.err; then
6762           cat conftest.err >&5
6763         # Otherwise, if the output was created with a 0 exit code from
6764         # the compiler, it worked.
6765         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6766           lt_cv_apple_cc_single_mod=yes
6767         else
6768           cat conftest.err >&5
6769         fi
6770         rm -rf libconftest.dylib*
6771         rm -f conftest.*
6772       fi
6773 fi
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6775 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6776
6777     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6778 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6779 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6780   $as_echo_n "(cached) " >&6
6781 else
6782   lt_cv_ld_exported_symbols_list=no
6783       save_LDFLAGS=$LDFLAGS
6784       echo "_main" > conftest.sym
6785       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6786       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h.  */
6788
6789 int
6790 main ()
6791 {
6792
6793   ;
6794   return 0;
6795 }
6796 _ACEOF
6797 if ac_fn_c_try_link "$LINENO"; then :
6798   lt_cv_ld_exported_symbols_list=yes
6799 else
6800   lt_cv_ld_exported_symbols_list=no
6801 fi
6802 rm -f core conftest.err conftest.$ac_objext \
6803     conftest$ac_exeext conftest.$ac_ext
6804         LDFLAGS="$save_LDFLAGS"
6805
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6808 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6809
6810     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6811 $as_echo_n "checking for -force_load linker flag... " >&6; }
6812 if ${lt_cv_ld_force_load+:} false; then :
6813   $as_echo_n "(cached) " >&6
6814 else
6815   lt_cv_ld_force_load=no
6816       cat > conftest.c << _LT_EOF
6817 int forced_loaded() { return 2;}
6818 _LT_EOF
6819       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6820       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6821       echo "$AR cru libconftest.a conftest.o" >&5
6822       $AR cru libconftest.a conftest.o 2>&5
6823       echo "$RANLIB libconftest.a" >&5
6824       $RANLIB libconftest.a 2>&5
6825       cat > conftest.c << _LT_EOF
6826 int main() { return 0;}
6827 _LT_EOF
6828       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6829       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6830       _lt_result=$?
6831       if test -s conftest.err && $GREP force_load conftest.err; then
6832         cat conftest.err >&5
6833       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
6834         lt_cv_ld_force_load=yes
6835       else
6836         cat conftest.err >&5
6837       fi
6838         rm -f conftest.err libconftest.a conftest conftest.c
6839         rm -rf conftest.dSYM
6840
6841 fi
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6843 $as_echo "$lt_cv_ld_force_load" >&6; }
6844     case $host_os in
6845     rhapsody* | darwin1.[012])
6846       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6847     darwin1.*)
6848       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6849     darwin*) # darwin 5.x on
6850       # if running on 10.5 or later, the deployment target defaults
6851       # to the OS version, if on x86, and 10.4, the deployment
6852       # target defaults to 10.4. Don't you love it?
6853       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6854         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6855           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6856         10.[012]*)
6857           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6858         10.*)
6859           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6860       esac
6861     ;;
6862   esac
6863     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6864       _lt_dar_single_mod='$single_module'
6865     fi
6866     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6867       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6868     else
6869       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6870     fi
6871     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6872       _lt_dsymutil='~$DSYMUTIL $lib || :'
6873     else
6874       _lt_dsymutil=
6875     fi
6876     ;;
6877   esac
6878
6879 ac_ext=c
6880 ac_cpp='$CPP $CPPFLAGS'
6881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6885 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6886 # On Suns, sometimes $CPP names a directory.
6887 if test -n "$CPP" && test -d "$CPP"; then
6888   CPP=
6889 fi
6890 if test -z "$CPP"; then
6891   if ${ac_cv_prog_CPP+:} false; then :
6892   $as_echo_n "(cached) " >&6
6893 else
6894       # Double quotes because CPP needs to be expanded
6895     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6896     do
6897       ac_preproc_ok=false
6898 for ac_c_preproc_warn_flag in '' yes
6899 do
6900   # Use a header file that comes with gcc, so configuring glibc
6901   # with a fresh cross-compiler works.
6902   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6903   # <limits.h> exists even on freestanding compilers.
6904   # On the NeXT, cc -E runs the code through the compiler's parser,
6905   # not just through cpp. "Syntax error" is here to catch this case.
6906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907 /* end confdefs.h.  */
6908 #ifdef __STDC__
6909 # include <limits.h>
6910 #else
6911 # include <assert.h>
6912 #endif
6913                      Syntax error
6914 _ACEOF
6915 if ac_fn_c_try_cpp "$LINENO"; then :
6916
6917 else
6918   # Broken: fails on valid input.
6919 continue
6920 fi
6921 rm -f conftest.err conftest.i conftest.$ac_ext
6922
6923   # OK, works on sane cases.  Now check whether nonexistent headers
6924   # can be detected and how.
6925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h.  */
6927 #include <ac_nonexistent.h>
6928 _ACEOF
6929 if ac_fn_c_try_cpp "$LINENO"; then :
6930   # Broken: success on invalid input.
6931 continue
6932 else
6933   # Passes both tests.
6934 ac_preproc_ok=:
6935 break
6936 fi
6937 rm -f conftest.err conftest.i conftest.$ac_ext
6938
6939 done
6940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6941 rm -f conftest.i conftest.err conftest.$ac_ext
6942 if $ac_preproc_ok; then :
6943   break
6944 fi
6945
6946     done
6947     ac_cv_prog_CPP=$CPP
6948
6949 fi
6950   CPP=$ac_cv_prog_CPP
6951 else
6952   ac_cv_prog_CPP=$CPP
6953 fi
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6955 $as_echo "$CPP" >&6; }
6956 ac_preproc_ok=false
6957 for ac_c_preproc_warn_flag in '' yes
6958 do
6959   # Use a header file that comes with gcc, so configuring glibc
6960   # with a fresh cross-compiler works.
6961   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6962   # <limits.h> exists even on freestanding compilers.
6963   # On the NeXT, cc -E runs the code through the compiler's parser,
6964   # not just through cpp. "Syntax error" is here to catch this case.
6965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967 #ifdef __STDC__
6968 # include <limits.h>
6969 #else
6970 # include <assert.h>
6971 #endif
6972                      Syntax error
6973 _ACEOF
6974 if ac_fn_c_try_cpp "$LINENO"; then :
6975
6976 else
6977   # Broken: fails on valid input.
6978 continue
6979 fi
6980 rm -f conftest.err conftest.i conftest.$ac_ext
6981
6982   # OK, works on sane cases.  Now check whether nonexistent headers
6983   # can be detected and how.
6984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6985 /* end confdefs.h.  */
6986 #include <ac_nonexistent.h>
6987 _ACEOF
6988 if ac_fn_c_try_cpp "$LINENO"; then :
6989   # Broken: success on invalid input.
6990 continue
6991 else
6992   # Passes both tests.
6993 ac_preproc_ok=:
6994 break
6995 fi
6996 rm -f conftest.err conftest.i conftest.$ac_ext
6997
6998 done
6999 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7000 rm -f conftest.i conftest.err conftest.$ac_ext
7001 if $ac_preproc_ok; then :
7002
7003 else
7004   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7006 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7007 See \`config.log' for more details" "$LINENO" 5; }
7008 fi
7009
7010 ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7018 $as_echo_n "checking for ANSI C header files... " >&6; }
7019 if ${ac_cv_header_stdc+:} false; then :
7020   $as_echo_n "(cached) " >&6
7021 else
7022   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h.  */
7024 #include <stdlib.h>
7025 #include <stdarg.h>
7026 #include <string.h>
7027 #include <float.h>
7028
7029 int
7030 main ()
7031 {
7032
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_compile "$LINENO"; then :
7038   ac_cv_header_stdc=yes
7039 else
7040   ac_cv_header_stdc=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7043
7044 if test $ac_cv_header_stdc = yes; then
7045   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h.  */
7048 #include <string.h>
7049
7050 _ACEOF
7051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7052   $EGREP "memchr" >/dev/null 2>&1; then :
7053
7054 else
7055   ac_cv_header_stdc=no
7056 fi
7057 rm -f conftest*
7058
7059 fi
7060
7061 if test $ac_cv_header_stdc = yes; then
7062   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h.  */
7065 #include <stdlib.h>
7066
7067 _ACEOF
7068 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7069   $EGREP "free" >/dev/null 2>&1; then :
7070
7071 else
7072   ac_cv_header_stdc=no
7073 fi
7074 rm -f conftest*
7075
7076 fi
7077
7078 if test $ac_cv_header_stdc = yes; then
7079   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7080   if test "$cross_compiling" = yes; then :
7081   :
7082 else
7083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h.  */
7085 #include <ctype.h>
7086 #include <stdlib.h>
7087 #if ((' ' & 0x0FF) == 0x020)
7088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7090 #else
7091 # define ISLOWER(c) \
7092                    (('a' <= (c) && (c) <= 'i') \
7093                      || ('j' <= (c) && (c) <= 'r') \
7094                      || ('s' <= (c) && (c) <= 'z'))
7095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7096 #endif
7097
7098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7099 int
7100 main ()
7101 {
7102   int i;
7103   for (i = 0; i < 256; i++)
7104     if (XOR (islower (i), ISLOWER (i))
7105         || toupper (i) != TOUPPER (i))
7106       return 2;
7107   return 0;
7108 }
7109 _ACEOF
7110 if ac_fn_c_try_run "$LINENO"; then :
7111
7112 else
7113   ac_cv_header_stdc=no
7114 fi
7115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7116   conftest.$ac_objext conftest.beam conftest.$ac_ext
7117 fi
7118
7119 fi
7120 fi
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7122 $as_echo "$ac_cv_header_stdc" >&6; }
7123 if test $ac_cv_header_stdc = yes; then
7124
7125 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7126
7127 fi
7128
7129 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7130 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7131                   inttypes.h stdint.h unistd.h
7132 do :
7133   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7134 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7135 "
7136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7137   cat >>confdefs.h <<_ACEOF
7138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7139 _ACEOF
7140
7141 fi
7142
7143 done
7144
7145
7146 for ac_header in dlfcn.h
7147 do :
7148   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7149 "
7150 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7151   cat >>confdefs.h <<_ACEOF
7152 #define HAVE_DLFCN_H 1
7153 _ACEOF
7154
7155 fi
7156
7157 done
7158
7159
7160
7161
7162
7163 # Set options
7164
7165
7166
7167         enable_dlopen=no
7168
7169
7170   enable_win32_dll=no
7171
7172
7173             # Check whether --enable-shared was given.
7174 if test "${enable_shared+set}" = set; then :
7175   enableval=$enable_shared; p=${PACKAGE-default}
7176     case $enableval in
7177     yes) enable_shared=yes ;;
7178     no) enable_shared=no ;;
7179     *)
7180       enable_shared=no
7181       # Look at the argument we got.  We use all the common list separators.
7182       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7183       for pkg in $enableval; do
7184         IFS="$lt_save_ifs"
7185         if test "X$pkg" = "X$p"; then
7186           enable_shared=yes
7187         fi
7188       done
7189       IFS="$lt_save_ifs"
7190       ;;
7191     esac
7192 else
7193   enable_shared=yes
7194 fi
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204   # Check whether --enable-static was given.
7205 if test "${enable_static+set}" = set; then :
7206   enableval=$enable_static; p=${PACKAGE-default}
7207     case $enableval in
7208     yes) enable_static=yes ;;
7209     no) enable_static=no ;;
7210     *)
7211      enable_static=no
7212       # Look at the argument we got.  We use all the common list separators.
7213       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7214       for pkg in $enableval; do
7215         IFS="$lt_save_ifs"
7216         if test "X$pkg" = "X$p"; then
7217           enable_static=yes
7218         fi
7219       done
7220       IFS="$lt_save_ifs"
7221       ;;
7222     esac
7223 else
7224   enable_static=yes
7225 fi
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236 # Check whether --with-pic was given.
7237 if test "${with_pic+set}" = set; then :
7238   withval=$with_pic; lt_p=${PACKAGE-default}
7239     case $withval in
7240     yes|no) pic_mode=$withval ;;
7241     *)
7242       pic_mode=default
7243       # Look at the argument we got.  We use all the common list separators.
7244       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7245       for lt_pkg in $withval; do
7246         IFS="$lt_save_ifs"
7247         if test "X$lt_pkg" = "X$lt_p"; then
7248           pic_mode=yes
7249         fi
7250       done
7251       IFS="$lt_save_ifs"
7252       ;;
7253     esac
7254 else
7255   pic_mode=default
7256 fi
7257
7258
7259 test -z "$pic_mode" && pic_mode=default
7260
7261
7262
7263
7264
7265
7266
7267   # Check whether --enable-fast-install was given.
7268 if test "${enable_fast_install+set}" = set; then :
7269   enableval=$enable_fast_install; p=${PACKAGE-default}
7270     case $enableval in
7271     yes) enable_fast_install=yes ;;
7272     no) enable_fast_install=no ;;
7273     *)
7274       enable_fast_install=no
7275       # Look at the argument we got.  We use all the common list separators.
7276       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7277       for pkg in $enableval; do
7278         IFS="$lt_save_ifs"
7279         if test "X$pkg" = "X$p"; then
7280           enable_fast_install=yes
7281         fi
7282       done
7283       IFS="$lt_save_ifs"
7284       ;;
7285     esac
7286 else
7287   enable_fast_install=yes
7288 fi
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300 # This can be used to rebuild libtool when needed
7301 LIBTOOL_DEPS="$ltmain"
7302
7303 # Always use our own libtool.
7304 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335 test -z "$LN_S" && LN_S="ln -s"
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350 if test -n "${ZSH_VERSION+set}" ; then
7351    setopt NO_GLOB_SUBST
7352 fi
7353
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7355 $as_echo_n "checking for objdir... " >&6; }
7356 if ${lt_cv_objdir+:} false; then :
7357   $as_echo_n "(cached) " >&6
7358 else
7359   rm -f .libs 2>/dev/null
7360 mkdir .libs 2>/dev/null
7361 if test -d .libs; then
7362   lt_cv_objdir=.libs
7363 else
7364   # MS-DOS does not allow filenames that begin with a dot.
7365   lt_cv_objdir=_libs
7366 fi
7367 rmdir .libs 2>/dev/null
7368 fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7370 $as_echo "$lt_cv_objdir" >&6; }
7371 objdir=$lt_cv_objdir
7372
7373
7374
7375
7376
7377 cat >>confdefs.h <<_ACEOF
7378 #define LT_OBJDIR "$lt_cv_objdir/"
7379 _ACEOF
7380
7381
7382
7383
7384 case $host_os in
7385 aix3*)
7386   # AIX sometimes has problems with the GCC collect2 program.  For some
7387   # reason, if we set the COLLECT_NAMES environment variable, the problems
7388   # vanish in a puff of smoke.
7389   if test "X${COLLECT_NAMES+set}" != Xset; then
7390     COLLECT_NAMES=
7391     export COLLECT_NAMES
7392   fi
7393   ;;
7394 esac
7395
7396 # Global variables:
7397 ofile=libtool
7398 can_build_shared=yes
7399
7400 # All known linkers require a `.a' archive for static linking (except MSVC,
7401 # which needs '.lib').
7402 libext=a
7403
7404 with_gnu_ld="$lt_cv_prog_gnu_ld"
7405
7406 old_CC="$CC"
7407 old_CFLAGS="$CFLAGS"
7408
7409 # Set sane defaults for various variables
7410 test -z "$CC" && CC=cc
7411 test -z "$LTCC" && LTCC=$CC
7412 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7413 test -z "$LD" && LD=ld
7414 test -z "$ac_objext" && ac_objext=o
7415
7416 for cc_temp in $compiler""; do
7417   case $cc_temp in
7418     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7419     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7420     \-*) ;;
7421     *) break;;
7422   esac
7423 done
7424 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7425
7426
7427 # Only perform the check for file, if the check method requires it
7428 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7429 case $deplibs_check_method in
7430 file_magic*)
7431   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7432     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7433 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7434 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7435   $as_echo_n "(cached) " >&6
7436 else
7437   case $MAGIC_CMD in
7438 [\\/*] |  ?:[\\/]*)
7439   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7440   ;;
7441 *)
7442   lt_save_MAGIC_CMD="$MAGIC_CMD"
7443   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7444   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7445   for ac_dir in $ac_dummy; do
7446     IFS="$lt_save_ifs"
7447     test -z "$ac_dir" && ac_dir=.
7448     if test -f $ac_dir/${ac_tool_prefix}file; then
7449       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7450       if test -n "$file_magic_test_file"; then
7451         case $deplibs_check_method in
7452         "file_magic "*)
7453           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7454           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7455           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7456             $EGREP "$file_magic_regex" > /dev/null; then
7457             :
7458           else
7459             cat <<_LT_EOF 1>&2
7460
7461 *** Warning: the command libtool uses to detect shared libraries,
7462 *** $file_magic_cmd, produces output that libtool cannot recognize.
7463 *** The result is that libtool may fail to recognize shared libraries
7464 *** as such.  This will affect the creation of libtool libraries that
7465 *** depend on shared libraries, but programs linked with such libtool
7466 *** libraries will work regardless of this problem.  Nevertheless, you
7467 *** may want to report the problem to your system manager and/or to
7468 *** bug-libtool@gnu.org
7469
7470 _LT_EOF
7471           fi ;;
7472         esac
7473       fi
7474       break
7475     fi
7476   done
7477   IFS="$lt_save_ifs"
7478   MAGIC_CMD="$lt_save_MAGIC_CMD"
7479   ;;
7480 esac
7481 fi
7482
7483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484 if test -n "$MAGIC_CMD"; then
7485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7486 $as_echo "$MAGIC_CMD" >&6; }
7487 else
7488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7489 $as_echo "no" >&6; }
7490 fi
7491
7492
7493
7494
7495
7496 if test -z "$lt_cv_path_MAGIC_CMD"; then
7497   if test -n "$ac_tool_prefix"; then
7498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7499 $as_echo_n "checking for file... " >&6; }
7500 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   case $MAGIC_CMD in
7504 [\\/*] |  ?:[\\/]*)
7505   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7506   ;;
7507 *)
7508   lt_save_MAGIC_CMD="$MAGIC_CMD"
7509   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7510   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7511   for ac_dir in $ac_dummy; do
7512     IFS="$lt_save_ifs"
7513     test -z "$ac_dir" && ac_dir=.
7514     if test -f $ac_dir/file; then
7515       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7516       if test -n "$file_magic_test_file"; then
7517         case $deplibs_check_method in
7518         "file_magic "*)
7519           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7520           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7521           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7522             $EGREP "$file_magic_regex" > /dev/null; then
7523             :
7524           else
7525             cat <<_LT_EOF 1>&2
7526
7527 *** Warning: the command libtool uses to detect shared libraries,
7528 *** $file_magic_cmd, produces output that libtool cannot recognize.
7529 *** The result is that libtool may fail to recognize shared libraries
7530 *** as such.  This will affect the creation of libtool libraries that
7531 *** depend on shared libraries, but programs linked with such libtool
7532 *** libraries will work regardless of this problem.  Nevertheless, you
7533 *** may want to report the problem to your system manager and/or to
7534 *** bug-libtool@gnu.org
7535
7536 _LT_EOF
7537           fi ;;
7538         esac
7539       fi
7540       break
7541     fi
7542   done
7543   IFS="$lt_save_ifs"
7544   MAGIC_CMD="$lt_save_MAGIC_CMD"
7545   ;;
7546 esac
7547 fi
7548
7549 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7550 if test -n "$MAGIC_CMD"; then
7551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7552 $as_echo "$MAGIC_CMD" >&6; }
7553 else
7554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }
7556 fi
7557
7558
7559   else
7560     MAGIC_CMD=:
7561   fi
7562 fi
7563
7564   fi
7565   ;;
7566 esac
7567
7568 # Use C for the default configuration in the libtool script
7569
7570 lt_save_CC="$CC"
7571 ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7576
7577
7578 # Source file extension for C test sources.
7579 ac_ext=c
7580
7581 # Object file extension for compiled C test sources.
7582 objext=o
7583 objext=$objext
7584
7585 # Code to be used in simple compile tests
7586 lt_simple_compile_test_code="int some_variable = 0;"
7587
7588 # Code to be used in simple link tests
7589 lt_simple_link_test_code='int main(){return(0);}'
7590
7591
7592
7593
7594
7595
7596
7597 # If no C compiler was specified, use CC.
7598 LTCC=${LTCC-"$CC"}
7599
7600 # If no C compiler flags were specified, use CFLAGS.
7601 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7602
7603 # Allow CC to be a program name with arguments.
7604 compiler=$CC
7605
7606 # Save the default compiler, since it gets overwritten when the other
7607 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7608 compiler_DEFAULT=$CC
7609
7610 # save warnings/boilerplate of simple test code
7611 ac_outfile=conftest.$ac_objext
7612 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7614 _lt_compiler_boilerplate=`cat conftest.err`
7615 $RM conftest*
7616
7617 ac_outfile=conftest.$ac_objext
7618 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7620 _lt_linker_boilerplate=`cat conftest.err`
7621 $RM -r conftest*
7622
7623
7624 ## CAVEAT EMPTOR:
7625 ## There is no encapsulation within the following macros, do not change
7626 ## the running order or otherwise move them around unless you know exactly
7627 ## what you are doing...
7628 if test -n "$compiler"; then
7629
7630 lt_prog_compiler_no_builtin_flag=
7631
7632 if test "$GCC" = yes; then
7633   case $cc_basename in
7634   nvcc*)
7635     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7636   *)
7637     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7638   esac
7639
7640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7641 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7642 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   lt_cv_prog_compiler_rtti_exceptions=no
7646    ac_outfile=conftest.$ac_objext
7647    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7648    lt_compiler_flag="-fno-rtti -fno-exceptions"
7649    # Insert the option either (1) after the last *FLAGS variable, or
7650    # (2) before a word containing "conftest.", or (3) at the end.
7651    # Note that $ac_compile itself does not contain backslashes and begins
7652    # with a dollar sign (not a hyphen), so the echo should work correctly.
7653    # The option is referenced via a variable to avoid confusing sed.
7654    lt_compile=`echo "$ac_compile" | $SED \
7655    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7656    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7657    -e 's:$: $lt_compiler_flag:'`
7658    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7659    (eval "$lt_compile" 2>conftest.err)
7660    ac_status=$?
7661    cat conftest.err >&5
7662    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663    if (exit $ac_status) && test -s "$ac_outfile"; then
7664      # The compiler can only warn and ignore the option if not recognized
7665      # So say no if there are warnings other than the usual output.
7666      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7667      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7668      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7669        lt_cv_prog_compiler_rtti_exceptions=yes
7670      fi
7671    fi
7672    $RM conftest*
7673
7674 fi
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7676 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7677
7678 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7679     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7680 else
7681     :
7682 fi
7683
7684 fi
7685
7686
7687
7688
7689
7690
7691   lt_prog_compiler_wl=
7692 lt_prog_compiler_pic=
7693 lt_prog_compiler_static=
7694
7695
7696   if test "$GCC" = yes; then
7697     lt_prog_compiler_wl='-Wl,'
7698     lt_prog_compiler_static='-static'
7699
7700     case $host_os in
7701       aix*)
7702       # All AIX code is PIC.
7703       if test "$host_cpu" = ia64; then
7704         # AIX 5 now supports IA64 processor
7705         lt_prog_compiler_static='-Bstatic'
7706       fi
7707       ;;
7708
7709     amigaos*)
7710       case $host_cpu in
7711       powerpc)
7712             # see comment about AmigaOS4 .so support
7713             lt_prog_compiler_pic='-fPIC'
7714         ;;
7715       m68k)
7716             # FIXME: we need at least 68020 code to build shared libraries, but
7717             # adding the `-m68020' flag to GCC prevents building anything better,
7718             # like `-m68040'.
7719             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7720         ;;
7721       esac
7722       ;;
7723
7724     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7725       # PIC is the default for these OSes.
7726       ;;
7727
7728     mingw* | cygwin* | pw32* | os2* | cegcc*)
7729       # This hack is so that the source file can tell whether it is being
7730       # built for inclusion in a dll (and should export symbols for example).
7731       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7732       # (--disable-auto-import) libraries
7733       lt_prog_compiler_pic='-DDLL_EXPORT'
7734       ;;
7735
7736     darwin* | rhapsody*)
7737       # PIC is the default on this platform
7738       # Common symbols not allowed in MH_DYLIB files
7739       lt_prog_compiler_pic='-fno-common'
7740       ;;
7741
7742     haiku*)
7743       # PIC is the default for Haiku.
7744       # The "-static" flag exists, but is broken.
7745       lt_prog_compiler_static=
7746       ;;
7747
7748     hpux*)
7749       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7750       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7751       # sets the default TLS model and affects inlining.
7752       case $host_cpu in
7753       hppa*64*)
7754         # +Z the default
7755         ;;
7756       *)
7757         lt_prog_compiler_pic='-fPIC'
7758         ;;
7759       esac
7760       ;;
7761
7762     interix[3-9]*)
7763       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7764       # Instead, we relocate shared libraries at runtime.
7765       ;;
7766
7767     msdosdjgpp*)
7768       # Just because we use GCC doesn't mean we suddenly get shared libraries
7769       # on systems that don't support them.
7770       lt_prog_compiler_can_build_shared=no
7771       enable_shared=no
7772       ;;
7773
7774     *nto* | *qnx*)
7775       # QNX uses GNU C++, but need to define -shared option too, otherwise
7776       # it will coredump.
7777       lt_prog_compiler_pic='-fPIC -shared'
7778       ;;
7779
7780     sysv4*MP*)
7781       if test -d /usr/nec; then
7782         lt_prog_compiler_pic=-Kconform_pic
7783       fi
7784       ;;
7785
7786     *)
7787       lt_prog_compiler_pic='-fPIC'
7788       ;;
7789     esac
7790
7791     case $cc_basename in
7792     nvcc*) # Cuda Compiler Driver 2.2
7793       lt_prog_compiler_wl='-Xlinker '
7794       if test -n "$lt_prog_compiler_pic"; then
7795         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7796       fi
7797       ;;
7798     esac
7799   else
7800     # PORTME Check for flag to pass linker flags through the system compiler.
7801     case $host_os in
7802     aix*)
7803       lt_prog_compiler_wl='-Wl,'
7804       if test "$host_cpu" = ia64; then
7805         # AIX 5 now supports IA64 processor
7806         lt_prog_compiler_static='-Bstatic'
7807       else
7808         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7809       fi
7810       ;;
7811
7812     mingw* | cygwin* | pw32* | os2* | cegcc*)
7813       # This hack is so that the source file can tell whether it is being
7814       # built for inclusion in a dll (and should export symbols for example).
7815       lt_prog_compiler_pic='-DDLL_EXPORT'
7816       ;;
7817
7818     hpux9* | hpux10* | hpux11*)
7819       lt_prog_compiler_wl='-Wl,'
7820       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7821       # not for PA HP-UX.
7822       case $host_cpu in
7823       hppa*64*|ia64*)
7824         # +Z the default
7825         ;;
7826       *)
7827         lt_prog_compiler_pic='+Z'
7828         ;;
7829       esac
7830       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7831       lt_prog_compiler_static='${wl}-a ${wl}archive'
7832       ;;
7833
7834     irix5* | irix6* | nonstopux*)
7835       lt_prog_compiler_wl='-Wl,'
7836       # PIC (with -KPIC) is the default.
7837       lt_prog_compiler_static='-non_shared'
7838       ;;
7839
7840     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7841       case $cc_basename in
7842       # old Intel for x86_64 which still supported -KPIC.
7843       ecc*)
7844         lt_prog_compiler_wl='-Wl,'
7845         lt_prog_compiler_pic='-KPIC'
7846         lt_prog_compiler_static='-static'
7847         ;;
7848       # icc used to be incompatible with GCC.
7849       # ICC 10 doesn't accept -KPIC any more.
7850       icc* | ifort*)
7851         lt_prog_compiler_wl='-Wl,'
7852         lt_prog_compiler_pic='-fPIC'
7853         lt_prog_compiler_static='-static'
7854         ;;
7855       # Lahey Fortran 8.1.
7856       lf95*)
7857         lt_prog_compiler_wl='-Wl,'
7858         lt_prog_compiler_pic='--shared'
7859         lt_prog_compiler_static='--static'
7860         ;;
7861       nagfor*)
7862         # NAG Fortran compiler
7863         lt_prog_compiler_wl='-Wl,-Wl,,'
7864         lt_prog_compiler_pic='-PIC'
7865         lt_prog_compiler_static='-Bstatic'
7866         ;;
7867       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7868         # Portland Group compilers (*not* the Pentium gcc compiler,
7869         # which looks to be a dead project)
7870         lt_prog_compiler_wl='-Wl,'
7871         lt_prog_compiler_pic='-fpic'
7872         lt_prog_compiler_static='-Bstatic'
7873         ;;
7874       ccc*)
7875         lt_prog_compiler_wl='-Wl,'
7876         # All Alpha code is PIC.
7877         lt_prog_compiler_static='-non_shared'
7878         ;;
7879       xl* | bgxl* | bgf* | mpixl*)
7880         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7881         lt_prog_compiler_wl='-Wl,'
7882         lt_prog_compiler_pic='-qpic'
7883         lt_prog_compiler_static='-qstaticlink'
7884         ;;
7885       *)
7886         case `$CC -V 2>&1 | sed 5q` in
7887         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
7888           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7889           lt_prog_compiler_pic='-KPIC'
7890           lt_prog_compiler_static='-Bstatic'
7891           lt_prog_compiler_wl=''
7892           ;;
7893         *Sun\ F* | *Sun*Fortran*)
7894           lt_prog_compiler_pic='-KPIC'
7895           lt_prog_compiler_static='-Bstatic'
7896           lt_prog_compiler_wl='-Qoption ld '
7897           ;;
7898         *Sun\ C*)
7899           # Sun C 5.9
7900           lt_prog_compiler_pic='-KPIC'
7901           lt_prog_compiler_static='-Bstatic'
7902           lt_prog_compiler_wl='-Wl,'
7903           ;;
7904         *Intel*\ [CF]*Compiler*)
7905           lt_prog_compiler_wl='-Wl,'
7906           lt_prog_compiler_pic='-fPIC'
7907           lt_prog_compiler_static='-static'
7908           ;;
7909         *Portland\ Group*)
7910           lt_prog_compiler_wl='-Wl,'
7911           lt_prog_compiler_pic='-fpic'
7912           lt_prog_compiler_static='-Bstatic'
7913           ;;
7914         esac
7915         ;;
7916       esac
7917       ;;
7918
7919     newsos6)
7920       lt_prog_compiler_pic='-KPIC'
7921       lt_prog_compiler_static='-Bstatic'
7922       ;;
7923
7924     *nto* | *qnx*)
7925       # QNX uses GNU C++, but need to define -shared option too, otherwise
7926       # it will coredump.
7927       lt_prog_compiler_pic='-fPIC -shared'
7928       ;;
7929
7930     osf3* | osf4* | osf5*)
7931       lt_prog_compiler_wl='-Wl,'
7932       # All OSF/1 code is PIC.
7933       lt_prog_compiler_static='-non_shared'
7934       ;;
7935
7936     rdos*)
7937       lt_prog_compiler_static='-non_shared'
7938       ;;
7939
7940     solaris*)
7941       lt_prog_compiler_pic='-KPIC'
7942       lt_prog_compiler_static='-Bstatic'
7943       case $cc_basename in
7944       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7945         lt_prog_compiler_wl='-Qoption ld ';;
7946       *)
7947         lt_prog_compiler_wl='-Wl,';;
7948       esac
7949       ;;
7950
7951     sunos4*)
7952       lt_prog_compiler_wl='-Qoption ld '
7953       lt_prog_compiler_pic='-PIC'
7954       lt_prog_compiler_static='-Bstatic'
7955       ;;
7956
7957     sysv4 | sysv4.2uw2* | sysv4.3*)
7958       lt_prog_compiler_wl='-Wl,'
7959       lt_prog_compiler_pic='-KPIC'
7960       lt_prog_compiler_static='-Bstatic'
7961       ;;
7962
7963     sysv4*MP*)
7964       if test -d /usr/nec ;then
7965         lt_prog_compiler_pic='-Kconform_pic'
7966         lt_prog_compiler_static='-Bstatic'
7967       fi
7968       ;;
7969
7970     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7971       lt_prog_compiler_wl='-Wl,'
7972       lt_prog_compiler_pic='-KPIC'
7973       lt_prog_compiler_static='-Bstatic'
7974       ;;
7975
7976     unicos*)
7977       lt_prog_compiler_wl='-Wl,'
7978       lt_prog_compiler_can_build_shared=no
7979       ;;
7980
7981     uts4*)
7982       lt_prog_compiler_pic='-pic'
7983       lt_prog_compiler_static='-Bstatic'
7984       ;;
7985
7986     *)
7987       lt_prog_compiler_can_build_shared=no
7988       ;;
7989     esac
7990   fi
7991
7992 case $host_os in
7993   # For platforms which do not support PIC, -DPIC is meaningless:
7994   *djgpp*)
7995     lt_prog_compiler_pic=
7996     ;;
7997   *)
7998     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7999     ;;
8000 esac
8001
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8003 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8004 if ${lt_cv_prog_compiler_pic+:} false; then :
8005   $as_echo_n "(cached) " >&6
8006 else
8007   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8008 fi
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8010 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8011 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8012
8013 #
8014 # Check to make sure the PIC flag actually works.
8015 #
8016 if test -n "$lt_prog_compiler_pic"; then
8017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8018 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8019 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8020   $as_echo_n "(cached) " >&6
8021 else
8022   lt_cv_prog_compiler_pic_works=no
8023    ac_outfile=conftest.$ac_objext
8024    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8025    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8026    # Insert the option either (1) after the last *FLAGS variable, or
8027    # (2) before a word containing "conftest.", or (3) at the end.
8028    # Note that $ac_compile itself does not contain backslashes and begins
8029    # with a dollar sign (not a hyphen), so the echo should work correctly.
8030    # The option is referenced via a variable to avoid confusing sed.
8031    lt_compile=`echo "$ac_compile" | $SED \
8032    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8033    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8034    -e 's:$: $lt_compiler_flag:'`
8035    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8036    (eval "$lt_compile" 2>conftest.err)
8037    ac_status=$?
8038    cat conftest.err >&5
8039    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040    if (exit $ac_status) && test -s "$ac_outfile"; then
8041      # The compiler can only warn and ignore the option if not recognized
8042      # So say no if there are warnings other than the usual output.
8043      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8044      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8045      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8046        lt_cv_prog_compiler_pic_works=yes
8047      fi
8048    fi
8049    $RM conftest*
8050
8051 fi
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8053 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8054
8055 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8056     case $lt_prog_compiler_pic in
8057      "" | " "*) ;;
8058      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8059      esac
8060 else
8061     lt_prog_compiler_pic=
8062      lt_prog_compiler_can_build_shared=no
8063 fi
8064
8065 fi
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077 #
8078 # Check to make sure the static flag actually works.
8079 #
8080 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8082 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8083 if ${lt_cv_prog_compiler_static_works+:} false; then :
8084   $as_echo_n "(cached) " >&6
8085 else
8086   lt_cv_prog_compiler_static_works=no
8087    save_LDFLAGS="$LDFLAGS"
8088    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8089    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8090    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8091      # The linker can only warn and ignore the option if not recognized
8092      # So say no if there are warnings
8093      if test -s conftest.err; then
8094        # Append any errors to the config.log.
8095        cat conftest.err 1>&5
8096        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8097        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8098        if diff conftest.exp conftest.er2 >/dev/null; then
8099          lt_cv_prog_compiler_static_works=yes
8100        fi
8101      else
8102        lt_cv_prog_compiler_static_works=yes
8103      fi
8104    fi
8105    $RM -r conftest*
8106    LDFLAGS="$save_LDFLAGS"
8107
8108 fi
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8110 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8111
8112 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8113     :
8114 else
8115     lt_prog_compiler_static=
8116 fi
8117
8118
8119
8120
8121
8122
8123
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8125 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8126 if ${lt_cv_prog_compiler_c_o+:} false; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   lt_cv_prog_compiler_c_o=no
8130    $RM -r conftest 2>/dev/null
8131    mkdir conftest
8132    cd conftest
8133    mkdir out
8134    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8135
8136    lt_compiler_flag="-o out/conftest2.$ac_objext"
8137    # Insert the option either (1) after the last *FLAGS variable, or
8138    # (2) before a word containing "conftest.", or (3) at the end.
8139    # Note that $ac_compile itself does not contain backslashes and begins
8140    # with a dollar sign (not a hyphen), so the echo should work correctly.
8141    lt_compile=`echo "$ac_compile" | $SED \
8142    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8143    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8144    -e 's:$: $lt_compiler_flag:'`
8145    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8146    (eval "$lt_compile" 2>out/conftest.err)
8147    ac_status=$?
8148    cat out/conftest.err >&5
8149    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8151    then
8152      # The compiler can only warn and ignore the option if not recognized
8153      # So say no if there are warnings
8154      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8155      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8156      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8157        lt_cv_prog_compiler_c_o=yes
8158      fi
8159    fi
8160    chmod u+w . 2>&5
8161    $RM conftest*
8162    # SGI C++ compiler will create directory out/ii_files/ for
8163    # template instantiation
8164    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8165    $RM out/* && rmdir out
8166    cd ..
8167    $RM -r conftest
8168    $RM conftest*
8169
8170 fi
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8172 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8173
8174
8175
8176
8177
8178
8179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8181 if ${lt_cv_prog_compiler_c_o+:} false; then :
8182   $as_echo_n "(cached) " >&6
8183 else
8184   lt_cv_prog_compiler_c_o=no
8185    $RM -r conftest 2>/dev/null
8186    mkdir conftest
8187    cd conftest
8188    mkdir out
8189    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8190
8191    lt_compiler_flag="-o out/conftest2.$ac_objext"
8192    # Insert the option either (1) after the last *FLAGS variable, or
8193    # (2) before a word containing "conftest.", or (3) at the end.
8194    # Note that $ac_compile itself does not contain backslashes and begins
8195    # with a dollar sign (not a hyphen), so the echo should work correctly.
8196    lt_compile=`echo "$ac_compile" | $SED \
8197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8199    -e 's:$: $lt_compiler_flag:'`
8200    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8201    (eval "$lt_compile" 2>out/conftest.err)
8202    ac_status=$?
8203    cat out/conftest.err >&5
8204    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8206    then
8207      # The compiler can only warn and ignore the option if not recognized
8208      # So say no if there are warnings
8209      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8210      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8211      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8212        lt_cv_prog_compiler_c_o=yes
8213      fi
8214    fi
8215    chmod u+w . 2>&5
8216    $RM conftest*
8217    # SGI C++ compiler will create directory out/ii_files/ for
8218    # template instantiation
8219    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8220    $RM out/* && rmdir out
8221    cd ..
8222    $RM -r conftest
8223    $RM conftest*
8224
8225 fi
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8228
8229
8230
8231
8232 hard_links="nottested"
8233 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8234   # do not overwrite the value of need_locks provided by the user
8235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8236 $as_echo_n "checking if we can lock with hard links... " >&6; }
8237   hard_links=yes
8238   $RM conftest*
8239   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8240   touch conftest.a
8241   ln conftest.a conftest.b 2>&5 || hard_links=no
8242   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8244 $as_echo "$hard_links" >&6; }
8245   if test "$hard_links" = no; then
8246     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8247 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8248     need_locks=warn
8249   fi
8250 else
8251   need_locks=no
8252 fi
8253
8254
8255
8256
8257
8258
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8260 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8261
8262   runpath_var=
8263   allow_undefined_flag=
8264   always_export_symbols=no
8265   archive_cmds=
8266   archive_expsym_cmds=
8267   compiler_needs_object=no
8268   enable_shared_with_static_runtimes=no
8269   export_dynamic_flag_spec=
8270   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8271   hardcode_automatic=no
8272   hardcode_direct=no
8273   hardcode_direct_absolute=no
8274   hardcode_libdir_flag_spec=
8275   hardcode_libdir_separator=
8276   hardcode_minus_L=no
8277   hardcode_shlibpath_var=unsupported
8278   inherit_rpath=no
8279   link_all_deplibs=unknown
8280   module_cmds=
8281   module_expsym_cmds=
8282   old_archive_from_new_cmds=
8283   old_archive_from_expsyms_cmds=
8284   thread_safe_flag_spec=
8285   whole_archive_flag_spec=
8286   # include_expsyms should be a list of space-separated symbols to be *always*
8287   # included in the symbol list
8288   include_expsyms=
8289   # exclude_expsyms can be an extended regexp of symbols to exclude
8290   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8291   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8292   # as well as any symbol that contains `d'.
8293   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8294   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8295   # platforms (ab)use it in PIC code, but their linkers get confused if
8296   # the symbol is explicitly referenced.  Since portable code cannot
8297   # rely on this symbol name, it's probably fine to never include it in
8298   # preloaded symbol tables.
8299   # Exclude shared library initialization/finalization symbols.
8300   extract_expsyms_cmds=
8301
8302   case $host_os in
8303   cygwin* | mingw* | pw32* | cegcc*)
8304     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8305     # When not using gcc, we currently assume that we are using
8306     # Microsoft Visual C++.
8307     if test "$GCC" != yes; then
8308       with_gnu_ld=no
8309     fi
8310     ;;
8311   interix*)
8312     # we just hope/assume this is gcc and not c89 (= MSVC++)
8313     with_gnu_ld=yes
8314     ;;
8315   openbsd*)
8316     with_gnu_ld=no
8317     ;;
8318   linux* | k*bsd*-gnu | gnu*)
8319     link_all_deplibs=no
8320     ;;
8321   esac
8322
8323   ld_shlibs=yes
8324
8325   # On some targets, GNU ld is compatible enough with the native linker
8326   # that we're better off using the native interface for both.
8327   lt_use_gnu_ld_interface=no
8328   if test "$with_gnu_ld" = yes; then
8329     case $host_os in
8330       aix*)
8331         # The AIX port of GNU ld has always aspired to compatibility
8332         # with the native linker.  However, as the warning in the GNU ld
8333         # block says, versions before 2.19.5* couldn't really create working
8334         # shared libraries, regardless of the interface used.
8335         case `$LD -v 2>&1` in
8336           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8337           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8338           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8339           *)
8340             lt_use_gnu_ld_interface=yes
8341             ;;
8342         esac
8343         ;;
8344       *)
8345         lt_use_gnu_ld_interface=yes
8346         ;;
8347     esac
8348   fi
8349
8350   if test "$lt_use_gnu_ld_interface" = yes; then
8351     # If archive_cmds runs LD, not CC, wlarc should be empty
8352     wlarc='${wl}'
8353
8354     # Set some defaults for GNU ld with shared library support. These
8355     # are reset later if shared libraries are not supported. Putting them
8356     # here allows them to be overridden if necessary.
8357     runpath_var=LD_RUN_PATH
8358     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8359     export_dynamic_flag_spec='${wl}--export-dynamic'
8360     # ancient GNU ld didn't support --whole-archive et. al.
8361     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8362       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8363     else
8364       whole_archive_flag_spec=
8365     fi
8366     supports_anon_versioning=no
8367     case `$LD -v 2>&1` in
8368       *GNU\ gold*) supports_anon_versioning=yes ;;
8369       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8370       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8371       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8372       *\ 2.11.*) ;; # other 2.11 versions
8373       *) supports_anon_versioning=yes ;;
8374     esac
8375
8376     # See if GNU ld supports shared libraries.
8377     case $host_os in
8378     aix[3-9]*)
8379       # On AIX/PPC, the GNU linker is very broken
8380       if test "$host_cpu" != ia64; then
8381         ld_shlibs=no
8382         cat <<_LT_EOF 1>&2
8383
8384 *** Warning: the GNU linker, at least up to release 2.19, is reported
8385 *** to be unable to reliably create shared libraries on AIX.
8386 *** Therefore, libtool is disabling shared libraries support.  If you
8387 *** really care for shared libraries, you may want to install binutils
8388 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8389 *** You will then need to restart the configuration process.
8390
8391 _LT_EOF
8392       fi
8393       ;;
8394
8395     amigaos*)
8396       case $host_cpu in
8397       powerpc)
8398             # see comment about AmigaOS4 .so support
8399             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8400             archive_expsym_cmds=''
8401         ;;
8402       m68k)
8403             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)'
8404             hardcode_libdir_flag_spec='-L$libdir'
8405             hardcode_minus_L=yes
8406         ;;
8407       esac
8408       ;;
8409
8410     beos*)
8411       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8412         allow_undefined_flag=unsupported
8413         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8414         # support --undefined.  This deserves some investigation.  FIXME
8415         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8416       else
8417         ld_shlibs=no
8418       fi
8419       ;;
8420
8421     cygwin* | mingw* | pw32* | cegcc*)
8422       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8423       # as there is no search path for DLLs.
8424       hardcode_libdir_flag_spec='-L$libdir'
8425       export_dynamic_flag_spec='${wl}--export-all-symbols'
8426       allow_undefined_flag=unsupported
8427       always_export_symbols=no
8428       enable_shared_with_static_runtimes=yes
8429       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'
8430       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8431
8432       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8433         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8434         # If the export-symbols file already is a .def file (1st line
8435         # is EXPORTS), use it as is; otherwise, prepend...
8436         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8437           cp $export_symbols $output_objdir/$soname.def;
8438         else
8439           echo EXPORTS > $output_objdir/$soname.def;
8440           cat $export_symbols >> $output_objdir/$soname.def;
8441         fi~
8442         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8443       else
8444         ld_shlibs=no
8445       fi
8446       ;;
8447
8448     haiku*)
8449       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8450       link_all_deplibs=yes
8451       ;;
8452
8453     interix[3-9]*)
8454       hardcode_direct=no
8455       hardcode_shlibpath_var=no
8456       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8457       export_dynamic_flag_spec='${wl}-E'
8458       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8459       # Instead, shared libraries are loaded at an image base (0x10000000 by
8460       # default) and relocated if they conflict, which is a slow very memory
8461       # consuming and fragmenting process.  To avoid this, we pick a random,
8462       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8463       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8464       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8465       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'
8466       ;;
8467
8468     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8469       tmp_diet=no
8470       if test "$host_os" = linux-dietlibc; then
8471         case $cc_basename in
8472           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8473         esac
8474       fi
8475       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8476          && test "$tmp_diet" = no
8477       then
8478         tmp_addflag=' $pic_flag'
8479         tmp_sharedflag='-shared'
8480         case $cc_basename,$host_cpu in
8481         pgcc*)                          # Portland Group C compiler
8482           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'
8483           tmp_addflag=' $pic_flag'
8484           ;;
8485         pgf77* | pgf90* | pgf95* | pgfortran*)
8486                                         # Portland Group f77 and f90 compilers
8487           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'
8488           tmp_addflag=' $pic_flag -Mnomain' ;;
8489         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8490           tmp_addflag=' -i_dynamic' ;;
8491         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8492           tmp_addflag=' -i_dynamic -nofor_main' ;;
8493         ifc* | ifort*)                  # Intel Fortran compiler
8494           tmp_addflag=' -nofor_main' ;;
8495         lf95*)                          # Lahey Fortran 8.1
8496           whole_archive_flag_spec=
8497           tmp_sharedflag='--shared' ;;
8498         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8499           tmp_sharedflag='-qmkshrobj'
8500           tmp_addflag= ;;
8501         nvcc*)  # Cuda Compiler Driver 2.2
8502           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'
8503           compiler_needs_object=yes
8504           ;;
8505         esac
8506         case `$CC -V 2>&1 | sed 5q` in
8507         *Sun\ C*)                       # Sun C 5.9
8508           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'
8509           compiler_needs_object=yes
8510           tmp_sharedflag='-G' ;;
8511         *Sun\ F*)                       # Sun Fortran 8.3
8512           tmp_sharedflag='-G' ;;
8513         esac
8514         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8515
8516         if test "x$supports_anon_versioning" = xyes; then
8517           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8518             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8519             echo "local: *; };" >> $output_objdir/$libname.ver~
8520             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8521         fi
8522
8523         case $cc_basename in
8524         xlf* | bgf* | bgxlf* | mpixlf*)
8525           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8526           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8527           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8528           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8529           if test "x$supports_anon_versioning" = xyes; then
8530             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8531               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8532               echo "local: *; };" >> $output_objdir/$libname.ver~
8533               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8534           fi
8535           ;;
8536         esac
8537       else
8538         ld_shlibs=no
8539       fi
8540       ;;
8541
8542     netbsd* | netbsdelf*-gnu)
8543       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8544         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8545         wlarc=
8546       else
8547         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8548         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8549       fi
8550       ;;
8551
8552     solaris*)
8553       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8554         ld_shlibs=no
8555         cat <<_LT_EOF 1>&2
8556
8557 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8558 *** create shared libraries on Solaris systems.  Therefore, libtool
8559 *** is disabling shared libraries support.  We urge you to upgrade GNU
8560 *** binutils to release 2.9.1 or newer.  Another option is to modify
8561 *** your PATH or compiler configuration so that the native linker is
8562 *** used, and then restart.
8563
8564 _LT_EOF
8565       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8566         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8567         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8568       else
8569         ld_shlibs=no
8570       fi
8571       ;;
8572
8573     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8574       case `$LD -v 2>&1` in
8575         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8576         ld_shlibs=no
8577         cat <<_LT_EOF 1>&2
8578
8579 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8580 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8581 *** is disabling shared libraries support.  We urge you to upgrade GNU
8582 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8583 *** your PATH or compiler configuration so that the native linker is
8584 *** used, and then restart.
8585
8586 _LT_EOF
8587         ;;
8588         *)
8589           # For security reasons, it is highly recommended that you always
8590           # use absolute paths for naming shared libraries, and exclude the
8591           # DT_RUNPATH tag from executables and libraries.  But doing so
8592           # requires that you compile everything twice, which is a pain.
8593           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8594             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8595             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8596             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8597           else
8598             ld_shlibs=no
8599           fi
8600         ;;
8601       esac
8602       ;;
8603
8604     sunos4*)
8605       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8606       wlarc=
8607       hardcode_direct=yes
8608       hardcode_shlibpath_var=no
8609       ;;
8610
8611     *)
8612       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8613         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8614         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8615       else
8616         ld_shlibs=no
8617       fi
8618       ;;
8619     esac
8620
8621     if test "$ld_shlibs" = no; then
8622       runpath_var=
8623       hardcode_libdir_flag_spec=
8624       export_dynamic_flag_spec=
8625       whole_archive_flag_spec=
8626     fi
8627   else
8628     # PORTME fill in a description of your system's linker (not GNU ld)
8629     case $host_os in
8630     aix3*)
8631       allow_undefined_flag=unsupported
8632       always_export_symbols=yes
8633       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'
8634       # Note: this linker hardcodes the directories in LIBPATH if there
8635       # are no directories specified by -L.
8636       hardcode_minus_L=yes
8637       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8638         # Neither direct hardcoding nor static linking is supported with a
8639         # broken collect2.
8640         hardcode_direct=unsupported
8641       fi
8642       ;;
8643
8644     aix[4-9]*)
8645       if test "$host_cpu" = ia64; then
8646         # On IA64, the linker does run time linking by default, so we don't
8647         # have to do anything special.
8648         aix_use_runtimelinking=no
8649         exp_sym_flag='-Bexport'
8650         no_entry_flag=""
8651       else
8652         # If we're using GNU nm, then we don't want the "-C" option.
8653         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8654         # Also, AIX nm treats weak defined symbols like other global
8655         # defined symbols, whereas GNU nm marks them as "W".
8656         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8657           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'
8658         else
8659           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'
8660         fi
8661         aix_use_runtimelinking=no
8662
8663         # Test if we are trying to use run time linking or normal
8664         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8665         # need to do runtime linking.
8666         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8667           for ld_flag in $LDFLAGS; do
8668           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8669             aix_use_runtimelinking=yes
8670             break
8671           fi
8672           done
8673           ;;
8674         esac
8675
8676         exp_sym_flag='-bexport'
8677         no_entry_flag='-bnoentry'
8678       fi
8679
8680       # When large executables or shared objects are built, AIX ld can
8681       # have problems creating the table of contents.  If linking a library
8682       # or program results in "error TOC overflow" add -mminimal-toc to
8683       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8684       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8685
8686       archive_cmds=''
8687       hardcode_direct=yes
8688       hardcode_direct_absolute=yes
8689       hardcode_libdir_separator=':'
8690       link_all_deplibs=yes
8691       file_list_spec='${wl}-f,'
8692
8693       if test "$GCC" = yes; then
8694         case $host_os in aix4.[012]|aix4.[012].*)
8695         # We only want to do this on AIX 4.2 and lower, the check
8696         # below for broken collect2 doesn't work under 4.3+
8697           collect2name=`${CC} -print-prog-name=collect2`
8698           if test -f "$collect2name" &&
8699            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8700           then
8701           # We have reworked collect2
8702           :
8703           else
8704           # We have old collect2
8705           hardcode_direct=unsupported
8706           # It fails to find uninstalled libraries when the uninstalled
8707           # path is not listed in the libpath.  Setting hardcode_minus_L
8708           # to unsupported forces relinking
8709           hardcode_minus_L=yes
8710           hardcode_libdir_flag_spec='-L$libdir'
8711           hardcode_libdir_separator=
8712           fi
8713           ;;
8714         esac
8715         shared_flag='-shared'
8716         if test "$aix_use_runtimelinking" = yes; then
8717           shared_flag="$shared_flag "'${wl}-G'
8718         fi
8719         link_all_deplibs=no
8720       else
8721         # not using gcc
8722         if test "$host_cpu" = ia64; then
8723         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8724         # chokes on -Wl,-G. The following line is correct:
8725           shared_flag='-G'
8726         else
8727           if test "$aix_use_runtimelinking" = yes; then
8728             shared_flag='${wl}-G'
8729           else
8730             shared_flag='${wl}-bM:SRE'
8731           fi
8732         fi
8733       fi
8734
8735       export_dynamic_flag_spec='${wl}-bexpall'
8736       # It seems that -bexpall does not export symbols beginning with
8737       # underscore (_), so it is better to generate a list of symbols to export.
8738       always_export_symbols=yes
8739       if test "$aix_use_runtimelinking" = yes; then
8740         # Warning - without using the other runtime loading flags (-brtl),
8741         # -berok will link without error, but may produce a broken library.
8742         allow_undefined_flag='-berok'
8743         # Determine the default libpath from the value encoded in an
8744         # empty executable.
8745         if test "${lt_cv_aix_libpath+set}" = set; then
8746   aix_libpath=$lt_cv_aix_libpath
8747 else
8748   if ${lt_cv_aix_libpath_+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8752 /* end confdefs.h.  */
8753
8754 int
8755 main ()
8756 {
8757
8758   ;
8759   return 0;
8760 }
8761 _ACEOF
8762 if ac_fn_c_try_link "$LINENO"; then :
8763
8764   lt_aix_libpath_sed='
8765       /Import File Strings/,/^$/ {
8766           /^0/ {
8767               s/^0  *\([^ ]*\) *$/\1/
8768               p
8769           }
8770       }'
8771   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8772   # Check for a 64-bit object if we didn't find anything.
8773   if test -z "$lt_cv_aix_libpath_"; then
8774     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8775   fi
8776 fi
8777 rm -f core conftest.err conftest.$ac_objext \
8778     conftest$ac_exeext conftest.$ac_ext
8779   if test -z "$lt_cv_aix_libpath_"; then
8780     lt_cv_aix_libpath_="/usr/lib:/lib"
8781   fi
8782
8783 fi
8784
8785   aix_libpath=$lt_cv_aix_libpath_
8786 fi
8787
8788         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8789         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"
8790       else
8791         if test "$host_cpu" = ia64; then
8792           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8793           allow_undefined_flag="-z nodefs"
8794           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"
8795         else
8796          # Determine the default libpath from the value encoded in an
8797          # empty executable.
8798          if test "${lt_cv_aix_libpath+set}" = set; then
8799   aix_libpath=$lt_cv_aix_libpath
8800 else
8801   if ${lt_cv_aix_libpath_+:} false; then :
8802   $as_echo_n "(cached) " >&6
8803 else
8804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8805 /* end confdefs.h.  */
8806
8807 int
8808 main ()
8809 {
8810
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816
8817   lt_aix_libpath_sed='
8818       /Import File Strings/,/^$/ {
8819           /^0/ {
8820               s/^0  *\([^ ]*\) *$/\1/
8821               p
8822           }
8823       }'
8824   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8825   # Check for a 64-bit object if we didn't find anything.
8826   if test -z "$lt_cv_aix_libpath_"; then
8827     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8828   fi
8829 fi
8830 rm -f core conftest.err conftest.$ac_objext \
8831     conftest$ac_exeext conftest.$ac_ext
8832   if test -z "$lt_cv_aix_libpath_"; then
8833     lt_cv_aix_libpath_="/usr/lib:/lib"
8834   fi
8835
8836 fi
8837
8838   aix_libpath=$lt_cv_aix_libpath_
8839 fi
8840
8841          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8842           # Warning - without using the other run time loading flags,
8843           # -berok will link without error, but may produce a broken library.
8844           no_undefined_flag=' ${wl}-bernotok'
8845           allow_undefined_flag=' ${wl}-berok'
8846           if test "$with_gnu_ld" = yes; then
8847             # We only use this code for GNU lds that support --whole-archive.
8848             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8849           else
8850             # Exported symbols can be pulled into shared objects from archives
8851             whole_archive_flag_spec='$convenience'
8852           fi
8853           archive_cmds_need_lc=yes
8854           # This is similar to how AIX traditionally builds its shared libraries.
8855           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'
8856         fi
8857       fi
8858       ;;
8859
8860     amigaos*)
8861       case $host_cpu in
8862       powerpc)
8863             # see comment about AmigaOS4 .so support
8864             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865             archive_expsym_cmds=''
8866         ;;
8867       m68k)
8868             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)'
8869             hardcode_libdir_flag_spec='-L$libdir'
8870             hardcode_minus_L=yes
8871         ;;
8872       esac
8873       ;;
8874
8875     bsdi[45]*)
8876       export_dynamic_flag_spec=-rdynamic
8877       ;;
8878
8879     cygwin* | mingw* | pw32* | cegcc*)
8880       # When not using gcc, we currently assume that we are using
8881       # Microsoft Visual C++.
8882       # hardcode_libdir_flag_spec is actually meaningless, as there is
8883       # no search path for DLLs.
8884       case $cc_basename in
8885       cl*)
8886         # Native MSVC
8887         hardcode_libdir_flag_spec=' '
8888         allow_undefined_flag=unsupported
8889         always_export_symbols=yes
8890         file_list_spec='@'
8891         # Tell ltmain to make .lib files, not .a files.
8892         libext=lib
8893         # Tell ltmain to make .dll files, not .so files.
8894         shrext_cmds=".dll"
8895         # FIXME: Setting linknames here is a bad hack.
8896         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
8897         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8898             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
8899           else
8900             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
8901           fi~
8902           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
8903           linknames='
8904         # The linker will not automatically build a static lib if we build a DLL.
8905         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
8906         enable_shared_with_static_runtimes=yes
8907         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
8908         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8909         # Don't use ranlib
8910         old_postinstall_cmds='chmod 644 $oldlib'
8911         postlink_cmds='lt_outputfile="@OUTPUT@"~
8912           lt_tool_outputfile="@TOOL_OUTPUT@"~
8913           case $lt_outputfile in
8914             *.exe|*.EXE) ;;
8915             *)
8916               lt_outputfile="$lt_outputfile.exe"
8917               lt_tool_outputfile="$lt_tool_outputfile.exe"
8918               ;;
8919           esac~
8920           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
8921             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
8922             $RM "$lt_outputfile.manifest";
8923           fi'
8924         ;;
8925       *)
8926         # Assume MSVC wrapper
8927         hardcode_libdir_flag_spec=' '
8928         allow_undefined_flag=unsupported
8929         # Tell ltmain to make .lib files, not .a files.
8930         libext=lib
8931         # Tell ltmain to make .dll files, not .so files.
8932         shrext_cmds=".dll"
8933         # FIXME: Setting linknames here is a bad hack.
8934         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8935         # The linker will automatically build a .lib file if we build a DLL.
8936         old_archive_from_new_cmds='true'
8937         # FIXME: Should let the user specify the lib program.
8938         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8939         enable_shared_with_static_runtimes=yes
8940         ;;
8941       esac
8942       ;;
8943
8944     darwin* | rhapsody*)
8945
8946
8947   archive_cmds_need_lc=no
8948   hardcode_direct=no
8949   hardcode_automatic=yes
8950   hardcode_shlibpath_var=unsupported
8951   if test "$lt_cv_ld_force_load" = "yes"; then
8952     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\"`'
8953
8954   else
8955     whole_archive_flag_spec=''
8956   fi
8957   link_all_deplibs=yes
8958   allow_undefined_flag="$_lt_dar_allow_undefined"
8959   case $cc_basename in
8960      ifort*) _lt_dar_can_shared=yes ;;
8961      *) _lt_dar_can_shared=$GCC ;;
8962   esac
8963   if test "$_lt_dar_can_shared" = "yes"; then
8964     output_verbose_link_cmd=func_echo_all
8965     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8966     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8967     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}"
8968     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}"
8969
8970   else
8971   ld_shlibs=no
8972   fi
8973
8974       ;;
8975
8976     dgux*)
8977       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8978       hardcode_libdir_flag_spec='-L$libdir'
8979       hardcode_shlibpath_var=no
8980       ;;
8981
8982     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8983     # support.  Future versions do this automatically, but an explicit c++rt0.o
8984     # does not break anything, and helps significantly (at the cost of a little
8985     # extra space).
8986     freebsd2.2*)
8987       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8988       hardcode_libdir_flag_spec='-R$libdir'
8989       hardcode_direct=yes
8990       hardcode_shlibpath_var=no
8991       ;;
8992
8993     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8994     freebsd2.*)
8995       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8996       hardcode_direct=yes
8997       hardcode_minus_L=yes
8998       hardcode_shlibpath_var=no
8999       ;;
9000
9001     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9002     freebsd* | dragonfly*)
9003       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9004       hardcode_libdir_flag_spec='-R$libdir'
9005       hardcode_direct=yes
9006       hardcode_shlibpath_var=no
9007       ;;
9008
9009     hpux9*)
9010       if test "$GCC" = yes; then
9011         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'
9012       else
9013         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'
9014       fi
9015       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016       hardcode_libdir_separator=:
9017       hardcode_direct=yes
9018
9019       # hardcode_minus_L: Not really in the search PATH,
9020       # but as the default location of the library.
9021       hardcode_minus_L=yes
9022       export_dynamic_flag_spec='${wl}-E'
9023       ;;
9024
9025     hpux10*)
9026       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9027         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9028       else
9029         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9030       fi
9031       if test "$with_gnu_ld" = no; then
9032         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033         hardcode_libdir_separator=:
9034         hardcode_direct=yes
9035         hardcode_direct_absolute=yes
9036         export_dynamic_flag_spec='${wl}-E'
9037         # hardcode_minus_L: Not really in the search PATH,
9038         # but as the default location of the library.
9039         hardcode_minus_L=yes
9040       fi
9041       ;;
9042
9043     hpux11*)
9044       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9045         case $host_cpu in
9046         hppa*64*)
9047           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9048           ;;
9049         ia64*)
9050           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9051           ;;
9052         *)
9053           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9054           ;;
9055         esac
9056       else
9057         case $host_cpu in
9058         hppa*64*)
9059           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9060           ;;
9061         ia64*)
9062           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9063           ;;
9064         *)
9065
9066           # Older versions of the 11.00 compiler do not understand -b yet
9067           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9068           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9069 $as_echo_n "checking if $CC understands -b... " >&6; }
9070 if ${lt_cv_prog_compiler__b+:} false; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073   lt_cv_prog_compiler__b=no
9074    save_LDFLAGS="$LDFLAGS"
9075    LDFLAGS="$LDFLAGS -b"
9076    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9077    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9078      # The linker can only warn and ignore the option if not recognized
9079      # So say no if there are warnings
9080      if test -s conftest.err; then
9081        # Append any errors to the config.log.
9082        cat conftest.err 1>&5
9083        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9084        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9085        if diff conftest.exp conftest.er2 >/dev/null; then
9086          lt_cv_prog_compiler__b=yes
9087        fi
9088      else
9089        lt_cv_prog_compiler__b=yes
9090      fi
9091    fi
9092    $RM -r conftest*
9093    LDFLAGS="$save_LDFLAGS"
9094
9095 fi
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9097 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9098
9099 if test x"$lt_cv_prog_compiler__b" = xyes; then
9100     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9101 else
9102     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9103 fi
9104
9105           ;;
9106         esac
9107       fi
9108       if test "$with_gnu_ld" = no; then
9109         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9110         hardcode_libdir_separator=:
9111
9112         case $host_cpu in
9113         hppa*64*|ia64*)
9114           hardcode_direct=no
9115           hardcode_shlibpath_var=no
9116           ;;
9117         *)
9118           hardcode_direct=yes
9119           hardcode_direct_absolute=yes
9120           export_dynamic_flag_spec='${wl}-E'
9121
9122           # hardcode_minus_L: Not really in the search PATH,
9123           # but as the default location of the library.
9124           hardcode_minus_L=yes
9125           ;;
9126         esac
9127       fi
9128       ;;
9129
9130     irix5* | irix6* | nonstopux*)
9131       if test "$GCC" = yes; then
9132         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'
9133         # Try to use the -exported_symbol ld option, if it does not
9134         # work, assume that -exports_file does not work either and
9135         # implicitly export all symbols.
9136         # This should be the same for all languages, so no per-tag cache variable.
9137         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9138 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9139 if ${lt_cv_irix_exported_symbol+:} false; then :
9140   $as_echo_n "(cached) " >&6
9141 else
9142   save_LDFLAGS="$LDFLAGS"
9143            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9144            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146 int foo (void) { return 0; }
9147 _ACEOF
9148 if ac_fn_c_try_link "$LINENO"; then :
9149   lt_cv_irix_exported_symbol=yes
9150 else
9151   lt_cv_irix_exported_symbol=no
9152 fi
9153 rm -f core conftest.err conftest.$ac_objext \
9154     conftest$ac_exeext conftest.$ac_ext
9155            LDFLAGS="$save_LDFLAGS"
9156 fi
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9158 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9159         if test "$lt_cv_irix_exported_symbol" = yes; then
9160           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'
9161         fi
9162       else
9163         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'
9164         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'
9165       fi
9166       archive_cmds_need_lc='no'
9167       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9168       hardcode_libdir_separator=:
9169       inherit_rpath=yes
9170       link_all_deplibs=yes
9171       ;;
9172
9173     netbsd* | netbsdelf*-gnu)
9174       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9175         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9176       else
9177         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9178       fi
9179       hardcode_libdir_flag_spec='-R$libdir'
9180       hardcode_direct=yes
9181       hardcode_shlibpath_var=no
9182       ;;
9183
9184     newsos6)
9185       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9186       hardcode_direct=yes
9187       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188       hardcode_libdir_separator=:
9189       hardcode_shlibpath_var=no
9190       ;;
9191
9192     *nto* | *qnx*)
9193       ;;
9194
9195     openbsd*)
9196       if test -f /usr/libexec/ld.so; then
9197         hardcode_direct=yes
9198         hardcode_shlibpath_var=no
9199         hardcode_direct_absolute=yes
9200         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9201           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9202           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9203           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9204           export_dynamic_flag_spec='${wl}-E'
9205         else
9206           case $host_os in
9207            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9208              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9209              hardcode_libdir_flag_spec='-R$libdir'
9210              ;;
9211            *)
9212              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9213              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214              ;;
9215           esac
9216         fi
9217       else
9218         ld_shlibs=no
9219       fi
9220       ;;
9221
9222     os2*)
9223       hardcode_libdir_flag_spec='-L$libdir'
9224       hardcode_minus_L=yes
9225       allow_undefined_flag=unsupported
9226       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'
9227       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9228       ;;
9229
9230     osf3*)
9231       if test "$GCC" = yes; then
9232         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9233         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'
9234       else
9235         allow_undefined_flag=' -expect_unresolved \*'
9236         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'
9237       fi
9238       archive_cmds_need_lc='no'
9239       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240       hardcode_libdir_separator=:
9241       ;;
9242
9243     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9244       if test "$GCC" = yes; then
9245         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9246         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'
9247         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9248       else
9249         allow_undefined_flag=' -expect_unresolved \*'
9250         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'
9251         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~
9252         $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'
9253
9254         # Both c and cxx compiler support -rpath directly
9255         hardcode_libdir_flag_spec='-rpath $libdir'
9256       fi
9257       archive_cmds_need_lc='no'
9258       hardcode_libdir_separator=:
9259       ;;
9260
9261     solaris*)
9262       no_undefined_flag=' -z defs'
9263       if test "$GCC" = yes; then
9264         wlarc='${wl}'
9265         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9266         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9267           $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'
9268       else
9269         case `$CC -V 2>&1` in
9270         *"Compilers 5.0"*)
9271           wlarc=''
9272           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9273           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9274           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9275           ;;
9276         *)
9277           wlarc='${wl}'
9278           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9279           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9280           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9281           ;;
9282         esac
9283       fi
9284       hardcode_libdir_flag_spec='-R$libdir'
9285       hardcode_shlibpath_var=no
9286       case $host_os in
9287       solaris2.[0-5] | solaris2.[0-5].*) ;;
9288       *)
9289         # The compiler driver will combine and reorder linker options,
9290         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9291         # but is careful enough not to reorder.
9292         # Supported since Solaris 2.6 (maybe 2.5.1?)
9293         if test "$GCC" = yes; then
9294           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9295         else
9296           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9297         fi
9298         ;;
9299       esac
9300       link_all_deplibs=yes
9301       ;;
9302
9303     sunos4*)
9304       if test "x$host_vendor" = xsequent; then
9305         # Use $CC to link under sequent, because it throws in some extra .o
9306         # files that make .init and .fini sections work.
9307         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9308       else
9309         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9310       fi
9311       hardcode_libdir_flag_spec='-L$libdir'
9312       hardcode_direct=yes
9313       hardcode_minus_L=yes
9314       hardcode_shlibpath_var=no
9315       ;;
9316
9317     sysv4)
9318       case $host_vendor in
9319         sni)
9320           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9321           hardcode_direct=yes # is this really true???
9322         ;;
9323         siemens)
9324           ## LD is ld it makes a PLAMLIB
9325           ## CC just makes a GrossModule.
9326           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9327           reload_cmds='$CC -r -o $output$reload_objs'
9328           hardcode_direct=no
9329         ;;
9330         motorola)
9331           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9332           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9333         ;;
9334       esac
9335       runpath_var='LD_RUN_PATH'
9336       hardcode_shlibpath_var=no
9337       ;;
9338
9339     sysv4.3*)
9340       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9341       hardcode_shlibpath_var=no
9342       export_dynamic_flag_spec='-Bexport'
9343       ;;
9344
9345     sysv4*MP*)
9346       if test -d /usr/nec; then
9347         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9348         hardcode_shlibpath_var=no
9349         runpath_var=LD_RUN_PATH
9350         hardcode_runpath_var=yes
9351         ld_shlibs=yes
9352       fi
9353       ;;
9354
9355     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9356       no_undefined_flag='${wl}-z,text'
9357       archive_cmds_need_lc=no
9358       hardcode_shlibpath_var=no
9359       runpath_var='LD_RUN_PATH'
9360
9361       if test "$GCC" = yes; then
9362         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364       else
9365         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367       fi
9368       ;;
9369
9370     sysv5* | sco3.2v5* | sco5v6*)
9371       # Note: We can NOT use -z defs as we might desire, because we do not
9372       # link with -lc, and that would cause any symbols used from libc to
9373       # always be unresolved, which means just about no library would
9374       # ever link correctly.  If we're not using GNU ld we use -z text
9375       # though, which does catch some bad symbols but isn't as heavy-handed
9376       # as -z defs.
9377       no_undefined_flag='${wl}-z,text'
9378       allow_undefined_flag='${wl}-z,nodefs'
9379       archive_cmds_need_lc=no
9380       hardcode_shlibpath_var=no
9381       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9382       hardcode_libdir_separator=':'
9383       link_all_deplibs=yes
9384       export_dynamic_flag_spec='${wl}-Bexport'
9385       runpath_var='LD_RUN_PATH'
9386
9387       if test "$GCC" = yes; then
9388         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390       else
9391         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393       fi
9394       ;;
9395
9396     uts4*)
9397       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9398       hardcode_libdir_flag_spec='-L$libdir'
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     *)
9403       ld_shlibs=no
9404       ;;
9405     esac
9406
9407     if test x$host_vendor = xsni; then
9408       case $host in
9409       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9410         export_dynamic_flag_spec='${wl}-Blargedynsym'
9411         ;;
9412       esac
9413     fi
9414   fi
9415
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9417 $as_echo "$ld_shlibs" >&6; }
9418 test "$ld_shlibs" = no && can_build_shared=no
9419
9420 with_gnu_ld=$with_gnu_ld
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436 #
9437 # Do we need to explicitly link libc?
9438 #
9439 case "x$archive_cmds_need_lc" in
9440 x|xyes)
9441   # Assume -lc should be added
9442   archive_cmds_need_lc=yes
9443
9444   if test "$enable_shared" = yes && test "$GCC" = yes; then
9445     case $archive_cmds in
9446     *'~'*)
9447       # FIXME: we may have to deal with multi-command sequences.
9448       ;;
9449     '$CC '*)
9450       # Test whether the compiler implicitly links with -lc since on some
9451       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9452       # to ld, don't add -lc before -lgcc.
9453       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9454 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9455 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9456   $as_echo_n "(cached) " >&6
9457 else
9458   $RM conftest*
9459         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9460
9461         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9462   (eval $ac_compile) 2>&5
9463   ac_status=$?
9464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465   test $ac_status = 0; } 2>conftest.err; then
9466           soname=conftest
9467           lib=conftest
9468           libobjs=conftest.$ac_objext
9469           deplibs=
9470           wl=$lt_prog_compiler_wl
9471           pic_flag=$lt_prog_compiler_pic
9472           compiler_flags=-v
9473           linker_flags=-v
9474           verstring=
9475           output_objdir=.
9476           libname=conftest
9477           lt_save_allow_undefined_flag=$allow_undefined_flag
9478           allow_undefined_flag=
9479           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9480   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9481   ac_status=$?
9482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9483   test $ac_status = 0; }
9484           then
9485             lt_cv_archive_cmds_need_lc=no
9486           else
9487             lt_cv_archive_cmds_need_lc=yes
9488           fi
9489           allow_undefined_flag=$lt_save_allow_undefined_flag
9490         else
9491           cat conftest.err 1>&5
9492         fi
9493         $RM conftest*
9494
9495 fi
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9497 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9498       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9499       ;;
9500     esac
9501   fi
9502   ;;
9503 esac
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9657 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9658
9659 if test "$GCC" = yes; then
9660   case $host_os in
9661     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9662     *) lt_awk_arg="/^libraries:/" ;;
9663   esac
9664   case $host_os in
9665     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9666     *) lt_sed_strip_eq="s,=/,/,g" ;;
9667   esac
9668   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9669   case $lt_search_path_spec in
9670   *\;*)
9671     # if the path contains ";" then we assume it to be the separator
9672     # otherwise default to the standard path separator (i.e. ":") - it is
9673     # assumed that no part of a normal pathname contains ";" but that should
9674     # okay in the real world where ";" in dirpaths is itself problematic.
9675     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9676     ;;
9677   *)
9678     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9679     ;;
9680   esac
9681   # Ok, now we have the path, separated by spaces, we can step through it
9682   # and add multilib dir if necessary.
9683   lt_tmp_lt_search_path_spec=
9684   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9685   for lt_sys_path in $lt_search_path_spec; do
9686     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9687       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9688     else
9689       test -d "$lt_sys_path" && \
9690         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9691     fi
9692   done
9693   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9694 BEGIN {RS=" "; FS="/|\n";} {
9695   lt_foo="";
9696   lt_count=0;
9697   for (lt_i = NF; lt_i > 0; lt_i--) {
9698     if ($lt_i != "" && $lt_i != ".") {
9699       if ($lt_i == "..") {
9700         lt_count++;
9701       } else {
9702         if (lt_count == 0) {
9703           lt_foo="/" $lt_i lt_foo;
9704         } else {
9705           lt_count--;
9706         }
9707       }
9708     }
9709   }
9710   if (lt_foo != "") { lt_freq[lt_foo]++; }
9711   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9712 }'`
9713   # AWK program above erroneously prepends '/' to C:/dos/paths
9714   # for these hosts.
9715   case $host_os in
9716     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9717       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9718   esac
9719   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9720 else
9721   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9722 fi
9723 library_names_spec=
9724 libname_spec='lib$name'
9725 soname_spec=
9726 shrext_cmds=".so"
9727 postinstall_cmds=
9728 postuninstall_cmds=
9729 finish_cmds=
9730 finish_eval=
9731 shlibpath_var=
9732 shlibpath_overrides_runpath=unknown
9733 version_type=none
9734 dynamic_linker="$host_os ld.so"
9735 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9736 need_lib_prefix=unknown
9737 hardcode_into_libs=no
9738
9739 # when you set need_version to no, make sure it does not cause -set_version
9740 # flags to be left without arguments
9741 need_version=unknown
9742
9743 case $host_os in
9744 aix3*)
9745   version_type=linux # correct to gnu/linux during the next big refactor
9746   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9747   shlibpath_var=LIBPATH
9748
9749   # AIX 3 has no versioning support, so we append a major version to the name.
9750   soname_spec='${libname}${release}${shared_ext}$major'
9751   ;;
9752
9753 aix[4-9]*)
9754   version_type=linux # correct to gnu/linux during the next big refactor
9755   need_lib_prefix=no
9756   need_version=no
9757   hardcode_into_libs=yes
9758   if test "$host_cpu" = ia64; then
9759     # AIX 5 supports IA64
9760     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9761     shlibpath_var=LD_LIBRARY_PATH
9762   else
9763     # With GCC up to 2.95.x, collect2 would create an import file
9764     # for dependence libraries.  The import file would start with
9765     # the line `#! .'.  This would cause the generated library to
9766     # depend on `.', always an invalid library.  This was fixed in
9767     # development snapshots of GCC prior to 3.0.
9768     case $host_os in
9769       aix4 | aix4.[01] | aix4.[01].*)
9770       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9771            echo ' yes '
9772            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9773         :
9774       else
9775         can_build_shared=no
9776       fi
9777       ;;
9778     esac
9779     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9780     # soname into executable. Probably we can add versioning support to
9781     # collect2, so additional links can be useful in future.
9782     if test "$aix_use_runtimelinking" = yes; then
9783       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9784       # instead of lib<name>.a to let people know that these are not
9785       # typical AIX shared libraries.
9786       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787     else
9788       # We preserve .a as extension for shared libraries through AIX4.2
9789       # and later when we are not doing run time linking.
9790       library_names_spec='${libname}${release}.a $libname.a'
9791       soname_spec='${libname}${release}${shared_ext}$major'
9792     fi
9793     shlibpath_var=LIBPATH
9794   fi
9795   ;;
9796
9797 amigaos*)
9798   case $host_cpu in
9799   powerpc)
9800     # Since July 2007 AmigaOS4 officially supports .so libraries.
9801     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803     ;;
9804   m68k)
9805     library_names_spec='$libname.ixlibrary $libname.a'
9806     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9807     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'
9808     ;;
9809   esac
9810   ;;
9811
9812 beos*)
9813   library_names_spec='${libname}${shared_ext}'
9814   dynamic_linker="$host_os ld.so"
9815   shlibpath_var=LIBRARY_PATH
9816   ;;
9817
9818 bsdi[45]*)
9819   version_type=linux # correct to gnu/linux during the next big refactor
9820   need_version=no
9821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9822   soname_spec='${libname}${release}${shared_ext}$major'
9823   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9824   shlibpath_var=LD_LIBRARY_PATH
9825   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9826   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9827   # the default ld.so.conf also contains /usr/contrib/lib and
9828   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9829   # libtool to hard-code these into programs
9830   ;;
9831
9832 cygwin* | mingw* | pw32* | cegcc*)
9833   version_type=windows
9834   shrext_cmds=".dll"
9835   need_version=no
9836   need_lib_prefix=no
9837
9838   case $GCC,$cc_basename in
9839   yes,*)
9840     # gcc
9841     library_names_spec='$libname.dll.a'
9842     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9843     postinstall_cmds='base_file=`basename \${file}`~
9844       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9845       dldir=$destdir/`dirname \$dlpath`~
9846       test -d \$dldir || mkdir -p \$dldir~
9847       $install_prog $dir/$dlname \$dldir/$dlname~
9848       chmod a+x \$dldir/$dlname~
9849       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9850         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9851       fi'
9852     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9853       dlpath=$dir/\$dldll~
9854        $RM \$dlpath'
9855     shlibpath_overrides_runpath=yes
9856
9857     case $host_os in
9858     cygwin*)
9859       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9860       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9861
9862       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9863       ;;
9864     mingw* | cegcc*)
9865       # MinGW DLLs use traditional 'lib' prefix
9866       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9867       ;;
9868     pw32*)
9869       # pw32 DLLs use 'pw' prefix rather than 'lib'
9870       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9871       ;;
9872     esac
9873     dynamic_linker='Win32 ld.exe'
9874     ;;
9875
9876   *,cl*)
9877     # Native MSVC
9878     libname_spec='$name'
9879     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9880     library_names_spec='${libname}.dll.lib'
9881
9882     case $build_os in
9883     mingw*)
9884       sys_lib_search_path_spec=
9885       lt_save_ifs=$IFS
9886       IFS=';'
9887       for lt_path in $LIB
9888       do
9889         IFS=$lt_save_ifs
9890         # Let DOS variable expansion print the short 8.3 style file name.
9891         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
9892         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
9893       done
9894       IFS=$lt_save_ifs
9895       # Convert to MSYS style.
9896       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
9897       ;;
9898     cygwin*)
9899       # Convert to unix form, then to dos form, then back to unix form
9900       # but this time dos style (no spaces!) so that the unix form looks
9901       # like /cygdrive/c/PROGRA~1:/cygdr...
9902       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
9903       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
9904       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9905       ;;
9906     *)
9907       sys_lib_search_path_spec="$LIB"
9908       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9909         # It is most probably a Windows format PATH.
9910         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9911       else
9912         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9913       fi
9914       # FIXME: find the short name or the path components, as spaces are
9915       # common. (e.g. "Program Files" -> "PROGRA~1")
9916       ;;
9917     esac
9918
9919     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9920     postinstall_cmds='base_file=`basename \${file}`~
9921       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9922       dldir=$destdir/`dirname \$dlpath`~
9923       test -d \$dldir || mkdir -p \$dldir~
9924       $install_prog $dir/$dlname \$dldir/$dlname'
9925     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9926       dlpath=$dir/\$dldll~
9927        $RM \$dlpath'
9928     shlibpath_overrides_runpath=yes
9929     dynamic_linker='Win32 link.exe'
9930     ;;
9931
9932   *)
9933     # Assume MSVC wrapper
9934     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9935     dynamic_linker='Win32 ld.exe'
9936     ;;
9937   esac
9938   # FIXME: first we should search . and the directory the executable is in
9939   shlibpath_var=PATH
9940   ;;
9941
9942 darwin* | rhapsody*)
9943   dynamic_linker="$host_os dyld"
9944   version_type=darwin
9945   need_lib_prefix=no
9946   need_version=no
9947   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9948   soname_spec='${libname}${release}${major}$shared_ext'
9949   shlibpath_overrides_runpath=yes
9950   shlibpath_var=DYLD_LIBRARY_PATH
9951   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9952
9953   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9954   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9955   ;;
9956
9957 dgux*)
9958   version_type=linux # correct to gnu/linux during the next big refactor
9959   need_lib_prefix=no
9960   need_version=no
9961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9962   soname_spec='${libname}${release}${shared_ext}$major'
9963   shlibpath_var=LD_LIBRARY_PATH
9964   ;;
9965
9966 freebsd* | dragonfly*)
9967   # DragonFly does not have aout.  When/if they implement a new
9968   # versioning mechanism, adjust this.
9969   if test -x /usr/bin/objformat; then
9970     objformat=`/usr/bin/objformat`
9971   else
9972     case $host_os in
9973     freebsd[23].*) objformat=aout ;;
9974     *) objformat=elf ;;
9975     esac
9976   fi
9977   version_type=freebsd-$objformat
9978   case $version_type in
9979     freebsd-elf*)
9980       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9981       need_version=no
9982       need_lib_prefix=no
9983       ;;
9984     freebsd-*)
9985       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9986       need_version=yes
9987       ;;
9988   esac
9989   shlibpath_var=LD_LIBRARY_PATH
9990   case $host_os in
9991   freebsd2.*)
9992     shlibpath_overrides_runpath=yes
9993     ;;
9994   freebsd3.[01]* | freebsdelf3.[01]*)
9995     shlibpath_overrides_runpath=yes
9996     hardcode_into_libs=yes
9997     ;;
9998   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9999   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10000     shlibpath_overrides_runpath=no
10001     hardcode_into_libs=yes
10002     ;;
10003   *) # from 4.6 on, and DragonFly
10004     shlibpath_overrides_runpath=yes
10005     hardcode_into_libs=yes
10006     ;;
10007   esac
10008   ;;
10009
10010 gnu*)
10011   version_type=linux # correct to gnu/linux during the next big refactor
10012   need_lib_prefix=no
10013   need_version=no
10014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015   soname_spec='${libname}${release}${shared_ext}$major'
10016   shlibpath_var=LD_LIBRARY_PATH
10017   shlibpath_overrides_runpath=no
10018   hardcode_into_libs=yes
10019   ;;
10020
10021 haiku*)
10022   version_type=linux # correct to gnu/linux during the next big refactor
10023   need_lib_prefix=no
10024   need_version=no
10025   dynamic_linker="$host_os runtime_loader"
10026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10027   soname_spec='${libname}${release}${shared_ext}$major'
10028   shlibpath_var=LIBRARY_PATH
10029   shlibpath_overrides_runpath=yes
10030   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10031   hardcode_into_libs=yes
10032   ;;
10033
10034 hpux9* | hpux10* | hpux11*)
10035   # Give a soname corresponding to the major version so that dld.sl refuses to
10036   # link against other versions.
10037   version_type=sunos
10038   need_lib_prefix=no
10039   need_version=no
10040   case $host_cpu in
10041   ia64*)
10042     shrext_cmds='.so'
10043     hardcode_into_libs=yes
10044     dynamic_linker="$host_os dld.so"
10045     shlibpath_var=LD_LIBRARY_PATH
10046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10048     soname_spec='${libname}${release}${shared_ext}$major'
10049     if test "X$HPUX_IA64_MODE" = X32; then
10050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10051     else
10052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10053     fi
10054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10055     ;;
10056   hppa*64*)
10057     shrext_cmds='.sl'
10058     hardcode_into_libs=yes
10059     dynamic_linker="$host_os dld.sl"
10060     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10066     ;;
10067   *)
10068     shrext_cmds='.sl'
10069     dynamic_linker="$host_os dld.sl"
10070     shlibpath_var=SHLIB_PATH
10071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10073     soname_spec='${libname}${release}${shared_ext}$major'
10074     ;;
10075   esac
10076   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10077   postinstall_cmds='chmod 555 $lib'
10078   # or fails outright, so override atomically:
10079   install_override_mode=555
10080   ;;
10081
10082 interix[3-9]*)
10083   version_type=linux # correct to gnu/linux during the next big refactor
10084   need_lib_prefix=no
10085   need_version=no
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10089   shlibpath_var=LD_LIBRARY_PATH
10090   shlibpath_overrides_runpath=no
10091   hardcode_into_libs=yes
10092   ;;
10093
10094 irix5* | irix6* | nonstopux*)
10095   case $host_os in
10096     nonstopux*) version_type=nonstopux ;;
10097     *)
10098         if test "$lt_cv_prog_gnu_ld" = yes; then
10099                 version_type=linux # correct to gnu/linux during the next big refactor
10100         else
10101                 version_type=irix
10102         fi ;;
10103   esac
10104   need_lib_prefix=no
10105   need_version=no
10106   soname_spec='${libname}${release}${shared_ext}$major'
10107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10108   case $host_os in
10109   irix5* | nonstopux*)
10110     libsuff= shlibsuff=
10111     ;;
10112   *)
10113     case $LD in # libtool.m4 will add one of these switches to LD
10114     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10115       libsuff= shlibsuff= libmagic=32-bit;;
10116     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10117       libsuff=32 shlibsuff=N32 libmagic=N32;;
10118     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10119       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10120     *) libsuff= shlibsuff= libmagic=never-match;;
10121     esac
10122     ;;
10123   esac
10124   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10125   shlibpath_overrides_runpath=no
10126   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10127   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10128   hardcode_into_libs=yes
10129   ;;
10130
10131 # No shared lib support for Linux oldld, aout, or coff.
10132 linux*oldld* | linux*aout* | linux*coff*)
10133   dynamic_linker=no
10134   ;;
10135
10136 # This must be glibc/ELF.
10137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10138   version_type=linux # correct to gnu/linux during the next big refactor
10139   need_lib_prefix=no
10140   need_version=no
10141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10142   soname_spec='${libname}${release}${shared_ext}$major'
10143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10144   shlibpath_var=LD_LIBRARY_PATH
10145   shlibpath_overrides_runpath=no
10146
10147   # Some binutils ld are patched to set DT_RUNPATH
10148   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   lt_cv_shlibpath_overrides_runpath=no
10152     save_LDFLAGS=$LDFLAGS
10153     save_libdir=$libdir
10154     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10155          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10157 /* end confdefs.h.  */
10158
10159 int
10160 main ()
10161 {
10162
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 if ac_fn_c_try_link "$LINENO"; then :
10168   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10169   lt_cv_shlibpath_overrides_runpath=yes
10170 fi
10171 fi
10172 rm -f core conftest.err conftest.$ac_objext \
10173     conftest$ac_exeext conftest.$ac_ext
10174     LDFLAGS=$save_LDFLAGS
10175     libdir=$save_libdir
10176
10177 fi
10178
10179   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10180
10181   # This implies no fast_install, which is unacceptable.
10182   # Some rework will be needed to allow for fast_install
10183   # before this can be enabled.
10184   hardcode_into_libs=yes
10185
10186   # Append ld.so.conf contents to the search path
10187   if test -f /etc/ld.so.conf; then
10188     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' ' '`
10189     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10190   fi
10191
10192   # We used to test for /lib/ld.so.1 and disable shared libraries on
10193   # powerpc, because MkLinux only supported shared libraries with the
10194   # GNU dynamic linker.  Since this was broken with cross compilers,
10195   # most powerpc-linux boxes support dynamic linking these days and
10196   # people can always --disable-shared, the test was removed, and we
10197   # assume the GNU/Linux dynamic linker is in use.
10198   dynamic_linker='GNU/Linux ld.so'
10199   ;;
10200
10201 netbsdelf*-gnu)
10202   version_type=linux
10203   need_lib_prefix=no
10204   need_version=no
10205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10206   soname_spec='${libname}${release}${shared_ext}$major'
10207   shlibpath_var=LD_LIBRARY_PATH
10208   shlibpath_overrides_runpath=no
10209   hardcode_into_libs=yes
10210   dynamic_linker='NetBSD ld.elf_so'
10211   ;;
10212
10213 netbsd*)
10214   version_type=sunos
10215   need_lib_prefix=no
10216   need_version=no
10217   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10219     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10220     dynamic_linker='NetBSD (a.out) ld.so'
10221   else
10222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10223     soname_spec='${libname}${release}${shared_ext}$major'
10224     dynamic_linker='NetBSD ld.elf_so'
10225   fi
10226   shlibpath_var=LD_LIBRARY_PATH
10227   shlibpath_overrides_runpath=yes
10228   hardcode_into_libs=yes
10229   ;;
10230
10231 newsos6)
10232   version_type=linux # correct to gnu/linux during the next big refactor
10233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10234   shlibpath_var=LD_LIBRARY_PATH
10235   shlibpath_overrides_runpath=yes
10236   ;;
10237
10238 *nto* | *qnx*)
10239   version_type=qnx
10240   need_lib_prefix=no
10241   need_version=no
10242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243   soname_spec='${libname}${release}${shared_ext}$major'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=no
10246   hardcode_into_libs=yes
10247   dynamic_linker='ldqnx.so'
10248   ;;
10249
10250 openbsd*)
10251   version_type=sunos
10252   sys_lib_dlsearch_path_spec="/usr/lib"
10253   need_lib_prefix=no
10254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10255   case $host_os in
10256     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10257     *)                          need_version=no  ;;
10258   esac
10259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10261   shlibpath_var=LD_LIBRARY_PATH
10262   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10263     case $host_os in
10264       openbsd2.[89] | openbsd2.[89].*)
10265         shlibpath_overrides_runpath=no
10266         ;;
10267       *)
10268         shlibpath_overrides_runpath=yes
10269         ;;
10270       esac
10271   else
10272     shlibpath_overrides_runpath=yes
10273   fi
10274   ;;
10275
10276 os2*)
10277   libname_spec='$name'
10278   shrext_cmds=".dll"
10279   need_lib_prefix=no
10280   library_names_spec='$libname${shared_ext} $libname.a'
10281   dynamic_linker='OS/2 ld.exe'
10282   shlibpath_var=LIBPATH
10283   ;;
10284
10285 osf3* | osf4* | osf5*)
10286   version_type=osf
10287   need_lib_prefix=no
10288   need_version=no
10289   soname_spec='${libname}${release}${shared_ext}$major'
10290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10291   shlibpath_var=LD_LIBRARY_PATH
10292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10294   ;;
10295
10296 rdos*)
10297   dynamic_linker=no
10298   ;;
10299
10300 solaris*)
10301   version_type=linux # correct to gnu/linux during the next big refactor
10302   need_lib_prefix=no
10303   need_version=no
10304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   shlibpath_var=LD_LIBRARY_PATH
10307   shlibpath_overrides_runpath=yes
10308   hardcode_into_libs=yes
10309   # ldd complains unless libraries are executable
10310   postinstall_cmds='chmod +x $lib'
10311   ;;
10312
10313 sunos4*)
10314   version_type=sunos
10315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10316   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10317   shlibpath_var=LD_LIBRARY_PATH
10318   shlibpath_overrides_runpath=yes
10319   if test "$with_gnu_ld" = yes; then
10320     need_lib_prefix=no
10321   fi
10322   need_version=yes
10323   ;;
10324
10325 sysv4 | sysv4.3*)
10326   version_type=linux # correct to gnu/linux during the next big refactor
10327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10328   soname_spec='${libname}${release}${shared_ext}$major'
10329   shlibpath_var=LD_LIBRARY_PATH
10330   case $host_vendor in
10331     sni)
10332       shlibpath_overrides_runpath=no
10333       need_lib_prefix=no
10334       runpath_var=LD_RUN_PATH
10335       ;;
10336     siemens)
10337       need_lib_prefix=no
10338       ;;
10339     motorola)
10340       need_lib_prefix=no
10341       need_version=no
10342       shlibpath_overrides_runpath=no
10343       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10344       ;;
10345   esac
10346   ;;
10347
10348 sysv4*MP*)
10349   if test -d /usr/nec ;then
10350     version_type=linux # correct to gnu/linux during the next big refactor
10351     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10352     soname_spec='$libname${shared_ext}.$major'
10353     shlibpath_var=LD_LIBRARY_PATH
10354   fi
10355   ;;
10356
10357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10358   version_type=freebsd-elf
10359   need_lib_prefix=no
10360   need_version=no
10361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10362   soname_spec='${libname}${release}${shared_ext}$major'
10363   shlibpath_var=LD_LIBRARY_PATH
10364   shlibpath_overrides_runpath=yes
10365   hardcode_into_libs=yes
10366   if test "$with_gnu_ld" = yes; then
10367     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10368   else
10369     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10370     case $host_os in
10371       sco3.2v5*)
10372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10373         ;;
10374     esac
10375   fi
10376   sys_lib_dlsearch_path_spec='/usr/lib'
10377   ;;
10378
10379 tpf*)
10380   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10381   version_type=linux # correct to gnu/linux during the next big refactor
10382   need_lib_prefix=no
10383   need_version=no
10384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10385   shlibpath_var=LD_LIBRARY_PATH
10386   shlibpath_overrides_runpath=no
10387   hardcode_into_libs=yes
10388   ;;
10389
10390 uts4*)
10391   version_type=linux # correct to gnu/linux during the next big refactor
10392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10393   soname_spec='${libname}${release}${shared_ext}$major'
10394   shlibpath_var=LD_LIBRARY_PATH
10395   ;;
10396
10397 *)
10398   dynamic_linker=no
10399   ;;
10400 esac
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10402 $as_echo "$dynamic_linker" >&6; }
10403 test "$dynamic_linker" = no && can_build_shared=no
10404
10405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10406 if test "$GCC" = yes; then
10407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10408 fi
10409
10410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10411   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10412 fi
10413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10414   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10415 fi
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10509 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10510 hardcode_action=
10511 if test -n "$hardcode_libdir_flag_spec" ||
10512    test -n "$runpath_var" ||
10513    test "X$hardcode_automatic" = "Xyes" ; then
10514
10515   # We can hardcode non-existent directories.
10516   if test "$hardcode_direct" != no &&
10517      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10518      # have to relink, otherwise we might link with an installed library
10519      # when we should be linking with a yet-to-be-installed one
10520      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10521      test "$hardcode_minus_L" != no; then
10522     # Linking always hardcodes the temporary library directory.
10523     hardcode_action=relink
10524   else
10525     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10526     hardcode_action=immediate
10527   fi
10528 else
10529   # We cannot hardcode anything, or else we can only hardcode existing
10530   # directories.
10531   hardcode_action=unsupported
10532 fi
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10534 $as_echo "$hardcode_action" >&6; }
10535
10536 if test "$hardcode_action" = relink ||
10537    test "$inherit_rpath" = yes; then
10538   # Fast installation is not supported
10539   enable_fast_install=no
10540 elif test "$shlibpath_overrides_runpath" = yes ||
10541      test "$enable_shared" = no; then
10542   # Fast installation is not necessary
10543   enable_fast_install=needless
10544 fi
10545
10546
10547
10548
10549
10550
10551   if test "x$enable_dlopen" != xyes; then
10552   enable_dlopen=unknown
10553   enable_dlopen_self=unknown
10554   enable_dlopen_self_static=unknown
10555 else
10556   lt_cv_dlopen=no
10557   lt_cv_dlopen_libs=
10558
10559   case $host_os in
10560   beos*)
10561     lt_cv_dlopen="load_add_on"
10562     lt_cv_dlopen_libs=
10563     lt_cv_dlopen_self=yes
10564     ;;
10565
10566   mingw* | pw32* | cegcc*)
10567     lt_cv_dlopen="LoadLibrary"
10568     lt_cv_dlopen_libs=
10569     ;;
10570
10571   cygwin*)
10572     lt_cv_dlopen="dlopen"
10573     lt_cv_dlopen_libs=
10574     ;;
10575
10576   darwin*)
10577   # if libdl is installed we need to link against it
10578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10580 if ${ac_cv_lib_dl_dlopen+:} false; then :
10581   $as_echo_n "(cached) " >&6
10582 else
10583   ac_check_lib_save_LIBS=$LIBS
10584 LIBS="-ldl  $LIBS"
10585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10586 /* end confdefs.h.  */
10587
10588 /* Override any GCC internal prototype to avoid an error.
10589    Use char because int might match the return type of a GCC
10590    builtin and then its argument prototype would still apply.  */
10591 #ifdef __cplusplus
10592 extern "C"
10593 #endif
10594 char dlopen ();
10595 int
10596 main ()
10597 {
10598 return dlopen ();
10599   ;
10600   return 0;
10601 }
10602 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then :
10604   ac_cv_lib_dl_dlopen=yes
10605 else
10606   ac_cv_lib_dl_dlopen=no
10607 fi
10608 rm -f core conftest.err conftest.$ac_objext \
10609     conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10611 fi
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10614 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10616 else
10617
10618     lt_cv_dlopen="dyld"
10619     lt_cv_dlopen_libs=
10620     lt_cv_dlopen_self=yes
10621
10622 fi
10623
10624     ;;
10625
10626   *)
10627     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10628 if test "x$ac_cv_func_shl_load" = xyes; then :
10629   lt_cv_dlopen="shl_load"
10630 else
10631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10633 if ${ac_cv_lib_dld_shl_load+:} false; then :
10634   $as_echo_n "(cached) " >&6
10635 else
10636   ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-ldld  $LIBS"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h.  */
10640
10641 /* Override any GCC internal prototype to avoid an error.
10642    Use char because int might match the return type of a GCC
10643    builtin and then its argument prototype would still apply.  */
10644 #ifdef __cplusplus
10645 extern "C"
10646 #endif
10647 char shl_load ();
10648 int
10649 main ()
10650 {
10651 return shl_load ();
10652   ;
10653   return 0;
10654 }
10655 _ACEOF
10656 if ac_fn_c_try_link "$LINENO"; then :
10657   ac_cv_lib_dld_shl_load=yes
10658 else
10659   ac_cv_lib_dld_shl_load=no
10660 fi
10661 rm -f core conftest.err conftest.$ac_objext \
10662     conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_lib_save_LIBS
10664 fi
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10668   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10669 else
10670   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10671 if test "x$ac_cv_func_dlopen" = xyes; then :
10672   lt_cv_dlopen="dlopen"
10673 else
10674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10676 if ${ac_cv_lib_dl_dlopen+:} false; then :
10677   $as_echo_n "(cached) " >&6
10678 else
10679   ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-ldl  $LIBS"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682 /* end confdefs.h.  */
10683
10684 /* Override any GCC internal prototype to avoid an error.
10685    Use char because int might match the return type of a GCC
10686    builtin and then its argument prototype would still apply.  */
10687 #ifdef __cplusplus
10688 extern "C"
10689 #endif
10690 char dlopen ();
10691 int
10692 main ()
10693 {
10694 return dlopen ();
10695   ;
10696   return 0;
10697 }
10698 _ACEOF
10699 if ac_fn_c_try_link "$LINENO"; then :
10700   ac_cv_lib_dl_dlopen=yes
10701 else
10702   ac_cv_lib_dl_dlopen=no
10703 fi
10704 rm -f core conftest.err conftest.$ac_objext \
10705     conftest$ac_exeext conftest.$ac_ext
10706 LIBS=$ac_check_lib_save_LIBS
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10711   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10712 else
10713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10715 if ${ac_cv_lib_svld_dlopen+:} false; then :
10716   $as_echo_n "(cached) " >&6
10717 else
10718   ac_check_lib_save_LIBS=$LIBS
10719 LIBS="-lsvld  $LIBS"
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h.  */
10722
10723 /* Override any GCC internal prototype to avoid an error.
10724    Use char because int might match the return type of a GCC
10725    builtin and then its argument prototype would still apply.  */
10726 #ifdef __cplusplus
10727 extern "C"
10728 #endif
10729 char dlopen ();
10730 int
10731 main ()
10732 {
10733 return dlopen ();
10734   ;
10735   return 0;
10736 }
10737 _ACEOF
10738 if ac_fn_c_try_link "$LINENO"; then :
10739   ac_cv_lib_svld_dlopen=yes
10740 else
10741   ac_cv_lib_svld_dlopen=no
10742 fi
10743 rm -f core conftest.err conftest.$ac_objext \
10744     conftest$ac_exeext conftest.$ac_ext
10745 LIBS=$ac_check_lib_save_LIBS
10746 fi
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10750   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10751 else
10752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10754 if ${ac_cv_lib_dld_dld_link+:} false; then :
10755   $as_echo_n "(cached) " >&6
10756 else
10757   ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-ldld  $LIBS"
10759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10760 /* end confdefs.h.  */
10761
10762 /* Override any GCC internal prototype to avoid an error.
10763    Use char because int might match the return type of a GCC
10764    builtin and then its argument prototype would still apply.  */
10765 #ifdef __cplusplus
10766 extern "C"
10767 #endif
10768 char dld_link ();
10769 int
10770 main ()
10771 {
10772 return dld_link ();
10773   ;
10774   return 0;
10775 }
10776 _ACEOF
10777 if ac_fn_c_try_link "$LINENO"; then :
10778   ac_cv_lib_dld_dld_link=yes
10779 else
10780   ac_cv_lib_dld_dld_link=no
10781 fi
10782 rm -f core conftest.err conftest.$ac_objext \
10783     conftest$ac_exeext conftest.$ac_ext
10784 LIBS=$ac_check_lib_save_LIBS
10785 fi
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10789   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10790 fi
10791
10792
10793 fi
10794
10795
10796 fi
10797
10798
10799 fi
10800
10801
10802 fi
10803
10804
10805 fi
10806
10807     ;;
10808   esac
10809
10810   if test "x$lt_cv_dlopen" != xno; then
10811     enable_dlopen=yes
10812   else
10813     enable_dlopen=no
10814   fi
10815
10816   case $lt_cv_dlopen in
10817   dlopen)
10818     save_CPPFLAGS="$CPPFLAGS"
10819     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10820
10821     save_LDFLAGS="$LDFLAGS"
10822     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10823
10824     save_LIBS="$LIBS"
10825     LIBS="$lt_cv_dlopen_libs $LIBS"
10826
10827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10829 if ${lt_cv_dlopen_self+:} false; then :
10830   $as_echo_n "(cached) " >&6
10831 else
10832           if test "$cross_compiling" = yes; then :
10833   lt_cv_dlopen_self=cross
10834 else
10835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10836   lt_status=$lt_dlunknown
10837   cat > conftest.$ac_ext <<_LT_EOF
10838 #line $LINENO "configure"
10839 #include "confdefs.h"
10840
10841 #if HAVE_DLFCN_H
10842 #include <dlfcn.h>
10843 #endif
10844
10845 #include <stdio.h>
10846
10847 #ifdef RTLD_GLOBAL
10848 #  define LT_DLGLOBAL           RTLD_GLOBAL
10849 #else
10850 #  ifdef DL_GLOBAL
10851 #    define LT_DLGLOBAL         DL_GLOBAL
10852 #  else
10853 #    define LT_DLGLOBAL         0
10854 #  endif
10855 #endif
10856
10857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10858    find out it does not work in some platform. */
10859 #ifndef LT_DLLAZY_OR_NOW
10860 #  ifdef RTLD_LAZY
10861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10862 #  else
10863 #    ifdef DL_LAZY
10864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10865 #    else
10866 #      ifdef RTLD_NOW
10867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10868 #      else
10869 #        ifdef DL_NOW
10870 #          define LT_DLLAZY_OR_NOW      DL_NOW
10871 #        else
10872 #          define LT_DLLAZY_OR_NOW      0
10873 #        endif
10874 #      endif
10875 #    endif
10876 #  endif
10877 #endif
10878
10879 /* When -fvisbility=hidden is used, assume the code has been annotated
10880    correspondingly for the symbols needed.  */
10881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10882 int fnord () __attribute__((visibility("default")));
10883 #endif
10884
10885 int fnord () { return 42; }
10886 int main ()
10887 {
10888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10889   int status = $lt_dlunknown;
10890
10891   if (self)
10892     {
10893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10894       else
10895         {
10896           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10897           else puts (dlerror ());
10898         }
10899       /* dlclose (self); */
10900     }
10901   else
10902     puts (dlerror ());
10903
10904   return status;
10905 }
10906 _LT_EOF
10907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10908   (eval $ac_link) 2>&5
10909   ac_status=$?
10910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10911   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10912     (./conftest; exit; ) >&5 2>/dev/null
10913     lt_status=$?
10914     case x$lt_status in
10915       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10916       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10917       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10918     esac
10919   else :
10920     # compilation failed
10921     lt_cv_dlopen_self=no
10922   fi
10923 fi
10924 rm -fr conftest*
10925
10926
10927 fi
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10929 $as_echo "$lt_cv_dlopen_self" >&6; }
10930
10931     if test "x$lt_cv_dlopen_self" = xyes; then
10932       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10933       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10934 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10935 if ${lt_cv_dlopen_self_static+:} false; then :
10936   $as_echo_n "(cached) " >&6
10937 else
10938           if test "$cross_compiling" = yes; then :
10939   lt_cv_dlopen_self_static=cross
10940 else
10941   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10942   lt_status=$lt_dlunknown
10943   cat > conftest.$ac_ext <<_LT_EOF
10944 #line $LINENO "configure"
10945 #include "confdefs.h"
10946
10947 #if HAVE_DLFCN_H
10948 #include <dlfcn.h>
10949 #endif
10950
10951 #include <stdio.h>
10952
10953 #ifdef RTLD_GLOBAL
10954 #  define LT_DLGLOBAL           RTLD_GLOBAL
10955 #else
10956 #  ifdef DL_GLOBAL
10957 #    define LT_DLGLOBAL         DL_GLOBAL
10958 #  else
10959 #    define LT_DLGLOBAL         0
10960 #  endif
10961 #endif
10962
10963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10964    find out it does not work in some platform. */
10965 #ifndef LT_DLLAZY_OR_NOW
10966 #  ifdef RTLD_LAZY
10967 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10968 #  else
10969 #    ifdef DL_LAZY
10970 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10971 #    else
10972 #      ifdef RTLD_NOW
10973 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10974 #      else
10975 #        ifdef DL_NOW
10976 #          define LT_DLLAZY_OR_NOW      DL_NOW
10977 #        else
10978 #          define LT_DLLAZY_OR_NOW      0
10979 #        endif
10980 #      endif
10981 #    endif
10982 #  endif
10983 #endif
10984
10985 /* When -fvisbility=hidden is used, assume the code has been annotated
10986    correspondingly for the symbols needed.  */
10987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10988 int fnord () __attribute__((visibility("default")));
10989 #endif
10990
10991 int fnord () { return 42; }
10992 int main ()
10993 {
10994   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10995   int status = $lt_dlunknown;
10996
10997   if (self)
10998     {
10999       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11000       else
11001         {
11002           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11003           else puts (dlerror ());
11004         }
11005       /* dlclose (self); */
11006     }
11007   else
11008     puts (dlerror ());
11009
11010   return status;
11011 }
11012 _LT_EOF
11013   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11014   (eval $ac_link) 2>&5
11015   ac_status=$?
11016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11017   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11018     (./conftest; exit; ) >&5 2>/dev/null
11019     lt_status=$?
11020     case x$lt_status in
11021       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11022       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11023       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11024     esac
11025   else :
11026     # compilation failed
11027     lt_cv_dlopen_self_static=no
11028   fi
11029 fi
11030 rm -fr conftest*
11031
11032
11033 fi
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11036     fi
11037
11038     CPPFLAGS="$save_CPPFLAGS"
11039     LDFLAGS="$save_LDFLAGS"
11040     LIBS="$save_LIBS"
11041     ;;
11042   esac
11043
11044   case $lt_cv_dlopen_self in
11045   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11046   *) enable_dlopen_self=unknown ;;
11047   esac
11048
11049   case $lt_cv_dlopen_self_static in
11050   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11051   *) enable_dlopen_self_static=unknown ;;
11052   esac
11053 fi
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071 striplib=
11072 old_striplib=
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11076   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11077   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11079 $as_echo "yes" >&6; }
11080 else
11081 # FIXME - insert some real tests, host_os isn't really good enough
11082   case $host_os in
11083   darwin*)
11084     if test -n "$STRIP" ; then
11085       striplib="$STRIP -x"
11086       old_striplib="$STRIP -S"
11087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11088 $as_echo "yes" >&6; }
11089     else
11090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11091 $as_echo "no" >&6; }
11092     fi
11093     ;;
11094   *)
11095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11096 $as_echo "no" >&6; }
11097     ;;
11098   esac
11099 fi
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112   # Report which library types will actually be built
11113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11116 $as_echo "$can_build_shared" >&6; }
11117
11118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11119 $as_echo_n "checking whether to build shared libraries... " >&6; }
11120   test "$can_build_shared" = "no" && enable_shared=no
11121
11122   # On AIX, shared libraries and static libraries use the same namespace, and
11123   # are all built from PIC.
11124   case $host_os in
11125   aix3*)
11126     test "$enable_shared" = yes && enable_static=no
11127     if test -n "$RANLIB"; then
11128       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11129       postinstall_cmds='$RANLIB $lib'
11130     fi
11131     ;;
11132
11133   aix[4-9]*)
11134     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11135       test "$enable_shared" = yes && enable_static=no
11136     fi
11137     ;;
11138   esac
11139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11140 $as_echo "$enable_shared" >&6; }
11141
11142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11143 $as_echo_n "checking whether to build static libraries... " >&6; }
11144   # Make sure either enable_shared or enable_static is yes.
11145   test "$enable_shared" = yes || enable_static=yes
11146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11147 $as_echo "$enable_static" >&6; }
11148
11149
11150
11151
11152 fi
11153 ac_ext=c
11154 ac_cpp='$CPP $CPPFLAGS'
11155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11158
11159 CC="$lt_save_CC"
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175         ac_config_commands="$ac_config_commands libtool"
11176
11177
11178
11179
11180 # Only expand once:
11181
11182
11183 ac_ext=c
11184 ac_cpp='$CPP $CPPFLAGS'
11185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11188 if test -n "$ac_tool_prefix"; then
11189   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11192 $as_echo_n "checking for $ac_word... " >&6; }
11193 if ${ac_cv_prog_CC+:} false; then :
11194   $as_echo_n "(cached) " >&6
11195 else
11196   if test -n "$CC"; then
11197   ac_cv_prog_CC="$CC" # Let the user override the test.
11198 else
11199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11200 for as_dir in $PATH
11201 do
11202   IFS=$as_save_IFS
11203   test -z "$as_dir" && as_dir=.
11204     for ac_exec_ext in '' $ac_executable_extensions; do
11205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11206     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208     break 2
11209   fi
11210 done
11211   done
11212 IFS=$as_save_IFS
11213
11214 fi
11215 fi
11216 CC=$ac_cv_prog_CC
11217 if test -n "$CC"; then
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11219 $as_echo "$CC" >&6; }
11220 else
11221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11222 $as_echo "no" >&6; }
11223 fi
11224
11225
11226 fi
11227 if test -z "$ac_cv_prog_CC"; then
11228   ac_ct_CC=$CC
11229   # Extract the first word of "gcc", so it can be a program name with args.
11230 set dummy gcc; ac_word=$2
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11232 $as_echo_n "checking for $ac_word... " >&6; }
11233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11234   $as_echo_n "(cached) " >&6
11235 else
11236   if test -n "$ac_ct_CC"; then
11237   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11238 else
11239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11240 for as_dir in $PATH
11241 do
11242   IFS=$as_save_IFS
11243   test -z "$as_dir" && as_dir=.
11244     for ac_exec_ext in '' $ac_executable_extensions; do
11245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11246     ac_cv_prog_ac_ct_CC="gcc"
11247     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248     break 2
11249   fi
11250 done
11251   done
11252 IFS=$as_save_IFS
11253
11254 fi
11255 fi
11256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11257 if test -n "$ac_ct_CC"; then
11258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11259 $as_echo "$ac_ct_CC" >&6; }
11260 else
11261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11262 $as_echo "no" >&6; }
11263 fi
11264
11265   if test "x$ac_ct_CC" = x; then
11266     CC=""
11267   else
11268     case $cross_compiling:$ac_tool_warned in
11269 yes:)
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11272 ac_tool_warned=yes ;;
11273 esac
11274     CC=$ac_ct_CC
11275   fi
11276 else
11277   CC="$ac_cv_prog_CC"
11278 fi
11279
11280 if test -z "$CC"; then
11281           if test -n "$ac_tool_prefix"; then
11282     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11283 set dummy ${ac_tool_prefix}cc; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11285 $as_echo_n "checking for $ac_word... " >&6; }
11286 if ${ac_cv_prog_CC+:} false; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   if test -n "$CC"; then
11290   ac_cv_prog_CC="$CC" # Let the user override the test.
11291 else
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11294 do
11295   IFS=$as_save_IFS
11296   test -z "$as_dir" && as_dir=.
11297     for ac_exec_ext in '' $ac_executable_extensions; do
11298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11299     ac_cv_prog_CC="${ac_tool_prefix}cc"
11300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301     break 2
11302   fi
11303 done
11304   done
11305 IFS=$as_save_IFS
11306
11307 fi
11308 fi
11309 CC=$ac_cv_prog_CC
11310 if test -n "$CC"; then
11311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11312 $as_echo "$CC" >&6; }
11313 else
11314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11315 $as_echo "no" >&6; }
11316 fi
11317
11318
11319   fi
11320 fi
11321 if test -z "$CC"; then
11322   # Extract the first word of "cc", so it can be a program name with args.
11323 set dummy cc; ac_word=$2
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11325 $as_echo_n "checking for $ac_word... " >&6; }
11326 if ${ac_cv_prog_CC+:} false; then :
11327   $as_echo_n "(cached) " >&6
11328 else
11329   if test -n "$CC"; then
11330   ac_cv_prog_CC="$CC" # Let the user override the test.
11331 else
11332   ac_prog_rejected=no
11333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11334 for as_dir in $PATH
11335 do
11336   IFS=$as_save_IFS
11337   test -z "$as_dir" && as_dir=.
11338     for ac_exec_ext in '' $ac_executable_extensions; do
11339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11340     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11341        ac_prog_rejected=yes
11342        continue
11343      fi
11344     ac_cv_prog_CC="cc"
11345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11346     break 2
11347   fi
11348 done
11349   done
11350 IFS=$as_save_IFS
11351
11352 if test $ac_prog_rejected = yes; then
11353   # We found a bogon in the path, so make sure we never use it.
11354   set dummy $ac_cv_prog_CC
11355   shift
11356   if test $# != 0; then
11357     # We chose a different compiler from the bogus one.
11358     # However, it has the same basename, so the bogon will be chosen
11359     # first if we set CC to just the basename; use the full file name.
11360     shift
11361     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11362   fi
11363 fi
11364 fi
11365 fi
11366 CC=$ac_cv_prog_CC
11367 if test -n "$CC"; then
11368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11369 $as_echo "$CC" >&6; }
11370 else
11371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11372 $as_echo "no" >&6; }
11373 fi
11374
11375
11376 fi
11377 if test -z "$CC"; then
11378   if test -n "$ac_tool_prefix"; then
11379   for ac_prog in cl.exe
11380   do
11381     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11384 $as_echo_n "checking for $ac_word... " >&6; }
11385 if ${ac_cv_prog_CC+:} false; then :
11386   $as_echo_n "(cached) " >&6
11387 else
11388   if test -n "$CC"; then
11389   ac_cv_prog_CC="$CC" # Let the user override the test.
11390 else
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11393 do
11394   IFS=$as_save_IFS
11395   test -z "$as_dir" && as_dir=.
11396     for ac_exec_ext in '' $ac_executable_extensions; do
11397   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11398     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11399     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11400     break 2
11401   fi
11402 done
11403   done
11404 IFS=$as_save_IFS
11405
11406 fi
11407 fi
11408 CC=$ac_cv_prog_CC
11409 if test -n "$CC"; then
11410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11411 $as_echo "$CC" >&6; }
11412 else
11413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11414 $as_echo "no" >&6; }
11415 fi
11416
11417
11418     test -n "$CC" && break
11419   done
11420 fi
11421 if test -z "$CC"; then
11422   ac_ct_CC=$CC
11423   for ac_prog in cl.exe
11424 do
11425   # Extract the first word of "$ac_prog", so it can be a program name with args.
11426 set dummy $ac_prog; ac_word=$2
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11428 $as_echo_n "checking for $ac_word... " >&6; }
11429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11430   $as_echo_n "(cached) " >&6
11431 else
11432   if test -n "$ac_ct_CC"; then
11433   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11434 else
11435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436 for as_dir in $PATH
11437 do
11438   IFS=$as_save_IFS
11439   test -z "$as_dir" && as_dir=.
11440     for ac_exec_ext in '' $ac_executable_extensions; do
11441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11442     ac_cv_prog_ac_ct_CC="$ac_prog"
11443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11444     break 2
11445   fi
11446 done
11447   done
11448 IFS=$as_save_IFS
11449
11450 fi
11451 fi
11452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11453 if test -n "$ac_ct_CC"; then
11454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11455 $as_echo "$ac_ct_CC" >&6; }
11456 else
11457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458 $as_echo "no" >&6; }
11459 fi
11460
11461
11462   test -n "$ac_ct_CC" && break
11463 done
11464
11465   if test "x$ac_ct_CC" = x; then
11466     CC=""
11467   else
11468     case $cross_compiling:$ac_tool_warned in
11469 yes:)
11470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11472 ac_tool_warned=yes ;;
11473 esac
11474     CC=$ac_ct_CC
11475   fi
11476 fi
11477
11478 fi
11479
11480
11481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11483 as_fn_error $? "no acceptable C compiler found in \$PATH
11484 See \`config.log' for more details" "$LINENO" 5; }
11485
11486 # Provide some information about the compiler.
11487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
11488 set X $ac_compile
11489 ac_compiler=$2
11490 for ac_option in --version -v -V -qversion; do
11491   { { ac_try="$ac_compiler $ac_option >&5"
11492 case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11497 $as_echo "$ac_try_echo"; } >&5
11498   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11499   ac_status=$?
11500   if test -s conftest.err; then
11501     sed '10a\
11502 ... rest of stderr output deleted ...
11503          10q' conftest.err >conftest.er1
11504     cat conftest.er1 >&5
11505   fi
11506   rm -f conftest.er1 conftest.err
11507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508   test $ac_status = 0; }
11509 done
11510
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
11512 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
11513 if ${ac_cv_c_compiler_gnu+:} false; then :
11514   $as_echo_n "(cached) " >&6
11515 else
11516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h.  */
11518
11519 int
11520 main ()
11521 {
11522 #ifndef __GNUC__
11523        choke me
11524 #endif
11525
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_compile "$LINENO"; then :
11531   ac_compiler_gnu=yes
11532 else
11533   ac_compiler_gnu=no
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11536 ac_cv_c_compiler_gnu=$ac_compiler_gnu
11537
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
11540 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
11541 if test $ac_compiler_gnu = yes; then
11542   GCC=yes
11543 else
11544   GCC=
11545 fi
11546 ac_test_CFLAGS=${CFLAGS+set}
11547 ac_save_CFLAGS=$CFLAGS
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
11549 $as_echo_n "checking whether $CC accepts -g... " >&6; }
11550 if ${ac_cv_prog_cc_g+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   ac_save_c_werror_flag=$ac_c_werror_flag
11554    ac_c_werror_flag=yes
11555    ac_cv_prog_cc_g=no
11556    CFLAGS="-g"
11557    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11558 /* end confdefs.h.  */
11559
11560 int
11561 main ()
11562 {
11563
11564   ;
11565   return 0;
11566 }
11567 _ACEOF
11568 if ac_fn_c_try_compile "$LINENO"; then :
11569   ac_cv_prog_cc_g=yes
11570 else
11571   CFLAGS=""
11572       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11573 /* end confdefs.h.  */
11574
11575 int
11576 main ()
11577 {
11578
11579   ;
11580   return 0;
11581 }
11582 _ACEOF
11583 if ac_fn_c_try_compile "$LINENO"; then :
11584
11585 else
11586   ac_c_werror_flag=$ac_save_c_werror_flag
11587          CFLAGS="-g"
11588          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11589 /* end confdefs.h.  */
11590
11591 int
11592 main ()
11593 {
11594
11595   ;
11596   return 0;
11597 }
11598 _ACEOF
11599 if ac_fn_c_try_compile "$LINENO"; then :
11600   ac_cv_prog_cc_g=yes
11601 fi
11602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11603 fi
11604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11605 fi
11606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11607    ac_c_werror_flag=$ac_save_c_werror_flag
11608 fi
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11610 $as_echo "$ac_cv_prog_cc_g" >&6; }
11611 if test "$ac_test_CFLAGS" = set; then
11612   CFLAGS=$ac_save_CFLAGS
11613 elif test $ac_cv_prog_cc_g = yes; then
11614   if test "$GCC" = yes; then
11615     CFLAGS="-g -O2"
11616   else
11617     CFLAGS="-g"
11618   fi
11619 else
11620   if test "$GCC" = yes; then
11621     CFLAGS="-O2"
11622   else
11623     CFLAGS=
11624   fi
11625 fi
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11627 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11628 if ${ac_cv_prog_cc_c89+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   ac_cv_prog_cc_c89=no
11632 ac_save_CC=$CC
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h.  */
11635 #include <stdarg.h>
11636 #include <stdio.h>
11637 #include <sys/types.h>
11638 #include <sys/stat.h>
11639 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
11640 struct buf { int x; };
11641 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11642 static char *e (p, i)
11643      char **p;
11644      int i;
11645 {
11646   return p[i];
11647 }
11648 static char *f (char * (*g) (char **, int), char **p, ...)
11649 {
11650   char *s;
11651   va_list v;
11652   va_start (v,p);
11653   s = g (p, va_arg (v,int));
11654   va_end (v);
11655   return s;
11656 }
11657
11658 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
11659    function prototypes and stuff, but not '\xHH' hex character constants.
11660    These don't provoke an error unfortunately, instead are silently treated
11661    as 'x'.  The following induces an error, until -std is added to get
11662    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
11663    array size at least.  It's necessary to write '\x00'==0 to get something
11664    that's true only with -std.  */
11665 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11666
11667 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11668    inside strings and character constants.  */
11669 #define FOO(x) 'x'
11670 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11671
11672 int test (int i, double x);
11673 struct s1 {int (*f) (int a);};
11674 struct s2 {int (*f) (double a);};
11675 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11676 int argc;
11677 char **argv;
11678 int
11679 main ()
11680 {
11681 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
11682   ;
11683   return 0;
11684 }
11685 _ACEOF
11686 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11687         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11688 do
11689   CC="$ac_save_CC $ac_arg"
11690   if ac_fn_c_try_compile "$LINENO"; then :
11691   ac_cv_prog_cc_c89=$ac_arg
11692 fi
11693 rm -f core conftest.err conftest.$ac_objext
11694   test "x$ac_cv_prog_cc_c89" != "xno" && break
11695 done
11696 rm -f conftest.$ac_ext
11697 CC=$ac_save_CC
11698
11699 fi
11700 # AC_CACHE_VAL
11701 case "x$ac_cv_prog_cc_c89" in
11702   x)
11703     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11704 $as_echo "none needed" >&6; } ;;
11705   xno)
11706     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11707 $as_echo "unsupported" >&6; } ;;
11708   *)
11709     CC="$CC $ac_cv_prog_cc_c89"
11710     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11711 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11712 esac
11713 if test "x$ac_cv_prog_cc_c89" != xno; then :
11714
11715 fi
11716
11717 ac_ext=c
11718 ac_cpp='$CPP $CPPFLAGS'
11719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11722
11723 depcc="$CC"   am_compiler_list=
11724
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11726 $as_echo_n "checking dependency style of $depcc... " >&6; }
11727 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
11728   $as_echo_n "(cached) " >&6
11729 else
11730   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11731   # We make a subdir and do the tests there.  Otherwise we can end up
11732   # making bogus files that we don't know about and never remove.  For
11733   # instance it was reported that on HP-UX the gcc test will end up
11734   # making a dummy file named `D' -- because `-MD' means `put the output
11735   # in D'.
11736   mkdir conftest.dir
11737   # Copy depcomp to subdir because otherwise we won't find it if we're
11738   # using a relative directory.
11739   cp "$am_depcomp" conftest.dir
11740   cd conftest.dir
11741   # We will build objects and dependencies in a subdirectory because
11742   # it helps to detect inapplicable dependency modes.  For instance
11743   # both Tru64's cc and ICC support -MD to output dependencies as a
11744   # side effect of compilation, but ICC will put the dependencies in
11745   # the current directory while Tru64 will put them in the object
11746   # directory.
11747   mkdir sub
11748
11749   am_cv_CC_dependencies_compiler_type=none
11750   if test "$am_compiler_list" = ""; then
11751      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11752   fi
11753   am__universal=false
11754   case " $depcc " in #(
11755      *\ -arch\ *\ -arch\ *) am__universal=true ;;
11756      esac
11757
11758   for depmode in $am_compiler_list; do
11759     # Setup a source with many dependencies, because some compilers
11760     # like to wrap large dependency lists on column 80 (with \), and
11761     # we should not choose a depcomp mode which is confused by this.
11762     #
11763     # We need to recreate these files for each test, as the compiler may
11764     # overwrite some of them when testing with obscure command lines.
11765     # This happens at least with the AIX C compiler.
11766     : > sub/conftest.c
11767     for i in 1 2 3 4 5 6; do
11768       echo '#include "conftst'$i'.h"' >> sub/conftest.c
11769       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11770       # Solaris 8's {/usr,}/bin/sh.
11771       touch sub/conftst$i.h
11772     done
11773     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11774
11775     # We check with `-c' and `-o' for the sake of the "dashmstdout"
11776     # mode.  It turns out that the SunPro C++ compiler does not properly
11777     # handle `-M -o', and we need to detect this.  Also, some Intel
11778     # versions had trouble with output in subdirs
11779     am__obj=sub/conftest.${OBJEXT-o}
11780     am__minus_obj="-o $am__obj"
11781     case $depmode in
11782     gcc)
11783       # This depmode causes a compiler race in universal mode.
11784       test "$am__universal" = false || continue
11785       ;;
11786     nosideeffect)
11787       # after this tag, mechanisms are not by side-effect, so they'll
11788       # only be used when explicitly requested
11789       if test "x$enable_dependency_tracking" = xyes; then
11790         continue
11791       else
11792         break
11793       fi
11794       ;;
11795     msvisualcpp | msvcmsys)
11796       # This compiler won't grok `-c -o', but also, the minuso test has
11797       # not run yet.  These depmodes are late enough in the game, and
11798       # so weak that their functioning should not be impacted.
11799       am__obj=conftest.${OBJEXT-o}
11800       am__minus_obj=
11801       ;;
11802     none) break ;;
11803     esac
11804     if depmode=$depmode \
11805        source=sub/conftest.c object=$am__obj \
11806        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11807        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11808          >/dev/null 2>conftest.err &&
11809        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11810        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11811        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11812        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11813       # icc doesn't choke on unknown options, it will just issue warnings
11814       # or remarks (even with -Werror).  So we grep stderr for any message
11815       # that says an option was ignored or not supported.
11816       # When given -MP, icc 7.0 and 7.1 complain thusly:
11817       #   icc: Command line warning: ignoring option '-M'; no argument required
11818       # The diagnosis changed in icc 8.0:
11819       #   icc: Command line remark: option '-MP' not supported
11820       if (grep 'ignoring option' conftest.err ||
11821           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11822         am_cv_CC_dependencies_compiler_type=$depmode
11823         break
11824       fi
11825     fi
11826   done
11827
11828   cd ..
11829   rm -rf conftest.dir
11830 else
11831   am_cv_CC_dependencies_compiler_type=none
11832 fi
11833
11834 fi
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11836 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11837 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11838
11839  if
11840   test "x$enable_dependency_tracking" != xno \
11841   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11842   am__fastdepCC_TRUE=
11843   am__fastdepCC_FALSE='#'
11844 else
11845   am__fastdepCC_TRUE='#'
11846   am__fastdepCC_FALSE=
11847 fi
11848
11849
11850
11851 # Extract the first word of "guile", so it can be a program name with args.
11852 set dummy guile; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_path_GUILE+:} false; then :
11856   $as_echo_n "(cached) " >&6
11857 else
11858   case $GUILE in
11859   [\\/]* | ?:[\\/]*)
11860   ac_cv_path_GUILE="$GUILE" # Let the user override the test with a path.
11861   ;;
11862   *)
11863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11865 do
11866   IFS=$as_save_IFS
11867   test -z "$as_dir" && as_dir=.
11868     for ac_exec_ext in '' $ac_executable_extensions; do
11869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11870     ac_cv_path_GUILE="$as_dir/$ac_word$ac_exec_ext"
11871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872     break 2
11873   fi
11874 done
11875   done
11876 IFS=$as_save_IFS
11877
11878   ;;
11879 esac
11880 fi
11881 GUILE=$ac_cv_path_GUILE
11882 if test -n "$GUILE"; then
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE" >&5
11884 $as_echo "$GUILE" >&6; }
11885 else
11886   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11888 fi
11889
11890
11891   if test "$GUILE" = "" ; then
11892       as_fn_error $? "guile required but not found" "$LINENO" 5
11893   fi
11894
11895   # Extract the first word of "guile-config", so it can be a program name with args.
11896 set dummy guile-config; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_path_GUILE_CONFIG+:} false; then :
11900   $as_echo_n "(cached) " >&6
11901 else
11902   case $GUILE_CONFIG in
11903   [\\/]* | ?:[\\/]*)
11904   ac_cv_path_GUILE_CONFIG="$GUILE_CONFIG" # Let the user override the test with a path.
11905   ;;
11906   *)
11907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11908 for as_dir in $PATH
11909 do
11910   IFS=$as_save_IFS
11911   test -z "$as_dir" && as_dir=.
11912     for ac_exec_ext in '' $ac_executable_extensions; do
11913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11914     ac_cv_path_GUILE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11915     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11916     break 2
11917   fi
11918 done
11919   done
11920 IFS=$as_save_IFS
11921
11922   ;;
11923 esac
11924 fi
11925 GUILE_CONFIG=$ac_cv_path_GUILE_CONFIG
11926 if test -n "$GUILE_CONFIG"; then
11927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CONFIG" >&5
11928 $as_echo "$GUILE_CONFIG" >&6; }
11929 else
11930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11931 $as_echo "no" >&6; }
11932 fi
11933
11934
11935   if test "$GUILE_CONFIG" = "" ; then
11936       as_fn_error $? "guile-config required but not found" "$LINENO" 5
11937   fi
11938
11939   # Extract the first word of "guile-tools", so it can be a program name with args.
11940 set dummy guile-tools; ac_word=$2
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11942 $as_echo_n "checking for $ac_word... " >&6; }
11943 if ${ac_cv_path_GUILE_TOOLS+:} false; then :
11944   $as_echo_n "(cached) " >&6
11945 else
11946   case $GUILE_TOOLS in
11947   [\\/]* | ?:[\\/]*)
11948   ac_cv_path_GUILE_TOOLS="$GUILE_TOOLS" # Let the user override the test with a path.
11949   ;;
11950   *)
11951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11953 do
11954   IFS=$as_save_IFS
11955   test -z "$as_dir" && as_dir=.
11956     for ac_exec_ext in '' $ac_executable_extensions; do
11957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11958     ac_cv_path_GUILE_TOOLS="$as_dir/$ac_word$ac_exec_ext"
11959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11960     break 2
11961   fi
11962 done
11963   done
11964 IFS=$as_save_IFS
11965
11966   ;;
11967 esac
11968 fi
11969 GUILE_TOOLS=$ac_cv_path_GUILE_TOOLS
11970 if test -n "$GUILE_TOOLS"; then
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_TOOLS" >&5
11972 $as_echo "$GUILE_TOOLS" >&6; }
11973 else
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976 fi
11977
11978
11979
11980
11981
11982 # Check whether --with-gnu-ld was given.
11983 if test "${with_gnu_ld+set}" = set; then :
11984   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11985 else
11986   with_gnu_ld=no
11987 fi
11988
11989 # Prepare PATH_SEPARATOR.
11990 # The user is always right.
11991 if test "${PATH_SEPARATOR+set}" != set; then
11992   echo "#! /bin/sh" >conf$$.sh
11993   echo  "exit 0"   >>conf$$.sh
11994   chmod +x conf$$.sh
11995   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11996     PATH_SEPARATOR=';'
11997   else
11998     PATH_SEPARATOR=:
11999   fi
12000   rm -f conf$$.sh
12001 fi
12002 ac_prog=ld
12003 if test "$GCC" = yes; then
12004   # Check if gcc -print-prog-name=ld gives a path.
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12006 $as_echo_n "checking for ld used by GCC... " >&6; }
12007   case $host in
12008   *-*-mingw*)
12009     # gcc leaves a trailing carriage return which upsets mingw
12010     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12011   *)
12012     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12013   esac
12014   case $ac_prog in
12015     # Accept absolute paths.
12016     [\\/]* | [A-Za-z]:[\\/]*)
12017       re_direlt='/[^/][^/]*/\.\./'
12018       # Canonicalize the path of ld
12019       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12020       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12021         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12022       done
12023       test -z "$LD" && LD="$ac_prog"
12024       ;;
12025   "")
12026     # If it fails, then pretend we aren't using GCC.
12027     ac_prog=ld
12028     ;;
12029   *)
12030     # If it is relative, then search for the first ld in PATH.
12031     with_gnu_ld=unknown
12032     ;;
12033   esac
12034 elif test "$with_gnu_ld" = yes; then
12035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12036 $as_echo_n "checking for GNU ld... " >&6; }
12037 else
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12039 $as_echo_n "checking for non-GNU ld... " >&6; }
12040 fi
12041 if ${acl_cv_path_LD+:} false; then :
12042   $as_echo_n "(cached) " >&6
12043 else
12044   if test -z "$LD"; then
12045   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12046   for ac_dir in $PATH; do
12047     test -z "$ac_dir" && ac_dir=.
12048     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12049       acl_cv_path_LD="$ac_dir/$ac_prog"
12050       # Check to see if the program is GNU ld.  I'd rather use --version,
12051       # but apparently some GNU ld's only accept -v.
12052       # Break only if it was the GNU/non-GNU ld that we prefer.
12053       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12054       *GNU* | *'with BFD'*)
12055         test "$with_gnu_ld" != no && break ;;
12056       *)
12057         test "$with_gnu_ld" != yes && break ;;
12058       esac
12059     fi
12060   done
12061   IFS="$ac_save_ifs"
12062 else
12063   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12064 fi
12065 fi
12066
12067 LD="$acl_cv_path_LD"
12068 if test -n "$LD"; then
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12070 $as_echo "$LD" >&6; }
12071 else
12072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12073 $as_echo "no" >&6; }
12074 fi
12075 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12077 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12078 if ${acl_cv_prog_gnu_ld+:} false; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12082 case `$LD -v 2>&1 </dev/null` in
12083 *GNU* | *'with BFD'*)
12084   acl_cv_prog_gnu_ld=yes ;;
12085 *)
12086   acl_cv_prog_gnu_ld=no ;;
12087 esac
12088 fi
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12090 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12091 with_gnu_ld=$acl_cv_prog_gnu_ld
12092
12093
12094
12095
12096                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12097 $as_echo_n "checking for shared library run path origin... " >&6; }
12098 if ${acl_cv_rpath+:} false; then :
12099   $as_echo_n "(cached) " >&6
12100 else
12101
12102     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12103     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12104     . ./conftest.sh
12105     rm -f ./conftest.sh
12106     acl_cv_rpath=done
12107
12108 fi
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12110 $as_echo "$acl_cv_rpath" >&6; }
12111   wl="$acl_cv_wl"
12112   acl_libext="$acl_cv_libext"
12113   acl_shlibext="$acl_cv_shlibext"
12114   acl_libname_spec="$acl_cv_libname_spec"
12115   acl_library_names_spec="$acl_cv_library_names_spec"
12116   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12117   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12118   acl_hardcode_direct="$acl_cv_hardcode_direct"
12119   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12120     # Check whether --enable-rpath was given.
12121 if test "${enable_rpath+set}" = set; then :
12122   enableval=$enable_rpath; :
12123 else
12124   enable_rpath=yes
12125 fi
12126
12127
12128
12129
12130   acl_libdirstem=lib
12131   acl_libdirstem2=
12132   case "$host_os" in
12133     solaris*)
12134                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12135 $as_echo_n "checking for 64-bit host... " >&6; }
12136 if ${gl_cv_solaris_64bit+:} false; then :
12137   $as_echo_n "(cached) " >&6
12138 else
12139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141
12142 #ifdef _LP64
12143 sixtyfour bits
12144 #endif
12145
12146 _ACEOF
12147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12148   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12149   gl_cv_solaris_64bit=yes
12150 else
12151   gl_cv_solaris_64bit=no
12152 fi
12153 rm -f conftest*
12154
12155
12156 fi
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12158 $as_echo "$gl_cv_solaris_64bit" >&6; }
12159       if test $gl_cv_solaris_64bit = yes; then
12160         acl_libdirstem=lib/64
12161         case "$host_cpu" in
12162           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12163           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12164         esac
12165       fi
12166       ;;
12167     *)
12168       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12169       if test -n "$searchpath"; then
12170         acl_save_IFS="${IFS=    }"; IFS=":"
12171         for searchdir in $searchpath; do
12172           if test -d "$searchdir"; then
12173             case "$searchdir" in
12174               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12175               */../ | */.. )
12176                 # Better ignore directories of this form. They are misleading.
12177                 ;;
12178               *) searchdir=`cd "$searchdir" && pwd`
12179                  case "$searchdir" in
12180                    */lib64 ) acl_libdirstem=lib64 ;;
12181                  esac ;;
12182             esac
12183           fi
12184         done
12185         IFS="$acl_save_IFS"
12186       fi
12187       ;;
12188   esac
12189   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
12190
12191
12192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile compile flags" >&5
12193 $as_echo_n "checking libguile compile flags... " >&6; }
12194   GUILE_CFLAGS="`$GUILE_CONFIG compile`"
12195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_CFLAGS" >&5
12196 $as_echo "$GUILE_CFLAGS" >&6; }
12197
12198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking libguile link flags" >&5
12199 $as_echo_n "checking libguile link flags... " >&6; }
12200   GUILE_LDFLAGS="`$GUILE_CONFIG link`"
12201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GUILE_LDFLAGS" >&5
12202 $as_echo "$GUILE_LDFLAGS" >&6; }
12203
12204
12205
12206
12207   GUILE_LIBS=
12208   if test "$enable_rpath" != no; then
12209     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12210                   rpathdirs=
12211       next=
12212       for opt in $GUILE_LDFLAGS; do
12213         if test -n "$next"; then
12214           dir="$next"
12215                     if test "X$dir" != "X/usr/$acl_libdirstem" \
12216              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12217             rpathdirs="$rpathdirs $dir"
12218           fi
12219           next=
12220         else
12221           case $opt in
12222             -L) next=yes ;;
12223             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12224                                   if test "X$dir" != "X/usr/$acl_libdirstem" \
12225                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12226                    rpathdirs="$rpathdirs $dir"
12227                  fi
12228                  next= ;;
12229             *) next= ;;
12230           esac
12231         fi
12232       done
12233       if test "X$rpathdirs" != "X"; then
12234         if test -n """"; then
12235                     for dir in $rpathdirs; do
12236             GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }-R$dir"
12237           done
12238         else
12239                     if test -n "$acl_hardcode_libdir_separator"; then
12240                                     alldirs=
12241             for dir in $rpathdirs; do
12242               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12243             done
12244             acl_save_libdir="$libdir"
12245             libdir="$alldirs"
12246             eval flag=\"$acl_hardcode_libdir_flag_spec\"
12247             libdir="$acl_save_libdir"
12248             GUILE_LIBS="$flag"
12249           else
12250                         for dir in $rpathdirs; do
12251               acl_save_libdir="$libdir"
12252               libdir="$dir"
12253               eval flag=\"$acl_hardcode_libdir_flag_spec\"
12254               libdir="$acl_save_libdir"
12255               GUILE_LIBS="${GUILE_LIBS}${GUILE_LIBS:+ }$flag"
12256             done
12257           fi
12258         fi
12259       fi
12260     fi
12261   fi
12262
12263
12264   GUILE_LIBS="$GUILE_LDFLAGS $GUILE_LIBS"
12265
12266
12267
12268   GUILE_LTLIBS=
12269   if test "$enable_rpath" != no; then
12270     if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
12271                   rpathdirs=
12272       next=
12273       for opt in $GUILE_LDFLAGS; do
12274         if test -n "$next"; then
12275           dir="$next"
12276                     if test "X$dir" != "X/usr/$acl_libdirstem" \
12277              && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12278             rpathdirs="$rpathdirs $dir"
12279           fi
12280           next=
12281         else
12282           case $opt in
12283             -L) next=yes ;;
12284             -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'`
12285                                   if test "X$dir" != "X/usr/$acl_libdirstem" \
12286                     && test "X$dir" != "X/usr/$acl_libdirstem2"; then
12287                    rpathdirs="$rpathdirs $dir"
12288                  fi
12289                  next= ;;
12290             *) next= ;;
12291           esac
12292         fi
12293       done
12294       if test "X$rpathdirs" != "X"; then
12295         if test -n ""yes""; then
12296                     for dir in $rpathdirs; do
12297             GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }-R$dir"
12298           done
12299         else
12300                     if test -n "$acl_hardcode_libdir_separator"; then
12301                                     alldirs=
12302             for dir in $rpathdirs; do
12303               alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir"
12304             done
12305             acl_save_libdir="$libdir"
12306             libdir="$alldirs"
12307             eval flag=\"$acl_hardcode_libdir_flag_spec\"
12308             libdir="$acl_save_libdir"
12309             GUILE_LTLIBS="$flag"
12310           else
12311                         for dir in $rpathdirs; do
12312               acl_save_libdir="$libdir"
12313               libdir="$dir"
12314               eval flag=\"$acl_hardcode_libdir_flag_spec\"
12315               libdir="$acl_save_libdir"
12316               GUILE_LTLIBS="${GUILE_LTLIBS}${GUILE_LTLIBS:+ }$flag"
12317             done
12318           fi
12319         fi
12320       fi
12321     fi
12322   fi
12323
12324
12325   GUILE_LTLIBS="$GUILE_LDFLAGS $GUILE_LTLIBS"
12326
12327
12328
12329
12330
12331
12332
12333
12334 for lib in SDL SDL_image SDL_gfx SDL_mixer ; do
12335         as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12337 $as_echo_n "checking for main in -l${lib}... " >&6; }
12338 if eval \${$as_ac_Lib+:} false; then :
12339   $as_echo_n "(cached) " >&6
12340 else
12341   ac_check_lib_save_LIBS=$LIBS
12342 LIBS="-l${lib}  $LIBS"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h.  */
12345
12346
12347 int
12348 main ()
12349 {
12350 return main ();
12351   ;
12352   return 0;
12353 }
12354 _ACEOF
12355 if ac_fn_c_try_link "$LINENO"; then :
12356   eval "$as_ac_Lib=yes"
12357 else
12358   eval "$as_ac_Lib=no"
12359 fi
12360 rm -f core conftest.err conftest.$ac_objext \
12361     conftest$ac_exeext conftest.$ac_ext
12362 LIBS=$ac_check_lib_save_LIBS
12363 fi
12364 eval ac_res=\$$as_ac_Lib
12365                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12366 $as_echo "$ac_res" >&6; }
12367 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12368   SDL_LIBS="${SDL_LIBS} -l${lib}"
12369 else
12370   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12371 fi
12372
12373     done
12374
12375
12376 for lib in GL GLU ; do
12377         as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12379 $as_echo_n "checking for main in -l${lib}... " >&6; }
12380 if eval \${$as_ac_Lib+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383   ac_check_lib_save_LIBS=$LIBS
12384 LIBS="-l${lib}  $LIBS"
12385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12386 /* end confdefs.h.  */
12387
12388
12389 int
12390 main ()
12391 {
12392 return main ();
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_link "$LINENO"; then :
12398   eval "$as_ac_Lib=yes"
12399 else
12400   eval "$as_ac_Lib=no"
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext \
12403     conftest$ac_exeext conftest.$ac_ext
12404 LIBS=$ac_check_lib_save_LIBS
12405 fi
12406 eval ac_res=\$$as_ac_Lib
12407                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12408 $as_echo "$ac_res" >&6; }
12409 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12410   GL_LIBS="${GL_LIBS} -l${lib}"
12411 else
12412   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12413 fi
12414
12415     done
12416
12417
12418 for lib in ftgl ; do
12419         as_ac_Lib=`$as_echo "ac_cv_lib_${lib}''_main" | $as_tr_sh`
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -l${lib}" >&5
12421 $as_echo_n "checking for main in -l${lib}... " >&6; }
12422 if eval \${$as_ac_Lib+:} false; then :
12423   $as_echo_n "(cached) " >&6
12424 else
12425   ac_check_lib_save_LIBS=$LIBS
12426 LIBS="-l${lib}  $LIBS"
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428 /* end confdefs.h.  */
12429
12430
12431 int
12432 main ()
12433 {
12434 return main ();
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_link "$LINENO"; then :
12440   eval "$as_ac_Lib=yes"
12441 else
12442   eval "$as_ac_Lib=no"
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext \
12445     conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 eval ac_res=\$$as_ac_Lib
12449                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12450 $as_echo "$ac_res" >&6; }
12451 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
12452   FTGL_LIBS="${FTGL_LIBS} -l${lib}"
12453 else
12454   as_fn_error $? "*** ${lib} library not found!" "$LINENO" 5
12455 fi
12456
12457     done
12458
12459
12460
12461
12462
12463 ac_config_headers="$ac_config_headers config.h"
12464
12465 ac_config_files="$ac_config_files Makefile src/Makefile"
12466
12467 cat >confcache <<\_ACEOF
12468 # This file is a shell script that caches the results of configure
12469 # tests run on this system so they can be shared between configure
12470 # scripts and configure runs, see configure's option --config-cache.
12471 # It is not useful on other systems.  If it contains results you don't
12472 # want to keep, you may remove or edit it.
12473 #
12474 # config.status only pays attention to the cache file if you give it
12475 # the --recheck option to rerun configure.
12476 #
12477 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12478 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12479 # following values.
12480
12481 _ACEOF
12482
12483 # The following way of writing the cache mishandles newlines in values,
12484 # but we know of no workaround that is simple, portable, and efficient.
12485 # So, we kill variables containing newlines.
12486 # Ultrix sh set writes to stderr and can't be redirected directly,
12487 # and sets the high bit in the cache file unless we assign to the vars.
12488 (
12489   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12490     eval ac_val=\$$ac_var
12491     case $ac_val in #(
12492     *${as_nl}*)
12493       case $ac_var in #(
12494       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12495 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12496       esac
12497       case $ac_var in #(
12498       _ | IFS | as_nl) ;; #(
12499       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12500       *) { eval $ac_var=; unset $ac_var;} ;;
12501       esac ;;
12502     esac
12503   done
12504
12505   (set) 2>&1 |
12506     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12507     *${as_nl}ac_space=\ *)
12508       # `set' does not quote correctly, so add quotes: double-quote
12509       # substitution turns \\\\ into \\, and sed turns \\ into \.
12510       sed -n \
12511         "s/'/'\\\\''/g;
12512           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12513       ;; #(
12514     *)
12515       # `set' quotes correctly as required by POSIX, so do not add quotes.
12516       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12517       ;;
12518     esac |
12519     sort
12520 ) |
12521   sed '
12522      /^ac_cv_env_/b end
12523      t clear
12524      :clear
12525      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12526      t end
12527      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12528      :end' >>confcache
12529 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12530   if test -w "$cache_file"; then
12531     if test "x$cache_file" != "x/dev/null"; then
12532       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12533 $as_echo "$as_me: updating cache $cache_file" >&6;}
12534       if test ! -f "$cache_file" || test -h "$cache_file"; then
12535         cat confcache >"$cache_file"
12536       else
12537         case $cache_file in #(
12538         */* | ?:*)
12539           mv -f confcache "$cache_file"$$ &&
12540           mv -f "$cache_file"$$ "$cache_file" ;; #(
12541         *)
12542           mv -f confcache "$cache_file" ;;
12543         esac
12544       fi
12545     fi
12546   else
12547     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12548 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12549   fi
12550 fi
12551 rm -f confcache
12552
12553 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12554 # Let make expand exec_prefix.
12555 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12556
12557 DEFS=-DHAVE_CONFIG_H
12558
12559 ac_libobjs=
12560 ac_ltlibobjs=
12561 U=
12562 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12563   # 1. Remove the extension, and $U if already installed.
12564   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12565   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12566   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12567   #    will be set to the directory where LIBOBJS objects are built.
12568   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12569   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12570 done
12571 LIBOBJS=$ac_libobjs
12572
12573 LTLIBOBJS=$ac_ltlibobjs
12574
12575
12576  if test -n "$EXEEXT"; then
12577   am__EXEEXT_TRUE=
12578   am__EXEEXT_FALSE='#'
12579 else
12580   am__EXEEXT_TRUE='#'
12581   am__EXEEXT_FALSE=
12582 fi
12583
12584 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12585   as_fn_error $? "conditional \"AMDEP\" was never defined.
12586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12587 fi
12588 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12589   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12591 fi
12592 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12593   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12595 fi
12596
12597 : "${CONFIG_STATUS=./config.status}"
12598 ac_write_fail=0
12599 ac_clean_files_save=$ac_clean_files
12600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12603 as_write_fail=0
12604 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12605 #! $SHELL
12606 # Generated by $as_me.
12607 # Run this file to recreate the current configuration.
12608 # Compiler output produced by configure, useful for debugging
12609 # configure, is in config.log if it exists.
12610
12611 debug=false
12612 ac_cs_recheck=false
12613 ac_cs_silent=false
12614
12615 SHELL=\${CONFIG_SHELL-$SHELL}
12616 export SHELL
12617 _ASEOF
12618 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12619 ## -------------------- ##
12620 ## M4sh Initialization. ##
12621 ## -------------------- ##
12622
12623 # Be more Bourne compatible
12624 DUALCASE=1; export DUALCASE # for MKS sh
12625 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12626   emulate sh
12627   NULLCMD=:
12628   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12629   # is contrary to our usage.  Disable this feature.
12630   alias -g '${1+"$@"}'='"$@"'
12631   setopt NO_GLOB_SUBST
12632 else
12633   case `(set -o) 2>/dev/null` in #(
12634   *posix*) :
12635     set -o posix ;; #(
12636   *) :
12637      ;;
12638 esac
12639 fi
12640
12641
12642 as_nl='
12643 '
12644 export as_nl
12645 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12646 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12647 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12649 # Prefer a ksh shell builtin over an external printf program on Solaris,
12650 # but without wasting forks for bash or zsh.
12651 if test -z "$BASH_VERSION$ZSH_VERSION" \
12652     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12653   as_echo='print -r --'
12654   as_echo_n='print -rn --'
12655 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12656   as_echo='printf %s\n'
12657   as_echo_n='printf %s'
12658 else
12659   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12660     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12661     as_echo_n='/usr/ucb/echo -n'
12662   else
12663     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12664     as_echo_n_body='eval
12665       arg=$1;
12666       case $arg in #(
12667       *"$as_nl"*)
12668         expr "X$arg" : "X\\(.*\\)$as_nl";
12669         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12670       esac;
12671       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12672     '
12673     export as_echo_n_body
12674     as_echo_n='sh -c $as_echo_n_body as_echo'
12675   fi
12676   export as_echo_body
12677   as_echo='sh -c $as_echo_body as_echo'
12678 fi
12679
12680 # The user is always right.
12681 if test "${PATH_SEPARATOR+set}" != set; then
12682   PATH_SEPARATOR=:
12683   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12684     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12685       PATH_SEPARATOR=';'
12686   }
12687 fi
12688
12689
12690 # IFS
12691 # We need space, tab and new line, in precisely that order.  Quoting is
12692 # there to prevent editors from complaining about space-tab.
12693 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12694 # splitting by setting IFS to empty value.)
12695 IFS=" ""        $as_nl"
12696
12697 # Find who we are.  Look in the path if we contain no directory separator.
12698 as_myself=
12699 case $0 in #((
12700   *[\\/]* ) as_myself=$0 ;;
12701   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12703 do
12704   IFS=$as_save_IFS
12705   test -z "$as_dir" && as_dir=.
12706     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12707   done
12708 IFS=$as_save_IFS
12709
12710      ;;
12711 esac
12712 # We did not find ourselves, most probably we were run as `sh COMMAND'
12713 # in which case we are not to be found in the path.
12714 if test "x$as_myself" = x; then
12715   as_myself=$0
12716 fi
12717 if test ! -f "$as_myself"; then
12718   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12719   exit 1
12720 fi
12721
12722 # Unset variables that we do not need and which cause bugs (e.g. in
12723 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12724 # suppresses any "Segmentation fault" message there.  '((' could
12725 # trigger a bug in pdksh 5.2.14.
12726 for as_var in BASH_ENV ENV MAIL MAILPATH
12727 do eval test x\${$as_var+set} = xset \
12728   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12729 done
12730 PS1='$ '
12731 PS2='> '
12732 PS4='+ '
12733
12734 # NLS nuisances.
12735 LC_ALL=C
12736 export LC_ALL
12737 LANGUAGE=C
12738 export LANGUAGE
12739
12740 # CDPATH.
12741 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12742
12743
12744 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12745 # ----------------------------------------
12746 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12747 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12748 # script with STATUS, using 1 if that was 0.
12749 as_fn_error ()
12750 {
12751   as_status=$1; test $as_status -eq 0 && as_status=1
12752   if test "$4"; then
12753     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12754     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12755   fi
12756   $as_echo "$as_me: error: $2" >&2
12757   as_fn_exit $as_status
12758 } # as_fn_error
12759
12760
12761 # as_fn_set_status STATUS
12762 # -----------------------
12763 # Set $? to STATUS, without forking.
12764 as_fn_set_status ()
12765 {
12766   return $1
12767 } # as_fn_set_status
12768
12769 # as_fn_exit STATUS
12770 # -----------------
12771 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12772 as_fn_exit ()
12773 {
12774   set +e
12775   as_fn_set_status $1
12776   exit $1
12777 } # as_fn_exit
12778
12779 # as_fn_unset VAR
12780 # ---------------
12781 # Portably unset VAR.
12782 as_fn_unset ()
12783 {
12784   { eval $1=; unset $1;}
12785 }
12786 as_unset=as_fn_unset
12787 # as_fn_append VAR VALUE
12788 # ----------------------
12789 # Append the text in VALUE to the end of the definition contained in VAR. Take
12790 # advantage of any shell optimizations that allow amortized linear growth over
12791 # repeated appends, instead of the typical quadratic growth present in naive
12792 # implementations.
12793 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12794   eval 'as_fn_append ()
12795   {
12796     eval $1+=\$2
12797   }'
12798 else
12799   as_fn_append ()
12800   {
12801     eval $1=\$$1\$2
12802   }
12803 fi # as_fn_append
12804
12805 # as_fn_arith ARG...
12806 # ------------------
12807 # Perform arithmetic evaluation on the ARGs, and store the result in the
12808 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12809 # must be portable across $(()) and expr.
12810 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12811   eval 'as_fn_arith ()
12812   {
12813     as_val=$(( $* ))
12814   }'
12815 else
12816   as_fn_arith ()
12817   {
12818     as_val=`expr "$@" || test $? -eq 1`
12819   }
12820 fi # as_fn_arith
12821
12822
12823 if expr a : '\(a\)' >/dev/null 2>&1 &&
12824    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12825   as_expr=expr
12826 else
12827   as_expr=false
12828 fi
12829
12830 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12831   as_basename=basename
12832 else
12833   as_basename=false
12834 fi
12835
12836 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12837   as_dirname=dirname
12838 else
12839   as_dirname=false
12840 fi
12841
12842 as_me=`$as_basename -- "$0" ||
12843 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12844          X"$0" : 'X\(//\)$' \| \
12845          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12846 $as_echo X/"$0" |
12847     sed '/^.*\/\([^/][^/]*\)\/*$/{
12848             s//\1/
12849             q
12850           }
12851           /^X\/\(\/\/\)$/{
12852             s//\1/
12853             q
12854           }
12855           /^X\/\(\/\).*/{
12856             s//\1/
12857             q
12858           }
12859           s/.*/./; q'`
12860
12861 # Avoid depending upon Character Ranges.
12862 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12863 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12864 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12865 as_cr_digits='0123456789'
12866 as_cr_alnum=$as_cr_Letters$as_cr_digits
12867
12868 ECHO_C= ECHO_N= ECHO_T=
12869 case `echo -n x` in #(((((
12870 -n*)
12871   case `echo 'xy\c'` in
12872   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12873   xy)  ECHO_C='\c';;
12874   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12875        ECHO_T=' ';;
12876   esac;;
12877 *)
12878   ECHO_N='-n';;
12879 esac
12880
12881 rm -f conf$$ conf$$.exe conf$$.file
12882 if test -d conf$$.dir; then
12883   rm -f conf$$.dir/conf$$.file
12884 else
12885   rm -f conf$$.dir
12886   mkdir conf$$.dir 2>/dev/null
12887 fi
12888 if (echo >conf$$.file) 2>/dev/null; then
12889   if ln -s conf$$.file conf$$ 2>/dev/null; then
12890     as_ln_s='ln -s'
12891     # ... but there are two gotchas:
12892     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12893     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12894     # In both cases, we have to default to `cp -p'.
12895     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12896       as_ln_s='cp -p'
12897   elif ln conf$$.file conf$$ 2>/dev/null; then
12898     as_ln_s=ln
12899   else
12900     as_ln_s='cp -p'
12901   fi
12902 else
12903   as_ln_s='cp -p'
12904 fi
12905 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12906 rmdir conf$$.dir 2>/dev/null
12907
12908
12909 # as_fn_mkdir_p
12910 # -------------
12911 # Create "$as_dir" as a directory, including parents if necessary.
12912 as_fn_mkdir_p ()
12913 {
12914
12915   case $as_dir in #(
12916   -*) as_dir=./$as_dir;;
12917   esac
12918   test -d "$as_dir" || eval $as_mkdir_p || {
12919     as_dirs=
12920     while :; do
12921       case $as_dir in #(
12922       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12923       *) as_qdir=$as_dir;;
12924       esac
12925       as_dirs="'$as_qdir' $as_dirs"
12926       as_dir=`$as_dirname -- "$as_dir" ||
12927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12928          X"$as_dir" : 'X\(//\)[^/]' \| \
12929          X"$as_dir" : 'X\(//\)$' \| \
12930          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12931 $as_echo X"$as_dir" |
12932     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12933             s//\1/
12934             q
12935           }
12936           /^X\(\/\/\)[^/].*/{
12937             s//\1/
12938             q
12939           }
12940           /^X\(\/\/\)$/{
12941             s//\1/
12942             q
12943           }
12944           /^X\(\/\).*/{
12945             s//\1/
12946             q
12947           }
12948           s/.*/./; q'`
12949       test -d "$as_dir" && break
12950     done
12951     test -z "$as_dirs" || eval "mkdir $as_dirs"
12952   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12953
12954
12955 } # as_fn_mkdir_p
12956 if mkdir -p . 2>/dev/null; then
12957   as_mkdir_p='mkdir -p "$as_dir"'
12958 else
12959   test -d ./-p && rmdir ./-p
12960   as_mkdir_p=false
12961 fi
12962
12963 if test -x / >/dev/null 2>&1; then
12964   as_test_x='test -x'
12965 else
12966   if ls -dL / >/dev/null 2>&1; then
12967     as_ls_L_option=L
12968   else
12969     as_ls_L_option=
12970   fi
12971   as_test_x='
12972     eval sh -c '\''
12973       if test -d "$1"; then
12974         test -d "$1/.";
12975       else
12976         case $1 in #(
12977         -*)set "./$1";;
12978         esac;
12979         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12980         ???[sx]*):;;*)false;;esac;fi
12981     '\'' sh
12982   '
12983 fi
12984 as_executable_p=$as_test_x
12985
12986 # Sed expression to map a string onto a valid CPP name.
12987 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12988
12989 # Sed expression to map a string onto a valid variable name.
12990 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12991
12992
12993 exec 6>&1
12994 ## ----------------------------------- ##
12995 ## Main body of $CONFIG_STATUS script. ##
12996 ## ----------------------------------- ##
12997 _ASEOF
12998 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12999
13000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001 # Save the log message, to keep $0 and so on meaningful, and to
13002 # report actual input values of CONFIG_FILES etc. instead of their
13003 # values after options handling.
13004 ac_log="
13005 This file was extended by gacela $as_me 0.5, which was
13006 generated by GNU Autoconf 2.68.  Invocation command line was
13007
13008   CONFIG_FILES    = $CONFIG_FILES
13009   CONFIG_HEADERS  = $CONFIG_HEADERS
13010   CONFIG_LINKS    = $CONFIG_LINKS
13011   CONFIG_COMMANDS = $CONFIG_COMMANDS
13012   $ $0 $@
13013
13014 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13015 "
13016
13017 _ACEOF
13018
13019 case $ac_config_files in *"
13020 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13021 esac
13022
13023 case $ac_config_headers in *"
13024 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13025 esac
13026
13027
13028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13029 # Files that config.status was made for.
13030 config_files="$ac_config_files"
13031 config_headers="$ac_config_headers"
13032 config_commands="$ac_config_commands"
13033
13034 _ACEOF
13035
13036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13037 ac_cs_usage="\
13038 \`$as_me' instantiates files and other configuration actions
13039 from templates according to the current configuration.  Unless the files
13040 and actions are specified as TAGs, all are instantiated by default.
13041
13042 Usage: $0 [OPTION]... [TAG]...
13043
13044   -h, --help       print this help, then exit
13045   -V, --version    print version number and configuration settings, then exit
13046       --config     print configuration, then exit
13047   -q, --quiet, --silent
13048                    do not print progress messages
13049   -d, --debug      don't remove temporary files
13050       --recheck    update $as_me by reconfiguring in the same conditions
13051       --file=FILE[:TEMPLATE]
13052                    instantiate the configuration file FILE
13053       --header=FILE[:TEMPLATE]
13054                    instantiate the configuration header FILE
13055
13056 Configuration files:
13057 $config_files
13058
13059 Configuration headers:
13060 $config_headers
13061
13062 Configuration commands:
13063 $config_commands
13064
13065 Report bugs to <jsf@jsancho.org>."
13066
13067 _ACEOF
13068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13069 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13070 ac_cs_version="\\
13071 gacela config.status 0.5
13072 configured by $0, generated by GNU Autoconf 2.68,
13073   with options \\"\$ac_cs_config\\"
13074
13075 Copyright (C) 2010 Free Software Foundation, Inc.
13076 This config.status script is free software; the Free Software Foundation
13077 gives unlimited permission to copy, distribute and modify it."
13078
13079 ac_pwd='$ac_pwd'
13080 srcdir='$srcdir'
13081 INSTALL='$INSTALL'
13082 MKDIR_P='$MKDIR_P'
13083 AWK='$AWK'
13084 test -n "\$AWK" || AWK=awk
13085 _ACEOF
13086
13087 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13088 # The default lists apply if the user does not specify any file.
13089 ac_need_defaults=:
13090 while test $# != 0
13091 do
13092   case $1 in
13093   --*=?*)
13094     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13095     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13096     ac_shift=:
13097     ;;
13098   --*=)
13099     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13100     ac_optarg=
13101     ac_shift=:
13102     ;;
13103   *)
13104     ac_option=$1
13105     ac_optarg=$2
13106     ac_shift=shift
13107     ;;
13108   esac
13109
13110   case $ac_option in
13111   # Handling of the options.
13112   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13113     ac_cs_recheck=: ;;
13114   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13115     $as_echo "$ac_cs_version"; exit ;;
13116   --config | --confi | --conf | --con | --co | --c )
13117     $as_echo "$ac_cs_config"; exit ;;
13118   --debug | --debu | --deb | --de | --d | -d )
13119     debug=: ;;
13120   --file | --fil | --fi | --f )
13121     $ac_shift
13122     case $ac_optarg in
13123     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13124     '') as_fn_error $? "missing file argument" ;;
13125     esac
13126     as_fn_append CONFIG_FILES " '$ac_optarg'"
13127     ac_need_defaults=false;;
13128   --header | --heade | --head | --hea )
13129     $ac_shift
13130     case $ac_optarg in
13131     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13132     esac
13133     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13134     ac_need_defaults=false;;
13135   --he | --h)
13136     # Conflict between --help and --header
13137     as_fn_error $? "ambiguous option: \`$1'
13138 Try \`$0 --help' for more information.";;
13139   --help | --hel | -h )
13140     $as_echo "$ac_cs_usage"; exit ;;
13141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13142   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13143     ac_cs_silent=: ;;
13144
13145   # This is an error.
13146   -*) as_fn_error $? "unrecognized option: \`$1'
13147 Try \`$0 --help' for more information." ;;
13148
13149   *) as_fn_append ac_config_targets " $1"
13150      ac_need_defaults=false ;;
13151
13152   esac
13153   shift
13154 done
13155
13156 ac_configure_extra_args=
13157
13158 if $ac_cs_silent; then
13159   exec 6>/dev/null
13160   ac_configure_extra_args="$ac_configure_extra_args --silent"
13161 fi
13162
13163 _ACEOF
13164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13165 if \$ac_cs_recheck; then
13166   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13167   shift
13168   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13169   CONFIG_SHELL='$SHELL'
13170   export CONFIG_SHELL
13171   exec "\$@"
13172 fi
13173
13174 _ACEOF
13175 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13176 exec 5>>config.log
13177 {
13178   echo
13179   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13180 ## Running $as_me. ##
13181 _ASBOX
13182   $as_echo "$ac_log"
13183 } >&5
13184
13185 _ACEOF
13186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13187 #
13188 # INIT-COMMANDS
13189 #
13190 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13191
13192
13193 # The HP-UX ksh and POSIX shell print the target directory to stdout
13194 # if CDPATH is set.
13195 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13196
13197 sed_quote_subst='$sed_quote_subst'
13198 double_quote_subst='$double_quote_subst'
13199 delay_variable_subst='$delay_variable_subst'
13200 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13201 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13202 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13203 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13204 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13205 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13206 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13207 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13208 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13209 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13210 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13211 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13212 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13213 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13214 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13215 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13216 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13217 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13218 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13219 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13220 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13221 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13222 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13223 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13224 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13225 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13226 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13227 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13228 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13229 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13230 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13231 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13232 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13233 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13234 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13235 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13236 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13237 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13238 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13239 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13240 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13241 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13242 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13243 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13244 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13245 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13246 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13247 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13248 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13249 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13250 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13251 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13252 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13253 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13254 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13255 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13256 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"`'
13257 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13258 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13259 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13260 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13261 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13262 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13263 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13264 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13265 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13266 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13267 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13268 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13269 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13270 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13271 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13272 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13273 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13274 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13275 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13276 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13277 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13278 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13279 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13280 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13281 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13282 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13283 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13284 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13285 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13286 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13287 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13288 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13289 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13290 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13291 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13292 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13293 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13294 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13295 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13296 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13297 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13298 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13299 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13300 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13301 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13302 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13303 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13304 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13305 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13306 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13307 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13308 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13309 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13310 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13311 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13312 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13313 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13314 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13315 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13316 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13317 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13318 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13319 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13320 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13321 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13322 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13323 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13324 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13325 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13326 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13327 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13328 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13329 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13330
13331 LTCC='$LTCC'
13332 LTCFLAGS='$LTCFLAGS'
13333 compiler='$compiler_DEFAULT'
13334
13335 # A function that is used when there is no print builtin or printf.
13336 func_fallback_echo ()
13337 {
13338   eval 'cat <<_LTECHO_EOF
13339 \$1
13340 _LTECHO_EOF'
13341 }
13342
13343 # Quote evaled strings.
13344 for var in SHELL \
13345 ECHO \
13346 PATH_SEPARATOR \
13347 SED \
13348 GREP \
13349 EGREP \
13350 FGREP \
13351 LD \
13352 NM \
13353 LN_S \
13354 lt_SP2NL \
13355 lt_NL2SP \
13356 reload_flag \
13357 OBJDUMP \
13358 deplibs_check_method \
13359 file_magic_cmd \
13360 file_magic_glob \
13361 want_nocaseglob \
13362 DLLTOOL \
13363 sharedlib_from_linklib_cmd \
13364 AR \
13365 AR_FLAGS \
13366 archiver_list_spec \
13367 STRIP \
13368 RANLIB \
13369 CC \
13370 CFLAGS \
13371 compiler \
13372 lt_cv_sys_global_symbol_pipe \
13373 lt_cv_sys_global_symbol_to_cdecl \
13374 lt_cv_sys_global_symbol_to_c_name_address \
13375 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13376 nm_file_list_spec \
13377 lt_prog_compiler_no_builtin_flag \
13378 lt_prog_compiler_pic \
13379 lt_prog_compiler_wl \
13380 lt_prog_compiler_static \
13381 lt_cv_prog_compiler_c_o \
13382 need_locks \
13383 MANIFEST_TOOL \
13384 DSYMUTIL \
13385 NMEDIT \
13386 LIPO \
13387 OTOOL \
13388 OTOOL64 \
13389 shrext_cmds \
13390 export_dynamic_flag_spec \
13391 whole_archive_flag_spec \
13392 compiler_needs_object \
13393 with_gnu_ld \
13394 allow_undefined_flag \
13395 no_undefined_flag \
13396 hardcode_libdir_flag_spec \
13397 hardcode_libdir_separator \
13398 exclude_expsyms \
13399 include_expsyms \
13400 file_list_spec \
13401 variables_saved_for_relink \
13402 libname_spec \
13403 library_names_spec \
13404 soname_spec \
13405 install_override_mode \
13406 finish_eval \
13407 old_striplib \
13408 striplib; do
13409     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13410     *[\\\\\\\`\\"\\\$]*)
13411       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13412       ;;
13413     *)
13414       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13415       ;;
13416     esac
13417 done
13418
13419 # Double-quote double-evaled strings.
13420 for var in reload_cmds \
13421 old_postinstall_cmds \
13422 old_postuninstall_cmds \
13423 old_archive_cmds \
13424 extract_expsyms_cmds \
13425 old_archive_from_new_cmds \
13426 old_archive_from_expsyms_cmds \
13427 archive_cmds \
13428 archive_expsym_cmds \
13429 module_cmds \
13430 module_expsym_cmds \
13431 export_symbols_cmds \
13432 prelink_cmds \
13433 postlink_cmds \
13434 postinstall_cmds \
13435 postuninstall_cmds \
13436 finish_cmds \
13437 sys_lib_search_path_spec \
13438 sys_lib_dlsearch_path_spec; do
13439     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13440     *[\\\\\\\`\\"\\\$]*)
13441       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13442       ;;
13443     *)
13444       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13445       ;;
13446     esac
13447 done
13448
13449 ac_aux_dir='$ac_aux_dir'
13450 xsi_shell='$xsi_shell'
13451 lt_shell_append='$lt_shell_append'
13452
13453 # See if we are running on zsh, and set the options which allow our
13454 # commands through without removal of \ escapes INIT.
13455 if test -n "\${ZSH_VERSION+set}" ; then
13456    setopt NO_GLOB_SUBST
13457 fi
13458
13459
13460     PACKAGE='$PACKAGE'
13461     VERSION='$VERSION'
13462     TIMESTAMP='$TIMESTAMP'
13463     RM='$RM'
13464     ofile='$ofile'
13465
13466
13467
13468
13469 _ACEOF
13470
13471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13472
13473 # Handling of arguments.
13474 for ac_config_target in $ac_config_targets
13475 do
13476   case $ac_config_target in
13477     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13478     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13479     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13480     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13481     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13482
13483   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13484   esac
13485 done
13486
13487
13488 # If the user did not use the arguments to specify the items to instantiate,
13489 # then the envvar interface is used.  Set only those that are not.
13490 # We use the long form for the default assignment because of an extremely
13491 # bizarre bug on SunOS 4.1.3.
13492 if $ac_need_defaults; then
13493   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13494   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13495   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13496 fi
13497
13498 # Have a temporary directory for convenience.  Make it in the build tree
13499 # simply because there is no reason against having it here, and in addition,
13500 # creating and moving files from /tmp can sometimes cause problems.
13501 # Hook for its removal unless debugging.
13502 # Note that there is a small window in which the directory will not be cleaned:
13503 # after its creation but before its name has been assigned to `$tmp'.
13504 $debug ||
13505 {
13506   tmp= ac_tmp=
13507   trap 'exit_status=$?
13508   : "${ac_tmp:=$tmp}"
13509   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13510 ' 0
13511   trap 'as_fn_exit 1' 1 2 13 15
13512 }
13513 # Create a (secure) tmp directory for tmp files.
13514
13515 {
13516   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13517   test -d "$tmp"
13518 }  ||
13519 {
13520   tmp=./conf$$-$RANDOM
13521   (umask 077 && mkdir "$tmp")
13522 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13523 ac_tmp=$tmp
13524
13525 # Set up the scripts for CONFIG_FILES section.
13526 # No need to generate them if there are no CONFIG_FILES.
13527 # This happens for instance with `./config.status config.h'.
13528 if test -n "$CONFIG_FILES"; then
13529
13530
13531 ac_cr=`echo X | tr X '\015'`
13532 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13533 # But we know of no other shell where ac_cr would be empty at this
13534 # point, so we can use a bashism as a fallback.
13535 if test "x$ac_cr" = x; then
13536   eval ac_cr=\$\'\\r\'
13537 fi
13538 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13539 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13540   ac_cs_awk_cr='\\r'
13541 else
13542   ac_cs_awk_cr=$ac_cr
13543 fi
13544
13545 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13546 _ACEOF
13547
13548
13549 {
13550   echo "cat >conf$$subs.awk <<_ACEOF" &&
13551   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13552   echo "_ACEOF"
13553 } >conf$$subs.sh ||
13554   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13555 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13556 ac_delim='%!_!# '
13557 for ac_last_try in false false false false false :; do
13558   . ./conf$$subs.sh ||
13559     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13560
13561   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13562   if test $ac_delim_n = $ac_delim_num; then
13563     break
13564   elif $ac_last_try; then
13565     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13566   else
13567     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13568   fi
13569 done
13570 rm -f conf$$subs.sh
13571
13572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13573 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13574 _ACEOF
13575 sed -n '
13576 h
13577 s/^/S["/; s/!.*/"]=/
13578 p
13579 g
13580 s/^[^!]*!//
13581 :repl
13582 t repl
13583 s/'"$ac_delim"'$//
13584 t delim
13585 :nl
13586 h
13587 s/\(.\{148\}\)..*/\1/
13588 t more1
13589 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13590 p
13591 n
13592 b repl
13593 :more1
13594 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13595 p
13596 g
13597 s/.\{148\}//
13598 t nl
13599 :delim
13600 h
13601 s/\(.\{148\}\)..*/\1/
13602 t more2
13603 s/["\\]/\\&/g; s/^/"/; s/$/"/
13604 p
13605 b
13606 :more2
13607 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13608 p
13609 g
13610 s/.\{148\}//
13611 t delim
13612 ' <conf$$subs.awk | sed '
13613 /^[^""]/{
13614   N
13615   s/\n//
13616 }
13617 ' >>$CONFIG_STATUS || ac_write_fail=1
13618 rm -f conf$$subs.awk
13619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13620 _ACAWK
13621 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13622   for (key in S) S_is_set[key] = 1
13623   FS = "\a"
13624
13625 }
13626 {
13627   line = $ 0
13628   nfields = split(line, field, "@")
13629   substed = 0
13630   len = length(field[1])
13631   for (i = 2; i < nfields; i++) {
13632     key = field[i]
13633     keylen = length(key)
13634     if (S_is_set[key]) {
13635       value = S[key]
13636       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13637       len += length(value) + length(field[++i])
13638       substed = 1
13639     } else
13640       len += 1 + keylen
13641   }
13642
13643   print line
13644 }
13645
13646 _ACAWK
13647 _ACEOF
13648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13649 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13650   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13651 else
13652   cat
13653 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13654   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13655 _ACEOF
13656
13657 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13658 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13659 # trailing colons and then remove the whole line if VPATH becomes empty
13660 # (actually we leave an empty line to preserve line numbers).
13661 if test "x$srcdir" = x.; then
13662   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13663 h
13664 s///
13665 s/^/:/
13666 s/[      ]*$/:/
13667 s/:\$(srcdir):/:/g
13668 s/:\${srcdir}:/:/g
13669 s/:@srcdir@:/:/g
13670 s/^:*//
13671 s/:*$//
13672 x
13673 s/\(=[   ]*\).*/\1/
13674 G
13675 s/\n//
13676 s/^[^=]*=[       ]*$//
13677 }'
13678 fi
13679
13680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13681 fi # test -n "$CONFIG_FILES"
13682
13683 # Set up the scripts for CONFIG_HEADERS section.
13684 # No need to generate them if there are no CONFIG_HEADERS.
13685 # This happens for instance with `./config.status Makefile'.
13686 if test -n "$CONFIG_HEADERS"; then
13687 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13688 BEGIN {
13689 _ACEOF
13690
13691 # Transform confdefs.h into an awk script `defines.awk', embedded as
13692 # here-document in config.status, that substitutes the proper values into
13693 # config.h.in to produce config.h.
13694
13695 # Create a delimiter string that does not exist in confdefs.h, to ease
13696 # handling of long lines.
13697 ac_delim='%!_!# '
13698 for ac_last_try in false false :; do
13699   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13700   if test -z "$ac_tt"; then
13701     break
13702   elif $ac_last_try; then
13703     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13704   else
13705     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13706   fi
13707 done
13708
13709 # For the awk script, D is an array of macro values keyed by name,
13710 # likewise P contains macro parameters if any.  Preserve backslash
13711 # newline sequences.
13712
13713 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13714 sed -n '
13715 s/.\{148\}/&'"$ac_delim"'/g
13716 t rset
13717 :rset
13718 s/^[     ]*#[    ]*define[       ][      ]*/ /
13719 t def
13720 d
13721 :def
13722 s/\\$//
13723 t bsnl
13724 s/["\\]/\\&/g
13725 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13726 D["\1"]=" \3"/p
13727 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13728 d
13729 :bsnl
13730 s/["\\]/\\&/g
13731 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13732 D["\1"]=" \3\\\\\\n"\\/p
13733 t cont
13734 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13735 t cont
13736 d
13737 :cont
13738 n
13739 s/.\{148\}/&'"$ac_delim"'/g
13740 t clear
13741 :clear
13742 s/\\$//
13743 t bsnlc
13744 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13745 d
13746 :bsnlc
13747 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13748 b cont
13749 ' <confdefs.h | sed '
13750 s/'"$ac_delim"'/"\\\
13751 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13752
13753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13754   for (key in D) D_is_set[key] = 1
13755   FS = "\a"
13756 }
13757 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13758   line = \$ 0
13759   split(line, arg, " ")
13760   if (arg[1] == "#") {
13761     defundef = arg[2]
13762     mac1 = arg[3]
13763   } else {
13764     defundef = substr(arg[1], 2)
13765     mac1 = arg[2]
13766   }
13767   split(mac1, mac2, "(") #)
13768   macro = mac2[1]
13769   prefix = substr(line, 1, index(line, defundef) - 1)
13770   if (D_is_set[macro]) {
13771     # Preserve the white space surrounding the "#".
13772     print prefix "define", macro P[macro] D[macro]
13773     next
13774   } else {
13775     # Replace #undef with comments.  This is necessary, for example,
13776     # in the case of _POSIX_SOURCE, which is predefined and required
13777     # on some systems where configure will not decide to define it.
13778     if (defundef == "undef") {
13779       print "/*", prefix defundef, macro, "*/"
13780       next
13781     }
13782   }
13783 }
13784 { print }
13785 _ACAWK
13786 _ACEOF
13787 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13788   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13789 fi # test -n "$CONFIG_HEADERS"
13790
13791
13792 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13793 shift
13794 for ac_tag
13795 do
13796   case $ac_tag in
13797   :[FHLC]) ac_mode=$ac_tag; continue;;
13798   esac
13799   case $ac_mode$ac_tag in
13800   :[FHL]*:*);;
13801   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13802   :[FH]-) ac_tag=-:-;;
13803   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13804   esac
13805   ac_save_IFS=$IFS
13806   IFS=:
13807   set x $ac_tag
13808   IFS=$ac_save_IFS
13809   shift
13810   ac_file=$1
13811   shift
13812
13813   case $ac_mode in
13814   :L) ac_source=$1;;
13815   :[FH])
13816     ac_file_inputs=
13817     for ac_f
13818     do
13819       case $ac_f in
13820       -) ac_f="$ac_tmp/stdin";;
13821       *) # Look for the file first in the build tree, then in the source tree
13822          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13823          # because $ac_f cannot contain `:'.
13824          test -f "$ac_f" ||
13825            case $ac_f in
13826            [\\/$]*) false;;
13827            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13828            esac ||
13829            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13830       esac
13831       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13832       as_fn_append ac_file_inputs " '$ac_f'"
13833     done
13834
13835     # Let's still pretend it is `configure' which instantiates (i.e., don't
13836     # use $as_me), people would be surprised to read:
13837     #    /* config.h.  Generated by config.status.  */
13838     configure_input='Generated from '`
13839           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13840         `' by configure.'
13841     if test x"$ac_file" != x-; then
13842       configure_input="$ac_file.  $configure_input"
13843       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13844 $as_echo "$as_me: creating $ac_file" >&6;}
13845     fi
13846     # Neutralize special characters interpreted by sed in replacement strings.
13847     case $configure_input in #(
13848     *\&* | *\|* | *\\* )
13849        ac_sed_conf_input=`$as_echo "$configure_input" |
13850        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13851     *) ac_sed_conf_input=$configure_input;;
13852     esac
13853
13854     case $ac_tag in
13855     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13856       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13857     esac
13858     ;;
13859   esac
13860
13861   ac_dir=`$as_dirname -- "$ac_file" ||
13862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13863          X"$ac_file" : 'X\(//\)[^/]' \| \
13864          X"$ac_file" : 'X\(//\)$' \| \
13865          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13866 $as_echo X"$ac_file" |
13867     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13868             s//\1/
13869             q
13870           }
13871           /^X\(\/\/\)[^/].*/{
13872             s//\1/
13873             q
13874           }
13875           /^X\(\/\/\)$/{
13876             s//\1/
13877             q
13878           }
13879           /^X\(\/\).*/{
13880             s//\1/
13881             q
13882           }
13883           s/.*/./; q'`
13884   as_dir="$ac_dir"; as_fn_mkdir_p
13885   ac_builddir=.
13886
13887 case "$ac_dir" in
13888 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13889 *)
13890   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13891   # A ".." for each directory in $ac_dir_suffix.
13892   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13893   case $ac_top_builddir_sub in
13894   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13895   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13896   esac ;;
13897 esac
13898 ac_abs_top_builddir=$ac_pwd
13899 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13900 # for backward compatibility:
13901 ac_top_builddir=$ac_top_build_prefix
13902
13903 case $srcdir in
13904   .)  # We are building in place.
13905     ac_srcdir=.
13906     ac_top_srcdir=$ac_top_builddir_sub
13907     ac_abs_top_srcdir=$ac_pwd ;;
13908   [\\/]* | ?:[\\/]* )  # Absolute name.
13909     ac_srcdir=$srcdir$ac_dir_suffix;
13910     ac_top_srcdir=$srcdir
13911     ac_abs_top_srcdir=$srcdir ;;
13912   *) # Relative name.
13913     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13914     ac_top_srcdir=$ac_top_build_prefix$srcdir
13915     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13916 esac
13917 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13918
13919
13920   case $ac_mode in
13921   :F)
13922   #
13923   # CONFIG_FILE
13924   #
13925
13926   case $INSTALL in
13927   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13928   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13929   esac
13930   ac_MKDIR_P=$MKDIR_P
13931   case $MKDIR_P in
13932   [\\/$]* | ?:[\\/]* ) ;;
13933   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13934   esac
13935 _ACEOF
13936
13937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13938 # If the template does not know about datarootdir, expand it.
13939 # FIXME: This hack should be removed a few years after 2.60.
13940 ac_datarootdir_hack=; ac_datarootdir_seen=
13941 ac_sed_dataroot='
13942 /datarootdir/ {
13943   p
13944   q
13945 }
13946 /@datadir@/p
13947 /@docdir@/p
13948 /@infodir@/p
13949 /@localedir@/p
13950 /@mandir@/p'
13951 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13952 *datarootdir*) ac_datarootdir_seen=yes;;
13953 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13954   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13955 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13956 _ACEOF
13957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13958   ac_datarootdir_hack='
13959   s&@datadir@&$datadir&g
13960   s&@docdir@&$docdir&g
13961   s&@infodir@&$infodir&g
13962   s&@localedir@&$localedir&g
13963   s&@mandir@&$mandir&g
13964   s&\\\${datarootdir}&$datarootdir&g' ;;
13965 esac
13966 _ACEOF
13967
13968 # Neutralize VPATH when `$srcdir' = `.'.
13969 # Shell code in configure.ac might set extrasub.
13970 # FIXME: do we really want to maintain this feature?
13971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13972 ac_sed_extra="$ac_vpsub
13973 $extrasub
13974 _ACEOF
13975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13976 :t
13977 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13978 s|@configure_input@|$ac_sed_conf_input|;t t
13979 s&@top_builddir@&$ac_top_builddir_sub&;t t
13980 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13981 s&@srcdir@&$ac_srcdir&;t t
13982 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13983 s&@top_srcdir@&$ac_top_srcdir&;t t
13984 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13985 s&@builddir@&$ac_builddir&;t t
13986 s&@abs_builddir@&$ac_abs_builddir&;t t
13987 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13988 s&@INSTALL@&$ac_INSTALL&;t t
13989 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13990 $ac_datarootdir_hack
13991 "
13992 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13993   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13994
13995 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13996   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13997   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13998       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13999   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14000 which seems to be undefined.  Please make sure it is defined" >&5
14001 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14002 which seems to be undefined.  Please make sure it is defined" >&2;}
14003
14004   rm -f "$ac_tmp/stdin"
14005   case $ac_file in
14006   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14007   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14008   esac \
14009   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14010  ;;
14011   :H)
14012   #
14013   # CONFIG_HEADER
14014   #
14015   if test x"$ac_file" != x-; then
14016     {
14017       $as_echo "/* $configure_input  */" \
14018       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14019     } >"$ac_tmp/config.h" \
14020       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14021     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14022       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14023 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14024     else
14025       rm -f "$ac_file"
14026       mv "$ac_tmp/config.h" "$ac_file" \
14027         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14028     fi
14029   else
14030     $as_echo "/* $configure_input  */" \
14031       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14032       || as_fn_error $? "could not create -" "$LINENO" 5
14033   fi
14034 # Compute "$ac_file"'s index in $config_headers.
14035 _am_arg="$ac_file"
14036 _am_stamp_count=1
14037 for _am_header in $config_headers :; do
14038   case $_am_header in
14039     $_am_arg | $_am_arg:* )
14040       break ;;
14041     * )
14042       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14043   esac
14044 done
14045 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14046 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14047          X"$_am_arg" : 'X\(//\)[^/]' \| \
14048          X"$_am_arg" : 'X\(//\)$' \| \
14049          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14050 $as_echo X"$_am_arg" |
14051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14052             s//\1/
14053             q
14054           }
14055           /^X\(\/\/\)[^/].*/{
14056             s//\1/
14057             q
14058           }
14059           /^X\(\/\/\)$/{
14060             s//\1/
14061             q
14062           }
14063           /^X\(\/\).*/{
14064             s//\1/
14065             q
14066           }
14067           s/.*/./; q'`/stamp-h$_am_stamp_count
14068  ;;
14069
14070   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14071 $as_echo "$as_me: executing $ac_file commands" >&6;}
14072  ;;
14073   esac
14074
14075
14076   case $ac_file$ac_mode in
14077     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14078   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14079   # are listed without --file.  Let's play safe and only enable the eval
14080   # if we detect the quoting.
14081   case $CONFIG_FILES in
14082   *\'*) eval set x "$CONFIG_FILES" ;;
14083   *)   set x $CONFIG_FILES ;;
14084   esac
14085   shift
14086   for mf
14087   do
14088     # Strip MF so we end up with the name of the file.
14089     mf=`echo "$mf" | sed -e 's/:.*$//'`
14090     # Check whether this is an Automake generated Makefile or not.
14091     # We used to match only the files named `Makefile.in', but
14092     # some people rename them; so instead we look at the file content.
14093     # Grep'ing the first line is not enough: some people post-process
14094     # each Makefile.in and add a new line on top of each file to say so.
14095     # Grep'ing the whole file is not good either: AIX grep has a line
14096     # limit of 2048, but all sed's we know have understand at least 4000.
14097     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14098       dirpart=`$as_dirname -- "$mf" ||
14099 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14100          X"$mf" : 'X\(//\)[^/]' \| \
14101          X"$mf" : 'X\(//\)$' \| \
14102          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14103 $as_echo X"$mf" |
14104     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14105             s//\1/
14106             q
14107           }
14108           /^X\(\/\/\)[^/].*/{
14109             s//\1/
14110             q
14111           }
14112           /^X\(\/\/\)$/{
14113             s//\1/
14114             q
14115           }
14116           /^X\(\/\).*/{
14117             s//\1/
14118             q
14119           }
14120           s/.*/./; q'`
14121     else
14122       continue
14123     fi
14124     # Extract the definition of DEPDIR, am__include, and am__quote
14125     # from the Makefile without running `make'.
14126     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14127     test -z "$DEPDIR" && continue
14128     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14129     test -z "am__include" && continue
14130     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14131     # When using ansi2knr, U may be empty or an underscore; expand it
14132     U=`sed -n 's/^U = //p' < "$mf"`
14133     # Find all dependency output files, they are included files with
14134     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14135     # simplest approach to changing $(DEPDIR) to its actual value in the
14136     # expansion.
14137     for file in `sed -n "
14138       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14139          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14140       # Make sure the directory exists.
14141       test -f "$dirpart/$file" && continue
14142       fdir=`$as_dirname -- "$file" ||
14143 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14144          X"$file" : 'X\(//\)[^/]' \| \
14145          X"$file" : 'X\(//\)$' \| \
14146          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14147 $as_echo X"$file" |
14148     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14149             s//\1/
14150             q
14151           }
14152           /^X\(\/\/\)[^/].*/{
14153             s//\1/
14154             q
14155           }
14156           /^X\(\/\/\)$/{
14157             s//\1/
14158             q
14159           }
14160           /^X\(\/\).*/{
14161             s//\1/
14162             q
14163           }
14164           s/.*/./; q'`
14165       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14166       # echo "creating $dirpart/$file"
14167       echo '# dummy' > "$dirpart/$file"
14168     done
14169   done
14170 }
14171  ;;
14172     "libtool":C)
14173
14174     # See if we are running on zsh, and set the options which allow our
14175     # commands through without removal of \ escapes.
14176     if test -n "${ZSH_VERSION+set}" ; then
14177       setopt NO_GLOB_SUBST
14178     fi
14179
14180     cfgfile="${ofile}T"
14181     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14182     $RM "$cfgfile"
14183
14184     cat <<_LT_EOF >> "$cfgfile"
14185 #! $SHELL
14186
14187 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14188 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14189 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14191 #
14192 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14193 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14194 #                 Foundation, Inc.
14195 #   Written by Gordon Matzigkeit, 1996
14196 #
14197 #   This file is part of GNU Libtool.
14198 #
14199 # GNU Libtool is free software; you can redistribute it and/or
14200 # modify it under the terms of the GNU General Public License as
14201 # published by the Free Software Foundation; either version 2 of
14202 # the License, or (at your option) any later version.
14203 #
14204 # As a special exception to the GNU General Public License,
14205 # if you distribute this file as part of a program or library that
14206 # is built using GNU Libtool, you may include this file under the
14207 # same distribution terms that you use for the rest of that program.
14208 #
14209 # GNU Libtool is distributed in the hope that it will be useful,
14210 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14212 # GNU General Public License for more details.
14213 #
14214 # You should have received a copy of the GNU General Public License
14215 # along with GNU Libtool; see the file COPYING.  If not, a copy
14216 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14217 # obtained by writing to the Free Software Foundation, Inc.,
14218 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14219
14220
14221 # The names of the tagged configurations supported by this script.
14222 available_tags=""
14223
14224 # ### BEGIN LIBTOOL CONFIG
14225
14226 # Which release of libtool.m4 was used?
14227 macro_version=$macro_version
14228 macro_revision=$macro_revision
14229
14230 # Whether or not to build shared libraries.
14231 build_libtool_libs=$enable_shared
14232
14233 # Whether or not to build static libraries.
14234 build_old_libs=$enable_static
14235
14236 # What type of objects to build.
14237 pic_mode=$pic_mode
14238
14239 # Whether or not to optimize for fast installation.
14240 fast_install=$enable_fast_install
14241
14242 # Shell to use when invoking shell scripts.
14243 SHELL=$lt_SHELL
14244
14245 # An echo program that protects backslashes.
14246 ECHO=$lt_ECHO
14247
14248 # The PATH separator for the build system.
14249 PATH_SEPARATOR=$lt_PATH_SEPARATOR
14250
14251 # The host system.
14252 host_alias=$host_alias
14253 host=$host
14254 host_os=$host_os
14255
14256 # The build system.
14257 build_alias=$build_alias
14258 build=$build
14259 build_os=$build_os
14260
14261 # A sed program that does not truncate output.
14262 SED=$lt_SED
14263
14264 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14265 Xsed="\$SED -e 1s/^X//"
14266
14267 # A grep program that handles long lines.
14268 GREP=$lt_GREP
14269
14270 # An ERE matcher.
14271 EGREP=$lt_EGREP
14272
14273 # A literal string matcher.
14274 FGREP=$lt_FGREP
14275
14276 # A BSD- or MS-compatible name lister.
14277 NM=$lt_NM
14278
14279 # Whether we need soft or hard links.
14280 LN_S=$lt_LN_S
14281
14282 # What is the maximum length of a command?
14283 max_cmd_len=$max_cmd_len
14284
14285 # Object file suffix (normally "o").
14286 objext=$ac_objext
14287
14288 # Executable file suffix (normally "").
14289 exeext=$exeext
14290
14291 # whether the shell understands "unset".
14292 lt_unset=$lt_unset
14293
14294 # turn spaces into newlines.
14295 SP2NL=$lt_lt_SP2NL
14296
14297 # turn newlines into spaces.
14298 NL2SP=$lt_lt_NL2SP
14299
14300 # convert \$build file names to \$host format.
14301 to_host_file_cmd=$lt_cv_to_host_file_cmd
14302
14303 # convert \$build files to toolchain format.
14304 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14305
14306 # An object symbol dumper.
14307 OBJDUMP=$lt_OBJDUMP
14308
14309 # Method to check whether dependent libraries are shared objects.
14310 deplibs_check_method=$lt_deplibs_check_method
14311
14312 # Command to use when deplibs_check_method = "file_magic".
14313 file_magic_cmd=$lt_file_magic_cmd
14314
14315 # How to find potential files when deplibs_check_method = "file_magic".
14316 file_magic_glob=$lt_file_magic_glob
14317
14318 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14319 want_nocaseglob=$lt_want_nocaseglob
14320
14321 # DLL creation program.
14322 DLLTOOL=$lt_DLLTOOL
14323
14324 # Command to associate shared and link libraries.
14325 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14326
14327 # The archiver.
14328 AR=$lt_AR
14329
14330 # Flags to create an archive.
14331 AR_FLAGS=$lt_AR_FLAGS
14332
14333 # How to feed a file listing to the archiver.
14334 archiver_list_spec=$lt_archiver_list_spec
14335
14336 # A symbol stripping program.
14337 STRIP=$lt_STRIP
14338
14339 # Commands used to install an old-style archive.
14340 RANLIB=$lt_RANLIB
14341 old_postinstall_cmds=$lt_old_postinstall_cmds
14342 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14343
14344 # Whether to use a lock for old archive extraction.
14345 lock_old_archive_extraction=$lock_old_archive_extraction
14346
14347 # A C compiler.
14348 LTCC=$lt_CC
14349
14350 # LTCC compiler flags.
14351 LTCFLAGS=$lt_CFLAGS
14352
14353 # Take the output of nm and produce a listing of raw symbols and C names.
14354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14355
14356 # Transform the output of nm in a proper C declaration.
14357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14358
14359 # Transform the output of nm in a C name address pair.
14360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14361
14362 # Transform the output of nm in a C name address pair when lib prefix is needed.
14363 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14364
14365 # Specify filename containing input files for \$NM.
14366 nm_file_list_spec=$lt_nm_file_list_spec
14367
14368 # The root where to search for dependent libraries,and in which our libraries should be installed.
14369 lt_sysroot=$lt_sysroot
14370
14371 # The name of the directory that contains temporary libtool files.
14372 objdir=$objdir
14373
14374 # Used to examine libraries when file_magic_cmd begins with "file".
14375 MAGIC_CMD=$MAGIC_CMD
14376
14377 # Must we lock files when doing compilation?
14378 need_locks=$lt_need_locks
14379
14380 # Manifest tool.
14381 MANIFEST_TOOL=$lt_MANIFEST_TOOL
14382
14383 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14384 DSYMUTIL=$lt_DSYMUTIL
14385
14386 # Tool to change global to local symbols on Mac OS X.
14387 NMEDIT=$lt_NMEDIT
14388
14389 # Tool to manipulate fat objects and archives on Mac OS X.
14390 LIPO=$lt_LIPO
14391
14392 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14393 OTOOL=$lt_OTOOL
14394
14395 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14396 OTOOL64=$lt_OTOOL64
14397
14398 # Old archive suffix (normally "a").
14399 libext=$libext
14400
14401 # Shared library suffix (normally ".so").
14402 shrext_cmds=$lt_shrext_cmds
14403
14404 # The commands to extract the exported symbol list from a shared archive.
14405 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14406
14407 # Variables whose values should be saved in libtool wrapper scripts and
14408 # restored at link time.
14409 variables_saved_for_relink=$lt_variables_saved_for_relink
14410
14411 # Do we need the "lib" prefix for modules?
14412 need_lib_prefix=$need_lib_prefix
14413
14414 # Do we need a version for libraries?
14415 need_version=$need_version
14416
14417 # Library versioning type.
14418 version_type=$version_type
14419
14420 # Shared library runtime path variable.
14421 runpath_var=$runpath_var
14422
14423 # Shared library path variable.
14424 shlibpath_var=$shlibpath_var
14425
14426 # Is shlibpath searched before the hard-coded library search path?
14427 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14428
14429 # Format of library name prefix.
14430 libname_spec=$lt_libname_spec
14431
14432 # List of archive names.  First name is the real one, the rest are links.
14433 # The last name is the one that the linker finds with -lNAME
14434 library_names_spec=$lt_library_names_spec
14435
14436 # The coded name of the library, if different from the real name.
14437 soname_spec=$lt_soname_spec
14438
14439 # Permission mode override for installation of shared libraries.
14440 install_override_mode=$lt_install_override_mode
14441
14442 # Command to use after installation of a shared archive.
14443 postinstall_cmds=$lt_postinstall_cmds
14444
14445 # Command to use after uninstallation of a shared archive.
14446 postuninstall_cmds=$lt_postuninstall_cmds
14447
14448 # Commands used to finish a libtool library installation in a directory.
14449 finish_cmds=$lt_finish_cmds
14450
14451 # As "finish_cmds", except a single script fragment to be evaled but
14452 # not shown.
14453 finish_eval=$lt_finish_eval
14454
14455 # Whether we should hardcode library paths into libraries.
14456 hardcode_into_libs=$hardcode_into_libs
14457
14458 # Compile-time system search path for libraries.
14459 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14460
14461 # Run-time system search path for libraries.
14462 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14463
14464 # Whether dlopen is supported.
14465 dlopen_support=$enable_dlopen
14466
14467 # Whether dlopen of programs is supported.
14468 dlopen_self=$enable_dlopen_self
14469
14470 # Whether dlopen of statically linked programs is supported.
14471 dlopen_self_static=$enable_dlopen_self_static
14472
14473 # Commands to strip libraries.
14474 old_striplib=$lt_old_striplib
14475 striplib=$lt_striplib
14476
14477
14478 # The linker used to build libraries.
14479 LD=$lt_LD
14480
14481 # How to create reloadable object files.
14482 reload_flag=$lt_reload_flag
14483 reload_cmds=$lt_reload_cmds
14484
14485 # Commands used to build an old-style archive.
14486 old_archive_cmds=$lt_old_archive_cmds
14487
14488 # A language specific compiler.
14489 CC=$lt_compiler
14490
14491 # Is the compiler the GNU compiler?
14492 with_gcc=$GCC
14493
14494 # Compiler flag to turn off builtin functions.
14495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14496
14497 # Additional compiler flags for building library objects.
14498 pic_flag=$lt_lt_prog_compiler_pic
14499
14500 # How to pass a linker flag through the compiler.
14501 wl=$lt_lt_prog_compiler_wl
14502
14503 # Compiler flag to prevent dynamic linking.
14504 link_static_flag=$lt_lt_prog_compiler_static
14505
14506 # Does compiler simultaneously support -c and -o options?
14507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14508
14509 # Whether or not to add -lc for building shared libraries.
14510 build_libtool_need_lc=$archive_cmds_need_lc
14511
14512 # Whether or not to disallow shared libs when runtime libs are static.
14513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14514
14515 # Compiler flag to allow reflexive dlopens.
14516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14517
14518 # Compiler flag to generate shared objects directly from archives.
14519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14520
14521 # Whether the compiler copes with passing no objects directly.
14522 compiler_needs_object=$lt_compiler_needs_object
14523
14524 # Create an old-style archive from a shared archive.
14525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14526
14527 # Create a temporary old-style archive to link instead of a shared archive.
14528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14529
14530 # Commands used to build a shared archive.
14531 archive_cmds=$lt_archive_cmds
14532 archive_expsym_cmds=$lt_archive_expsym_cmds
14533
14534 # Commands used to build a loadable module if different from building
14535 # a shared archive.
14536 module_cmds=$lt_module_cmds
14537 module_expsym_cmds=$lt_module_expsym_cmds
14538
14539 # Whether we are building with GNU ld or not.
14540 with_gnu_ld=$lt_with_gnu_ld
14541
14542 # Flag that allows shared libraries with undefined symbols to be built.
14543 allow_undefined_flag=$lt_allow_undefined_flag
14544
14545 # Flag that enforces no undefined symbols.
14546 no_undefined_flag=$lt_no_undefined_flag
14547
14548 # Flag to hardcode \$libdir into a binary during linking.
14549 # This must work even if \$libdir does not exist
14550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14551
14552 # Whether we need a single "-rpath" flag with a separated argument.
14553 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14554
14555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14556 # DIR into the resulting binary.
14557 hardcode_direct=$hardcode_direct
14558
14559 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14560 # DIR into the resulting binary and the resulting library dependency is
14561 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14562 # library is relocated.
14563 hardcode_direct_absolute=$hardcode_direct_absolute
14564
14565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14566 # into the resulting binary.
14567 hardcode_minus_L=$hardcode_minus_L
14568
14569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14570 # into the resulting binary.
14571 hardcode_shlibpath_var=$hardcode_shlibpath_var
14572
14573 # Set to "yes" if building a shared library automatically hardcodes DIR
14574 # into the library and all subsequent libraries and executables linked
14575 # against it.
14576 hardcode_automatic=$hardcode_automatic
14577
14578 # Set to yes if linker adds runtime paths of dependent libraries
14579 # to runtime path list.
14580 inherit_rpath=$inherit_rpath
14581
14582 # Whether libtool must link a program against all its dependency libraries.
14583 link_all_deplibs=$link_all_deplibs
14584
14585 # Set to "yes" if exported symbols are required.
14586 always_export_symbols=$always_export_symbols
14587
14588 # The commands to list exported symbols.
14589 export_symbols_cmds=$lt_export_symbols_cmds
14590
14591 # Symbols that should not be listed in the preloaded symbols.
14592 exclude_expsyms=$lt_exclude_expsyms
14593
14594 # Symbols that must always be exported.
14595 include_expsyms=$lt_include_expsyms
14596
14597 # Commands necessary for linking programs (against libraries) with templates.
14598 prelink_cmds=$lt_prelink_cmds
14599
14600 # Commands necessary for finishing linking programs.
14601 postlink_cmds=$lt_postlink_cmds
14602
14603 # Specify filename containing input files.
14604 file_list_spec=$lt_file_list_spec
14605
14606 # How to hardcode a shared library path into an executable.
14607 hardcode_action=$hardcode_action
14608
14609 # ### END LIBTOOL CONFIG
14610
14611 _LT_EOF
14612
14613   case $host_os in
14614   aix3*)
14615     cat <<\_LT_EOF >> "$cfgfile"
14616 # AIX sometimes has problems with the GCC collect2 program.  For some
14617 # reason, if we set the COLLECT_NAMES environment variable, the problems
14618 # vanish in a puff of smoke.
14619 if test "X${COLLECT_NAMES+set}" != Xset; then
14620   COLLECT_NAMES=
14621   export COLLECT_NAMES
14622 fi
14623 _LT_EOF
14624     ;;
14625   esac
14626
14627
14628 ltmain="$ac_aux_dir/ltmain.sh"
14629
14630
14631   # We use sed instead of cat because bash on DJGPP gets confused if
14632   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14633   # text mode, it properly converts lines to CR/LF.  This bash problem
14634   # is reportedly fixed, but why not run on old versions too?
14635   sed '$q' "$ltmain" >> "$cfgfile" \
14636      || (rm -f "$cfgfile"; exit 1)
14637
14638   if test x"$xsi_shell" = xyes; then
14639   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14640 func_dirname ()\
14641 {\
14642 \    case ${1} in\
14643 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14644 \      *  ) func_dirname_result="${3}" ;;\
14645 \    esac\
14646 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14647   && mv -f "$cfgfile.tmp" "$cfgfile" \
14648     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14649 test 0 -eq $? || _lt_function_replace_fail=:
14650
14651
14652   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14653 func_basename ()\
14654 {\
14655 \    func_basename_result="${1##*/}"\
14656 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14657   && mv -f "$cfgfile.tmp" "$cfgfile" \
14658     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14659 test 0 -eq $? || _lt_function_replace_fail=:
14660
14661
14662   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14663 func_dirname_and_basename ()\
14664 {\
14665 \    case ${1} in\
14666 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14667 \      *  ) func_dirname_result="${3}" ;;\
14668 \    esac\
14669 \    func_basename_result="${1##*/}"\
14670 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14671   && mv -f "$cfgfile.tmp" "$cfgfile" \
14672     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14673 test 0 -eq $? || _lt_function_replace_fail=:
14674
14675
14676   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14677 func_stripname ()\
14678 {\
14679 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14680 \    # positional parameters, so assign one to ordinary parameter first.\
14681 \    func_stripname_result=${3}\
14682 \    func_stripname_result=${func_stripname_result#"${1}"}\
14683 \    func_stripname_result=${func_stripname_result%"${2}"}\
14684 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14685   && mv -f "$cfgfile.tmp" "$cfgfile" \
14686     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14687 test 0 -eq $? || _lt_function_replace_fail=:
14688
14689
14690   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14691 func_split_long_opt ()\
14692 {\
14693 \    func_split_long_opt_name=${1%%=*}\
14694 \    func_split_long_opt_arg=${1#*=}\
14695 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14696   && mv -f "$cfgfile.tmp" "$cfgfile" \
14697     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14698 test 0 -eq $? || _lt_function_replace_fail=:
14699
14700
14701   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14702 func_split_short_opt ()\
14703 {\
14704 \    func_split_short_opt_arg=${1#??}\
14705 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14706 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14707   && mv -f "$cfgfile.tmp" "$cfgfile" \
14708     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14709 test 0 -eq $? || _lt_function_replace_fail=:
14710
14711
14712   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14713 func_lo2o ()\
14714 {\
14715 \    case ${1} in\
14716 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14717 \      *)    func_lo2o_result=${1} ;;\
14718 \    esac\
14719 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14720   && mv -f "$cfgfile.tmp" "$cfgfile" \
14721     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14722 test 0 -eq $? || _lt_function_replace_fail=:
14723
14724
14725   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14726 func_xform ()\
14727 {\
14728     func_xform_result=${1%.*}.lo\
14729 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14730   && mv -f "$cfgfile.tmp" "$cfgfile" \
14731     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14732 test 0 -eq $? || _lt_function_replace_fail=:
14733
14734
14735   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14736 func_arith ()\
14737 {\
14738     func_arith_result=$(( $* ))\
14739 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14740   && mv -f "$cfgfile.tmp" "$cfgfile" \
14741     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14742 test 0 -eq $? || _lt_function_replace_fail=:
14743
14744
14745   sed -e '/^func_len ()$/,/^} # func_len /c\
14746 func_len ()\
14747 {\
14748     func_len_result=${#1}\
14749 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14750   && mv -f "$cfgfile.tmp" "$cfgfile" \
14751     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14752 test 0 -eq $? || _lt_function_replace_fail=:
14753
14754 fi
14755
14756 if test x"$lt_shell_append" = xyes; then
14757   sed -e '/^func_append ()$/,/^} # func_append /c\
14758 func_append ()\
14759 {\
14760     eval "${1}+=\\${2}"\
14761 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14762   && mv -f "$cfgfile.tmp" "$cfgfile" \
14763     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14764 test 0 -eq $? || _lt_function_replace_fail=:
14765
14766
14767   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14768 func_append_quoted ()\
14769 {\
14770 \    func_quote_for_eval "${2}"\
14771 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14772 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14773   && mv -f "$cfgfile.tmp" "$cfgfile" \
14774     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14775 test 0 -eq $? || _lt_function_replace_fail=:
14776
14777
14778   # Save a `func_append' function call where possible by direct use of '+='
14779   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14780     && mv -f "$cfgfile.tmp" "$cfgfile" \
14781       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14782   test 0 -eq $? || _lt_function_replace_fail=:
14783 else
14784   # Save a `func_append' function call even when '+=' is not available
14785   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14786     && mv -f "$cfgfile.tmp" "$cfgfile" \
14787       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14788   test 0 -eq $? || _lt_function_replace_fail=:
14789 fi
14790
14791 if test x"$_lt_function_replace_fail" = x":"; then
14792   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14793 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14794 fi
14795
14796
14797    mv -f "$cfgfile" "$ofile" ||
14798     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14799   chmod +x "$ofile"
14800
14801  ;;
14802
14803   esac
14804 done # for ac_tag
14805
14806
14807 as_fn_exit 0
14808 _ACEOF
14809 ac_clean_files=$ac_clean_files_save
14810
14811 test $ac_write_fail = 0 ||
14812   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14813
14814
14815 # configure is writing to config.log, and then calls config.status.
14816 # config.status does its own redirection, appending to config.log.
14817 # Unfortunately, on DOS this fails, as config.log is still kept open
14818 # by configure, so config.status won't be able to write to it; its
14819 # output is simply discarded.  So we exec the FD to /dev/null,
14820 # effectively closing config.log, so it can be properly (re)opened and
14821 # appended to by config.status.  When coming back to configure, we
14822 # need to make the FD available again.
14823 if test "$no_create" != yes; then
14824   ac_cs_success=:
14825   ac_config_status_args=
14826   test "$silent" = yes &&
14827     ac_config_status_args="$ac_config_status_args --quiet"
14828   exec 5>/dev/null
14829   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14830   exec 5>>config.log
14831   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14832   # would make configure fail if this is the last instruction.
14833   $ac_cs_success || as_fn_exit 1
14834 fi
14835 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14836   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14837 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14838 fi
14839