Rebase
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libffi 3.0.11.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22   emulate sh
23   NULLCMD=:
24   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25   # is contrary to our usage.  Disable this feature.
26   alias -g '${1+"$@"}'='"$@"'
27   setopt NO_GLOB_SUBST
28 else
29   case `(set -o) 2>/dev/null` in #(
30   *posix*) :
31     set -o posix ;; #(
32   *) :
33      ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49   as_echo='print -r --'
50   as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52   as_echo='printf %s\n'
53   as_echo_n='printf %s'
54 else
55   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57     as_echo_n='/usr/ucb/echo -n'
58   else
59     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60     as_echo_n_body='eval
61       arg=$1;
62       case $arg in #(
63       *"$as_nl"*)
64         expr "X$arg" : "X\\(.*\\)$as_nl";
65         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66       esac;
67       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68     '
69     export as_echo_n_body
70     as_echo_n='sh -c $as_echo_n_body as_echo'
71   fi
72   export as_echo_body
73   as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78   PATH_SEPARATOR=:
79   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81       PATH_SEPARATOR=';'
82   }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order.  Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" ""        $as_nl"
92
93 # Find who we are.  Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96   *[\\/]* ) as_myself=$0 ;;
97   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100   IFS=$as_save_IFS
101   test -z "$as_dir" && as_dir=.
102     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103   done
104 IFS=$as_save_IFS
105
106      ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111   as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115   exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there.  '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141   emulate sh
142   NULLCMD=:
143   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144   # is contrary to our usage.  Disable this feature.
145   alias -g '\${1+\"\$@\"}'='\"\$@\"'
146   setopt NO_GLOB_SUBST
147 else
148   case \`(set -o) 2>/dev/null\` in #(
149   *posix*) :
150     set -o posix ;; #(
151   *) :
152      ;;
153 esac
154 fi
155 "
156   as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170   exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186   if (eval "$as_required") 2>/dev/null; then :
187   as_have_required=yes
188 else
189   as_have_required=no
190 fi
191   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   test -z "$as_dir" && as_dir=.
200   as_found=:
201   case $as_dir in #(
202          /*)
203            for as_base in sh bash ksh sh5; do
204              # Try only shells that exist, to save several forks.
205              as_shell=$as_dir/$as_base
206              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208   CONFIG_SHELL=$as_shell as_have_required=yes
209                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210   break 2
211 fi
212 fi
213            done;;
214        esac
215   as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219   CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224       if test "x$CONFIG_SHELL" != x; then :
225   # We cannot yet assume a decent shell, so we have to provide a
226         # neutralization value for shells without unset; and this also
227         # works around shells that cannot unset nonexistent variables.
228         # Preserve -v and -x to the replacement shell.
229         BASH_ENV=/dev/null
230         ENV=/dev/null
231         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232         export CONFIG_SHELL
233         case $- in # ((((
234           *v*x* | *x*v* ) as_opts=-vx ;;
235           *v* ) as_opts=-v ;;
236           *x* ) as_opts=-x ;;
237           * ) as_opts= ;;
238         esac
239         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242     if test x$as_have_required = xno; then :
243   $as_echo "$0: This script requires a shell more modern than all"
244   $as_echo "$0: the shells that I found on your system."
245   if test x${ZSH_VERSION+set} = xset ; then
246     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248   else
249     $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://github.com/atgreen/libffi/issues about your
251 $0: system, including any error possibly output before this
252 $0: message. Then install a modern shell, or manually run
253 $0: the script under such a shell if you do have one."
254   fi
255   exit 1
256 fi
257 fi
258 fi
259 SHELL=${CONFIG_SHELL-/bin/sh}
260 export SHELL
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
264
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
268 # as_fn_unset VAR
269 # ---------------
270 # Portably unset VAR.
271 as_fn_unset ()
272 {
273   { eval $1=; unset $1;}
274 }
275 as_unset=as_fn_unset
276
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
280 as_fn_set_status ()
281 {
282   return $1
283 } # as_fn_set_status
284
285 # as_fn_exit STATUS
286 # -----------------
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 as_fn_exit ()
289 {
290   set +e
291   as_fn_set_status $1
292   exit $1
293 } # as_fn_exit
294
295 # as_fn_mkdir_p
296 # -------------
297 # Create "$as_dir" as a directory, including parents if necessary.
298 as_fn_mkdir_p ()
299 {
300
301   case $as_dir in #(
302   -*) as_dir=./$as_dir;;
303   esac
304   test -d "$as_dir" || eval $as_mkdir_p || {
305     as_dirs=
306     while :; do
307       case $as_dir in #(
308       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309       *) as_qdir=$as_dir;;
310       esac
311       as_dirs="'$as_qdir' $as_dirs"
312       as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314          X"$as_dir" : 'X\(//\)[^/]' \| \
315          X"$as_dir" : 'X\(//\)$' \| \
316          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319             s//\1/
320             q
321           }
322           /^X\(\/\/\)[^/].*/{
323             s//\1/
324             q
325           }
326           /^X\(\/\/\)$/{
327             s//\1/
328             q
329           }
330           /^X\(\/\).*/{
331             s//\1/
332             q
333           }
334           s/.*/./; q'`
335       test -d "$as_dir" && break
336     done
337     test -z "$as_dirs" || eval "mkdir $as_dirs"
338   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341 } # as_fn_mkdir_p
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
347 # implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349   eval 'as_fn_append ()
350   {
351     eval $1+=\$2
352   }'
353 else
354   as_fn_append ()
355   {
356     eval $1=\$$1\$2
357   }
358 fi # as_fn_append
359
360 # as_fn_arith ARG...
361 # ------------------
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366   eval 'as_fn_arith ()
367   {
368     as_val=$(( $* ))
369   }'
370 else
371   as_fn_arith ()
372   {
373     as_val=`expr "$@" || test $? -eq 1`
374   }
375 fi # as_fn_arith
376
377
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
383 as_fn_error ()
384 {
385   as_status=$1; test $as_status -eq 0 && as_status=1
386   if test "$4"; then
387     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389   fi
390   $as_echo "$as_me: error: $2" >&2
391   as_fn_exit $as_status
392 } # as_fn_error
393
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395    test "X`expr 00001 : '.*\(...\)'`" = X001; then
396   as_expr=expr
397 else
398   as_expr=false
399 fi
400
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402   as_basename=basename
403 else
404   as_basename=false
405 fi
406
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408   as_dirname=dirname
409 else
410   as_dirname=false
411 fi
412
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415          X"$0" : 'X\(//\)$' \| \
416          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 $as_echo X/"$0" |
418     sed '/^.*\/\([^/][^/]*\)\/*$/{
419             s//\1/
420             q
421           }
422           /^X\/\(\/\/\)$/{
423             s//\1/
424             q
425           }
426           /^X\/\(\/\).*/{
427             s//\1/
428             q
429           }
430           s/.*/./; q'`
431
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440   as_lineno_1=$LINENO as_lineno_1a=$LINENO
441   as_lineno_2=$LINENO as_lineno_2a=$LINENO
442   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445   sed -n '
446     p
447     /[$]LINENO/=
448   ' <$as_myself |
449     sed '
450       s/[$]LINENO.*/&-/
451       t lineno
452       b
453       :lineno
454       N
455       :loop
456       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457       t loop
458       s/-\n.*//
459     ' >$as_me.lineno &&
460   chmod +x "$as_me.lineno" ||
461     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463   # Don't try to exec as it changes $[0], causing all sort of problems
464   # (the dirname of $[0] is not the place where we might find the
465   # original and so on.  Autoconf is especially sensitive to this).
466   . "./$as_me.lineno"
467   # Exit status is that of the last command.
468   exit
469 }
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
473 -n*)
474   case `echo 'xy\c'` in
475   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
476   xy)  ECHO_C='\c';;
477   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478        ECHO_T=' ';;
479   esac;;
480 *)
481   ECHO_N='-n';;
482 esac
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486   rm -f conf$$.dir/conf$$.file
487 else
488   rm -f conf$$.dir
489   mkdir conf$$.dir 2>/dev/null
490 fi
491 if (echo >conf$$.file) 2>/dev/null; then
492   if ln -s conf$$.file conf$$ 2>/dev/null; then
493     as_ln_s='ln -s'
494     # ... but there are two gotchas:
495     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497     # In both cases, we have to default to `cp -p'.
498     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499       as_ln_s='cp -p'
500   elif ln conf$$.file conf$$ 2>/dev/null; then
501     as_ln_s=ln
502   else
503     as_ln_s='cp -p'
504   fi
505 else
506   as_ln_s='cp -p'
507 fi
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
510
511 if mkdir -p . 2>/dev/null; then
512   as_mkdir_p='mkdir -p "$as_dir"'
513 else
514   test -d ./-p && rmdir ./-p
515   as_mkdir_p=false
516 fi
517
518 if test -x / >/dev/null 2>&1; then
519   as_test_x='test -x'
520 else
521   if ls -dL / >/dev/null 2>&1; then
522     as_ls_L_option=L
523   else
524     as_ls_L_option=
525   fi
526   as_test_x='
527     eval sh -c '\''
528       if test -d "$1"; then
529         test -d "$1/.";
530       else
531         case $1 in #(
532         -*)set "./$1";;
533         esac;
534         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535         ???[sx]*):;;*)false;;esac;fi
536     '\'' sh
537   '
538 fi
539 as_executable_p=$as_test_x
540
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547 SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550 test -n "$DJDIR" || exec 7<&0 </dev/null
551 exec 6>&1
552
553 # Name of the host.
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558 #
559 # Initializations.
560 #
561 ac_default_prefix=/usr/local
562 ac_clean_files=
563 ac_config_libobj_dir=.
564 LIBOBJS=
565 cross_compiling=no
566 subdirs=
567 MFLAGS=
568 MAKEFLAGS=
569
570 # Identity of this package.
571 PACKAGE_NAME='libffi'
572 PACKAGE_TARNAME='libffi'
573 PACKAGE_VERSION='3.0.11'
574 PACKAGE_STRING='libffi 3.0.11'
575 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
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_subst_vars='am__EXEEXT_FALSE
615 am__EXEEXT_TRUE
616 LTLIBOBJS
617 LIBOBJS
618 toolexeclibdir
619 toolexecdir
620 FFI_DEBUG_FALSE
621 FFI_DEBUG_TRUE
622 TARGETDIR
623 TARGET
624 FFI_EXEC_TRAMPOLINE_TABLE
625 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
626 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
627 sys_symbol_underscore
628 HAVE_LONG_DOUBLE
629 ALLOCA
630 PA64_HPUX_FALSE
631 PA64_HPUX_TRUE
632 PA_HPUX_FALSE
633 PA_HPUX_TRUE
634 PA_LINUX_FALSE
635 PA_LINUX_TRUE
636 SH64_FALSE
637 SH64_TRUE
638 SH_FALSE
639 SH_TRUE
640 X86_64_FALSE
641 X86_64_TRUE
642 S390_FALSE
643 S390_TRUE
644 FRV_FALSE
645 FRV_TRUE
646 LIBFFI_CRIS_FALSE
647 LIBFFI_CRIS_TRUE
648 AVR32_FALSE
649 AVR32_TRUE
650 ARM_FALSE
651 ARM_TRUE
652 POWERPC_FREEBSD_FALSE
653 POWERPC_FREEBSD_TRUE
654 POWERPC_DARWIN_FALSE
655 POWERPC_DARWIN_TRUE
656 POWERPC_AIX_FALSE
657 POWERPC_AIX_TRUE
658 POWERPC_FALSE
659 POWERPC_TRUE
660 MOXIE_FALSE
661 MOXIE_TRUE
662 M68K_FALSE
663 M68K_TRUE
664 M32R_FALSE
665 M32R_TRUE
666 IA64_FALSE
667 IA64_TRUE
668 ALPHA_FALSE
669 ALPHA_TRUE
670 X86_DARWIN_FALSE
671 X86_DARWIN_TRUE
672 X86_WIN64_FALSE
673 X86_WIN64_TRUE
674 X86_WIN32_FALSE
675 X86_WIN32_TRUE
676 X86_FREEBSD_FALSE
677 X86_FREEBSD_TRUE
678 X86_FALSE
679 X86_TRUE
680 SPARC_FALSE
681 SPARC_TRUE
682 BFIN_FALSE
683 BFIN_TRUE
684 MIPS_FALSE
685 MIPS_TRUE
686 AM_LTLDFLAGS
687 AM_RUNTESTFLAGS
688 TESTSUBDIR_FALSE
689 TESTSUBDIR_TRUE
690 MAINT
691 MAINTAINER_MODE_FALSE
692 MAINTAINER_MODE_TRUE
693 CPP
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 DLLTOOL
704 OBJDUMP
705 LN_S
706 NM
707 ac_ct_DUMPBIN
708 DUMPBIN
709 LD
710 FGREP
711 EGREP
712 GREP
713 SED
714 LIBTOOL
715 am__fastdepCCAS_FALSE
716 am__fastdepCCAS_TRUE
717 CCASDEPMODE
718 CCASFLAGS
719 CCAS
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
736 CC
737 am__untar
738 am__tar
739 AMTAR
740 am__leading_dot
741 SET_MAKE
742 AWK
743 mkdir_p
744 MKDIR_P
745 INSTALL_STRIP_PROGRAM
746 STRIP
747 install_sh
748 MAKEINFO
749 AUTOHEADER
750 AUTOMAKE
751 AUTOCONF
752 ACLOCAL
753 VERSION
754 PACKAGE
755 CYGPATH_W
756 am__isrc
757 INSTALL_DATA
758 INSTALL_SCRIPT
759 INSTALL_PROGRAM
760 target_os
761 target_vendor
762 target_cpu
763 target
764 host_os
765 host_vendor
766 host_cpu
767 host
768 build_os
769 build_vendor
770 build_cpu
771 build
772 target_alias
773 host_alias
774 build_alias
775 LIBS
776 ECHO_T
777 ECHO_N
778 ECHO_C
779 DEFS
780 mandir
781 localedir
782 libdir
783 psdir
784 pdfdir
785 dvidir
786 htmldir
787 infodir
788 docdir
789 oldincludedir
790 includedir
791 localstatedir
792 sharedstatedir
793 sysconfdir
794 datadir
795 datarootdir
796 libexecdir
797 sbindir
798 bindir
799 program_transform_name
800 prefix
801 exec_prefix
802 PACKAGE_URL
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files=''
811 ac_user_opts='
812 enable_option_checking
813 enable_dependency_tracking
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_maintainer_mode
822 enable_debug
823 enable_structs
824 enable_raw_api
825 enable_purify_safety
826 '
827       ac_precious_vars='build_alias
828 host_alias
829 target_alias
830 CCAS
831 CCASFLAGS
832 CPP
833 CPPFLAGS'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888   # If the previous option needs an argument, assign it.
889   if test -n "$ac_prev"; then
890     eval $ac_prev=\$ac_option
891     ac_prev=
892     continue
893   fi
894
895   case $ac_option in
896   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897   *=)   ac_optarg= ;;
898   *)    ac_optarg=yes ;;
899   esac
900
901   # Accept the important Cygnus configure options, so we can diagnose typos.
902
903   case $ac_dashdash$ac_option in
904   --)
905     ac_dashdash=yes ;;
906
907   -bindir | --bindir | --bindi | --bind | --bin | --bi)
908     ac_prev=bindir ;;
909   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910     bindir=$ac_optarg ;;
911
912   -build | --build | --buil | --bui | --bu)
913     ac_prev=build_alias ;;
914   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915     build_alias=$ac_optarg ;;
916
917   -cache-file | --cache-file | --cache-fil | --cache-fi \
918   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919     ac_prev=cache_file ;;
920   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922     cache_file=$ac_optarg ;;
923
924   --config-cache | -C)
925     cache_file=config.cache ;;
926
927   -datadir | --datadir | --datadi | --datad)
928     ac_prev=datadir ;;
929   -datadir=* | --datadir=* | --datadi=* | --datad=*)
930     datadir=$ac_optarg ;;
931
932   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933   | --dataroo | --dataro | --datar)
934     ac_prev=datarootdir ;;
935   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937     datarootdir=$ac_optarg ;;
938
939   -disable-* | --disable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error $? "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=no ;;
954
955   -docdir | --docdir | --docdi | --doc | --do)
956     ac_prev=docdir ;;
957   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958     docdir=$ac_optarg ;;
959
960   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961     ac_prev=dvidir ;;
962   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963     dvidir=$ac_optarg ;;
964
965   -enable-* | --enable-*)
966     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967     # Reject names that are not valid shell variable names.
968     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969       as_fn_error $? "invalid feature name: $ac_useropt"
970     ac_useropt_orig=$ac_useropt
971     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972     case $ac_user_opts in
973       *"
974 "enable_$ac_useropt"
975 "*) ;;
976       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977          ac_unrecognized_sep=', ';;
978     esac
979     eval enable_$ac_useropt=\$ac_optarg ;;
980
981   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983   | --exec | --exe | --ex)
984     ac_prev=exec_prefix ;;
985   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987   | --exec=* | --exe=* | --ex=*)
988     exec_prefix=$ac_optarg ;;
989
990   -gas | --gas | --ga | --g)
991     # Obsolete; use --with-gas.
992     with_gas=yes ;;
993
994   -help | --help | --hel | --he | -h)
995     ac_init_help=long ;;
996   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997     ac_init_help=recursive ;;
998   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999     ac_init_help=short ;;
1000
1001   -host | --host | --hos | --ho)
1002     ac_prev=host_alias ;;
1003   -host=* | --host=* | --hos=* | --ho=*)
1004     host_alias=$ac_optarg ;;
1005
1006   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007     ac_prev=htmldir ;;
1008   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009   | --ht=*)
1010     htmldir=$ac_optarg ;;
1011
1012   -includedir | --includedir | --includedi | --included | --include \
1013   | --includ | --inclu | --incl | --inc)
1014     ac_prev=includedir ;;
1015   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016   | --includ=* | --inclu=* | --incl=* | --inc=*)
1017     includedir=$ac_optarg ;;
1018
1019   -infodir | --infodir | --infodi | --infod | --info | --inf)
1020     ac_prev=infodir ;;
1021   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022     infodir=$ac_optarg ;;
1023
1024   -libdir | --libdir | --libdi | --libd)
1025     ac_prev=libdir ;;
1026   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027     libdir=$ac_optarg ;;
1028
1029   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030   | --libexe | --libex | --libe)
1031     ac_prev=libexecdir ;;
1032   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033   | --libexe=* | --libex=* | --libe=*)
1034     libexecdir=$ac_optarg ;;
1035
1036   -localedir | --localedir | --localedi | --localed | --locale)
1037     ac_prev=localedir ;;
1038   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039     localedir=$ac_optarg ;;
1040
1041   -localstatedir | --localstatedir | --localstatedi | --localstated \
1042   | --localstate | --localstat | --localsta | --localst | --locals)
1043     ac_prev=localstatedir ;;
1044   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046     localstatedir=$ac_optarg ;;
1047
1048   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049     ac_prev=mandir ;;
1050   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051     mandir=$ac_optarg ;;
1052
1053   -nfp | --nfp | --nf)
1054     # Obsolete; use --without-fp.
1055     with_fp=no ;;
1056
1057   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058   | --no-cr | --no-c | -n)
1059     no_create=yes ;;
1060
1061   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063     no_recursion=yes ;;
1064
1065   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067   | --oldin | --oldi | --old | --ol | --o)
1068     ac_prev=oldincludedir ;;
1069   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072     oldincludedir=$ac_optarg ;;
1073
1074   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075     ac_prev=prefix ;;
1076   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077     prefix=$ac_optarg ;;
1078
1079   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080   | --program-pre | --program-pr | --program-p)
1081     ac_prev=program_prefix ;;
1082   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084     program_prefix=$ac_optarg ;;
1085
1086   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087   | --program-suf | --program-su | --program-s)
1088     ac_prev=program_suffix ;;
1089   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091     program_suffix=$ac_optarg ;;
1092
1093   -program-transform-name | --program-transform-name \
1094   | --program-transform-nam | --program-transform-na \
1095   | --program-transform-n | --program-transform- \
1096   | --program-transform | --program-transfor \
1097   | --program-transfo | --program-transf \
1098   | --program-trans | --program-tran \
1099   | --progr-tra | --program-tr | --program-t)
1100     ac_prev=program_transform_name ;;
1101   -program-transform-name=* | --program-transform-name=* \
1102   | --program-transform-nam=* | --program-transform-na=* \
1103   | --program-transform-n=* | --program-transform-=* \
1104   | --program-transform=* | --program-transfor=* \
1105   | --program-transfo=* | --program-transf=* \
1106   | --program-trans=* | --program-tran=* \
1107   | --progr-tra=* | --program-tr=* | --program-t=*)
1108     program_transform_name=$ac_optarg ;;
1109
1110   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111     ac_prev=pdfdir ;;
1112   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113     pdfdir=$ac_optarg ;;
1114
1115   -psdir | --psdir | --psdi | --psd | --ps)
1116     ac_prev=psdir ;;
1117   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118     psdir=$ac_optarg ;;
1119
1120   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121   | -silent | --silent | --silen | --sile | --sil)
1122     silent=yes ;;
1123
1124   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125     ac_prev=sbindir ;;
1126   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127   | --sbi=* | --sb=*)
1128     sbindir=$ac_optarg ;;
1129
1130   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132   | --sharedst | --shareds | --shared | --share | --shar \
1133   | --sha | --sh)
1134     ac_prev=sharedstatedir ;;
1135   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138   | --sha=* | --sh=*)
1139     sharedstatedir=$ac_optarg ;;
1140
1141   -site | --site | --sit)
1142     ac_prev=site ;;
1143   -site=* | --site=* | --sit=*)
1144     site=$ac_optarg ;;
1145
1146   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147     ac_prev=srcdir ;;
1148   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149     srcdir=$ac_optarg ;;
1150
1151   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152   | --syscon | --sysco | --sysc | --sys | --sy)
1153     ac_prev=sysconfdir ;;
1154   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156     sysconfdir=$ac_optarg ;;
1157
1158   -target | --target | --targe | --targ | --tar | --ta | --t)
1159     ac_prev=target_alias ;;
1160   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161     target_alias=$ac_optarg ;;
1162
1163   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164     verbose=yes ;;
1165
1166   -version | --version | --versio | --versi | --vers | -V)
1167     ac_init_version=: ;;
1168
1169   -with-* | --with-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid package name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval with_$ac_useropt=\$ac_optarg ;;
1184
1185   -without-* | --without-*)
1186     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187     # Reject names that are not valid shell variable names.
1188     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189       as_fn_error $? "invalid package name: $ac_useropt"
1190     ac_useropt_orig=$ac_useropt
1191     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192     case $ac_user_opts in
1193       *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197          ac_unrecognized_sep=', ';;
1198     esac
1199     eval with_$ac_useropt=no ;;
1200
1201   --x)
1202     # Obsolete; use --with-x.
1203     with_x=yes ;;
1204
1205   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206   | --x-incl | --x-inc | --x-in | --x-i)
1207     ac_prev=x_includes ;;
1208   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210     x_includes=$ac_optarg ;;
1211
1212   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214     ac_prev=x_libraries ;;
1215   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217     x_libraries=$ac_optarg ;;
1218
1219   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221     ;;
1222
1223   *=*)
1224     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225     # Reject names that are not valid shell variable names.
1226     case $ac_envvar in #(
1227       '' | [0-9]* | *[!_$as_cr_alnum]* )
1228       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229     esac
1230     eval $ac_envvar=\$ac_optarg
1231     export $ac_envvar ;;
1232
1233   *)
1234     # FIXME: should be removed in autoconf 3.0.
1235     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239     ;;
1240
1241   esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246   as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250   case $enable_option_checking in
1251     no) ;;
1252     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254   esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259                 datadir sysconfdir sharedstatedir localstatedir includedir \
1260                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261                 libdir localedir mandir
1262 do
1263   eval ac_val=\$$ac_var
1264   # Remove trailing slashes.
1265   case $ac_val in
1266     */ )
1267       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268       eval $ac_var=\$ac_val;;
1269   esac
1270   # Be sure to have absolute directory names.
1271   case $ac_val in
1272     [\\/$]* | ?:[\\/]* )  continue;;
1273     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274   esac
1275   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287   if test "x$build_alias" = x; then
1288     cross_compiling=maybe
1289     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290     If a cross compiler is detected then cross compile mode will be used" >&2
1291   elif test "x$build_alias" != "x$host_alias"; then
1292     cross_compiling=yes
1293   fi
1294 fi
1295
1296 ac_tool_prefix=
1297 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299 test "$silent" = yes && exec 6>/dev/null
1300
1301
1302 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303 ac_ls_di=`ls -di .` &&
1304 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1305   as_fn_error $? "working directory cannot be determined"
1306 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1307   as_fn_error $? "pwd does not report name of working directory"
1308
1309
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312   ac_srcdir_defaulted=yes
1313   # Try the directory containing this script, then the parent directory.
1314   ac_confdir=`$as_dirname -- "$as_myself" ||
1315 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316          X"$as_myself" : 'X\(//\)[^/]' \| \
1317          X"$as_myself" : 'X\(//\)$' \| \
1318          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319 $as_echo X"$as_myself" |
1320     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321             s//\1/
1322             q
1323           }
1324           /^X\(\/\/\)[^/].*/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\).*/{
1333             s//\1/
1334             q
1335           }
1336           s/.*/./; q'`
1337   srcdir=$ac_confdir
1338   if test ! -r "$srcdir/$ac_unique_file"; then
1339     srcdir=..
1340   fi
1341 else
1342   ac_srcdir_defaulted=no
1343 fi
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 fi
1348 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349 ac_abs_confdir=`(
1350         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1351         pwd)`
1352 # When building in place, set srcdir=.
1353 if test "$ac_abs_confdir" = "$ac_pwd"; then
1354   srcdir=.
1355 fi
1356 # Remove unnecessary trailing slashes from srcdir.
1357 # Double slashes in file names in object file debugging info
1358 # mess up M-x gdb in Emacs.
1359 case $srcdir in
1360 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361 esac
1362 for ac_var in $ac_precious_vars; do
1363   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364   eval ac_env_${ac_var}_value=\$${ac_var}
1365   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367 done
1368
1369 #
1370 # Report the --help message.
1371 #
1372 if test "$ac_init_help" = "long"; then
1373   # Omit some internal or obsolete options to make the list less imposing.
1374   # This message is too long to be a string in the A/UX 3.1 sh.
1375   cat <<_ACEOF
1376 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1377
1378 Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381 VAR=VALUE.  See below for descriptions of some of the useful variables.
1382
1383 Defaults for the options are specified in brackets.
1384
1385 Configuration:
1386   -h, --help              display this help and exit
1387       --help=short        display options specific to this package
1388       --help=recursive    display the short help of all the included packages
1389   -V, --version           display version information and exit
1390   -q, --quiet, --silent   do not print \`checking ...' messages
1391       --cache-file=FILE   cache test results in FILE [disabled]
1392   -C, --config-cache      alias for \`--cache-file=config.cache'
1393   -n, --no-create         do not create output files
1394       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1395
1396 Installation directories:
1397   --prefix=PREFIX         install architecture-independent files in PREFIX
1398                           [$ac_default_prefix]
1399   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1400                           [PREFIX]
1401
1402 By default, \`make install' will install all the files in
1403 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1404 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405 for instance \`--prefix=\$HOME'.
1406
1407 For better control, use the options below.
1408
1409 Fine tuning of the installation directories:
1410   --bindir=DIR            user executables [EPREFIX/bin]
1411   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1412   --libexecdir=DIR        program executables [EPREFIX/libexec]
1413   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1414   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1415   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1416   --libdir=DIR            object code libraries [EPREFIX/lib]
1417   --includedir=DIR        C header files [PREFIX/include]
1418   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1419   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1420   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1421   --infodir=DIR           info documentation [DATAROOTDIR/info]
1422   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1423   --mandir=DIR            man documentation [DATAROOTDIR/man]
1424   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1425   --htmldir=DIR           html documentation [DOCDIR]
1426   --dvidir=DIR            dvi documentation [DOCDIR]
1427   --pdfdir=DIR            pdf documentation [DOCDIR]
1428   --psdir=DIR             ps documentation [DOCDIR]
1429 _ACEOF
1430
1431   cat <<\_ACEOF
1432
1433 Program names:
1434   --program-prefix=PREFIX            prepend PREFIX to installed program names
1435   --program-suffix=SUFFIX            append SUFFIX to installed program names
1436   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1437
1438 System types:
1439   --build=BUILD     configure for building on BUILD [guessed]
1440   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1441   --target=TARGET   configure for building compilers for TARGET [HOST]
1442 _ACEOF
1443 fi
1444
1445 if test -n "$ac_init_help"; then
1446   case $ac_init_help in
1447      short | recursive ) echo "Configuration of libffi 3.0.11:";;
1448    esac
1449   cat <<\_ACEOF
1450
1451 Optional Features:
1452   --disable-option-checking  ignore unrecognized --enable/--with options
1453   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1454   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1455   --disable-dependency-tracking  speeds up one-time build
1456   --enable-dependency-tracking   do not reject slow dependency extractors
1457   --enable-shared[=PKGS]  build shared libraries [default=yes]
1458   --enable-static[=PKGS]  build static libraries [default=yes]
1459   --enable-fast-install[=PKGS]
1460                           optimize for fast installation [default=yes]
1461   --disable-libtool-lock  avoid locking (might break parallel builds)
1462   --enable-maintainer-mode  enable make rules and dependencies not useful
1463                           (and sometimes confusing) to the casual installer
1464   --enable-debug          debugging mode
1465   --disable-structs       omit code for struct support
1466   --disable-raw-api       make the raw api unavailable
1467   --enable-purify-safety  purify-safe mode
1468
1469 Optional Packages:
1470   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1471   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1472   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1473                           both]
1474   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1475   --with-sysroot=DIR Search for dependent libraries within DIR
1476                         (or the compiler's sysroot if not specified).
1477
1478 Some influential environment variables:
1479   CC          C compiler command
1480   CFLAGS      C compiler flags
1481   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1482               nonstandard directory <lib dir>
1483   LIBS        libraries to pass to the linker, e.g. -l<library>
1484   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1485               you have headers in a nonstandard directory <include dir>
1486   CCAS        assembler compiler command (defaults to CC)
1487   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1488   CPP         C preprocessor
1489
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1492
1493 Report bugs to <http://github.com/atgreen/libffi/issues>.
1494 _ACEOF
1495 ac_status=$?
1496 fi
1497
1498 if test "$ac_init_help" = "recursive"; then
1499   # If there are subdirs, report their specific --help.
1500   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1501     test -d "$ac_dir" ||
1502       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1503       continue
1504     ac_builddir=.
1505
1506 case "$ac_dir" in
1507 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1508 *)
1509   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1510   # A ".." for each directory in $ac_dir_suffix.
1511   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1512   case $ac_top_builddir_sub in
1513   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1514   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1515   esac ;;
1516 esac
1517 ac_abs_top_builddir=$ac_pwd
1518 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1519 # for backward compatibility:
1520 ac_top_builddir=$ac_top_build_prefix
1521
1522 case $srcdir in
1523   .)  # We are building in place.
1524     ac_srcdir=.
1525     ac_top_srcdir=$ac_top_builddir_sub
1526     ac_abs_top_srcdir=$ac_pwd ;;
1527   [\\/]* | ?:[\\/]* )  # Absolute name.
1528     ac_srcdir=$srcdir$ac_dir_suffix;
1529     ac_top_srcdir=$srcdir
1530     ac_abs_top_srcdir=$srcdir ;;
1531   *) # Relative name.
1532     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1533     ac_top_srcdir=$ac_top_build_prefix$srcdir
1534     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1535 esac
1536 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1537
1538     cd "$ac_dir" || { ac_status=$?; continue; }
1539     # Check for guested configure.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 libffi configure 3.0.11
1557 generated by GNU Autoconf 2.68
1558
1559 Copyright (C) 2010 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563   exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576   rm -f conftest.$ac_objext
1577   if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580   *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584   (eval "$ac_compile") 2>conftest.err
1585   ac_status=$?
1586   if test -s conftest.err; then
1587     grep -v '^ *+' conftest.err >conftest.er1
1588     cat conftest.er1 >&5
1589     mv -f conftest.er1 conftest.err
1590   fi
1591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592   test $ac_status = 0; } && {
1593          test -z "$ac_c_werror_flag" ||
1594          test ! -s conftest.err
1595        } && test -s conftest.$ac_objext; then :
1596   ac_retval=0
1597 else
1598   $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1600
1601         ac_retval=1
1602 fi
1603   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1604   as_fn_set_status $ac_retval
1605
1606 } # ac_fn_c_try_compile
1607
1608 # ac_fn_c_try_link LINENO
1609 # -----------------------
1610 # Try to link conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_link ()
1612 {
1613   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614   rm -f conftest.$ac_objext conftest$ac_exeext
1615   if { { ac_try="$ac_link"
1616 case "(($ac_try" in
1617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618   *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622   (eval "$ac_link") 2>conftest.err
1623   ac_status=$?
1624   if test -s conftest.err; then
1625     grep -v '^ *+' conftest.err >conftest.er1
1626     cat conftest.er1 >&5
1627     mv -f conftest.er1 conftest.err
1628   fi
1629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630   test $ac_status = 0; } && {
1631          test -z "$ac_c_werror_flag" ||
1632          test ! -s conftest.err
1633        } && test -s conftest$ac_exeext && {
1634          test "$cross_compiling" = yes ||
1635          $as_test_x conftest$ac_exeext
1636        }; then :
1637   ac_retval=0
1638 else
1639   $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642         ac_retval=1
1643 fi
1644   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1645   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1646   # interfere with the next link command; also delete a directory that is
1647   # left behind by Apple's compiler.  We do this before executing the actions.
1648   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1649   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650   as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_link
1653
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 $as_echo_n "checking for $2... " >&6; }
1663 if eval \${$3+:} false; then :
1664   $as_echo_n "(cached) " >&6
1665 else
1666   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667 /* end confdefs.h.  */
1668 $4
1669 #include <$2>
1670 _ACEOF
1671 if ac_fn_c_try_compile "$LINENO"; then :
1672   eval "$3=yes"
1673 else
1674   eval "$3=no"
1675 fi
1676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1677 fi
1678 eval ac_res=\$$3
1679                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1680 $as_echo "$ac_res" >&6; }
1681   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1682
1683 } # ac_fn_c_check_header_compile
1684
1685 # ac_fn_c_try_cpp LINENO
1686 # ----------------------
1687 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_cpp ()
1689 {
1690   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691   if { { ac_try="$ac_cpp conftest.$ac_ext"
1692 case "(($ac_try" in
1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694   *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1699   ac_status=$?
1700   if test -s conftest.err; then
1701     grep -v '^ *+' conftest.err >conftest.er1
1702     cat conftest.er1 >&5
1703     mv -f conftest.er1 conftest.err
1704   fi
1705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } > conftest.i && {
1707          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1708          test ! -s conftest.err
1709        }; then :
1710   ac_retval=0
1711 else
1712   $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715     ac_retval=1
1716 fi
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718   as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_cpp
1721
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1726 ac_fn_c_try_run ()
1727 {
1728   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729   if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732   *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736   (eval "$ac_link") 2>&5
1737   ac_status=$?
1738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740   { { case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_try") 2>&5
1747   ac_status=$?
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; }; }; then :
1750   ac_retval=0
1751 else
1752   $as_echo "$as_me: program exited with status $ac_status" >&5
1753        $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756        ac_retval=$ac_status
1757 fi
1758   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760   as_fn_set_status $ac_retval
1761
1762 } # ac_fn_c_try_run
1763
1764 # ac_fn_c_check_func LINENO FUNC VAR
1765 # ----------------------------------
1766 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1767 ac_fn_c_check_func ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1771 $as_echo_n "checking for $2... " >&6; }
1772 if eval \${$3+:} false; then :
1773   $as_echo_n "(cached) " >&6
1774 else
1775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776 /* end confdefs.h.  */
1777 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1778    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1779 #define $2 innocuous_$2
1780
1781 /* System header to define __stub macros and hopefully few prototypes,
1782     which can conflict with char $2 (); below.
1783     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1784     <limits.h> exists even on freestanding compilers.  */
1785
1786 #ifdef __STDC__
1787 # include <limits.h>
1788 #else
1789 # include <assert.h>
1790 #endif
1791
1792 #undef $2
1793
1794 /* Override any GCC internal prototype to avoid an error.
1795    Use char because int might match the return type of a GCC
1796    builtin and then its argument prototype would still apply.  */
1797 #ifdef __cplusplus
1798 extern "C"
1799 #endif
1800 char $2 ();
1801 /* The GNU C library defines this for functions which it implements
1802     to always fail with ENOSYS.  Some functions are actually named
1803     something starting with __ and the normal name is an alias.  */
1804 #if defined __stub_$2 || defined __stub___$2
1805 choke me
1806 #endif
1807
1808 int
1809 main ()
1810 {
1811 return $2 ();
1812   ;
1813   return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_link "$LINENO"; then :
1817   eval "$3=yes"
1818 else
1819   eval "$3=no"
1820 fi
1821 rm -f core conftest.err conftest.$ac_objext \
1822     conftest$ac_exeext conftest.$ac_ext
1823 fi
1824 eval ac_res=\$$3
1825                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_func
1830
1831 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1834 # the include files in INCLUDES and setting the cache variable VAR
1835 # accordingly.
1836 ac_fn_c_check_header_mongrel ()
1837 {
1838   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839   if eval \${$3+:} false; then :
1840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841 $as_echo_n "checking for $2... " >&6; }
1842 if eval \${$3+:} false; then :
1843   $as_echo_n "(cached) " >&6
1844 fi
1845 eval ac_res=\$$3
1846                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 else
1849   # Is the header compilable?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1851 $as_echo_n "checking $2 usability... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h.  */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858   ac_header_compiler=yes
1859 else
1860   ac_header_compiler=no
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1864 $as_echo "$ac_header_compiler" >&6; }
1865
1866 # Is the header present?
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1868 $as_echo_n "checking $2 presence... " >&6; }
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h.  */
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_cpp "$LINENO"; then :
1874   ac_header_preproc=yes
1875 else
1876   ac_header_preproc=no
1877 fi
1878 rm -f conftest.err conftest.i conftest.$ac_ext
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1880 $as_echo "$ac_header_preproc" >&6; }
1881
1882 # So?  What about this header?
1883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1884   yes:no: )
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1886 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1887     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1888 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1889     ;;
1890   no:yes:* )
1891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1892 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1893     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1894 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1896 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1898 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 ( $as_echo "## ------------------------------------------------------ ##
1902 ## Report this to http://github.com/atgreen/libffi/issues ##
1903 ## ------------------------------------------------------ ##"
1904      ) | sed "s/^/$as_me: WARNING:     /" >&2
1905     ;;
1906 esac
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if eval \${$3+:} false; then :
1910   $as_echo_n "(cached) " >&6
1911 else
1912   eval "$3=\$ac_header_compiler"
1913 fi
1914 eval ac_res=\$$3
1915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 fi
1918   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
1920 } # ac_fn_c_check_header_mongrel
1921
1922 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1923 # -------------------------------------------
1924 # Tests whether TYPE exists after having included INCLUDES, setting cache
1925 # variable VAR accordingly.
1926 ac_fn_c_check_type ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1930 $as_echo_n "checking for $2... " >&6; }
1931 if eval \${$3+:} false; then :
1932   $as_echo_n "(cached) " >&6
1933 else
1934   eval "$3=no"
1935   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h.  */
1937 $4
1938 int
1939 main ()
1940 {
1941 if (sizeof ($2))
1942          return 0;
1943   ;
1944   return 0;
1945 }
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949 /* end confdefs.h.  */
1950 $4
1951 int
1952 main ()
1953 {
1954 if (sizeof (($2)))
1955             return 0;
1956   ;
1957   return 0;
1958 }
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961
1962 else
1963   eval "$3=yes"
1964 fi
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968 fi
1969 eval ac_res=\$$3
1970                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973
1974 } # ac_fn_c_check_type
1975
1976 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1977 # --------------------------------------------
1978 # Tries to find the compile-time value of EXPR in a program that includes
1979 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1980 # computed
1981 ac_fn_c_compute_int ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   if test "$cross_compiling" = yes; then
1985     # Depending upon the size, compute the lo and hi bounds.
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h.  */
1988 $4
1989 int
1990 main ()
1991 {
1992 static int test_array [1 - 2 * !(($2) >= 0)];
1993 test_array [0] = 0
1994
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000   ac_lo=0 ac_mid=0
2001   while :; do
2002     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h.  */
2004 $4
2005 int
2006 main ()
2007 {
2008 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2009 test_array [0] = 0
2010
2011   ;
2012   return 0;
2013 }
2014 _ACEOF
2015 if ac_fn_c_try_compile "$LINENO"; then :
2016   ac_hi=$ac_mid; break
2017 else
2018   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2019                         if test $ac_lo -le $ac_mid; then
2020                           ac_lo= ac_hi=
2021                           break
2022                         fi
2023                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2024 fi
2025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026   done
2027 else
2028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h.  */
2030 $4
2031 int
2032 main ()
2033 {
2034 static int test_array [1 - 2 * !(($2) < 0)];
2035 test_array [0] = 0
2036
2037   ;
2038   return 0;
2039 }
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042   ac_hi=-1 ac_mid=-1
2043   while :; do
2044     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h.  */
2046 $4
2047 int
2048 main ()
2049 {
2050 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2051 test_array [0] = 0
2052
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058   ac_lo=$ac_mid; break
2059 else
2060   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2061                         if test $ac_mid -le $ac_hi; then
2062                           ac_lo= ac_hi=
2063                           break
2064                         fi
2065                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2066 fi
2067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068   done
2069 else
2070   ac_lo= ac_hi=
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 fi
2074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 # Binary search between lo and hi bounds.
2076 while test "x$ac_lo" != "x$ac_hi"; do
2077   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 int
2082 main ()
2083 {
2084 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2085 test_array [0] = 0
2086
2087   ;
2088   return 0;
2089 }
2090 _ACEOF
2091 if ac_fn_c_try_compile "$LINENO"; then :
2092   ac_hi=$ac_mid
2093 else
2094   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2095 fi
2096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097 done
2098 case $ac_lo in #((
2099 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2100 '') ac_retval=1 ;;
2101 esac
2102   else
2103     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h.  */
2105 $4
2106 static long int longval () { return $2; }
2107 static unsigned long int ulongval () { return $2; }
2108 #include <stdio.h>
2109 #include <stdlib.h>
2110 int
2111 main ()
2112 {
2113
2114   FILE *f = fopen ("conftest.val", "w");
2115   if (! f)
2116     return 1;
2117   if (($2) < 0)
2118     {
2119       long int i = longval ();
2120       if (i != ($2))
2121         return 1;
2122       fprintf (f, "%ld", i);
2123     }
2124   else
2125     {
2126       unsigned long int i = ulongval ();
2127       if (i != ($2))
2128         return 1;
2129       fprintf (f, "%lu", i);
2130     }
2131   /* Do not output a trailing newline, as this causes \r\n confusion
2132      on some platforms.  */
2133   return ferror (f) || fclose (f) != 0;
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_run "$LINENO"; then :
2140   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2141 else
2142   ac_retval=1
2143 fi
2144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2145   conftest.$ac_objext conftest.beam conftest.$ac_ext
2146 rm -f conftest.val
2147
2148   fi
2149   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150   as_fn_set_status $ac_retval
2151
2152 } # ac_fn_c_compute_int
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2156
2157 It was created by libffi $as_me 3.0.11, which was
2158 generated by GNU Autoconf 2.68.  Invocation command line was
2159
2160   $ $0 $@
2161
2162 _ACEOF
2163 exec 5>>config.log
2164 {
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2169
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2178
2179 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2180 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2183 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2184 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2185 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2186
2187 _ASUNAME
2188
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2191 do
2192   IFS=$as_save_IFS
2193   test -z "$as_dir" && as_dir=.
2194     $as_echo "PATH: $as_dir"
2195   done
2196 IFS=$as_save_IFS
2197
2198 } >&5
2199
2200 cat >&5 <<_ACEOF
2201
2202
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2206
2207 _ACEOF
2208
2209
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2220 do
2221   for ac_arg
2222   do
2223     case $ac_arg in
2224     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226     | -silent | --silent | --silen | --sile | --sil)
2227       continue ;;
2228     *\'*)
2229       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230     esac
2231     case $ac_pass in
2232     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233     2)
2234       as_fn_append ac_configure_args1 " '$ac_arg'"
2235       if test $ac_must_keep_next = true; then
2236         ac_must_keep_next=false # Got value, back to normal.
2237       else
2238         case $ac_arg in
2239           *=* | --config-cache | -C | -disable-* | --disable-* \
2240           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242           | -with-* | --with-* | -without-* | --without-* | --x)
2243             case "$ac_configure_args0 " in
2244               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245             esac
2246             ;;
2247           -* ) ac_must_keep_next=true ;;
2248         esac
2249       fi
2250       as_fn_append ac_configure_args " '$ac_arg'"
2251       ;;
2252     esac
2253   done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2257
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log.  We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264   # Save into config.log some information that might help in debugging.
2265   {
2266     echo
2267
2268     $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2271     echo
2272     # The following way of writing the cache mishandles newlines in values,
2273 (
2274   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275     eval ac_val=\$$ac_var
2276     case $ac_val in #(
2277     *${as_nl}*)
2278       case $ac_var in #(
2279       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2281       esac
2282       case $ac_var in #(
2283       _ | IFS | as_nl) ;; #(
2284       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285       *) { eval $ac_var=; unset $ac_var;} ;;
2286       esac ;;
2287     esac
2288   done
2289   (set) 2>&1 |
2290     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291     *${as_nl}ac_space=\ *)
2292       sed -n \
2293         "s/'\''/'\''\\\\'\'''\''/g;
2294           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2295       ;; #(
2296     *)
2297       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2298       ;;
2299     esac |
2300     sort
2301 )
2302     echo
2303
2304     $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2307     echo
2308     for ac_var in $ac_subst_vars
2309     do
2310       eval ac_val=\$$ac_var
2311       case $ac_val in
2312       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313       esac
2314       $as_echo "$ac_var='\''$ac_val'\''"
2315     done | sort
2316     echo
2317
2318     if test -n "$ac_subst_files"; then
2319       $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2322       echo
2323       for ac_var in $ac_subst_files
2324       do
2325         eval ac_val=\$$ac_var
2326         case $ac_val in
2327         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328         esac
2329         $as_echo "$ac_var='\''$ac_val'\''"
2330       done | sort
2331       echo
2332     fi
2333
2334     if test -s confdefs.h; then
2335       $as_echo "## ----------- ##
2336 ## confdefs.h. ##
2337 ## ----------- ##"
2338       echo
2339       cat confdefs.h
2340       echo
2341     fi
2342     test "$ac_signal" != 0 &&
2343       $as_echo "$as_me: caught signal $ac_signal"
2344     $as_echo "$as_me: exit $exit_status"
2345   } >&5
2346   rm -f core *.core core.conftest.* &&
2347     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2348     exit $exit_status
2349 ' 0
2350 for ac_signal in 1 2 13 15; do
2351   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2352 done
2353 ac_signal=0
2354
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest* confdefs.h
2357
2358 $as_echo "/* confdefs.h */" > confdefs.h
2359
2360 # Predefined preprocessor variables.
2361
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2364 _ACEOF
2365
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2368 _ACEOF
2369
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2372 _ACEOF
2373
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2376 _ACEOF
2377
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380 _ACEOF
2381
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2384 _ACEOF
2385
2386
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2389 ac_site_file1=NONE
2390 ac_site_file2=NONE
2391 if test -n "$CONFIG_SITE"; then
2392   # We do not want a PATH search for config.site.
2393   case $CONFIG_SITE in #((
2394     -*)  ac_site_file1=./$CONFIG_SITE;;
2395     */*) ac_site_file1=$CONFIG_SITE;;
2396     *)   ac_site_file1=./$CONFIG_SITE;;
2397   esac
2398 elif test "x$prefix" != xNONE; then
2399   ac_site_file1=$prefix/share/config.site
2400   ac_site_file2=$prefix/etc/config.site
2401 else
2402   ac_site_file1=$ac_default_prefix/share/config.site
2403   ac_site_file2=$ac_default_prefix/etc/config.site
2404 fi
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406 do
2407   test "x$ac_site_file" = xNONE && continue
2408   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411     sed 's/^/| /' "$ac_site_file" >&5
2412     . "$ac_site_file" \
2413       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $? "failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5; }
2417   fi
2418 done
2419
2420 if test -r "$cache_file"; then
2421   # Some versions of bash will fail to source /dev/null (special files
2422   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2423   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426     case $cache_file in
2427       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428       *)                      . "./$cache_file";;
2429     esac
2430   fi
2431 else
2432   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2434   >$cache_file
2435 fi
2436
2437 # Check that the precious variables saved in the cache have kept the same
2438 # value.
2439 ac_cache_corrupted=false
2440 for ac_var in $ac_precious_vars; do
2441   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2442   eval ac_new_set=\$ac_env_${ac_var}_set
2443   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2444   eval ac_new_val=\$ac_env_${ac_var}_value
2445   case $ac_old_set,$ac_new_set in
2446     set,)
2447       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2448 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2449       ac_cache_corrupted=: ;;
2450     ,set)
2451       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2452 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2453       ac_cache_corrupted=: ;;
2454     ,);;
2455     *)
2456       if test "x$ac_old_val" != "x$ac_new_val"; then
2457         # differences in whitespace do not lead to failure.
2458         ac_old_val_w=`echo x $ac_old_val`
2459         ac_new_val_w=`echo x $ac_new_val`
2460         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2461           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2462 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2463           ac_cache_corrupted=:
2464         else
2465           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2466 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2467           eval $ac_var=\$ac_old_val
2468         fi
2469         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2470 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2471         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2472 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2473       fi;;
2474   esac
2475   # Pass precious variables to config.status.
2476   if test "$ac_new_set" = set; then
2477     case $ac_new_val in
2478     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2479     *) ac_arg=$ac_var=$ac_new_val ;;
2480     esac
2481     case " $ac_configure_args " in
2482       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2483       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484     esac
2485   fi
2486 done
2487 if $ac_cache_corrupted; then
2488   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2490   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2491 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2492   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2493 fi
2494 ## -------------------- ##
2495 ## Main body of script. ##
2496 ## -------------------- ##
2497
2498 ac_ext=c
2499 ac_cpp='$CPP $CPPFLAGS'
2500 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2501 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2502 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503
2504
2505 ac_config_headers="$ac_config_headers fficonfig.h"
2506
2507
2508 ac_aux_dir=
2509 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2510   if test -f "$ac_dir/install-sh"; then
2511     ac_aux_dir=$ac_dir
2512     ac_install_sh="$ac_aux_dir/install-sh -c"
2513     break
2514   elif test -f "$ac_dir/install.sh"; then
2515     ac_aux_dir=$ac_dir
2516     ac_install_sh="$ac_aux_dir/install.sh -c"
2517     break
2518   elif test -f "$ac_dir/shtool"; then
2519     ac_aux_dir=$ac_dir
2520     ac_install_sh="$ac_aux_dir/shtool install -c"
2521     break
2522   fi
2523 done
2524 if test -z "$ac_aux_dir"; then
2525   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2526 fi
2527
2528 # These three variables are undocumented and unsupported,
2529 # and are intended to be withdrawn in a future Autoconf release.
2530 # They can cause serious problems if a builder's source tree is in a directory
2531 # whose full name contains unusual characters.
2532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2534 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2535
2536
2537 # Make sure we can run config.sub.
2538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2539   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2542 $as_echo_n "checking build system type... " >&6; }
2543 if ${ac_cv_build+:} false; then :
2544   $as_echo_n "(cached) " >&6
2545 else
2546   ac_build_alias=$build_alias
2547 test "x$ac_build_alias" = x &&
2548   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2549 test "x$ac_build_alias" = x &&
2550   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2552   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2553
2554 fi
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2556 $as_echo "$ac_cv_build" >&6; }
2557 case $ac_cv_build in
2558 *-*-*) ;;
2559 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2560 esac
2561 build=$ac_cv_build
2562 ac_save_IFS=$IFS; IFS='-'
2563 set x $ac_cv_build
2564 shift
2565 build_cpu=$1
2566 build_vendor=$2
2567 shift; shift
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2570 build_os=$*
2571 IFS=$ac_save_IFS
2572 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2573
2574
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2576 $as_echo_n "checking host system type... " >&6; }
2577 if ${ac_cv_host+:} false; then :
2578   $as_echo_n "(cached) " >&6
2579 else
2580   if test "x$host_alias" = x; then
2581   ac_cv_host=$ac_cv_build
2582 else
2583   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2584     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2585 fi
2586
2587 fi
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2589 $as_echo "$ac_cv_host" >&6; }
2590 case $ac_cv_host in
2591 *-*-*) ;;
2592 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2593 esac
2594 host=$ac_cv_host
2595 ac_save_IFS=$IFS; IFS='-'
2596 set x $ac_cv_host
2597 shift
2598 host_cpu=$1
2599 host_vendor=$2
2600 shift; shift
2601 # Remember, the first character of IFS is used to create $*,
2602 # except with old shells:
2603 host_os=$*
2604 IFS=$ac_save_IFS
2605 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2606
2607
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2609 $as_echo_n "checking target system type... " >&6; }
2610 if ${ac_cv_target+:} false; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   if test "x$target_alias" = x; then
2614   ac_cv_target=$ac_cv_host
2615 else
2616   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2617     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2618 fi
2619
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2622 $as_echo "$ac_cv_target" >&6; }
2623 case $ac_cv_target in
2624 *-*-*) ;;
2625 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2626 esac
2627 target=$ac_cv_target
2628 ac_save_IFS=$IFS; IFS='-'
2629 set x $ac_cv_target
2630 shift
2631 target_cpu=$1
2632 target_vendor=$2
2633 shift; shift
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2636 target_os=$*
2637 IFS=$ac_save_IFS
2638 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2639
2640
2641 # The aliases save the names the user supplied, while $host etc.
2642 # will get canonicalized.
2643 test -n "$target_alias" &&
2644   test "$program_prefix$program_suffix$program_transform_name" = \
2645     NONENONEs,x,x, &&
2646   program_prefix=${target_alias}-
2647
2648 target_alias=${target_alias-$host_alias}
2649
2650 . ${srcdir}/configure.host
2651
2652 AX_ENABLE_BUILDDIR
2653
2654 am__api_version='1.11'
2655
2656 # Find a good install program.  We prefer a C program (faster),
2657 # so one script is as good as another.  But avoid the broken or
2658 # incompatible versions:
2659 # SysV /etc/install, /usr/sbin/install
2660 # SunOS /usr/etc/install
2661 # IRIX /sbin/install
2662 # AIX /bin/install
2663 # AmigaOS /C/install, which installs bootblocks on floppy discs
2664 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2665 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2666 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2667 # OS/2's system install, which has a completely different semantic
2668 # ./install, which can be erroneously created by make from ./install.sh.
2669 # Reject install programs that cannot install multiple files.
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2671 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2672 if test -z "$INSTALL"; then
2673 if ${ac_cv_path_install+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2678 do
2679   IFS=$as_save_IFS
2680   test -z "$as_dir" && as_dir=.
2681     # Account for people who put trailing slashes in PATH elements.
2682 case $as_dir/ in #((
2683   ./ | .// | /[cC]/* | \
2684   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2685   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2686   /usr/ucb/* ) ;;
2687   *)
2688     # OSF1 and SCO ODT 3.0 have their own names for install.
2689     # Don't use installbsd from OSF since it installs stuff as root
2690     # by default.
2691     for ac_prog in ginstall scoinst install; do
2692       for ac_exec_ext in '' $ac_executable_extensions; do
2693         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2694           if test $ac_prog = install &&
2695             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2696             # AIX install.  It has an incompatible calling convention.
2697             :
2698           elif test $ac_prog = install &&
2699             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2700             # program-specific install script used by HP pwplus--don't use.
2701             :
2702           else
2703             rm -rf conftest.one conftest.two conftest.dir
2704             echo one > conftest.one
2705             echo two > conftest.two
2706             mkdir conftest.dir
2707             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2708               test -s conftest.one && test -s conftest.two &&
2709               test -s conftest.dir/conftest.one &&
2710               test -s conftest.dir/conftest.two
2711             then
2712               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2713               break 3
2714             fi
2715           fi
2716         fi
2717       done
2718     done
2719     ;;
2720 esac
2721
2722   done
2723 IFS=$as_save_IFS
2724
2725 rm -rf conftest.one conftest.two conftest.dir
2726
2727 fi
2728   if test "${ac_cv_path_install+set}" = set; then
2729     INSTALL=$ac_cv_path_install
2730   else
2731     # As a last resort, use the slow shell script.  Don't cache a
2732     # value for INSTALL within a source directory, because that will
2733     # break other packages using the cache if that directory is
2734     # removed, or if the value is a relative name.
2735     INSTALL=$ac_install_sh
2736   fi
2737 fi
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2739 $as_echo "$INSTALL" >&6; }
2740
2741 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2742 # It thinks the first close brace ends the variable substitution.
2743 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2744
2745 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2746
2747 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2748
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2750 $as_echo_n "checking whether build environment is sane... " >&6; }
2751 # Just in case
2752 sleep 1
2753 echo timestamp > conftest.file
2754 # Reject unsafe characters in $srcdir or the absolute working directory
2755 # name.  Accept space and tab only in the latter.
2756 am_lf='
2757 '
2758 case `pwd` in
2759   *[\\\"\#\$\&\'\`$am_lf]*)
2760     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2761 esac
2762 case $srcdir in
2763   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2764     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2765 esac
2766
2767 # Do `set' in a subshell so we don't clobber the current shell's
2768 # arguments.  Must try -L first in case configure is actually a
2769 # symlink; some systems play weird games with the mod time of symlinks
2770 # (eg FreeBSD returns the mod time of the symlink's containing
2771 # directory).
2772 if (
2773    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2774    if test "$*" = "X"; then
2775       # -L didn't work.
2776       set X `ls -t "$srcdir/configure" conftest.file`
2777    fi
2778    rm -f conftest.file
2779    if test "$*" != "X $srcdir/configure conftest.file" \
2780       && test "$*" != "X conftest.file $srcdir/configure"; then
2781
2782       # If neither matched, then we have a broken ls.  This can happen
2783       # if, for instance, CONFIG_SHELL is bash and it inherits a
2784       # broken ls alias from the environment.  This has actually
2785       # happened.  Such a system could not be considered "sane".
2786       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2787 alias in your environment" "$LINENO" 5
2788    fi
2789
2790    test "$2" = conftest.file
2791    )
2792 then
2793    # Ok.
2794    :
2795 else
2796    as_fn_error $? "newly created file is older than distributed files!
2797 Check your system clock" "$LINENO" 5
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800 $as_echo "yes" >&6; }
2801 test "$program_prefix" != NONE &&
2802   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2803 # Use a double $ so make ignores it.
2804 test "$program_suffix" != NONE &&
2805   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2806 # Double any \ or $.
2807 # By default was `s,x,x', remove it if useless.
2808 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2809 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2810
2811 # expand $ac_aux_dir to an absolute path
2812 am_aux_dir=`cd $ac_aux_dir && pwd`
2813
2814 if test x"${MISSING+set}" != xset; then
2815   case $am_aux_dir in
2816   *\ * | *\     *)
2817     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2818   *)
2819     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2820   esac
2821 fi
2822 # Use eval to expand $SHELL
2823 if eval "$MISSING --run true"; then
2824   am_missing_run="$MISSING --run "
2825 else
2826   am_missing_run=
2827   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2828 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2829 fi
2830
2831 if test x"${install_sh}" != xset; then
2832   case $am_aux_dir in
2833   *\ * | *\     *)
2834     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2835   *)
2836     install_sh="\${SHELL} $am_aux_dir/install-sh"
2837   esac
2838 fi
2839
2840 # Installed binaries are usually stripped using `strip' when the user
2841 # run `make install-strip'.  However `strip' might not be the right
2842 # tool to use in cross-compilation environments, therefore Automake
2843 # will honor the `STRIP' environment variable to overrule this program.
2844 if test "$cross_compiling" != no; then
2845   if test -n "$ac_tool_prefix"; then
2846   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2847 set dummy ${ac_tool_prefix}strip; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_STRIP+:} false; then :
2851   $as_echo_n "(cached) " >&6
2852 else
2853   if test -n "$STRIP"; then
2854   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2855 else
2856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 for as_dir in $PATH
2858 do
2859   IFS=$as_save_IFS
2860   test -z "$as_dir" && as_dir=.
2861     for ac_exec_ext in '' $ac_executable_extensions; do
2862   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2863     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2865     break 2
2866   fi
2867 done
2868   done
2869 IFS=$as_save_IFS
2870
2871 fi
2872 fi
2873 STRIP=$ac_cv_prog_STRIP
2874 if test -n "$STRIP"; then
2875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2876 $as_echo "$STRIP" >&6; }
2877 else
2878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2879 $as_echo "no" >&6; }
2880 fi
2881
2882
2883 fi
2884 if test -z "$ac_cv_prog_STRIP"; then
2885   ac_ct_STRIP=$STRIP
2886   # Extract the first word of "strip", so it can be a program name with args.
2887 set dummy strip; ac_word=$2
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2889 $as_echo_n "checking for $ac_word... " >&6; }
2890 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2891   $as_echo_n "(cached) " >&6
2892 else
2893   if test -n "$ac_ct_STRIP"; then
2894   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2895 else
2896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 for as_dir in $PATH
2898 do
2899   IFS=$as_save_IFS
2900   test -z "$as_dir" && as_dir=.
2901     for ac_exec_ext in '' $ac_executable_extensions; do
2902   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2903     ac_cv_prog_ac_ct_STRIP="strip"
2904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2905     break 2
2906   fi
2907 done
2908   done
2909 IFS=$as_save_IFS
2910
2911 fi
2912 fi
2913 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2914 if test -n "$ac_ct_STRIP"; then
2915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2916 $as_echo "$ac_ct_STRIP" >&6; }
2917 else
2918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2919 $as_echo "no" >&6; }
2920 fi
2921
2922   if test "x$ac_ct_STRIP" = x; then
2923     STRIP=":"
2924   else
2925     case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931     STRIP=$ac_ct_STRIP
2932   fi
2933 else
2934   STRIP="$ac_cv_prog_STRIP"
2935 fi
2936
2937 fi
2938 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2939
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2942 if test -z "$MKDIR_P"; then
2943   if ${ac_cv_path_mkdir+:} false; then :
2944   $as_echo_n "(cached) " >&6
2945 else
2946   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2948 do
2949   IFS=$as_save_IFS
2950   test -z "$as_dir" && as_dir=.
2951     for ac_prog in mkdir gmkdir; do
2952          for ac_exec_ext in '' $ac_executable_extensions; do
2953            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2954            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2955              'mkdir (GNU coreutils) '* | \
2956              'mkdir (coreutils) '* | \
2957              'mkdir (fileutils) '4.1*)
2958                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2959                break 3;;
2960            esac
2961          done
2962        done
2963   done
2964 IFS=$as_save_IFS
2965
2966 fi
2967
2968   test -d ./--version && rmdir ./--version
2969   if test "${ac_cv_path_mkdir+set}" = set; then
2970     MKDIR_P="$ac_cv_path_mkdir -p"
2971   else
2972     # As a last resort, use the slow shell script.  Don't cache a
2973     # value for MKDIR_P within a source directory, because that will
2974     # break other packages using the cache if that directory is
2975     # removed, or if the value is a relative name.
2976     MKDIR_P="$ac_install_sh -d"
2977   fi
2978 fi
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2980 $as_echo "$MKDIR_P" >&6; }
2981
2982 mkdir_p="$MKDIR_P"
2983 case $mkdir_p in
2984   [\\/$]* | ?:[\\/]*) ;;
2985   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2986 esac
2987
2988 for ac_prog in gawk mawk nawk awk
2989 do
2990   # Extract the first word of "$ac_prog", so it can be a program name with args.
2991 set dummy $ac_prog; ac_word=$2
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2993 $as_echo_n "checking for $ac_word... " >&6; }
2994 if ${ac_cv_prog_AWK+:} false; then :
2995   $as_echo_n "(cached) " >&6
2996 else
2997   if test -n "$AWK"; then
2998   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2999 else
3000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3001 for as_dir in $PATH
3002 do
3003   IFS=$as_save_IFS
3004   test -z "$as_dir" && as_dir=.
3005     for ac_exec_ext in '' $ac_executable_extensions; do
3006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3007     ac_cv_prog_AWK="$ac_prog"
3008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3009     break 2
3010   fi
3011 done
3012   done
3013 IFS=$as_save_IFS
3014
3015 fi
3016 fi
3017 AWK=$ac_cv_prog_AWK
3018 if test -n "$AWK"; then
3019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3020 $as_echo "$AWK" >&6; }
3021 else
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3023 $as_echo "no" >&6; }
3024 fi
3025
3026
3027   test -n "$AWK" && break
3028 done
3029
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3031 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3032 set x ${MAKE-make}
3033 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3034 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3035   $as_echo_n "(cached) " >&6
3036 else
3037   cat >conftest.make <<\_ACEOF
3038 SHELL = /bin/sh
3039 all:
3040         @echo '@@@%%%=$(MAKE)=@@@%%%'
3041 _ACEOF
3042 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3044   *@@@%%%=?*=@@@%%%*)
3045     eval ac_cv_prog_make_${ac_make}_set=yes;;
3046   *)
3047     eval ac_cv_prog_make_${ac_make}_set=no;;
3048 esac
3049 rm -f conftest.make
3050 fi
3051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3053 $as_echo "yes" >&6; }
3054   SET_MAKE=
3055 else
3056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3058   SET_MAKE="MAKE=${MAKE-make}"
3059 fi
3060
3061 rm -rf .tst 2>/dev/null
3062 mkdir .tst 2>/dev/null
3063 if test -d .tst; then
3064   am__leading_dot=.
3065 else
3066   am__leading_dot=_
3067 fi
3068 rmdir .tst 2>/dev/null
3069
3070 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3071   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3072   # is not polluted with repeated "-I."
3073   am__isrc=' -I$(srcdir)'
3074   # test to see if srcdir already configured
3075   if test -f $srcdir/config.status; then
3076     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3077   fi
3078 fi
3079
3080 # test whether we have cygpath
3081 if test -z "$CYGPATH_W"; then
3082   if (cygpath --version) >/dev/null 2>/dev/null; then
3083     CYGPATH_W='cygpath -w'
3084   else
3085     CYGPATH_W=echo
3086   fi
3087 fi
3088
3089
3090 # Define the identity of the package.
3091  PACKAGE='libffi'
3092  VERSION='3.0.11'
3093
3094
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE "$PACKAGE"
3097 _ACEOF
3098
3099
3100 cat >>confdefs.h <<_ACEOF
3101 #define VERSION "$VERSION"
3102 _ACEOF
3103
3104 # Some tools Automake needs.
3105
3106 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3107
3108
3109 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3110
3111
3112 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3113
3114
3115 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3116
3117
3118 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3119
3120 # We need awk for the "check" target.  The system "awk" is bad on
3121 # some platforms.
3122 # Always define AMTAR for backward compatibility.  Yes, it's still used
3123 # in the wild :-(  We should find a proper way to deprecate it ...
3124 AMTAR='$${TAR-tar}'
3125
3126 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3127
3128
3129
3130
3131
3132
3133 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3134 # We must force CC to /not/ be precious variables; otherwise
3135 # the wrong, non-multilib-adjusted value will be used in multilibs.
3136 # As a side effect, we have to subst CFLAGS ourselves.
3137 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3138 # defaults of its own if none are provided.
3139
3140
3141
3142 save_CFLAGS=$CFLAGS
3143 ac_ext=c
3144 ac_cpp='$CPP $CPPFLAGS'
3145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false; then :
3154   $as_echo_n "(cached) " >&6
3155 else
3156   if test -n "$CC"; then
3157   ac_cv_prog_CC="$CC" # Let the user override the test.
3158 else
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3160 for as_dir in $PATH
3161 do
3162   IFS=$as_save_IFS
3163   test -z "$as_dir" && as_dir=.
3164     for ac_exec_ext in '' $ac_executable_extensions; do
3165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168     break 2
3169   fi
3170 done
3171   done
3172 IFS=$as_save_IFS
3173
3174 fi
3175 fi
3176 CC=$ac_cv_prog_CC
3177 if test -n "$CC"; then
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3180 else
3181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3183 fi
3184
3185
3186 fi
3187 if test -z "$ac_cv_prog_CC"; then
3188   ac_ct_CC=$CC
3189   # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3194   $as_echo_n "(cached) " >&6
3195 else
3196   if test -n "$ac_ct_CC"; then
3197   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3198 else
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 for as_dir in $PATH
3201 do
3202   IFS=$as_save_IFS
3203   test -z "$as_dir" && as_dir=.
3204     for ac_exec_ext in '' $ac_executable_extensions; do
3205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206     ac_cv_prog_ac_ct_CC="gcc"
3207     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208     break 2
3209   fi
3210 done
3211   done
3212 IFS=$as_save_IFS
3213
3214 fi
3215 fi
3216 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3220 else
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3223 fi
3224
3225   if test "x$ac_ct_CC" = x; then
3226     CC=""
3227   else
3228     case $cross_compiling:$ac_tool_warned in
3229 yes:)
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned=yes ;;
3233 esac
3234     CC=$ac_ct_CC
3235   fi
3236 else
3237   CC="$ac_cv_prog_CC"
3238 fi
3239
3240 if test -z "$CC"; then
3241           if test -n "$ac_tool_prefix"; then
3242     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy ${ac_tool_prefix}cc; ac_word=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false; then :
3247   $as_echo_n "(cached) " >&6
3248 else
3249   if test -n "$CC"; then
3250   ac_cv_prog_CC="$CC" # Let the user override the test.
3251 else
3252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3253 for as_dir in $PATH
3254 do
3255   IFS=$as_save_IFS
3256   test -z "$as_dir" && as_dir=.
3257     for ac_exec_ext in '' $ac_executable_extensions; do
3258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259     ac_cv_prog_CC="${ac_tool_prefix}cc"
3260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3261     break 2
3262   fi
3263 done
3264   done
3265 IFS=$as_save_IFS
3266
3267 fi
3268 fi
3269 CC=$ac_cv_prog_CC
3270 if test -n "$CC"; then
3271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3273 else
3274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3276 fi
3277
3278
3279   fi
3280 fi
3281 if test -z "$CC"; then
3282   # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc; ac_word=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false; then :
3287   $as_echo_n "(cached) " >&6
3288 else
3289   if test -n "$CC"; then
3290   ac_cv_prog_CC="$CC" # Let the user override the test.
3291 else
3292   ac_prog_rejected=no
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301        ac_prog_rejected=yes
3302        continue
3303      fi
3304     ac_cv_prog_CC="cc"
3305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306     break 2
3307   fi
3308 done
3309   done
3310 IFS=$as_save_IFS
3311
3312 if test $ac_prog_rejected = yes; then
3313   # We found a bogon in the path, so make sure we never use it.
3314   set dummy $ac_cv_prog_CC
3315   shift
3316   if test $# != 0; then
3317     # We chose a different compiler from the bogus one.
3318     # However, it has the same basename, so the bogon will be chosen
3319     # first if we set CC to just the basename; use the full file name.
3320     shift
3321     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3322   fi
3323 fi
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$CC"; then
3338   if test -n "$ac_tool_prefix"; then
3339   for ac_prog in cl.exe
3340   do
3341     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test -n "$CC"; then
3349   ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356     for ac_exec_ext in '' $ac_executable_extensions; do
3357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363   done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 CC=$ac_cv_prog_CC
3369 if test -n "$CC"; then
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377
3378     test -n "$CC" && break
3379   done
3380 fi
3381 if test -z "$CC"; then
3382   ac_ct_CC=$CC
3383   for ac_prog in cl.exe
3384 do
3385   # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy $ac_prog; ac_word=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3390   $as_echo_n "(cached) " >&6
3391 else
3392   if test -n "$ac_ct_CC"; then
3393   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3394 else
3395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3396 for as_dir in $PATH
3397 do
3398   IFS=$as_save_IFS
3399   test -z "$as_dir" && as_dir=.
3400     for ac_exec_ext in '' $ac_executable_extensions; do
3401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402     ac_cv_prog_ac_ct_CC="$ac_prog"
3403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404     break 2
3405   fi
3406 done
3407   done
3408 IFS=$as_save_IFS
3409
3410 fi
3411 fi
3412 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3416 else
3417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3419 fi
3420
3421
3422   test -n "$ac_ct_CC" && break
3423 done
3424
3425   if test "x$ac_ct_CC" = x; then
3426     CC=""
3427   else
3428     case $cross_compiling:$ac_tool_warned in
3429 yes:)
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned=yes ;;
3433 esac
3434     CC=$ac_ct_CC
3435   fi
3436 fi
3437
3438 fi
3439
3440
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $? "no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details" "$LINENO" 5; }
3445
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3448 set X $ac_compile
3449 ac_compiler=$2
3450 for ac_option in --version -v -V -qversion; do
3451   { { ac_try="$ac_compiler $ac_option >&5"
3452 case "(($ac_try" in
3453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454   *) ac_try_echo=$ac_try;;
3455 esac
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3459   ac_status=$?
3460   if test -s conftest.err; then
3461     sed '10a\
3462 ... rest of stderr output deleted ...
3463          10q' conftest.err >conftest.er1
3464     cat conftest.er1 >&5
3465   fi
3466   rm -f conftest.er1 conftest.err
3467   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468   test $ac_status = 0; }
3469 done
3470
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h.  */
3473
3474 int
3475 main ()
3476 {
3477
3478   ;
3479   return 0;
3480 }
3481 _ACEOF
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3486 # of exeext.
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3490
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3493
3494 ac_rmfiles=
3495 for ac_file in $ac_files
3496 do
3497   case $ac_file in
3498     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500   esac
3501 done
3502 rm -f $ac_rmfiles
3503
3504 if { { ac_try="$ac_link_default"
3505 case "(($ac_try" in
3506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507   *) ac_try_echo=$ac_try;;
3508 esac
3509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511   (eval "$ac_link_default") 2>&5
3512   ac_status=$?
3513   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514   test $ac_status = 0; }; then :
3515   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3519 # Autoconf.
3520 for ac_file in $ac_files ''
3521 do
3522   test -f "$ac_file" || continue
3523   case $ac_file in
3524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3525         ;;
3526     [ab].out )
3527         # We found the default executable, but exeext='' is most
3528         # certainly right.
3529         break;;
3530     *.* )
3531         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3532         then :; else
3533            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3534         fi
3535         # We set ac_cv_exeext here because the later test for it is not
3536         # safe: cross compilers may not add the suffix if given an `-o'
3537         # argument, so we may need to know it at that point already.
3538         # Even if this section looks crufty: it has the advantage of
3539         # actually working.
3540         break;;
3541     * )
3542         break;;
3543   esac
3544 done
3545 test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
3547 else
3548   ac_file=''
3549 fi
3550 if test -z "$ac_file"; then :
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.$ac_ext >&5
3555
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error 77 "C compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3560 else
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3563 fi
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext=$ac_cv_exeext
3569
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try="$ac_link"
3575 case "(($ac_try" in
3576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577   *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581   (eval "$ac_link") 2>&5
3582   ac_status=$?
3583   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584   test $ac_status = 0; }; then :
3585   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3586 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3588 # `rm'.
3589 for ac_file in conftest.exe conftest conftest.*; do
3590   test -f "$ac_file" || continue
3591   case $ac_file in
3592     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3593     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3594           break;;
3595     * ) break;;
3596   esac
3597 done
3598 else
3599   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3603 fi
3604 rm -f conftest conftest$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3607
3608 rm -f conftest.$ac_ext
3609 EXEEXT=$ac_cv_exeext
3610 ac_exeext=$EXEEXT
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h.  */
3613 #include <stdio.h>
3614 int
3615 main ()
3616 {
3617 FILE *f = fopen ("conftest.out", "w");
3618  return ferror (f) || fclose (f) != 0;
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run.  If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630   { { ac_try="$ac_link"
3631 case "(($ac_try" in
3632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633   *) ac_try_echo=$ac_try;;
3634 esac
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637   (eval "$ac_link") 2>&5
3638   ac_status=$?
3639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640   test $ac_status = 0; }
3641   if { ac_try='./conftest$ac_cv_exeext'
3642   { { case "(($ac_try" in
3643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644   *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648   (eval "$ac_try") 2>&5
3649   ac_status=$?
3650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651   test $ac_status = 0; }; }; then
3652     cross_compiling=no
3653   else
3654     if test "$cross_compiling" = maybe; then
3655         cross_compiling=yes
3656     else
3657         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $? "cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3662     fi
3663   fi
3664 fi
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3667
3668 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3669 ac_clean_files=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false; then :
3673   $as_echo_n "(cached) " >&6
3674 else
3675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h.  */
3677
3678 int
3679 main ()
3680 {
3681
3682   ;
3683   return 0;
3684 }
3685 _ACEOF
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try="$ac_compile"
3688 case "(($ac_try" in
3689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3690   *) ac_try_echo=$ac_try;;
3691 esac
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694   (eval "$ac_compile") 2>&5
3695   ac_status=$?
3696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697   test $ac_status = 0; }; then :
3698   for ac_file in conftest.o conftest.obj conftest.*; do
3699   test -f "$ac_file" || continue;
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3703        break;;
3704   esac
3705 done
3706 else
3707   $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3709
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files: cannot compile
3713 See \`config.log' for more details" "$LINENO" 5; }
3714 fi
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3716 fi
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3720 ac_objext=$OBJEXT
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if ${ac_cv_c_compiler_gnu+:} false; then :
3724   $as_echo_n "(cached) " >&6
3725 else
3726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h.  */
3728
3729 int
3730 main ()
3731 {
3732 #ifndef __GNUC__
3733        choke me
3734 #endif
3735
3736   ;
3737   return 0;
3738 }
3739 _ACEOF
3740 if ac_fn_c_try_compile "$LINENO"; then :
3741   ac_compiler_gnu=yes
3742 else
3743   ac_compiler_gnu=no
3744 fi
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3747
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3752   GCC=yes
3753 else
3754   GCC=
3755 fi
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if ${ac_cv_prog_cc_g+:} false; then :
3761   $as_echo_n "(cached) " >&6
3762 else
3763   ac_save_c_werror_flag=$ac_c_werror_flag
3764    ac_c_werror_flag=yes
3765    ac_cv_prog_cc_g=no
3766    CFLAGS="-g"
3767    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h.  */
3769
3770 int
3771 main ()
3772 {
3773
3774   ;
3775   return 0;
3776 }
3777 _ACEOF
3778 if ac_fn_c_try_compile "$LINENO"; then :
3779   ac_cv_prog_cc_g=yes
3780 else
3781   CFLAGS=""
3782       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784
3785 int
3786 main ()
3787 {
3788
3789   ;
3790   return 0;
3791 }
3792 _ACEOF
3793 if ac_fn_c_try_compile "$LINENO"; then :
3794
3795 else
3796   ac_c_werror_flag=$ac_save_c_werror_flag
3797          CFLAGS="-g"
3798          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h.  */
3800
3801 int
3802 main ()
3803 {
3804
3805   ;
3806   return 0;
3807 }
3808 _ACEOF
3809 if ac_fn_c_try_compile "$LINENO"; then :
3810   ac_cv_prog_cc_g=yes
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 fi
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 fi
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817    ac_c_werror_flag=$ac_save_c_werror_flag
3818 fi
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822   CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824   if test "$GCC" = yes; then
3825     CFLAGS="-g -O2"
3826   else
3827     CFLAGS="-g"
3828   fi
3829 else
3830   if test "$GCC" = yes; then
3831     CFLAGS="-O2"
3832   else
3833     CFLAGS=
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if ${ac_cv_prog_cc_c89+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   ac_cv_prog_cc_c89=no
3842 ac_save_CC=$CC
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h.  */
3845 #include <stdarg.h>
3846 #include <stdio.h>
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3853      char **p;
3854      int i;
3855 {
3856   return p[i];
3857 }
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3859 {
3860   char *s;
3861   va_list v;
3862   va_start (v,p);
3863   s = g (p, va_arg (v,int));
3864   va_end (v);
3865   return s;
3866 }
3867
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3869    function prototypes and stuff, but not '\xHH' hex character constants.
3870    These don't provoke an error unfortunately, instead are silently treated
3871    as 'x'.  The following induces an error, until -std is added to get
3872    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3873    array size at least.  It's necessary to write '\x00'==0 to get something
3874    that's true only with -std.  */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3876
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878    inside strings and character constants.  */
3879 #define FOO(x) 'x'
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3881
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3886 int argc;
3887 char **argv;
3888 int
3889 main ()
3890 {
3891 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3892   ;
3893   return 0;
3894 }
3895 _ACEOF
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3898 do
3899   CC="$ac_save_CC $ac_arg"
3900   if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_cv_prog_cc_c89=$ac_arg
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext
3904   test "x$ac_cv_prog_cc_c89" != "xno" && break
3905 done
3906 rm -f conftest.$ac_ext
3907 CC=$ac_save_CC
3908
3909 fi
3910 # AC_CACHE_VAL
3911 case "x$ac_cv_prog_cc_c89" in
3912   x)
3913     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3915   xno)
3916     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3918   *)
3919     CC="$CC $ac_cv_prog_cc_c89"
3920     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3922 esac
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3924
3925 fi
3926
3927 ac_ext=c
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 DEPDIR="${am__leading_dot}deps"
3933
3934 ac_config_commands="$ac_config_commands depfiles"
3935
3936
3937 am_make=${MAKE-make}
3938 cat > confinc << 'END'
3939 am__doit:
3940         @echo this is the am__doit target
3941 .PHONY: am__doit
3942 END
3943 # If we don't find an include directive, just comment out the code.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3945 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3946 am__include="#"
3947 am__quote=
3948 _am_result=none
3949 # First try GNU make style include.
3950 echo "include confinc" > confmf
3951 # Ignore all kinds of additional output from `make'.
3952 case `$am_make -s -f confmf 2> /dev/null` in #(
3953 *the\ am__doit\ target*)
3954   am__include=include
3955   am__quote=
3956   _am_result=GNU
3957   ;;
3958 esac
3959 # Now try BSD make style include.
3960 if test "$am__include" = "#"; then
3961    echo '.include "confinc"' > confmf
3962    case `$am_make -s -f confmf 2> /dev/null` in #(
3963    *the\ am__doit\ target*)
3964      am__include=.include
3965      am__quote="\""
3966      _am_result=BSD
3967      ;;
3968    esac
3969 fi
3970
3971
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3973 $as_echo "$_am_result" >&6; }
3974 rm -f confinc confmf
3975
3976 # Check whether --enable-dependency-tracking was given.
3977 if test "${enable_dependency_tracking+set}" = set; then :
3978   enableval=$enable_dependency_tracking;
3979 fi
3980
3981 if test "x$enable_dependency_tracking" != xno; then
3982   am_depcomp="$ac_aux_dir/depcomp"
3983   AMDEPBACKSLASH='\'
3984   am__nodep='_no'
3985 fi
3986  if test "x$enable_dependency_tracking" != xno; then
3987   AMDEP_TRUE=
3988   AMDEP_FALSE='#'
3989 else
3990   AMDEP_TRUE='#'
3991   AMDEP_FALSE=
3992 fi
3993
3994
3995
3996 depcc="$CC"   am_compiler_list=
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004   # We make a subdir and do the tests there.  Otherwise we can end up
4005   # making bogus files that we don't know about and never remove.  For
4006   # instance it was reported that on HP-UX the gcc test will end up
4007   # making a dummy file named `D' -- because `-MD' means `put the output
4008   # in D'.
4009   rm -rf conftest.dir
4010   mkdir conftest.dir
4011   # Copy depcomp to subdir because otherwise we won't find it if we're
4012   # using a relative directory.
4013   cp "$am_depcomp" conftest.dir
4014   cd conftest.dir
4015   # We will build objects and dependencies in a subdirectory because
4016   # it helps to detect inapplicable dependency modes.  For instance
4017   # both Tru64's cc and ICC support -MD to output dependencies as a
4018   # side effect of compilation, but ICC will put the dependencies in
4019   # the current directory while Tru64 will put them in the object
4020   # directory.
4021   mkdir sub
4022
4023   am_cv_CC_dependencies_compiler_type=none
4024   if test "$am_compiler_list" = ""; then
4025      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4026   fi
4027   am__universal=false
4028   case " $depcc " in #(
4029      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4030      esac
4031
4032   for depmode in $am_compiler_list; do
4033     # Setup a source with many dependencies, because some compilers
4034     # like to wrap large dependency lists on column 80 (with \), and
4035     # we should not choose a depcomp mode which is confused by this.
4036     #
4037     # We need to recreate these files for each test, as the compiler may
4038     # overwrite some of them when testing with obscure command lines.
4039     # This happens at least with the AIX C compiler.
4040     : > sub/conftest.c
4041     for i in 1 2 3 4 5 6; do
4042       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4043       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4044       # Solaris 8's {/usr,}/bin/sh.
4045       touch sub/conftst$i.h
4046     done
4047     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4048
4049     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050     # mode.  It turns out that the SunPro C++ compiler does not properly
4051     # handle `-M -o', and we need to detect this.  Also, some Intel
4052     # versions had trouble with output in subdirs
4053     am__obj=sub/conftest.${OBJEXT-o}
4054     am__minus_obj="-o $am__obj"
4055     case $depmode in
4056     gcc)
4057       # This depmode causes a compiler race in universal mode.
4058       test "$am__universal" = false || continue
4059       ;;
4060     nosideeffect)
4061       # after this tag, mechanisms are not by side-effect, so they'll
4062       # only be used when explicitly requested
4063       if test "x$enable_dependency_tracking" = xyes; then
4064         continue
4065       else
4066         break
4067       fi
4068       ;;
4069     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4070       # This compiler won't grok `-c -o', but also, the minuso test has
4071       # not run yet.  These depmodes are late enough in the game, and
4072       # so weak that their functioning should not be impacted.
4073       am__obj=conftest.${OBJEXT-o}
4074       am__minus_obj=
4075       ;;
4076     none) break ;;
4077     esac
4078     if depmode=$depmode \
4079        source=sub/conftest.c object=$am__obj \
4080        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4081        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4082          >/dev/null 2>conftest.err &&
4083        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4084        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4085        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4086        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4087       # icc doesn't choke on unknown options, it will just issue warnings
4088       # or remarks (even with -Werror).  So we grep stderr for any message
4089       # that says an option was ignored or not supported.
4090       # When given -MP, icc 7.0 and 7.1 complain thusly:
4091       #   icc: Command line warning: ignoring option '-M'; no argument required
4092       # The diagnosis changed in icc 8.0:
4093       #   icc: Command line remark: option '-MP' not supported
4094       if (grep 'ignoring option' conftest.err ||
4095           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4096         am_cv_CC_dependencies_compiler_type=$depmode
4097         break
4098       fi
4099     fi
4100   done
4101
4102   cd ..
4103   rm -rf conftest.dir
4104 else
4105   am_cv_CC_dependencies_compiler_type=none
4106 fi
4107
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4112
4113  if
4114   test "x$enable_dependency_tracking" != xno \
4115   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4116   am__fastdepCC_TRUE=
4117   am__fastdepCC_FALSE='#'
4118 else
4119   am__fastdepCC_TRUE='#'
4120   am__fastdepCC_FALSE=
4121 fi
4122
4123
4124 CFLAGS=$save_CFLAGS
4125
4126
4127
4128
4129
4130 # By default we simply use the C compiler to build assembly code.
4131
4132 test "${CCAS+set}" = set || CCAS=$CC
4133 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4134
4135
4136
4137 depcc="$CCAS"   am_compiler_list=
4138
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4140 $as_echo_n "checking dependency style of $depcc... " >&6; }
4141 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4142   $as_echo_n "(cached) " >&6
4143 else
4144   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4145   # We make a subdir and do the tests there.  Otherwise we can end up
4146   # making bogus files that we don't know about and never remove.  For
4147   # instance it was reported that on HP-UX the gcc test will end up
4148   # making a dummy file named `D' -- because `-MD' means `put the output
4149   # in D'.
4150   rm -rf conftest.dir
4151   mkdir conftest.dir
4152   # Copy depcomp to subdir because otherwise we won't find it if we're
4153   # using a relative directory.
4154   cp "$am_depcomp" conftest.dir
4155   cd conftest.dir
4156   # We will build objects and dependencies in a subdirectory because
4157   # it helps to detect inapplicable dependency modes.  For instance
4158   # both Tru64's cc and ICC support -MD to output dependencies as a
4159   # side effect of compilation, but ICC will put the dependencies in
4160   # the current directory while Tru64 will put them in the object
4161   # directory.
4162   mkdir sub
4163
4164   am_cv_CCAS_dependencies_compiler_type=none
4165   if test "$am_compiler_list" = ""; then
4166      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4167   fi
4168   am__universal=false
4169
4170
4171   for depmode in $am_compiler_list; do
4172     # Setup a source with many dependencies, because some compilers
4173     # like to wrap large dependency lists on column 80 (with \), and
4174     # we should not choose a depcomp mode which is confused by this.
4175     #
4176     # We need to recreate these files for each test, as the compiler may
4177     # overwrite some of them when testing with obscure command lines.
4178     # This happens at least with the AIX C compiler.
4179     : > sub/conftest.c
4180     for i in 1 2 3 4 5 6; do
4181       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4182       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4183       # Solaris 8's {/usr,}/bin/sh.
4184       touch sub/conftst$i.h
4185     done
4186     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4187
4188     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4189     # mode.  It turns out that the SunPro C++ compiler does not properly
4190     # handle `-M -o', and we need to detect this.  Also, some Intel
4191     # versions had trouble with output in subdirs
4192     am__obj=sub/conftest.${OBJEXT-o}
4193     am__minus_obj="-o $am__obj"
4194     case $depmode in
4195     gcc)
4196       # This depmode causes a compiler race in universal mode.
4197       test "$am__universal" = false || continue
4198       ;;
4199     nosideeffect)
4200       # after this tag, mechanisms are not by side-effect, so they'll
4201       # only be used when explicitly requested
4202       if test "x$enable_dependency_tracking" = xyes; then
4203         continue
4204       else
4205         break
4206       fi
4207       ;;
4208     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4209       # This compiler won't grok `-c -o', but also, the minuso test has
4210       # not run yet.  These depmodes are late enough in the game, and
4211       # so weak that their functioning should not be impacted.
4212       am__obj=conftest.${OBJEXT-o}
4213       am__minus_obj=
4214       ;;
4215     none) break ;;
4216     esac
4217     if depmode=$depmode \
4218        source=sub/conftest.c object=$am__obj \
4219        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4220        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4221          >/dev/null 2>conftest.err &&
4222        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4223        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4224        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4225        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4226       # icc doesn't choke on unknown options, it will just issue warnings
4227       # or remarks (even with -Werror).  So we grep stderr for any message
4228       # that says an option was ignored or not supported.
4229       # When given -MP, icc 7.0 and 7.1 complain thusly:
4230       #   icc: Command line warning: ignoring option '-M'; no argument required
4231       # The diagnosis changed in icc 8.0:
4232       #   icc: Command line remark: option '-MP' not supported
4233       if (grep 'ignoring option' conftest.err ||
4234           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4235         am_cv_CCAS_dependencies_compiler_type=$depmode
4236         break
4237       fi
4238     fi
4239   done
4240
4241   cd ..
4242   rm -rf conftest.dir
4243 else
4244   am_cv_CCAS_dependencies_compiler_type=none
4245 fi
4246
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4249 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4250 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4251
4252  if
4253   test "x$enable_dependency_tracking" != xno \
4254   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4255   am__fastdepCCAS_TRUE=
4256   am__fastdepCCAS_FALSE='#'
4257 else
4258   am__fastdepCCAS_TRUE='#'
4259   am__fastdepCCAS_FALSE=
4260 fi
4261
4262
4263 if test "x$CC" != xcc; then
4264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4265 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4266 else
4267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4268 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4269 fi
4270 set dummy $CC; ac_cc=`$as_echo "$2" |
4271                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4272 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4273   $as_echo_n "(cached) " >&6
4274 else
4275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4276 /* end confdefs.h.  */
4277
4278 int
4279 main ()
4280 {
4281
4282   ;
4283   return 0;
4284 }
4285 _ACEOF
4286 # Make sure it works both with $CC and with simple cc.
4287 # We do the test twice because some compilers refuse to overwrite an
4288 # existing .o file with -o, though they will create one.
4289 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4290 rm -f conftest2.*
4291 if { { case "(($ac_try" in
4292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293   *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297   (eval "$ac_try") 2>&5
4298   ac_status=$?
4299   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300   test $ac_status = 0; } &&
4301    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303   *) ac_try_echo=$ac_try;;
4304 esac
4305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4306 $as_echo "$ac_try_echo"; } >&5
4307   (eval "$ac_try") 2>&5
4308   ac_status=$?
4309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4310   test $ac_status = 0; };
4311 then
4312   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4313   if test "x$CC" != xcc; then
4314     # Test first that cc exists at all.
4315     if { ac_try='cc -c conftest.$ac_ext >&5'
4316   { { case "(($ac_try" in
4317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318   *) ac_try_echo=$ac_try;;
4319 esac
4320 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4321 $as_echo "$ac_try_echo"; } >&5
4322   (eval "$ac_try") 2>&5
4323   ac_status=$?
4324   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4325   test $ac_status = 0; }; }; then
4326       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4327       rm -f conftest2.*
4328       if { { case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337   test $ac_status = 0; } &&
4338          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4343 $as_echo "$ac_try_echo"; } >&5
4344   (eval "$ac_try") 2>&5
4345   ac_status=$?
4346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4347   test $ac_status = 0; };
4348       then
4349         # cc works too.
4350         :
4351       else
4352         # cc exists but doesn't like -o.
4353         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4354       fi
4355     fi
4356   fi
4357 else
4358   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4359 fi
4360 rm -f core conftest*
4361
4362 fi
4363 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4365 $as_echo "yes" >&6; }
4366 else
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4369
4370 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4371
4372 fi
4373
4374 # FIXME: we rely on the cache variable name because
4375 # there is no other way.
4376 set dummy $CC
4377 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4378 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4379 if test "$am_t" != yes; then
4380    # Losing compiler, so override with the script.
4381    # FIXME: It is wrong to rewrite CC.
4382    # But if we don't then we get into trouble of one sort or another.
4383    # A longer-term fix would be to have automake use am__CC in this case,
4384    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4385    CC="$am_aux_dir/compile $CC"
4386 fi
4387
4388
4389 case `pwd` in
4390   *\ * | *\     *)
4391     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4392 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4393 esac
4394
4395
4396
4397 macro_version='2.4.2'
4398 macro_revision='1.3337'
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412 ltmain="$ac_aux_dir/ltmain.sh"
4413
4414 # Backslashify metacharacters that are still active within
4415 # double-quoted strings.
4416 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4417
4418 # Same as above, but do not quote variable references.
4419 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4420
4421 # Sed substitution to delay expansion of an escaped shell variable in a
4422 # double_quote_subst'ed string.
4423 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4424
4425 # Sed substitution to delay expansion of an escaped single quote.
4426 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4427
4428 # Sed substitution to avoid accidental globbing in evaled expressions
4429 no_glob_subst='s/\*/\\\*/g'
4430
4431 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4432 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4433 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4436 $as_echo_n "checking how to print strings... " >&6; }
4437 # Test print first, because it will be a builtin if present.
4438 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4439    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4440   ECHO='print -r --'
4441 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4442   ECHO='printf %s\n'
4443 else
4444   # Use this function as a fallback that always works.
4445   func_fallback_echo ()
4446   {
4447     eval 'cat <<_LTECHO_EOF
4448 $1
4449 _LTECHO_EOF'
4450   }
4451   ECHO='func_fallback_echo'
4452 fi
4453
4454 # func_echo_all arg...
4455 # Invoke $ECHO with all args, space-separated.
4456 func_echo_all ()
4457 {
4458     $ECHO ""
4459 }
4460
4461 case "$ECHO" in
4462   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4463 $as_echo "printf" >&6; } ;;
4464   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4465 $as_echo "print -r" >&6; } ;;
4466   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4467 $as_echo "cat" >&6; } ;;
4468 esac
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4484 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4485 if ${ac_cv_path_SED+:} false; then :
4486   $as_echo_n "(cached) " >&6
4487 else
4488             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4489      for ac_i in 1 2 3 4 5 6 7; do
4490        ac_script="$ac_script$as_nl$ac_script"
4491      done
4492      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4493      { ac_script=; unset ac_script;}
4494      if test -z "$SED"; then
4495   ac_path_SED_found=false
4496   # Loop through the user's path and test for each of PROGNAME-LIST
4497   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4498 for as_dir in $PATH
4499 do
4500   IFS=$as_save_IFS
4501   test -z "$as_dir" && as_dir=.
4502     for ac_prog in sed gsed; do
4503     for ac_exec_ext in '' $ac_executable_extensions; do
4504       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4505       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4506 # Check for GNU ac_path_SED and select it if it is found.
4507   # Check for GNU $ac_path_SED
4508 case `"$ac_path_SED" --version 2>&1` in
4509 *GNU*)
4510   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4511 *)
4512   ac_count=0
4513   $as_echo_n 0123456789 >"conftest.in"
4514   while :
4515   do
4516     cat "conftest.in" "conftest.in" >"conftest.tmp"
4517     mv "conftest.tmp" "conftest.in"
4518     cp "conftest.in" "conftest.nl"
4519     $as_echo '' >> "conftest.nl"
4520     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522     as_fn_arith $ac_count + 1 && ac_count=$as_val
4523     if test $ac_count -gt ${ac_path_SED_max-0}; then
4524       # Best one so far, save it but keep looking for a better one
4525       ac_cv_path_SED="$ac_path_SED"
4526       ac_path_SED_max=$ac_count
4527     fi
4528     # 10*(2^10) chars as input seems more than enough
4529     test $ac_count -gt 10 && break
4530   done
4531   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532 esac
4533
4534       $ac_path_SED_found && break 3
4535     done
4536   done
4537   done
4538 IFS=$as_save_IFS
4539   if test -z "$ac_cv_path_SED"; then
4540     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4541   fi
4542 else
4543   ac_cv_path_SED=$SED
4544 fi
4545
4546 fi
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4548 $as_echo "$ac_cv_path_SED" >&6; }
4549  SED="$ac_cv_path_SED"
4550   rm -f conftest.sed
4551
4552 test -z "$SED" && SED=sed
4553 Xsed="$SED -e 1s/^X//"
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4566 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4567 if ${ac_cv_path_GREP+:} false; then :
4568   $as_echo_n "(cached) " >&6
4569 else
4570   if test -z "$GREP"; then
4571   ac_path_GREP_found=false
4572   # Loop through the user's path and test for each of PROGNAME-LIST
4573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4575 do
4576   IFS=$as_save_IFS
4577   test -z "$as_dir" && as_dir=.
4578     for ac_prog in grep ggrep; do
4579     for ac_exec_ext in '' $ac_executable_extensions; do
4580       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4581       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4582 # Check for GNU ac_path_GREP and select it if it is found.
4583   # Check for GNU $ac_path_GREP
4584 case `"$ac_path_GREP" --version 2>&1` in
4585 *GNU*)
4586   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4587 *)
4588   ac_count=0
4589   $as_echo_n 0123456789 >"conftest.in"
4590   while :
4591   do
4592     cat "conftest.in" "conftest.in" >"conftest.tmp"
4593     mv "conftest.tmp" "conftest.in"
4594     cp "conftest.in" "conftest.nl"
4595     $as_echo 'GREP' >> "conftest.nl"
4596     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4597     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4598     as_fn_arith $ac_count + 1 && ac_count=$as_val
4599     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4600       # Best one so far, save it but keep looking for a better one
4601       ac_cv_path_GREP="$ac_path_GREP"
4602       ac_path_GREP_max=$ac_count
4603     fi
4604     # 10*(2^10) chars as input seems more than enough
4605     test $ac_count -gt 10 && break
4606   done
4607   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4608 esac
4609
4610       $ac_path_GREP_found && break 3
4611     done
4612   done
4613   done
4614 IFS=$as_save_IFS
4615   if test -z "$ac_cv_path_GREP"; then
4616     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4617   fi
4618 else
4619   ac_cv_path_GREP=$GREP
4620 fi
4621
4622 fi
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4624 $as_echo "$ac_cv_path_GREP" >&6; }
4625  GREP="$ac_cv_path_GREP"
4626
4627
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4629 $as_echo_n "checking for egrep... " >&6; }
4630 if ${ac_cv_path_EGREP+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4634    then ac_cv_path_EGREP="$GREP -E"
4635    else
4636      if test -z "$EGREP"; then
4637   ac_path_EGREP_found=false
4638   # Loop through the user's path and test for each of PROGNAME-LIST
4639   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4641 do
4642   IFS=$as_save_IFS
4643   test -z "$as_dir" && as_dir=.
4644     for ac_prog in egrep; do
4645     for ac_exec_ext in '' $ac_executable_extensions; do
4646       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4647       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4648 # Check for GNU ac_path_EGREP and select it if it is found.
4649   # Check for GNU $ac_path_EGREP
4650 case `"$ac_path_EGREP" --version 2>&1` in
4651 *GNU*)
4652   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4653 *)
4654   ac_count=0
4655   $as_echo_n 0123456789 >"conftest.in"
4656   while :
4657   do
4658     cat "conftest.in" "conftest.in" >"conftest.tmp"
4659     mv "conftest.tmp" "conftest.in"
4660     cp "conftest.in" "conftest.nl"
4661     $as_echo 'EGREP' >> "conftest.nl"
4662     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4663     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4664     as_fn_arith $ac_count + 1 && ac_count=$as_val
4665     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4666       # Best one so far, save it but keep looking for a better one
4667       ac_cv_path_EGREP="$ac_path_EGREP"
4668       ac_path_EGREP_max=$ac_count
4669     fi
4670     # 10*(2^10) chars as input seems more than enough
4671     test $ac_count -gt 10 && break
4672   done
4673   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4674 esac
4675
4676       $ac_path_EGREP_found && break 3
4677     done
4678   done
4679   done
4680 IFS=$as_save_IFS
4681   if test -z "$ac_cv_path_EGREP"; then
4682     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4683   fi
4684 else
4685   ac_cv_path_EGREP=$EGREP
4686 fi
4687
4688    fi
4689 fi
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4691 $as_echo "$ac_cv_path_EGREP" >&6; }
4692  EGREP="$ac_cv_path_EGREP"
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4696 $as_echo_n "checking for fgrep... " >&6; }
4697 if ${ac_cv_path_FGREP+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4701    then ac_cv_path_FGREP="$GREP -F"
4702    else
4703      if test -z "$FGREP"; then
4704   ac_path_FGREP_found=false
4705   # Loop through the user's path and test for each of PROGNAME-LIST
4706   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708 do
4709   IFS=$as_save_IFS
4710   test -z "$as_dir" && as_dir=.
4711     for ac_prog in fgrep; do
4712     for ac_exec_ext in '' $ac_executable_extensions; do
4713       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4714       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4715 # Check for GNU ac_path_FGREP and select it if it is found.
4716   # Check for GNU $ac_path_FGREP
4717 case `"$ac_path_FGREP" --version 2>&1` in
4718 *GNU*)
4719   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4720 *)
4721   ac_count=0
4722   $as_echo_n 0123456789 >"conftest.in"
4723   while :
4724   do
4725     cat "conftest.in" "conftest.in" >"conftest.tmp"
4726     mv "conftest.tmp" "conftest.in"
4727     cp "conftest.in" "conftest.nl"
4728     $as_echo 'FGREP' >> "conftest.nl"
4729     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731     as_fn_arith $ac_count + 1 && ac_count=$as_val
4732     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4733       # Best one so far, save it but keep looking for a better one
4734       ac_cv_path_FGREP="$ac_path_FGREP"
4735       ac_path_FGREP_max=$ac_count
4736     fi
4737     # 10*(2^10) chars as input seems more than enough
4738     test $ac_count -gt 10 && break
4739   done
4740   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741 esac
4742
4743       $ac_path_FGREP_found && break 3
4744     done
4745   done
4746   done
4747 IFS=$as_save_IFS
4748   if test -z "$ac_cv_path_FGREP"; then
4749     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4750   fi
4751 else
4752   ac_cv_path_FGREP=$FGREP
4753 fi
4754
4755    fi
4756 fi
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4758 $as_echo "$ac_cv_path_FGREP" >&6; }
4759  FGREP="$ac_cv_path_FGREP"
4760
4761
4762 test -z "$GREP" && GREP=grep
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782 # Check whether --with-gnu-ld was given.
4783 if test "${with_gnu_ld+set}" = set; then :
4784   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4785 else
4786   with_gnu_ld=no
4787 fi
4788
4789 ac_prog=ld
4790 if test "$GCC" = yes; then
4791   # Check if gcc -print-prog-name=ld gives a path.
4792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4793 $as_echo_n "checking for ld used by $CC... " >&6; }
4794   case $host in
4795   *-*-mingw*)
4796     # gcc leaves a trailing carriage return which upsets mingw
4797     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4798   *)
4799     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4800   esac
4801   case $ac_prog in
4802     # Accept absolute paths.
4803     [\\/]* | ?:[\\/]*)
4804       re_direlt='/[^/][^/]*/\.\./'
4805       # Canonicalize the pathname of ld
4806       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4807       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4808         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4809       done
4810       test -z "$LD" && LD="$ac_prog"
4811       ;;
4812   "")
4813     # If it fails, then pretend we aren't using GCC.
4814     ac_prog=ld
4815     ;;
4816   *)
4817     # If it is relative, then search for the first ld in PATH.
4818     with_gnu_ld=unknown
4819     ;;
4820   esac
4821 elif test "$with_gnu_ld" = yes; then
4822   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4823 $as_echo_n "checking for GNU ld... " >&6; }
4824 else
4825   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4826 $as_echo_n "checking for non-GNU ld... " >&6; }
4827 fi
4828 if ${lt_cv_path_LD+:} false; then :
4829   $as_echo_n "(cached) " >&6
4830 else
4831   if test -z "$LD"; then
4832   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4833   for ac_dir in $PATH; do
4834     IFS="$lt_save_ifs"
4835     test -z "$ac_dir" && ac_dir=.
4836     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4837       lt_cv_path_LD="$ac_dir/$ac_prog"
4838       # Check to see if the program is GNU ld.  I'd rather use --version,
4839       # but apparently some variants of GNU ld only accept -v.
4840       # Break only if it was the GNU/non-GNU ld that we prefer.
4841       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4842       *GNU* | *'with BFD'*)
4843         test "$with_gnu_ld" != no && break
4844         ;;
4845       *)
4846         test "$with_gnu_ld" != yes && break
4847         ;;
4848       esac
4849     fi
4850   done
4851   IFS="$lt_save_ifs"
4852 else
4853   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4854 fi
4855 fi
4856
4857 LD="$lt_cv_path_LD"
4858 if test -n "$LD"; then
4859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4860 $as_echo "$LD" >&6; }
4861 else
4862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4863 $as_echo "no" >&6; }
4864 fi
4865 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4867 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4868 if ${lt_cv_prog_gnu_ld+:} false; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4872 case `$LD -v 2>&1 </dev/null` in
4873 *GNU* | *'with BFD'*)
4874   lt_cv_prog_gnu_ld=yes
4875   ;;
4876 *)
4877   lt_cv_prog_gnu_ld=no
4878   ;;
4879 esac
4880 fi
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4882 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4883 with_gnu_ld=$lt_cv_prog_gnu_ld
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4894 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4895 if ${lt_cv_path_NM+:} false; then :
4896   $as_echo_n "(cached) " >&6
4897 else
4898   if test -n "$NM"; then
4899   # Let the user override the test.
4900   lt_cv_path_NM="$NM"
4901 else
4902   lt_nm_to_check="${ac_tool_prefix}nm"
4903   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4904     lt_nm_to_check="$lt_nm_to_check nm"
4905   fi
4906   for lt_tmp_nm in $lt_nm_to_check; do
4907     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4908     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4909       IFS="$lt_save_ifs"
4910       test -z "$ac_dir" && ac_dir=.
4911       tmp_nm="$ac_dir/$lt_tmp_nm"
4912       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4913         # Check to see if the nm accepts a BSD-compat flag.
4914         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4915         #   nm: unknown option "B" ignored
4916         # Tru64's nm complains that /dev/null is an invalid object file
4917         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4918         */dev/null* | *'Invalid file or object type'*)
4919           lt_cv_path_NM="$tmp_nm -B"
4920           break
4921           ;;
4922         *)
4923           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4924           */dev/null*)
4925             lt_cv_path_NM="$tmp_nm -p"
4926             break
4927             ;;
4928           *)
4929             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4930             continue # so that we can try to find one that supports BSD flags
4931             ;;
4932           esac
4933           ;;
4934         esac
4935       fi
4936     done
4937     IFS="$lt_save_ifs"
4938   done
4939   : ${lt_cv_path_NM=no}
4940 fi
4941 fi
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4943 $as_echo "$lt_cv_path_NM" >&6; }
4944 if test "$lt_cv_path_NM" != "no"; then
4945   NM="$lt_cv_path_NM"
4946 else
4947   # Didn't find any BSD compatible name lister, look for dumpbin.
4948   if test -n "$DUMPBIN"; then :
4949     # Let the user override the test.
4950   else
4951     if test -n "$ac_tool_prefix"; then
4952   for ac_prog in dumpbin "link -dump"
4953   do
4954     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4955 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_DUMPBIN+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   if test -n "$DUMPBIN"; then
4962   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976   done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 DUMPBIN=$ac_cv_prog_DUMPBIN
4982 if test -n "$DUMPBIN"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4984 $as_echo "$DUMPBIN" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991     test -n "$DUMPBIN" && break
4992   done
4993 fi
4994 if test -z "$DUMPBIN"; then
4995   ac_ct_DUMPBIN=$DUMPBIN
4996   for ac_prog in dumpbin "link -dump"
4997 do
4998   # Extract the first word of "$ac_prog", so it can be a program name with args.
4999 set dummy $ac_prog; ac_word=$2
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5001 $as_echo_n "checking for $ac_word... " >&6; }
5002 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   if test -n "$ac_ct_DUMPBIN"; then
5006   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011   IFS=$as_save_IFS
5012   test -z "$as_dir" && as_dir=.
5013     for ac_exec_ext in '' $ac_executable_extensions; do
5014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5017     break 2
5018   fi
5019 done
5020   done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5026 if test -n "$ac_ct_DUMPBIN"; then
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5028 $as_echo "$ac_ct_DUMPBIN" >&6; }
5029 else
5030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5031 $as_echo "no" >&6; }
5032 fi
5033
5034
5035   test -n "$ac_ct_DUMPBIN" && break
5036 done
5037
5038   if test "x$ac_ct_DUMPBIN" = x; then
5039     DUMPBIN=":"
5040   else
5041     case $cross_compiling:$ac_tool_warned in
5042 yes:)
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5045 ac_tool_warned=yes ;;
5046 esac
5047     DUMPBIN=$ac_ct_DUMPBIN
5048   fi
5049 fi
5050
5051     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5052     *COFF*)
5053       DUMPBIN="$DUMPBIN -symbols"
5054       ;;
5055     *)
5056       DUMPBIN=:
5057       ;;
5058     esac
5059   fi
5060
5061   if test "$DUMPBIN" != ":"; then
5062     NM="$DUMPBIN"
5063   fi
5064 fi
5065 test -z "$NM" && NM=nm
5066
5067
5068
5069
5070
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5073 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5074 if ${lt_cv_nm_interface+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   lt_cv_nm_interface="BSD nm"
5078   echo "int some_variable = 0;" > conftest.$ac_ext
5079   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5080   (eval "$ac_compile" 2>conftest.err)
5081   cat conftest.err >&5
5082   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5083   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5084   cat conftest.err >&5
5085   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5086   cat conftest.out >&5
5087   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5088     lt_cv_nm_interface="MS dumpbin"
5089   fi
5090   rm -f conftest*
5091 fi
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5093 $as_echo "$lt_cv_nm_interface" >&6; }
5094
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5096 $as_echo_n "checking whether ln -s works... " >&6; }
5097 LN_S=$as_ln_s
5098 if test "$LN_S" = "ln -s"; then
5099   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5100 $as_echo "yes" >&6; }
5101 else
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5103 $as_echo "no, using $LN_S" >&6; }
5104 fi
5105
5106 # find the maximum length of command line arguments
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5108 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5109 if ${lt_cv_sys_max_cmd_len+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112     i=0
5113   teststring="ABCD"
5114
5115   case $build_os in
5116   msdosdjgpp*)
5117     # On DJGPP, this test can blow up pretty badly due to problems in libc
5118     # (any single argument exceeding 2000 bytes causes a buffer overrun
5119     # during glob expansion).  Even if it were fixed, the result of this
5120     # check would be larger than it should be.
5121     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5122     ;;
5123
5124   gnu*)
5125     # Under GNU Hurd, this test is not required because there is
5126     # no limit to the length of command line arguments.
5127     # Libtool will interpret -1 as no limit whatsoever
5128     lt_cv_sys_max_cmd_len=-1;
5129     ;;
5130
5131   cygwin* | mingw* | cegcc*)
5132     # On Win9x/ME, this test blows up -- it succeeds, but takes
5133     # about 5 minutes as the teststring grows exponentially.
5134     # Worse, since 9x/ME are not pre-emptively multitasking,
5135     # you end up with a "frozen" computer, even though with patience
5136     # the test eventually succeeds (with a max line length of 256k).
5137     # Instead, let's just punt: use the minimum linelength reported by
5138     # all of the supported platforms: 8192 (on NT/2K/XP).
5139     lt_cv_sys_max_cmd_len=8192;
5140     ;;
5141
5142   mint*)
5143     # On MiNT this can take a long time and run out of memory.
5144     lt_cv_sys_max_cmd_len=8192;
5145     ;;
5146
5147   amigaos*)
5148     # On AmigaOS with pdksh, this test takes hours, literally.
5149     # So we just punt and use a minimum line length of 8192.
5150     lt_cv_sys_max_cmd_len=8192;
5151     ;;
5152
5153   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5154     # This has been around since 386BSD, at least.  Likely further.
5155     if test -x /sbin/sysctl; then
5156       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5157     elif test -x /usr/sbin/sysctl; then
5158       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5159     else
5160       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5161     fi
5162     # And add a safety zone
5163     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5165     ;;
5166
5167   interix*)
5168     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5169     lt_cv_sys_max_cmd_len=196608
5170     ;;
5171
5172   os2*)
5173     # The test takes a long time on OS/2.
5174     lt_cv_sys_max_cmd_len=8192
5175     ;;
5176
5177   osf*)
5178     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5179     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5180     # nice to cause kernel panics so lets avoid the loop below.
5181     # First set a reasonable default.
5182     lt_cv_sys_max_cmd_len=16384
5183     #
5184     if test -x /sbin/sysconfig; then
5185       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5186         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5187       esac
5188     fi
5189     ;;
5190   sco3.2v5*)
5191     lt_cv_sys_max_cmd_len=102400
5192     ;;
5193   sysv5* | sco5v6* | sysv4.2uw2*)
5194     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5195     if test -n "$kargmax"; then
5196       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5197     else
5198       lt_cv_sys_max_cmd_len=32768
5199     fi
5200     ;;
5201   *)
5202     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5203     if test -n "$lt_cv_sys_max_cmd_len"; then
5204       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5205       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5206     else
5207       # Make teststring a little bigger before we do anything with it.
5208       # a 1K string should be a reasonable start.
5209       for i in 1 2 3 4 5 6 7 8 ; do
5210         teststring=$teststring$teststring
5211       done
5212       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5213       # If test is not a shell built-in, we'll probably end up computing a
5214       # maximum length that is only half of the actual maximum length, but
5215       # we can't tell.
5216       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5217                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5218               test $i != 17 # 1/2 MB should be enough
5219       do
5220         i=`expr $i + 1`
5221         teststring=$teststring$teststring
5222       done
5223       # Only check the string length outside the loop.
5224       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5225       teststring=
5226       # Add a significant safety factor because C++ compilers can tack on
5227       # massive amounts of additional arguments before passing them to the
5228       # linker.  It appears as though 1/2 is a usable value.
5229       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5230     fi
5231     ;;
5232   esac
5233
5234 fi
5235
5236 if test -n $lt_cv_sys_max_cmd_len ; then
5237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5238 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5239 else
5240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5241 $as_echo "none" >&6; }
5242 fi
5243 max_cmd_len=$lt_cv_sys_max_cmd_len
5244
5245
5246
5247
5248
5249
5250 : ${CP="cp -f"}
5251 : ${MV="mv -f"}
5252 : ${RM="rm -f"}
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5255 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5256 # Try some XSI features
5257 xsi_shell=no
5258 ( _lt_dummy="a/b/c"
5259   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5260       = c,a/b,b/c, \
5261     && eval 'test $(( 1 + 1 )) -eq 2 \
5262     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5263   && xsi_shell=yes
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5265 $as_echo "$xsi_shell" >&6; }
5266
5267
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5269 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5270 lt_shell_append=no
5271 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5272     >/dev/null 2>&1 \
5273   && lt_shell_append=yes
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5275 $as_echo "$lt_shell_append" >&6; }
5276
5277
5278 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5279   lt_unset=unset
5280 else
5281   lt_unset=false
5282 fi
5283
5284
5285
5286
5287
5288 # test EBCDIC or ASCII
5289 case `echo X|tr X '\101'` in
5290  A) # ASCII based system
5291     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5292   lt_SP2NL='tr \040 \012'
5293   lt_NL2SP='tr \015\012 \040\040'
5294   ;;
5295  *) # EBCDIC based system
5296   lt_SP2NL='tr \100 \n'
5297   lt_NL2SP='tr \r\n \100\100'
5298   ;;
5299 esac
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5310 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5311 if ${lt_cv_to_host_file_cmd+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   case $host in
5315   *-*-mingw* )
5316     case $build in
5317       *-*-mingw* ) # actually msys
5318         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5319         ;;
5320       *-*-cygwin* )
5321         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5322         ;;
5323       * ) # otherwise, assume *nix
5324         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5325         ;;
5326     esac
5327     ;;
5328   *-*-cygwin* )
5329     case $build in
5330       *-*-mingw* ) # actually msys
5331         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5332         ;;
5333       *-*-cygwin* )
5334         lt_cv_to_host_file_cmd=func_convert_file_noop
5335         ;;
5336       * ) # otherwise, assume *nix
5337         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5338         ;;
5339     esac
5340     ;;
5341   * ) # unhandled hosts (and "normal" native builds)
5342     lt_cv_to_host_file_cmd=func_convert_file_noop
5343     ;;
5344 esac
5345
5346 fi
5347
5348 to_host_file_cmd=$lt_cv_to_host_file_cmd
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5350 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5351
5352
5353
5354
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5357 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5358 if ${lt_cv_to_tool_file_cmd+:} false; then :
5359   $as_echo_n "(cached) " >&6
5360 else
5361   #assume ordinary cross tools, or native build.
5362 lt_cv_to_tool_file_cmd=func_convert_file_noop
5363 case $host in
5364   *-*-mingw* )
5365     case $build in
5366       *-*-mingw* ) # actually msys
5367         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5368         ;;
5369     esac
5370     ;;
5371 esac
5372
5373 fi
5374
5375 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5377 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5378
5379
5380
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5385 if ${lt_cv_ld_reload_flag+:} false; then :
5386   $as_echo_n "(cached) " >&6
5387 else
5388   lt_cv_ld_reload_flag='-r'
5389 fi
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5392 reload_flag=$lt_cv_ld_reload_flag
5393 case $reload_flag in
5394 "" | " "*) ;;
5395 *) reload_flag=" $reload_flag" ;;
5396 esac
5397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5398 case $host_os in
5399   cygwin* | mingw* | pw32* | cegcc*)
5400     if test "$GCC" != yes; then
5401       reload_cmds=false
5402     fi
5403     ;;
5404   darwin*)
5405     if test "$GCC" = yes; then
5406       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5407     else
5408       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5409     fi
5410     ;;
5411 esac
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421 if test -n "$ac_tool_prefix"; then
5422   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_OBJDUMP+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   if test -n "$OBJDUMP"; then
5430   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 OBJDUMP=$ac_cv_prog_OBJDUMP
5450 if test -n "$OBJDUMP"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5452 $as_echo "$OBJDUMP" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459 fi
5460 if test -z "$ac_cv_prog_OBJDUMP"; then
5461   ac_ct_OBJDUMP=$OBJDUMP
5462   # Extract the first word of "objdump", so it can be a program name with args.
5463 set dummy objdump; ac_word=$2
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465 $as_echo_n "checking for $ac_word... " >&6; }
5466 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5467   $as_echo_n "(cached) " >&6
5468 else
5469   if test -n "$ac_ct_OBJDUMP"; then
5470   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5471 else
5472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473 for as_dir in $PATH
5474 do
5475   IFS=$as_save_IFS
5476   test -z "$as_dir" && as_dir=.
5477     for ac_exec_ext in '' $ac_executable_extensions; do
5478   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5479     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481     break 2
5482   fi
5483 done
5484   done
5485 IFS=$as_save_IFS
5486
5487 fi
5488 fi
5489 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5490 if test -n "$ac_ct_OBJDUMP"; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5492 $as_echo "$ac_ct_OBJDUMP" >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498   if test "x$ac_ct_OBJDUMP" = x; then
5499     OBJDUMP="false"
5500   else
5501     case $cross_compiling:$ac_tool_warned in
5502 yes:)
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5505 ac_tool_warned=yes ;;
5506 esac
5507     OBJDUMP=$ac_ct_OBJDUMP
5508   fi
5509 else
5510   OBJDUMP="$ac_cv_prog_OBJDUMP"
5511 fi
5512
5513 test -z "$OBJDUMP" && OBJDUMP=objdump
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5524 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5525 if ${lt_cv_deplibs_check_method+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   lt_cv_file_magic_cmd='$MAGIC_CMD'
5529 lt_cv_file_magic_test_file=
5530 lt_cv_deplibs_check_method='unknown'
5531 # Need to set the preceding variable on all platforms that support
5532 # interlibrary dependencies.
5533 # 'none' -- dependencies not supported.
5534 # `unknown' -- same as none, but documents that we really don't know.
5535 # 'pass_all' -- all dependencies passed with no checks.
5536 # 'test_compile' -- check by making test program.
5537 # 'file_magic [[regex]]' -- check by looking for files in library path
5538 # which responds to the $file_magic_cmd with a given extended regex.
5539 # If you have `file' or equivalent on your system and you're not sure
5540 # whether `pass_all' will *always* work, you probably want this one.
5541
5542 case $host_os in
5543 aix[4-9]*)
5544   lt_cv_deplibs_check_method=pass_all
5545   ;;
5546
5547 beos*)
5548   lt_cv_deplibs_check_method=pass_all
5549   ;;
5550
5551 bsdi[45]*)
5552   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5553   lt_cv_file_magic_cmd='/usr/bin/file -L'
5554   lt_cv_file_magic_test_file=/shlib/libc.so
5555   ;;
5556
5557 cygwin*)
5558   # func_win32_libid is a shell function defined in ltmain.sh
5559   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5560   lt_cv_file_magic_cmd='func_win32_libid'
5561   ;;
5562
5563 mingw* | pw32*)
5564   # Base MSYS/MinGW do not provide the 'file' command needed by
5565   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5566   # unless we find 'file', for example because we are cross-compiling.
5567   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5568   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5569     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5570     lt_cv_file_magic_cmd='func_win32_libid'
5571   else
5572     # Keep this pattern in sync with the one in func_win32_libid.
5573     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5574     lt_cv_file_magic_cmd='$OBJDUMP -f'
5575   fi
5576   ;;
5577
5578 cegcc*)
5579   # use the weaker test based on 'objdump'. See mingw*.
5580   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5581   lt_cv_file_magic_cmd='$OBJDUMP -f'
5582   ;;
5583
5584 darwin* | rhapsody*)
5585   lt_cv_deplibs_check_method=pass_all
5586   ;;
5587
5588 freebsd* | dragonfly*)
5589   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5590     case $host_cpu in
5591     i*86 )
5592       # Not sure whether the presence of OpenBSD here was a mistake.
5593       # Let's accept both of them until this is cleared up.
5594       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5595       lt_cv_file_magic_cmd=/usr/bin/file
5596       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5597       ;;
5598     esac
5599   else
5600     lt_cv_deplibs_check_method=pass_all
5601   fi
5602   ;;
5603
5604 gnu*)
5605   lt_cv_deplibs_check_method=pass_all
5606   ;;
5607
5608 haiku*)
5609   lt_cv_deplibs_check_method=pass_all
5610   ;;
5611
5612 hpux10.20* | hpux11*)
5613   lt_cv_file_magic_cmd=/usr/bin/file
5614   case $host_cpu in
5615   ia64*)
5616     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5617     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5618     ;;
5619   hppa*64*)
5620     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]'
5621     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5622     ;;
5623   *)
5624     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5625     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5626     ;;
5627   esac
5628   ;;
5629
5630 interix[3-9]*)
5631   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5632   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5633   ;;
5634
5635 irix5* | irix6* | nonstopux*)
5636   case $LD in
5637   *-32|*"-32 ") libmagic=32-bit;;
5638   *-n32|*"-n32 ") libmagic=N32;;
5639   *-64|*"-64 ") libmagic=64-bit;;
5640   *) libmagic=never-match;;
5641   esac
5642   lt_cv_deplibs_check_method=pass_all
5643   ;;
5644
5645 # This must be glibc/ELF.
5646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5647   lt_cv_deplibs_check_method=pass_all
5648   ;;
5649
5650 netbsd*)
5651   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5652     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5653   else
5654     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5655   fi
5656   ;;
5657
5658 newos6*)
5659   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5660   lt_cv_file_magic_cmd=/usr/bin/file
5661   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5662   ;;
5663
5664 *nto* | *qnx*)
5665   lt_cv_deplibs_check_method=pass_all
5666   ;;
5667
5668 openbsd*)
5669   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5670     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5671   else
5672     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5673   fi
5674   ;;
5675
5676 osf3* | osf4* | osf5*)
5677   lt_cv_deplibs_check_method=pass_all
5678   ;;
5679
5680 rdos*)
5681   lt_cv_deplibs_check_method=pass_all
5682   ;;
5683
5684 solaris*)
5685   lt_cv_deplibs_check_method=pass_all
5686   ;;
5687
5688 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5689   lt_cv_deplibs_check_method=pass_all
5690   ;;
5691
5692 sysv4 | sysv4.3*)
5693   case $host_vendor in
5694   motorola)
5695     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]'
5696     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5697     ;;
5698   ncr)
5699     lt_cv_deplibs_check_method=pass_all
5700     ;;
5701   sequent)
5702     lt_cv_file_magic_cmd='/bin/file'
5703     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5704     ;;
5705   sni)
5706     lt_cv_file_magic_cmd='/bin/file'
5707     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5708     lt_cv_file_magic_test_file=/lib/libc.so
5709     ;;
5710   siemens)
5711     lt_cv_deplibs_check_method=pass_all
5712     ;;
5713   pc)
5714     lt_cv_deplibs_check_method=pass_all
5715     ;;
5716   esac
5717   ;;
5718
5719 tpf*)
5720   lt_cv_deplibs_check_method=pass_all
5721   ;;
5722 esac
5723
5724 fi
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5726 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5727
5728 file_magic_glob=
5729 want_nocaseglob=no
5730 if test "$build" = "$host"; then
5731   case $host_os in
5732   mingw* | pw32*)
5733     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5734       want_nocaseglob=yes
5735     else
5736       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5737     fi
5738     ;;
5739   esac
5740 fi
5741
5742 file_magic_cmd=$lt_cv_file_magic_cmd
5743 deplibs_check_method=$lt_cv_deplibs_check_method
5744 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767 if test -n "$ac_tool_prefix"; then
5768   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_DLLTOOL+:} false; then :
5773   $as_echo_n "(cached) " >&6
5774 else
5775   if test -n "$DLLTOOL"; then
5776   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783     for ac_exec_ext in '' $ac_executable_extensions; do
5784   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5786     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790   done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 DLLTOOL=$ac_cv_prog_DLLTOOL
5796 if test -n "$DLLTOOL"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5798 $as_echo "$DLLTOOL" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804
5805 fi
5806 if test -z "$ac_cv_prog_DLLTOOL"; then
5807   ac_ct_DLLTOOL=$DLLTOOL
5808   # Extract the first word of "dlltool", so it can be a program name with args.
5809 set dummy dlltool; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   if test -n "$ac_ct_DLLTOOL"; then
5816   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5817 else
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833 fi
5834 fi
5835 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5836 if test -n "$ac_ct_DLLTOOL"; then
5837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5838 $as_echo "$ac_ct_DLLTOOL" >&6; }
5839 else
5840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5841 $as_echo "no" >&6; }
5842 fi
5843
5844   if test "x$ac_ct_DLLTOOL" = x; then
5845     DLLTOOL="false"
5846   else
5847     case $cross_compiling:$ac_tool_warned in
5848 yes:)
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5851 ac_tool_warned=yes ;;
5852 esac
5853     DLLTOOL=$ac_ct_DLLTOOL
5854   fi
5855 else
5856   DLLTOOL="$ac_cv_prog_DLLTOOL"
5857 fi
5858
5859 test -z "$DLLTOOL" && DLLTOOL=dlltool
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5871 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5872 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   lt_cv_sharedlib_from_linklib_cmd='unknown'
5876
5877 case $host_os in
5878 cygwin* | mingw* | pw32* | cegcc*)
5879   # two different shell functions defined in ltmain.sh
5880   # decide which to use based on capabilities of $DLLTOOL
5881   case `$DLLTOOL --help 2>&1` in
5882   *--identify-strict*)
5883     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5884     ;;
5885   *)
5886     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5887     ;;
5888   esac
5889   ;;
5890 *)
5891   # fallback: assume linklib IS sharedlib
5892   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5893   ;;
5894 esac
5895
5896 fi
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5898 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5899 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5900 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5901
5902
5903
5904
5905
5906
5907
5908
5909 if test -n "$ac_tool_prefix"; then
5910   for ac_prog in ar
5911   do
5912     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_AR+:} false; then :
5917   $as_echo_n "(cached) " >&6
5918 else
5919   if test -n "$AR"; then
5920   ac_cv_prog_AR="$AR" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925   IFS=$as_save_IFS
5926   test -z "$as_dir" && as_dir=.
5927     for ac_exec_ext in '' $ac_executable_extensions; do
5928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931     break 2
5932   fi
5933 done
5934   done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 AR=$ac_cv_prog_AR
5940 if test -n "$AR"; then
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5942 $as_echo "$AR" >&6; }
5943 else
5944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948
5949     test -n "$AR" && break
5950   done
5951 fi
5952 if test -z "$AR"; then
5953   ac_ct_AR=$AR
5954   for ac_prog in ar
5955 do
5956   # Extract the first word of "$ac_prog", so it can be a program name with args.
5957 set dummy $ac_prog; ac_word=$2
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959 $as_echo_n "checking for $ac_word... " >&6; }
5960 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5961   $as_echo_n "(cached) " >&6
5962 else
5963   if test -n "$ac_ct_AR"; then
5964   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5965 else
5966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5967 for as_dir in $PATH
5968 do
5969   IFS=$as_save_IFS
5970   test -z "$as_dir" && as_dir=.
5971     for ac_exec_ext in '' $ac_executable_extensions; do
5972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973     ac_cv_prog_ac_ct_AR="$ac_prog"
5974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5975     break 2
5976   fi
5977 done
5978   done
5979 IFS=$as_save_IFS
5980
5981 fi
5982 fi
5983 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5984 if test -n "$ac_ct_AR"; then
5985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5986 $as_echo "$ac_ct_AR" >&6; }
5987 else
5988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989 $as_echo "no" >&6; }
5990 fi
5991
5992
5993   test -n "$ac_ct_AR" && break
5994 done
5995
5996   if test "x$ac_ct_AR" = x; then
5997     AR="false"
5998   else
5999     case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005     AR=$ac_ct_AR
6006   fi
6007 fi
6008
6009 : ${AR=ar}
6010 : ${AR_FLAGS=cru}
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6023 $as_echo_n "checking for archiver @FILE support... " >&6; }
6024 if ${lt_cv_ar_at_file+:} false; then :
6025   $as_echo_n "(cached) " >&6
6026 else
6027   lt_cv_ar_at_file=no
6028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6029 /* end confdefs.h.  */
6030
6031 int
6032 main ()
6033 {
6034
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 if ac_fn_c_try_compile "$LINENO"; then :
6040   echo conftest.$ac_objext > conftest.lst
6041       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6042       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6043   (eval $lt_ar_try) 2>&5
6044   ac_status=$?
6045   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6046   test $ac_status = 0; }
6047       if test "$ac_status" -eq 0; then
6048         # Ensure the archiver fails upon bogus file names.
6049         rm -f conftest.$ac_objext libconftest.a
6050         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6051   (eval $lt_ar_try) 2>&5
6052   ac_status=$?
6053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6054   test $ac_status = 0; }
6055         if test "$ac_status" -ne 0; then
6056           lt_cv_ar_at_file=@
6057         fi
6058       fi
6059       rm -f conftest.* libconftest.a
6060
6061 fi
6062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063
6064 fi
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6066 $as_echo "$lt_cv_ar_at_file" >&6; }
6067
6068 if test "x$lt_cv_ar_at_file" = xno; then
6069   archiver_list_spec=
6070 else
6071   archiver_list_spec=$lt_cv_ar_at_file
6072 fi
6073
6074
6075
6076
6077
6078
6079
6080 if test -n "$ac_tool_prefix"; then
6081   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}strip; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if ${ac_cv_prog_STRIP+:} false; then :
6086   $as_echo_n "(cached) " >&6
6087 else
6088   if test -n "$STRIP"; then
6089   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6090 else
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6092 for as_dir in $PATH
6093 do
6094   IFS=$as_save_IFS
6095   test -z "$as_dir" && as_dir=.
6096     for ac_exec_ext in '' $ac_executable_extensions; do
6097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6100     break 2
6101   fi
6102 done
6103   done
6104 IFS=$as_save_IFS
6105
6106 fi
6107 fi
6108 STRIP=$ac_cv_prog_STRIP
6109 if test -n "$STRIP"; then
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6111 $as_echo "$STRIP" >&6; }
6112 else
6113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6115 fi
6116
6117
6118 fi
6119 if test -z "$ac_cv_prog_STRIP"; then
6120   ac_ct_STRIP=$STRIP
6121   # Extract the first word of "strip", so it can be a program name with args.
6122 set dummy strip; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6126   $as_echo_n "(cached) " >&6
6127 else
6128   if test -n "$ac_ct_STRIP"; then
6129   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6130 else
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134   IFS=$as_save_IFS
6135   test -z "$as_dir" && as_dir=.
6136     for ac_exec_ext in '' $ac_executable_extensions; do
6137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138     ac_cv_prog_ac_ct_STRIP="strip"
6139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6140     break 2
6141   fi
6142 done
6143   done
6144 IFS=$as_save_IFS
6145
6146 fi
6147 fi
6148 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6149 if test -n "$ac_ct_STRIP"; then
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6151 $as_echo "$ac_ct_STRIP" >&6; }
6152 else
6153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6155 fi
6156
6157   if test "x$ac_ct_STRIP" = x; then
6158     STRIP=":"
6159   else
6160     case $cross_compiling:$ac_tool_warned in
6161 yes:)
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6165 esac
6166     STRIP=$ac_ct_STRIP
6167   fi
6168 else
6169   STRIP="$ac_cv_prog_STRIP"
6170 fi
6171
6172 test -z "$STRIP" && STRIP=:
6173
6174
6175
6176
6177
6178
6179 if test -n "$ac_tool_prefix"; then
6180   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6183 $as_echo_n "checking for $ac_word... " >&6; }
6184 if ${ac_cv_prog_RANLIB+:} false; then :
6185   $as_echo_n "(cached) " >&6
6186 else
6187   if test -n "$RANLIB"; then
6188   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6189 else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195     for ac_exec_ext in '' $ac_executable_extensions; do
6196   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6199     break 2
6200   fi
6201 done
6202   done
6203 IFS=$as_save_IFS
6204
6205 fi
6206 fi
6207 RANLIB=$ac_cv_prog_RANLIB
6208 if test -n "$RANLIB"; then
6209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6210 $as_echo "$RANLIB" >&6; }
6211 else
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6213 $as_echo "no" >&6; }
6214 fi
6215
6216
6217 fi
6218 if test -z "$ac_cv_prog_RANLIB"; then
6219   ac_ct_RANLIB=$RANLIB
6220   # Extract the first word of "ranlib", so it can be a program name with args.
6221 set dummy ranlib; ac_word=$2
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6223 $as_echo_n "checking for $ac_word... " >&6; }
6224 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6225   $as_echo_n "(cached) " >&6
6226 else
6227   if test -n "$ac_ct_RANLIB"; then
6228   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6229 else
6230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6231 for as_dir in $PATH
6232 do
6233   IFS=$as_save_IFS
6234   test -z "$as_dir" && as_dir=.
6235     for ac_exec_ext in '' $ac_executable_extensions; do
6236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237     ac_cv_prog_ac_ct_RANLIB="ranlib"
6238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6239     break 2
6240   fi
6241 done
6242   done
6243 IFS=$as_save_IFS
6244
6245 fi
6246 fi
6247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6248 if test -n "$ac_ct_RANLIB"; then
6249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6250 $as_echo "$ac_ct_RANLIB" >&6; }
6251 else
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6253 $as_echo "no" >&6; }
6254 fi
6255
6256   if test "x$ac_ct_RANLIB" = x; then
6257     RANLIB=":"
6258   else
6259     case $cross_compiling:$ac_tool_warned in
6260 yes:)
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6263 ac_tool_warned=yes ;;
6264 esac
6265     RANLIB=$ac_ct_RANLIB
6266   fi
6267 else
6268   RANLIB="$ac_cv_prog_RANLIB"
6269 fi
6270
6271 test -z "$RANLIB" && RANLIB=:
6272
6273
6274
6275
6276
6277
6278 # Determine commands to create old-style static archives.
6279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6280 old_postinstall_cmds='chmod 644 $oldlib'
6281 old_postuninstall_cmds=
6282
6283 if test -n "$RANLIB"; then
6284   case $host_os in
6285   openbsd*)
6286     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6287     ;;
6288   *)
6289     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6290     ;;
6291   esac
6292   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6293 fi
6294
6295 case $host_os in
6296   darwin*)
6297     lock_old_archive_extraction=yes ;;
6298   *)
6299     lock_old_archive_extraction=no ;;
6300 esac
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340 # If no C compiler was specified, use CC.
6341 LTCC=${LTCC-"$CC"}
6342
6343 # If no C compiler flags were specified, use CFLAGS.
6344 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6345
6346 # Allow CC to be a program name with arguments.
6347 compiler=$CC
6348
6349
6350 # Check for command to grab the raw symbol name followed by C symbol from nm.
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6352 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6353 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356
6357 # These are sane defaults that work on at least a few old systems.
6358 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6359
6360 # Character class describing NM global symbol codes.
6361 symcode='[BCDEGRST]'
6362
6363 # Regexp to match symbols that can be accessed directly from C.
6364 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6365
6366 # Define system-specific variables.
6367 case $host_os in
6368 aix*)
6369   symcode='[BCDT]'
6370   ;;
6371 cygwin* | mingw* | pw32* | cegcc*)
6372   symcode='[ABCDGISTW]'
6373   ;;
6374 hpux*)
6375   if test "$host_cpu" = ia64; then
6376     symcode='[ABCDEGRST]'
6377   fi
6378   ;;
6379 irix* | nonstopux*)
6380   symcode='[BCDEGRST]'
6381   ;;
6382 osf*)
6383   symcode='[BCDEGQRST]'
6384   ;;
6385 solaris*)
6386   symcode='[BDRT]'
6387   ;;
6388 sco3.2v5*)
6389   symcode='[DT]'
6390   ;;
6391 sysv4.2uw2*)
6392   symcode='[DT]'
6393   ;;
6394 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6395   symcode='[ABDT]'
6396   ;;
6397 sysv4)
6398   symcode='[DFNSTU]'
6399   ;;
6400 esac
6401
6402 # If we're using GNU nm, then use its standard symbol codes.
6403 case `$NM -V 2>&1` in
6404 *GNU* | *'with BFD'*)
6405   symcode='[ABCDGIRSTW]' ;;
6406 esac
6407
6408 # Transform an extracted symbol line into a proper C declaration.
6409 # Some systems (esp. on ia64) link data and code symbols differently,
6410 # so use this general approach.
6411 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6412
6413 # Transform an extracted symbol line into symbol name and symbol address
6414 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6415 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'"
6416
6417 # Handle CRLF in mingw tool chain
6418 opt_cr=
6419 case $build_os in
6420 mingw*)
6421   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6422   ;;
6423 esac
6424
6425 # Try without a prefix underscore, then with it.
6426 for ac_symprfx in "" "_"; do
6427
6428   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6429   symxfrm="\\1 $ac_symprfx\\2 \\2"
6430
6431   # Write the raw and C identifiers.
6432   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6433     # Fake it for dumpbin and say T for any non-static function
6434     # and D for any global variable.
6435     # Also find C++ and __fastcall symbols from MSVC++,
6436     # which start with @ or ?.
6437     lt_cv_sys_global_symbol_pipe="$AWK '"\
6438 "     {last_section=section; section=\$ 3};"\
6439 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6440 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6441 "     \$ 0!~/External *\|/{next};"\
6442 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6443 "     {if(hide[section]) next};"\
6444 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6445 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6446 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6447 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6448 "     ' prfx=^$ac_symprfx"
6449   else
6450     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6451   fi
6452   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6453
6454   # Check to see that the pipe works correctly.
6455   pipe_works=no
6456
6457   rm -f conftest*
6458   cat > conftest.$ac_ext <<_LT_EOF
6459 #ifdef __cplusplus
6460 extern "C" {
6461 #endif
6462 char nm_test_var;
6463 void nm_test_func(void);
6464 void nm_test_func(void){}
6465 #ifdef __cplusplus
6466 }
6467 #endif
6468 int main(){nm_test_var='a';nm_test_func();return(0);}
6469 _LT_EOF
6470
6471   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6472   (eval $ac_compile) 2>&5
6473   ac_status=$?
6474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6475   test $ac_status = 0; }; then
6476     # Now try to grab the symbols.
6477     nlist=conftest.nm
6478     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6479   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6480   ac_status=$?
6481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6482   test $ac_status = 0; } && test -s "$nlist"; then
6483       # Try sorting and uniquifying the output.
6484       if sort "$nlist" | uniq > "$nlist"T; then
6485         mv -f "$nlist"T "$nlist"
6486       else
6487         rm -f "$nlist"T
6488       fi
6489
6490       # Make sure that we snagged all the symbols we need.
6491       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6492         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6493           cat <<_LT_EOF > conftest.$ac_ext
6494 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6495 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6496 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6497    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6498 # define LT_DLSYM_CONST
6499 #elif defined(__osf__)
6500 /* This system does not cope well with relocations in const data.  */
6501 # define LT_DLSYM_CONST
6502 #else
6503 # define LT_DLSYM_CONST const
6504 #endif
6505
6506 #ifdef __cplusplus
6507 extern "C" {
6508 #endif
6509
6510 _LT_EOF
6511           # Now generate the symbol file.
6512           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6513
6514           cat <<_LT_EOF >> conftest.$ac_ext
6515
6516 /* The mapping between symbol names and symbols.  */
6517 LT_DLSYM_CONST struct {
6518   const char *name;
6519   void       *address;
6520 }
6521 lt__PROGRAM__LTX_preloaded_symbols[] =
6522 {
6523   { "@PROGRAM@", (void *) 0 },
6524 _LT_EOF
6525           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6526           cat <<\_LT_EOF >> conftest.$ac_ext
6527   {0, (void *) 0}
6528 };
6529
6530 /* This works around a problem in FreeBSD linker */
6531 #ifdef FREEBSD_WORKAROUND
6532 static const void *lt_preloaded_setup() {
6533   return lt__PROGRAM__LTX_preloaded_symbols;
6534 }
6535 #endif
6536
6537 #ifdef __cplusplus
6538 }
6539 #endif
6540 _LT_EOF
6541           # Now try linking the two files.
6542           mv conftest.$ac_objext conftstm.$ac_objext
6543           lt_globsym_save_LIBS=$LIBS
6544           lt_globsym_save_CFLAGS=$CFLAGS
6545           LIBS="conftstm.$ac_objext"
6546           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6547           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6548   (eval $ac_link) 2>&5
6549   ac_status=$?
6550   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6551   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6552             pipe_works=yes
6553           fi
6554           LIBS=$lt_globsym_save_LIBS
6555           CFLAGS=$lt_globsym_save_CFLAGS
6556         else
6557           echo "cannot find nm_test_func in $nlist" >&5
6558         fi
6559       else
6560         echo "cannot find nm_test_var in $nlist" >&5
6561       fi
6562     else
6563       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6564     fi
6565   else
6566     echo "$progname: failed program was:" >&5
6567     cat conftest.$ac_ext >&5
6568   fi
6569   rm -rf conftest* conftst*
6570
6571   # Do not use the global_symbol_pipe unless it works.
6572   if test "$pipe_works" = yes; then
6573     break
6574   else
6575     lt_cv_sys_global_symbol_pipe=
6576   fi
6577 done
6578
6579 fi
6580
6581 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6582   lt_cv_sys_global_symbol_to_cdecl=
6583 fi
6584 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6586 $as_echo "failed" >&6; }
6587 else
6588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6589 $as_echo "ok" >&6; }
6590 fi
6591
6592 # Response file support.
6593 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6594   nm_file_list_spec='@'
6595 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6596   nm_file_list_spec='@'
6597 fi
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6626 $as_echo_n "checking for sysroot... " >&6; }
6627
6628 # Check whether --with-sysroot was given.
6629 if test "${with_sysroot+set}" = set; then :
6630   withval=$with_sysroot;
6631 else
6632   with_sysroot=no
6633 fi
6634
6635
6636 lt_sysroot=
6637 case ${with_sysroot} in #(
6638  yes)
6639    if test "$GCC" = yes; then
6640      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6641    fi
6642    ;; #(
6643  /*)
6644    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6645    ;; #(
6646  no|'')
6647    ;; #(
6648  *)
6649    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6650 $as_echo "${with_sysroot}" >&6; }
6651    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6652    ;;
6653 esac
6654
6655  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6656 $as_echo "${lt_sysroot:-no}" >&6; }
6657
6658
6659
6660
6661
6662 # Check whether --enable-libtool-lock was given.
6663 if test "${enable_libtool_lock+set}" = set; then :
6664   enableval=$enable_libtool_lock;
6665 fi
6666
6667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6668
6669 # Some flags need to be propagated to the compiler or linker for good
6670 # libtool support.
6671 case $host in
6672 ia64-*-hpux*)
6673   # Find out which ABI we are using.
6674   echo 'int i;' > conftest.$ac_ext
6675   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6676   (eval $ac_compile) 2>&5
6677   ac_status=$?
6678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6679   test $ac_status = 0; }; then
6680     case `/usr/bin/file conftest.$ac_objext` in
6681       *ELF-32*)
6682         HPUX_IA64_MODE="32"
6683         ;;
6684       *ELF-64*)
6685         HPUX_IA64_MODE="64"
6686         ;;
6687     esac
6688   fi
6689   rm -rf conftest*
6690   ;;
6691 *-*-irix6*)
6692   # Find out which ABI we are using.
6693   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695   (eval $ac_compile) 2>&5
6696   ac_status=$?
6697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698   test $ac_status = 0; }; then
6699     if test "$lt_cv_prog_gnu_ld" = yes; then
6700       case `/usr/bin/file conftest.$ac_objext` in
6701         *32-bit*)
6702           LD="${LD-ld} -melf32bsmip"
6703           ;;
6704         *N32*)
6705           LD="${LD-ld} -melf32bmipn32"
6706           ;;
6707         *64-bit*)
6708           LD="${LD-ld} -melf64bmip"
6709         ;;
6710       esac
6711     else
6712       case `/usr/bin/file conftest.$ac_objext` in
6713         *32-bit*)
6714           LD="${LD-ld} -32"
6715           ;;
6716         *N32*)
6717           LD="${LD-ld} -n32"
6718           ;;
6719         *64-bit*)
6720           LD="${LD-ld} -64"
6721           ;;
6722       esac
6723     fi
6724   fi
6725   rm -rf conftest*
6726   ;;
6727
6728 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6729 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6730   # Find out which ABI we are using.
6731   echo 'int i;' > conftest.$ac_ext
6732   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733   (eval $ac_compile) 2>&5
6734   ac_status=$?
6735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6736   test $ac_status = 0; }; then
6737     case `/usr/bin/file conftest.o` in
6738       *32-bit*)
6739         case $host in
6740           x86_64-*kfreebsd*-gnu)
6741             LD="${LD-ld} -m elf_i386_fbsd"
6742             ;;
6743           x86_64-*linux*)
6744             LD="${LD-ld} -m elf_i386"
6745             ;;
6746           ppc64-*linux*|powerpc64-*linux*)
6747             LD="${LD-ld} -m elf32ppclinux"
6748             ;;
6749           s390x-*linux*)
6750             LD="${LD-ld} -m elf_s390"
6751             ;;
6752           sparc64-*linux*)
6753             LD="${LD-ld} -m elf32_sparc"
6754             ;;
6755         esac
6756         ;;
6757       *64-bit*)
6758         case $host in
6759           x86_64-*kfreebsd*-gnu)
6760             LD="${LD-ld} -m elf_x86_64_fbsd"
6761             ;;
6762           x86_64-*linux*)
6763             LD="${LD-ld} -m elf_x86_64"
6764             ;;
6765           ppc*-*linux*|powerpc*-*linux*)
6766             LD="${LD-ld} -m elf64ppc"
6767             ;;
6768           s390*-*linux*|s390*-*tpf*)
6769             LD="${LD-ld} -m elf64_s390"
6770             ;;
6771           sparc*-*linux*)
6772             LD="${LD-ld} -m elf64_sparc"
6773             ;;
6774         esac
6775         ;;
6776     esac
6777   fi
6778   rm -rf conftest*
6779   ;;
6780
6781 *-*-sco3.2v5*)
6782   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6783   SAVE_CFLAGS="$CFLAGS"
6784   CFLAGS="$CFLAGS -belf"
6785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6786 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6787 if ${lt_cv_cc_needs_belf+:} false; then :
6788   $as_echo_n "(cached) " >&6
6789 else
6790   ac_ext=c
6791 ac_cpp='$CPP $CPPFLAGS'
6792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6795
6796      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h.  */
6798
6799 int
6800 main ()
6801 {
6802
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 if ac_fn_c_try_link "$LINENO"; then :
6808   lt_cv_cc_needs_belf=yes
6809 else
6810   lt_cv_cc_needs_belf=no
6811 fi
6812 rm -f core conftest.err conftest.$ac_objext \
6813     conftest$ac_exeext conftest.$ac_ext
6814      ac_ext=c
6815 ac_cpp='$CPP $CPPFLAGS'
6816 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6817 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6818 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6819
6820 fi
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6822 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6823   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6824     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6825     CFLAGS="$SAVE_CFLAGS"
6826   fi
6827   ;;
6828 *-*solaris*)
6829   # Find out which ABI we are using.
6830   echo 'int i;' > conftest.$ac_ext
6831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832   (eval $ac_compile) 2>&5
6833   ac_status=$?
6834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835   test $ac_status = 0; }; then
6836     case `/usr/bin/file conftest.o` in
6837     *64-bit*)
6838       case $lt_cv_prog_gnu_ld in
6839       yes*)
6840         case $host in
6841         i?86-*-solaris*)
6842           LD="${LD-ld} -m elf_x86_64"
6843           ;;
6844         sparc*-*-solaris*)
6845           LD="${LD-ld} -m elf64_sparc"
6846           ;;
6847         esac
6848         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6849         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6850           LD="${LD-ld}_sol2"
6851         fi
6852         ;;
6853       *)
6854         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6855           LD="${LD-ld} -64"
6856         fi
6857         ;;
6858       esac
6859       ;;
6860     esac
6861   fi
6862   rm -rf conftest*
6863   ;;
6864 esac
6865
6866 need_locks="$enable_libtool_lock"
6867
6868 if test -n "$ac_tool_prefix"; then
6869   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6870 set dummy ${ac_tool_prefix}mt; ac_word=$2
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6872 $as_echo_n "checking for $ac_word... " >&6; }
6873 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6874   $as_echo_n "(cached) " >&6
6875 else
6876   if test -n "$MANIFEST_TOOL"; then
6877   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6878 else
6879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 for as_dir in $PATH
6881 do
6882   IFS=$as_save_IFS
6883   test -z "$as_dir" && as_dir=.
6884     for ac_exec_ext in '' $ac_executable_extensions; do
6885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6886     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888     break 2
6889   fi
6890 done
6891   done
6892 IFS=$as_save_IFS
6893
6894 fi
6895 fi
6896 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6897 if test -n "$MANIFEST_TOOL"; then
6898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6899 $as_echo "$MANIFEST_TOOL" >&6; }
6900 else
6901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6902 $as_echo "no" >&6; }
6903 fi
6904
6905
6906 fi
6907 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6908   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6909   # Extract the first word of "mt", so it can be a program name with args.
6910 set dummy mt; ac_word=$2
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6912 $as_echo_n "checking for $ac_word... " >&6; }
6913 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6914   $as_echo_n "(cached) " >&6
6915 else
6916   if test -n "$ac_ct_MANIFEST_TOOL"; then
6917   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6918 else
6919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6920 for as_dir in $PATH
6921 do
6922   IFS=$as_save_IFS
6923   test -z "$as_dir" && as_dir=.
6924     for ac_exec_ext in '' $ac_executable_extensions; do
6925   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6926     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928     break 2
6929   fi
6930 done
6931   done
6932 IFS=$as_save_IFS
6933
6934 fi
6935 fi
6936 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6937 if test -n "$ac_ct_MANIFEST_TOOL"; then
6938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6939 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6940 else
6941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6942 $as_echo "no" >&6; }
6943 fi
6944
6945   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6946     MANIFEST_TOOL=":"
6947   else
6948     case $cross_compiling:$ac_tool_warned in
6949 yes:)
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6952 ac_tool_warned=yes ;;
6953 esac
6954     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6955   fi
6956 else
6957   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6958 fi
6959
6960 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6962 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6963 if ${lt_cv_path_mainfest_tool+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   lt_cv_path_mainfest_tool=no
6967   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6968   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6969   cat conftest.err >&5
6970   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6971     lt_cv_path_mainfest_tool=yes
6972   fi
6973   rm -f conftest*
6974 fi
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6976 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6977 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6978   MANIFEST_TOOL=:
6979 fi
6980
6981
6982
6983
6984
6985
6986   case $host_os in
6987     rhapsody* | darwin*)
6988     if test -n "$ac_tool_prefix"; then
6989   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6990 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6992 $as_echo_n "checking for $ac_word... " >&6; }
6993 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6994   $as_echo_n "(cached) " >&6
6995 else
6996   if test -n "$DSYMUTIL"; then
6997   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6998 else
6999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7000 for as_dir in $PATH
7001 do
7002   IFS=$as_save_IFS
7003   test -z "$as_dir" && as_dir=.
7004     for ac_exec_ext in '' $ac_executable_extensions; do
7005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7006     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008     break 2
7009   fi
7010 done
7011   done
7012 IFS=$as_save_IFS
7013
7014 fi
7015 fi
7016 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7017 if test -n "$DSYMUTIL"; then
7018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7019 $as_echo "$DSYMUTIL" >&6; }
7020 else
7021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7022 $as_echo "no" >&6; }
7023 fi
7024
7025
7026 fi
7027 if test -z "$ac_cv_prog_DSYMUTIL"; then
7028   ac_ct_DSYMUTIL=$DSYMUTIL
7029   # Extract the first word of "dsymutil", so it can be a program name with args.
7030 set dummy dsymutil; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   if test -n "$ac_ct_DSYMUTIL"; then
7037   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7041 do
7042   IFS=$as_save_IFS
7043   test -z "$as_dir" && as_dir=.
7044     for ac_exec_ext in '' $ac_executable_extensions; do
7045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048     break 2
7049   fi
7050 done
7051   done
7052 IFS=$as_save_IFS
7053
7054 fi
7055 fi
7056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7057 if test -n "$ac_ct_DSYMUTIL"; then
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7059 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7060 else
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7063 fi
7064
7065   if test "x$ac_ct_DSYMUTIL" = x; then
7066     DSYMUTIL=":"
7067   else
7068     case $cross_compiling:$ac_tool_warned in
7069 yes:)
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7072 ac_tool_warned=yes ;;
7073 esac
7074     DSYMUTIL=$ac_ct_DSYMUTIL
7075   fi
7076 else
7077   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7078 fi
7079
7080     if test -n "$ac_tool_prefix"; then
7081   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7082 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7084 $as_echo_n "checking for $ac_word... " >&6; }
7085 if ${ac_cv_prog_NMEDIT+:} false; then :
7086   $as_echo_n "(cached) " >&6
7087 else
7088   if test -n "$NMEDIT"; then
7089   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7090 else
7091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7092 for as_dir in $PATH
7093 do
7094   IFS=$as_save_IFS
7095   test -z "$as_dir" && as_dir=.
7096     for ac_exec_ext in '' $ac_executable_extensions; do
7097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7098     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7099     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7100     break 2
7101   fi
7102 done
7103   done
7104 IFS=$as_save_IFS
7105
7106 fi
7107 fi
7108 NMEDIT=$ac_cv_prog_NMEDIT
7109 if test -n "$NMEDIT"; then
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7111 $as_echo "$NMEDIT" >&6; }
7112 else
7113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7114 $as_echo "no" >&6; }
7115 fi
7116
7117
7118 fi
7119 if test -z "$ac_cv_prog_NMEDIT"; then
7120   ac_ct_NMEDIT=$NMEDIT
7121   # Extract the first word of "nmedit", so it can be a program name with args.
7122 set dummy nmedit; ac_word=$2
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7124 $as_echo_n "checking for $ac_word... " >&6; }
7125 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7126   $as_echo_n "(cached) " >&6
7127 else
7128   if test -n "$ac_ct_NMEDIT"; then
7129   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7130 else
7131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 for as_dir in $PATH
7133 do
7134   IFS=$as_save_IFS
7135   test -z "$as_dir" && as_dir=.
7136     for ac_exec_ext in '' $ac_executable_extensions; do
7137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7138     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7140     break 2
7141   fi
7142 done
7143   done
7144 IFS=$as_save_IFS
7145
7146 fi
7147 fi
7148 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7149 if test -n "$ac_ct_NMEDIT"; then
7150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7151 $as_echo "$ac_ct_NMEDIT" >&6; }
7152 else
7153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7154 $as_echo "no" >&6; }
7155 fi
7156
7157   if test "x$ac_ct_NMEDIT" = x; then
7158     NMEDIT=":"
7159   else
7160     case $cross_compiling:$ac_tool_warned in
7161 yes:)
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7164 ac_tool_warned=yes ;;
7165 esac
7166     NMEDIT=$ac_ct_NMEDIT
7167   fi
7168 else
7169   NMEDIT="$ac_cv_prog_NMEDIT"
7170 fi
7171
7172     if test -n "$ac_tool_prefix"; then
7173   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7174 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7176 $as_echo_n "checking for $ac_word... " >&6; }
7177 if ${ac_cv_prog_LIPO+:} false; then :
7178   $as_echo_n "(cached) " >&6
7179 else
7180   if test -n "$LIPO"; then
7181   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186   IFS=$as_save_IFS
7187   test -z "$as_dir" && as_dir=.
7188     for ac_exec_ext in '' $ac_executable_extensions; do
7189   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7192     break 2
7193   fi
7194 done
7195   done
7196 IFS=$as_save_IFS
7197
7198 fi
7199 fi
7200 LIPO=$ac_cv_prog_LIPO
7201 if test -n "$LIPO"; then
7202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7203 $as_echo "$LIPO" >&6; }
7204 else
7205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206 $as_echo "no" >&6; }
7207 fi
7208
7209
7210 fi
7211 if test -z "$ac_cv_prog_LIPO"; then
7212   ac_ct_LIPO=$LIPO
7213   # Extract the first word of "lipo", so it can be a program name with args.
7214 set dummy lipo; ac_word=$2
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7216 $as_echo_n "checking for $ac_word... " >&6; }
7217 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7218   $as_echo_n "(cached) " >&6
7219 else
7220   if test -n "$ac_ct_LIPO"; then
7221   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7222 else
7223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7224 for as_dir in $PATH
7225 do
7226   IFS=$as_save_IFS
7227   test -z "$as_dir" && as_dir=.
7228     for ac_exec_ext in '' $ac_executable_extensions; do
7229   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7230     ac_cv_prog_ac_ct_LIPO="lipo"
7231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7232     break 2
7233   fi
7234 done
7235   done
7236 IFS=$as_save_IFS
7237
7238 fi
7239 fi
7240 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7241 if test -n "$ac_ct_LIPO"; then
7242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7243 $as_echo "$ac_ct_LIPO" >&6; }
7244 else
7245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7246 $as_echo "no" >&6; }
7247 fi
7248
7249   if test "x$ac_ct_LIPO" = x; then
7250     LIPO=":"
7251   else
7252     case $cross_compiling:$ac_tool_warned in
7253 yes:)
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7256 ac_tool_warned=yes ;;
7257 esac
7258     LIPO=$ac_ct_LIPO
7259   fi
7260 else
7261   LIPO="$ac_cv_prog_LIPO"
7262 fi
7263
7264     if test -n "$ac_tool_prefix"; then
7265   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7266 set dummy ${ac_tool_prefix}otool; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_OTOOL+:} false; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272   if test -n "$OTOOL"; then
7273   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280     for ac_exec_ext in '' $ac_executable_extensions; do
7281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287   done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 OTOOL=$ac_cv_prog_OTOOL
7293 if test -n "$OTOOL"; then
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7295 $as_echo "$OTOOL" >&6; }
7296 else
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301
7302 fi
7303 if test -z "$ac_cv_prog_OTOOL"; then
7304   ac_ct_OTOOL=$OTOOL
7305   # Extract the first word of "otool", so it can be a program name with args.
7306 set dummy otool; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   if test -n "$ac_ct_OTOOL"; then
7313   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320     for ac_exec_ext in '' $ac_executable_extensions; do
7321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7322     ac_cv_prog_ac_ct_OTOOL="otool"
7323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327   done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7333 if test -n "$ac_ct_OTOOL"; then
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7335 $as_echo "$ac_ct_OTOOL" >&6; }
7336 else
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341   if test "x$ac_ct_OTOOL" = x; then
7342     OTOOL=":"
7343   else
7344     case $cross_compiling:$ac_tool_warned in
7345 yes:)
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7348 ac_tool_warned=yes ;;
7349 esac
7350     OTOOL=$ac_ct_OTOOL
7351   fi
7352 else
7353   OTOOL="$ac_cv_prog_OTOOL"
7354 fi
7355
7356     if test -n "$ac_tool_prefix"; then
7357   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7358 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7360 $as_echo_n "checking for $ac_word... " >&6; }
7361 if ${ac_cv_prog_OTOOL64+:} false; then :
7362   $as_echo_n "(cached) " >&6
7363 else
7364   if test -n "$OTOOL64"; then
7365   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7366 else
7367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7368 for as_dir in $PATH
7369 do
7370   IFS=$as_save_IFS
7371   test -z "$as_dir" && as_dir=.
7372     for ac_exec_ext in '' $ac_executable_extensions; do
7373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7374     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7376     break 2
7377   fi
7378 done
7379   done
7380 IFS=$as_save_IFS
7381
7382 fi
7383 fi
7384 OTOOL64=$ac_cv_prog_OTOOL64
7385 if test -n "$OTOOL64"; then
7386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7387 $as_echo "$OTOOL64" >&6; }
7388 else
7389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 fi
7392
7393
7394 fi
7395 if test -z "$ac_cv_prog_OTOOL64"; then
7396   ac_ct_OTOOL64=$OTOOL64
7397   # Extract the first word of "otool64", so it can be a program name with args.
7398 set dummy otool64; ac_word=$2
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7400 $as_echo_n "checking for $ac_word... " >&6; }
7401 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7402   $as_echo_n "(cached) " >&6
7403 else
7404   if test -n "$ac_ct_OTOOL64"; then
7405   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7406 else
7407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7408 for as_dir in $PATH
7409 do
7410   IFS=$as_save_IFS
7411   test -z "$as_dir" && as_dir=.
7412     for ac_exec_ext in '' $ac_executable_extensions; do
7413   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7414     ac_cv_prog_ac_ct_OTOOL64="otool64"
7415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7416     break 2
7417   fi
7418 done
7419   done
7420 IFS=$as_save_IFS
7421
7422 fi
7423 fi
7424 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7425 if test -n "$ac_ct_OTOOL64"; then
7426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7427 $as_echo "$ac_ct_OTOOL64" >&6; }
7428 else
7429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7430 $as_echo "no" >&6; }
7431 fi
7432
7433   if test "x$ac_ct_OTOOL64" = x; then
7434     OTOOL64=":"
7435   else
7436     case $cross_compiling:$ac_tool_warned in
7437 yes:)
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7440 ac_tool_warned=yes ;;
7441 esac
7442     OTOOL64=$ac_ct_OTOOL64
7443   fi
7444 else
7445   OTOOL64="$ac_cv_prog_OTOOL64"
7446 fi
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7475 $as_echo_n "checking for -single_module linker flag... " >&6; }
7476 if ${lt_cv_apple_cc_single_mod+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   lt_cv_apple_cc_single_mod=no
7480       if test -z "${LT_MULTI_MODULE}"; then
7481         # By default we will add the -single_module flag. You can override
7482         # by either setting the environment variable LT_MULTI_MODULE
7483         # non-empty at configure time, or by adding -multi_module to the
7484         # link flags.
7485         rm -rf libconftest.dylib*
7486         echo "int foo(void){return 1;}" > conftest.c
7487         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7488 -dynamiclib -Wl,-single_module conftest.c" >&5
7489         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7490           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7491         _lt_result=$?
7492         # If there is a non-empty error log, and "single_module"
7493         # appears in it, assume the flag caused a linker warning
7494         if test -s conftest.err && $GREP single_module conftest.err; then
7495           cat conftest.err >&5
7496         # Otherwise, if the output was created with a 0 exit code from
7497         # the compiler, it worked.
7498         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7499           lt_cv_apple_cc_single_mod=yes
7500         else
7501           cat conftest.err >&5
7502         fi
7503         rm -rf libconftest.dylib*
7504         rm -f conftest.*
7505       fi
7506 fi
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7508 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7509
7510     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7511 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7512 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7513   $as_echo_n "(cached) " >&6
7514 else
7515   lt_cv_ld_exported_symbols_list=no
7516       save_LDFLAGS=$LDFLAGS
7517       echo "_main" > conftest.sym
7518       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h.  */
7521
7522 int
7523 main ()
7524 {
7525
7526   ;
7527   return 0;
7528 }
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531   lt_cv_ld_exported_symbols_list=yes
7532 else
7533   lt_cv_ld_exported_symbols_list=no
7534 fi
7535 rm -f core conftest.err conftest.$ac_objext \
7536     conftest$ac_exeext conftest.$ac_ext
7537         LDFLAGS="$save_LDFLAGS"
7538
7539 fi
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7542
7543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7544 $as_echo_n "checking for -force_load linker flag... " >&6; }
7545 if ${lt_cv_ld_force_load+:} false; then :
7546   $as_echo_n "(cached) " >&6
7547 else
7548   lt_cv_ld_force_load=no
7549       cat > conftest.c << _LT_EOF
7550 int forced_loaded() { return 2;}
7551 _LT_EOF
7552       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7553       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7554       echo "$AR cru libconftest.a conftest.o" >&5
7555       $AR cru libconftest.a conftest.o 2>&5
7556       echo "$RANLIB libconftest.a" >&5
7557       $RANLIB libconftest.a 2>&5
7558       cat > conftest.c << _LT_EOF
7559 int main() { return 0;}
7560 _LT_EOF
7561       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7562       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7563       _lt_result=$?
7564       if test -s conftest.err && $GREP force_load conftest.err; then
7565         cat conftest.err >&5
7566       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7567         lt_cv_ld_force_load=yes
7568       else
7569         cat conftest.err >&5
7570       fi
7571         rm -f conftest.err libconftest.a conftest conftest.c
7572         rm -rf conftest.dSYM
7573
7574 fi
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7576 $as_echo "$lt_cv_ld_force_load" >&6; }
7577     case $host_os in
7578     rhapsody* | darwin1.[012])
7579       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7580     darwin1.*)
7581       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7582     darwin*) # darwin 5.x on
7583       # if running on 10.5 or later, the deployment target defaults
7584       # to the OS version, if on x86, and 10.4, the deployment
7585       # target defaults to 10.4. Don't you love it?
7586       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7587         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7588           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7589         10.[012]*)
7590           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7591         10.*)
7592           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7593       esac
7594     ;;
7595   esac
7596     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7597       _lt_dar_single_mod='$single_module'
7598     fi
7599     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7600       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7601     else
7602       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7603     fi
7604     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7605       _lt_dsymutil='~$DSYMUTIL $lib || :'
7606     else
7607       _lt_dsymutil=
7608     fi
7609     ;;
7610   esac
7611
7612 ac_ext=c
7613 ac_cpp='$CPP $CPPFLAGS'
7614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7618 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7619 # On Suns, sometimes $CPP names a directory.
7620 if test -n "$CPP" && test -d "$CPP"; then
7621   CPP=
7622 fi
7623 if test -z "$CPP"; then
7624   if ${ac_cv_prog_CPP+:} false; then :
7625   $as_echo_n "(cached) " >&6
7626 else
7627       # Double quotes because CPP needs to be expanded
7628     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7629     do
7630       ac_preproc_ok=false
7631 for ac_c_preproc_warn_flag in '' yes
7632 do
7633   # Use a header file that comes with gcc, so configuring glibc
7634   # with a fresh cross-compiler works.
7635   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636   # <limits.h> exists even on freestanding compilers.
7637   # On the NeXT, cc -E runs the code through the compiler's parser,
7638   # not just through cpp. "Syntax error" is here to catch this case.
7639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7640 /* end confdefs.h.  */
7641 #ifdef __STDC__
7642 # include <limits.h>
7643 #else
7644 # include <assert.h>
7645 #endif
7646                      Syntax error
7647 _ACEOF
7648 if ac_fn_c_try_cpp "$LINENO"; then :
7649
7650 else
7651   # Broken: fails on valid input.
7652 continue
7653 fi
7654 rm -f conftest.err conftest.i conftest.$ac_ext
7655
7656   # OK, works on sane cases.  Now check whether nonexistent headers
7657   # can be detected and how.
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 #include <ac_nonexistent.h>
7661 _ACEOF
7662 if ac_fn_c_try_cpp "$LINENO"; then :
7663   # Broken: success on invalid input.
7664 continue
7665 else
7666   # Passes both tests.
7667 ac_preproc_ok=:
7668 break
7669 fi
7670 rm -f conftest.err conftest.i conftest.$ac_ext
7671
7672 done
7673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7674 rm -f conftest.i conftest.err conftest.$ac_ext
7675 if $ac_preproc_ok; then :
7676   break
7677 fi
7678
7679     done
7680     ac_cv_prog_CPP=$CPP
7681
7682 fi
7683   CPP=$ac_cv_prog_CPP
7684 else
7685   ac_cv_prog_CPP=$CPP
7686 fi
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7688 $as_echo "$CPP" >&6; }
7689 ac_preproc_ok=false
7690 for ac_c_preproc_warn_flag in '' yes
7691 do
7692   # Use a header file that comes with gcc, so configuring glibc
7693   # with a fresh cross-compiler works.
7694   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7695   # <limits.h> exists even on freestanding compilers.
7696   # On the NeXT, cc -E runs the code through the compiler's parser,
7697   # not just through cpp. "Syntax error" is here to catch this case.
7698   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7699 /* end confdefs.h.  */
7700 #ifdef __STDC__
7701 # include <limits.h>
7702 #else
7703 # include <assert.h>
7704 #endif
7705                      Syntax error
7706 _ACEOF
7707 if ac_fn_c_try_cpp "$LINENO"; then :
7708
7709 else
7710   # Broken: fails on valid input.
7711 continue
7712 fi
7713 rm -f conftest.err conftest.i conftest.$ac_ext
7714
7715   # OK, works on sane cases.  Now check whether nonexistent headers
7716   # can be detected and how.
7717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719 #include <ac_nonexistent.h>
7720 _ACEOF
7721 if ac_fn_c_try_cpp "$LINENO"; then :
7722   # Broken: success on invalid input.
7723 continue
7724 else
7725   # Passes both tests.
7726 ac_preproc_ok=:
7727 break
7728 fi
7729 rm -f conftest.err conftest.i conftest.$ac_ext
7730
7731 done
7732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7733 rm -f conftest.i conftest.err conftest.$ac_ext
7734 if $ac_preproc_ok; then :
7735
7736 else
7737   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7739 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7740 See \`config.log' for more details" "$LINENO" 5; }
7741 fi
7742
7743 ac_ext=c
7744 ac_cpp='$CPP $CPPFLAGS'
7745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7748
7749
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7751 $as_echo_n "checking for ANSI C header files... " >&6; }
7752 if ${ac_cv_header_stdc+:} false; then :
7753   $as_echo_n "(cached) " >&6
7754 else
7755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h.  */
7757 #include <stdlib.h>
7758 #include <stdarg.h>
7759 #include <string.h>
7760 #include <float.h>
7761
7762 int
7763 main ()
7764 {
7765
7766   ;
7767   return 0;
7768 }
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"; then :
7771   ac_cv_header_stdc=yes
7772 else
7773   ac_cv_header_stdc=no
7774 fi
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7776
7777 if test $ac_cv_header_stdc = yes; then
7778   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h.  */
7781 #include <string.h>
7782
7783 _ACEOF
7784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7785   $EGREP "memchr" >/dev/null 2>&1; then :
7786
7787 else
7788   ac_cv_header_stdc=no
7789 fi
7790 rm -f conftest*
7791
7792 fi
7793
7794 if test $ac_cv_header_stdc = yes; then
7795   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798 #include <stdlib.h>
7799
7800 _ACEOF
7801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7802   $EGREP "free" >/dev/null 2>&1; then :
7803
7804 else
7805   ac_cv_header_stdc=no
7806 fi
7807 rm -f conftest*
7808
7809 fi
7810
7811 if test $ac_cv_header_stdc = yes; then
7812   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7813   if test "$cross_compiling" = yes; then :
7814   :
7815 else
7816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7817 /* end confdefs.h.  */
7818 #include <ctype.h>
7819 #include <stdlib.h>
7820 #if ((' ' & 0x0FF) == 0x020)
7821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7823 #else
7824 # define ISLOWER(c) \
7825                    (('a' <= (c) && (c) <= 'i') \
7826                      || ('j' <= (c) && (c) <= 'r') \
7827                      || ('s' <= (c) && (c) <= 'z'))
7828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7829 #endif
7830
7831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7832 int
7833 main ()
7834 {
7835   int i;
7836   for (i = 0; i < 256; i++)
7837     if (XOR (islower (i), ISLOWER (i))
7838         || toupper (i) != TOUPPER (i))
7839       return 2;
7840   return 0;
7841 }
7842 _ACEOF
7843 if ac_fn_c_try_run "$LINENO"; then :
7844
7845 else
7846   ac_cv_header_stdc=no
7847 fi
7848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7849   conftest.$ac_objext conftest.beam conftest.$ac_ext
7850 fi
7851
7852 fi
7853 fi
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7855 $as_echo "$ac_cv_header_stdc" >&6; }
7856 if test $ac_cv_header_stdc = yes; then
7857
7858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7859
7860 fi
7861
7862 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7863 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7864                   inttypes.h stdint.h unistd.h
7865 do :
7866   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7868 "
7869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7870   cat >>confdefs.h <<_ACEOF
7871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7872 _ACEOF
7873
7874 fi
7875
7876 done
7877
7878
7879 for ac_header in dlfcn.h
7880 do :
7881   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7882 "
7883 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7884   cat >>confdefs.h <<_ACEOF
7885 #define HAVE_DLFCN_H 1
7886 _ACEOF
7887
7888 fi
7889
7890 done
7891
7892
7893
7894
7895
7896 # Set options
7897
7898
7899
7900         enable_dlopen=no
7901
7902
7903   enable_win32_dll=no
7904
7905
7906             # Check whether --enable-shared was given.
7907 if test "${enable_shared+set}" = set; then :
7908   enableval=$enable_shared; p=${PACKAGE-default}
7909     case $enableval in
7910     yes) enable_shared=yes ;;
7911     no) enable_shared=no ;;
7912     *)
7913       enable_shared=no
7914       # Look at the argument we got.  We use all the common list separators.
7915       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7916       for pkg in $enableval; do
7917         IFS="$lt_save_ifs"
7918         if test "X$pkg" = "X$p"; then
7919           enable_shared=yes
7920         fi
7921       done
7922       IFS="$lt_save_ifs"
7923       ;;
7924     esac
7925 else
7926   enable_shared=yes
7927 fi
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937   # Check whether --enable-static was given.
7938 if test "${enable_static+set}" = set; then :
7939   enableval=$enable_static; p=${PACKAGE-default}
7940     case $enableval in
7941     yes) enable_static=yes ;;
7942     no) enable_static=no ;;
7943     *)
7944      enable_static=no
7945       # Look at the argument we got.  We use all the common list separators.
7946       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7947       for pkg in $enableval; do
7948         IFS="$lt_save_ifs"
7949         if test "X$pkg" = "X$p"; then
7950           enable_static=yes
7951         fi
7952       done
7953       IFS="$lt_save_ifs"
7954       ;;
7955     esac
7956 else
7957   enable_static=yes
7958 fi
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969 # Check whether --with-pic was given.
7970 if test "${with_pic+set}" = set; then :
7971   withval=$with_pic; lt_p=${PACKAGE-default}
7972     case $withval in
7973     yes|no) pic_mode=$withval ;;
7974     *)
7975       pic_mode=default
7976       # Look at the argument we got.  We use all the common list separators.
7977       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978       for lt_pkg in $withval; do
7979         IFS="$lt_save_ifs"
7980         if test "X$lt_pkg" = "X$lt_p"; then
7981           pic_mode=yes
7982         fi
7983       done
7984       IFS="$lt_save_ifs"
7985       ;;
7986     esac
7987 else
7988   pic_mode=default
7989 fi
7990
7991
7992 test -z "$pic_mode" && pic_mode=default
7993
7994
7995
7996
7997
7998
7999
8000   # Check whether --enable-fast-install was given.
8001 if test "${enable_fast_install+set}" = set; then :
8002   enableval=$enable_fast_install; p=${PACKAGE-default}
8003     case $enableval in
8004     yes) enable_fast_install=yes ;;
8005     no) enable_fast_install=no ;;
8006     *)
8007       enable_fast_install=no
8008       # Look at the argument we got.  We use all the common list separators.
8009       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8010       for pkg in $enableval; do
8011         IFS="$lt_save_ifs"
8012         if test "X$pkg" = "X$p"; then
8013           enable_fast_install=yes
8014         fi
8015       done
8016       IFS="$lt_save_ifs"
8017       ;;
8018     esac
8019 else
8020   enable_fast_install=yes
8021 fi
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033 # This can be used to rebuild libtool when needed
8034 LIBTOOL_DEPS="$ltmain"
8035
8036 # Always use our own libtool.
8037 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068 test -z "$LN_S" && LN_S="ln -s"
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083 if test -n "${ZSH_VERSION+set}" ; then
8084    setopt NO_GLOB_SUBST
8085 fi
8086
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8088 $as_echo_n "checking for objdir... " >&6; }
8089 if ${lt_cv_objdir+:} false; then :
8090   $as_echo_n "(cached) " >&6
8091 else
8092   rm -f .libs 2>/dev/null
8093 mkdir .libs 2>/dev/null
8094 if test -d .libs; then
8095   lt_cv_objdir=.libs
8096 else
8097   # MS-DOS does not allow filenames that begin with a dot.
8098   lt_cv_objdir=_libs
8099 fi
8100 rmdir .libs 2>/dev/null
8101 fi
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8103 $as_echo "$lt_cv_objdir" >&6; }
8104 objdir=$lt_cv_objdir
8105
8106
8107
8108
8109
8110 cat >>confdefs.h <<_ACEOF
8111 #define LT_OBJDIR "$lt_cv_objdir/"
8112 _ACEOF
8113
8114
8115
8116
8117 case $host_os in
8118 aix3*)
8119   # AIX sometimes has problems with the GCC collect2 program.  For some
8120   # reason, if we set the COLLECT_NAMES environment variable, the problems
8121   # vanish in a puff of smoke.
8122   if test "X${COLLECT_NAMES+set}" != Xset; then
8123     COLLECT_NAMES=
8124     export COLLECT_NAMES
8125   fi
8126   ;;
8127 esac
8128
8129 # Global variables:
8130 ofile=libtool
8131 can_build_shared=yes
8132
8133 # All known linkers require a `.a' archive for static linking (except MSVC,
8134 # which needs '.lib').
8135 libext=a
8136
8137 with_gnu_ld="$lt_cv_prog_gnu_ld"
8138
8139 old_CC="$CC"
8140 old_CFLAGS="$CFLAGS"
8141
8142 # Set sane defaults for various variables
8143 test -z "$CC" && CC=cc
8144 test -z "$LTCC" && LTCC=$CC
8145 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8146 test -z "$LD" && LD=ld
8147 test -z "$ac_objext" && ac_objext=o
8148
8149 for cc_temp in $compiler""; do
8150   case $cc_temp in
8151     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8152     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8153     \-*) ;;
8154     *) break;;
8155   esac
8156 done
8157 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8158
8159
8160 # Only perform the check for file, if the check method requires it
8161 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8162 case $deplibs_check_method in
8163 file_magic*)
8164   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8165     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8166 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8167 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   case $MAGIC_CMD in
8171 [\\/*] |  ?:[\\/]*)
8172   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8173   ;;
8174 *)
8175   lt_save_MAGIC_CMD="$MAGIC_CMD"
8176   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8177   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8178   for ac_dir in $ac_dummy; do
8179     IFS="$lt_save_ifs"
8180     test -z "$ac_dir" && ac_dir=.
8181     if test -f $ac_dir/${ac_tool_prefix}file; then
8182       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8183       if test -n "$file_magic_test_file"; then
8184         case $deplibs_check_method in
8185         "file_magic "*)
8186           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8187           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8188           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8189             $EGREP "$file_magic_regex" > /dev/null; then
8190             :
8191           else
8192             cat <<_LT_EOF 1>&2
8193
8194 *** Warning: the command libtool uses to detect shared libraries,
8195 *** $file_magic_cmd, produces output that libtool cannot recognize.
8196 *** The result is that libtool may fail to recognize shared libraries
8197 *** as such.  This will affect the creation of libtool libraries that
8198 *** depend on shared libraries, but programs linked with such libtool
8199 *** libraries will work regardless of this problem.  Nevertheless, you
8200 *** may want to report the problem to your system manager and/or to
8201 *** bug-libtool@gnu.org
8202
8203 _LT_EOF
8204           fi ;;
8205         esac
8206       fi
8207       break
8208     fi
8209   done
8210   IFS="$lt_save_ifs"
8211   MAGIC_CMD="$lt_save_MAGIC_CMD"
8212   ;;
8213 esac
8214 fi
8215
8216 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8217 if test -n "$MAGIC_CMD"; then
8218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8219 $as_echo "$MAGIC_CMD" >&6; }
8220 else
8221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8222 $as_echo "no" >&6; }
8223 fi
8224
8225
8226
8227
8228
8229 if test -z "$lt_cv_path_MAGIC_CMD"; then
8230   if test -n "$ac_tool_prefix"; then
8231     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8232 $as_echo_n "checking for file... " >&6; }
8233 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8234   $as_echo_n "(cached) " >&6
8235 else
8236   case $MAGIC_CMD in
8237 [\\/*] |  ?:[\\/]*)
8238   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8239   ;;
8240 *)
8241   lt_save_MAGIC_CMD="$MAGIC_CMD"
8242   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8243   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8244   for ac_dir in $ac_dummy; do
8245     IFS="$lt_save_ifs"
8246     test -z "$ac_dir" && ac_dir=.
8247     if test -f $ac_dir/file; then
8248       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8249       if test -n "$file_magic_test_file"; then
8250         case $deplibs_check_method in
8251         "file_magic "*)
8252           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8253           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8254           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8255             $EGREP "$file_magic_regex" > /dev/null; then
8256             :
8257           else
8258             cat <<_LT_EOF 1>&2
8259
8260 *** Warning: the command libtool uses to detect shared libraries,
8261 *** $file_magic_cmd, produces output that libtool cannot recognize.
8262 *** The result is that libtool may fail to recognize shared libraries
8263 *** as such.  This will affect the creation of libtool libraries that
8264 *** depend on shared libraries, but programs linked with such libtool
8265 *** libraries will work regardless of this problem.  Nevertheless, you
8266 *** may want to report the problem to your system manager and/or to
8267 *** bug-libtool@gnu.org
8268
8269 _LT_EOF
8270           fi ;;
8271         esac
8272       fi
8273       break
8274     fi
8275   done
8276   IFS="$lt_save_ifs"
8277   MAGIC_CMD="$lt_save_MAGIC_CMD"
8278   ;;
8279 esac
8280 fi
8281
8282 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8283 if test -n "$MAGIC_CMD"; then
8284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8285 $as_echo "$MAGIC_CMD" >&6; }
8286 else
8287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8289 fi
8290
8291
8292   else
8293     MAGIC_CMD=:
8294   fi
8295 fi
8296
8297   fi
8298   ;;
8299 esac
8300
8301 # Use C for the default configuration in the libtool script
8302
8303 lt_save_CC="$CC"
8304 ac_ext=c
8305 ac_cpp='$CPP $CPPFLAGS'
8306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8309
8310
8311 # Source file extension for C test sources.
8312 ac_ext=c
8313
8314 # Object file extension for compiled C test sources.
8315 objext=o
8316 objext=$objext
8317
8318 # Code to be used in simple compile tests
8319 lt_simple_compile_test_code="int some_variable = 0;"
8320
8321 # Code to be used in simple link tests
8322 lt_simple_link_test_code='int main(){return(0);}'
8323
8324
8325
8326
8327
8328
8329
8330 # If no C compiler was specified, use CC.
8331 LTCC=${LTCC-"$CC"}
8332
8333 # If no C compiler flags were specified, use CFLAGS.
8334 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8335
8336 # Allow CC to be a program name with arguments.
8337 compiler=$CC
8338
8339 # Save the default compiler, since it gets overwritten when the other
8340 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8341 compiler_DEFAULT=$CC
8342
8343 # save warnings/boilerplate of simple test code
8344 ac_outfile=conftest.$ac_objext
8345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8347 _lt_compiler_boilerplate=`cat conftest.err`
8348 $RM conftest*
8349
8350 ac_outfile=conftest.$ac_objext
8351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_linker_boilerplate=`cat conftest.err`
8354 $RM -r conftest*
8355
8356
8357 if test -n "$compiler"; then
8358
8359 lt_prog_compiler_no_builtin_flag=
8360
8361 if test "$GCC" = yes; then
8362   case $cc_basename in
8363   nvcc*)
8364     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8365   *)
8366     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8367   esac
8368
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8370 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8371 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8372   $as_echo_n "(cached) " >&6
8373 else
8374   lt_cv_prog_compiler_rtti_exceptions=no
8375    ac_outfile=conftest.$ac_objext
8376    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8377    lt_compiler_flag="-fno-rtti -fno-exceptions"
8378    # Insert the option either (1) after the last *FLAGS variable, or
8379    # (2) before a word containing "conftest.", or (3) at the end.
8380    # Note that $ac_compile itself does not contain backslashes and begins
8381    # with a dollar sign (not a hyphen), so the echo should work correctly.
8382    # The option is referenced via a variable to avoid confusing sed.
8383    lt_compile=`echo "$ac_compile" | $SED \
8384    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8385    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8386    -e 's:$: $lt_compiler_flag:'`
8387    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8388    (eval "$lt_compile" 2>conftest.err)
8389    ac_status=$?
8390    cat conftest.err >&5
8391    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392    if (exit $ac_status) && test -s "$ac_outfile"; then
8393      # The compiler can only warn and ignore the option if not recognized
8394      # So say no if there are warnings other than the usual output.
8395      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8396      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8397      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8398        lt_cv_prog_compiler_rtti_exceptions=yes
8399      fi
8400    fi
8401    $RM conftest*
8402
8403 fi
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8405 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8406
8407 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8408     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8409 else
8410     :
8411 fi
8412
8413 fi
8414
8415
8416
8417
8418
8419
8420   lt_prog_compiler_wl=
8421 lt_prog_compiler_pic=
8422 lt_prog_compiler_static=
8423
8424
8425   if test "$GCC" = yes; then
8426     lt_prog_compiler_wl='-Wl,'
8427     lt_prog_compiler_static='-static'
8428
8429     case $host_os in
8430       aix*)
8431       # All AIX code is PIC.
8432       if test "$host_cpu" = ia64; then
8433         # AIX 5 now supports IA64 processor
8434         lt_prog_compiler_static='-Bstatic'
8435       fi
8436       ;;
8437
8438     amigaos*)
8439       case $host_cpu in
8440       powerpc)
8441             # see comment about AmigaOS4 .so support
8442             lt_prog_compiler_pic='-fPIC'
8443         ;;
8444       m68k)
8445             # FIXME: we need at least 68020 code to build shared libraries, but
8446             # adding the `-m68020' flag to GCC prevents building anything better,
8447             # like `-m68040'.
8448             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8449         ;;
8450       esac
8451       ;;
8452
8453     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8454       # PIC is the default for these OSes.
8455       ;;
8456
8457     mingw* | cygwin* | pw32* | os2* | cegcc*)
8458       # This hack is so that the source file can tell whether it is being
8459       # built for inclusion in a dll (and should export symbols for example).
8460       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8461       # (--disable-auto-import) libraries
8462       lt_prog_compiler_pic='-DDLL_EXPORT'
8463       ;;
8464
8465     darwin* | rhapsody*)
8466       # PIC is the default on this platform
8467       # Common symbols not allowed in MH_DYLIB files
8468       lt_prog_compiler_pic='-fno-common'
8469       ;;
8470
8471     haiku*)
8472       # PIC is the default for Haiku.
8473       # The "-static" flag exists, but is broken.
8474       lt_prog_compiler_static=
8475       ;;
8476
8477     hpux*)
8478       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8479       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8480       # sets the default TLS model and affects inlining.
8481       case $host_cpu in
8482       hppa*64*)
8483         # +Z the default
8484         ;;
8485       *)
8486         lt_prog_compiler_pic='-fPIC'
8487         ;;
8488       esac
8489       ;;
8490
8491     interix[3-9]*)
8492       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8493       # Instead, we relocate shared libraries at runtime.
8494       ;;
8495
8496     msdosdjgpp*)
8497       # Just because we use GCC doesn't mean we suddenly get shared libraries
8498       # on systems that don't support them.
8499       lt_prog_compiler_can_build_shared=no
8500       enable_shared=no
8501       ;;
8502
8503     *nto* | *qnx*)
8504       # QNX uses GNU C++, but need to define -shared option too, otherwise
8505       # it will coredump.
8506       lt_prog_compiler_pic='-fPIC -shared'
8507       ;;
8508
8509     sysv4*MP*)
8510       if test -d /usr/nec; then
8511         lt_prog_compiler_pic=-Kconform_pic
8512       fi
8513       ;;
8514
8515     *)
8516       lt_prog_compiler_pic='-fPIC'
8517       ;;
8518     esac
8519
8520     case $cc_basename in
8521     nvcc*) # Cuda Compiler Driver 2.2
8522       lt_prog_compiler_wl='-Xlinker '
8523       if test -n "$lt_prog_compiler_pic"; then
8524         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8525       fi
8526       ;;
8527     esac
8528   else
8529     # PORTME Check for flag to pass linker flags through the system compiler.
8530     case $host_os in
8531     aix*)
8532       lt_prog_compiler_wl='-Wl,'
8533       if test "$host_cpu" = ia64; then
8534         # AIX 5 now supports IA64 processor
8535         lt_prog_compiler_static='-Bstatic'
8536       else
8537         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8538       fi
8539       ;;
8540
8541     mingw* | cygwin* | pw32* | os2* | cegcc*)
8542       # This hack is so that the source file can tell whether it is being
8543       # built for inclusion in a dll (and should export symbols for example).
8544       lt_prog_compiler_pic='-DDLL_EXPORT'
8545       ;;
8546
8547     hpux9* | hpux10* | hpux11*)
8548       lt_prog_compiler_wl='-Wl,'
8549       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8550       # not for PA HP-UX.
8551       case $host_cpu in
8552       hppa*64*|ia64*)
8553         # +Z the default
8554         ;;
8555       *)
8556         lt_prog_compiler_pic='+Z'
8557         ;;
8558       esac
8559       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8560       lt_prog_compiler_static='${wl}-a ${wl}archive'
8561       ;;
8562
8563     irix5* | irix6* | nonstopux*)
8564       lt_prog_compiler_wl='-Wl,'
8565       # PIC (with -KPIC) is the default.
8566       lt_prog_compiler_static='-non_shared'
8567       ;;
8568
8569     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8570       case $cc_basename in
8571       # old Intel for x86_64 which still supported -KPIC.
8572       ecc*)
8573         lt_prog_compiler_wl='-Wl,'
8574         lt_prog_compiler_pic='-KPIC'
8575         lt_prog_compiler_static='-static'
8576         ;;
8577       # icc used to be incompatible with GCC.
8578       # ICC 10 doesn't accept -KPIC any more.
8579       icc* | ifort*)
8580         lt_prog_compiler_wl='-Wl,'
8581         lt_prog_compiler_pic='-fPIC'
8582         lt_prog_compiler_static='-static'
8583         ;;
8584       # Lahey Fortran 8.1.
8585       lf95*)
8586         lt_prog_compiler_wl='-Wl,'
8587         lt_prog_compiler_pic='--shared'
8588         lt_prog_compiler_static='--static'
8589         ;;
8590       nagfor*)
8591         # NAG Fortran compiler
8592         lt_prog_compiler_wl='-Wl,-Wl,,'
8593         lt_prog_compiler_pic='-PIC'
8594         lt_prog_compiler_static='-Bstatic'
8595         ;;
8596       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8597         # Portland Group compilers (*not* the Pentium gcc compiler,
8598         # which looks to be a dead project)
8599         lt_prog_compiler_wl='-Wl,'
8600         lt_prog_compiler_pic='-fpic'
8601         lt_prog_compiler_static='-Bstatic'
8602         ;;
8603       ccc*)
8604         lt_prog_compiler_wl='-Wl,'
8605         # All Alpha code is PIC.
8606         lt_prog_compiler_static='-non_shared'
8607         ;;
8608       xl* | bgxl* | bgf* | mpixl*)
8609         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8610         lt_prog_compiler_wl='-Wl,'
8611         lt_prog_compiler_pic='-qpic'
8612         lt_prog_compiler_static='-qstaticlink'
8613         ;;
8614       *)
8615         case `$CC -V 2>&1 | sed 5q` in
8616         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8617           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8618           lt_prog_compiler_pic='-KPIC'
8619           lt_prog_compiler_static='-Bstatic'
8620           lt_prog_compiler_wl=''
8621           ;;
8622         *Sun\ F* | *Sun*Fortran*)
8623           lt_prog_compiler_pic='-KPIC'
8624           lt_prog_compiler_static='-Bstatic'
8625           lt_prog_compiler_wl='-Qoption ld '
8626           ;;
8627         *Sun\ C*)
8628           # Sun C 5.9
8629           lt_prog_compiler_pic='-KPIC'
8630           lt_prog_compiler_static='-Bstatic'
8631           lt_prog_compiler_wl='-Wl,'
8632           ;;
8633         *Intel*\ [CF]*Compiler*)
8634           lt_prog_compiler_wl='-Wl,'
8635           lt_prog_compiler_pic='-fPIC'
8636           lt_prog_compiler_static='-static'
8637           ;;
8638         *Portland\ Group*)
8639           lt_prog_compiler_wl='-Wl,'
8640           lt_prog_compiler_pic='-fpic'
8641           lt_prog_compiler_static='-Bstatic'
8642           ;;
8643         esac
8644         ;;
8645       esac
8646       ;;
8647
8648     newsos6)
8649       lt_prog_compiler_pic='-KPIC'
8650       lt_prog_compiler_static='-Bstatic'
8651       ;;
8652
8653     *nto* | *qnx*)
8654       # QNX uses GNU C++, but need to define -shared option too, otherwise
8655       # it will coredump.
8656       lt_prog_compiler_pic='-fPIC -shared'
8657       ;;
8658
8659     osf3* | osf4* | osf5*)
8660       lt_prog_compiler_wl='-Wl,'
8661       # All OSF/1 code is PIC.
8662       lt_prog_compiler_static='-non_shared'
8663       ;;
8664
8665     rdos*)
8666       lt_prog_compiler_static='-non_shared'
8667       ;;
8668
8669     solaris*)
8670       lt_prog_compiler_pic='-KPIC'
8671       lt_prog_compiler_static='-Bstatic'
8672       case $cc_basename in
8673       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8674         lt_prog_compiler_wl='-Qoption ld ';;
8675       *)
8676         lt_prog_compiler_wl='-Wl,';;
8677       esac
8678       ;;
8679
8680     sunos4*)
8681       lt_prog_compiler_wl='-Qoption ld '
8682       lt_prog_compiler_pic='-PIC'
8683       lt_prog_compiler_static='-Bstatic'
8684       ;;
8685
8686     sysv4 | sysv4.2uw2* | sysv4.3*)
8687       lt_prog_compiler_wl='-Wl,'
8688       lt_prog_compiler_pic='-KPIC'
8689       lt_prog_compiler_static='-Bstatic'
8690       ;;
8691
8692     sysv4*MP*)
8693       if test -d /usr/nec ;then
8694         lt_prog_compiler_pic='-Kconform_pic'
8695         lt_prog_compiler_static='-Bstatic'
8696       fi
8697       ;;
8698
8699     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8700       lt_prog_compiler_wl='-Wl,'
8701       lt_prog_compiler_pic='-KPIC'
8702       lt_prog_compiler_static='-Bstatic'
8703       ;;
8704
8705     unicos*)
8706       lt_prog_compiler_wl='-Wl,'
8707       lt_prog_compiler_can_build_shared=no
8708       ;;
8709
8710     uts4*)
8711       lt_prog_compiler_pic='-pic'
8712       lt_prog_compiler_static='-Bstatic'
8713       ;;
8714
8715     *)
8716       lt_prog_compiler_can_build_shared=no
8717       ;;
8718     esac
8719   fi
8720
8721 case $host_os in
8722   # For platforms which do not support PIC, -DPIC is meaningless:
8723   *djgpp*)
8724     lt_prog_compiler_pic=
8725     ;;
8726   *)
8727     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8728     ;;
8729 esac
8730
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8732 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8733 if ${lt_cv_prog_compiler_pic+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8737 fi
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8739 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8740 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8741
8742 #
8743 # Check to make sure the PIC flag actually works.
8744 #
8745 if test -n "$lt_prog_compiler_pic"; then
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8747 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8748 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   lt_cv_prog_compiler_pic_works=no
8752    ac_outfile=conftest.$ac_objext
8753    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8754    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8755    # Insert the option either (1) after the last *FLAGS variable, or
8756    # (2) before a word containing "conftest.", or (3) at the end.
8757    # Note that $ac_compile itself does not contain backslashes and begins
8758    # with a dollar sign (not a hyphen), so the echo should work correctly.
8759    # The option is referenced via a variable to avoid confusing sed.
8760    lt_compile=`echo "$ac_compile" | $SED \
8761    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8762    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8763    -e 's:$: $lt_compiler_flag:'`
8764    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8765    (eval "$lt_compile" 2>conftest.err)
8766    ac_status=$?
8767    cat conftest.err >&5
8768    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769    if (exit $ac_status) && test -s "$ac_outfile"; then
8770      # The compiler can only warn and ignore the option if not recognized
8771      # So say no if there are warnings other than the usual output.
8772      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8773      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8774      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8775        lt_cv_prog_compiler_pic_works=yes
8776      fi
8777    fi
8778    $RM conftest*
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8782 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8783
8784 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8785     case $lt_prog_compiler_pic in
8786      "" | " "*) ;;
8787      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8788      esac
8789 else
8790     lt_prog_compiler_pic=
8791      lt_prog_compiler_can_build_shared=no
8792 fi
8793
8794 fi
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806 #
8807 # Check to make sure the static flag actually works.
8808 #
8809 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8811 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8812 if ${lt_cv_prog_compiler_static_works+:} false; then :
8813   $as_echo_n "(cached) " >&6
8814 else
8815   lt_cv_prog_compiler_static_works=no
8816    save_LDFLAGS="$LDFLAGS"
8817    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8818    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8819    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8820      # The linker can only warn and ignore the option if not recognized
8821      # So say no if there are warnings
8822      if test -s conftest.err; then
8823        # Append any errors to the config.log.
8824        cat conftest.err 1>&5
8825        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8826        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8827        if diff conftest.exp conftest.er2 >/dev/null; then
8828          lt_cv_prog_compiler_static_works=yes
8829        fi
8830      else
8831        lt_cv_prog_compiler_static_works=yes
8832      fi
8833    fi
8834    $RM -r conftest*
8835    LDFLAGS="$save_LDFLAGS"
8836
8837 fi
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8839 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8840
8841 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8842     :
8843 else
8844     lt_prog_compiler_static=
8845 fi
8846
8847
8848
8849
8850
8851
8852
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8854 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8855 if ${lt_cv_prog_compiler_c_o+:} false; then :
8856   $as_echo_n "(cached) " >&6
8857 else
8858   lt_cv_prog_compiler_c_o=no
8859    $RM -r conftest 2>/dev/null
8860    mkdir conftest
8861    cd conftest
8862    mkdir out
8863    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8864
8865    lt_compiler_flag="-o out/conftest2.$ac_objext"
8866    # Insert the option either (1) after the last *FLAGS variable, or
8867    # (2) before a word containing "conftest.", or (3) at the end.
8868    # Note that $ac_compile itself does not contain backslashes and begins
8869    # with a dollar sign (not a hyphen), so the echo should work correctly.
8870    lt_compile=`echo "$ac_compile" | $SED \
8871    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8872    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8873    -e 's:$: $lt_compiler_flag:'`
8874    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8875    (eval "$lt_compile" 2>out/conftest.err)
8876    ac_status=$?
8877    cat out/conftest.err >&5
8878    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8880    then
8881      # The compiler can only warn and ignore the option if not recognized
8882      # So say no if there are warnings
8883      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8884      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8885      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8886        lt_cv_prog_compiler_c_o=yes
8887      fi
8888    fi
8889    chmod u+w . 2>&5
8890    $RM conftest*
8891    # SGI C++ compiler will create directory out/ii_files/ for
8892    # template instantiation
8893    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8894    $RM out/* && rmdir out
8895    cd ..
8896    $RM -r conftest
8897    $RM conftest*
8898
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8901 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8902
8903
8904
8905
8906
8907
8908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8909 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8910 if ${lt_cv_prog_compiler_c_o+:} false; then :
8911   $as_echo_n "(cached) " >&6
8912 else
8913   lt_cv_prog_compiler_c_o=no
8914    $RM -r conftest 2>/dev/null
8915    mkdir conftest
8916    cd conftest
8917    mkdir out
8918    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8919
8920    lt_compiler_flag="-o out/conftest2.$ac_objext"
8921    # Insert the option either (1) after the last *FLAGS variable, or
8922    # (2) before a word containing "conftest.", or (3) at the end.
8923    # Note that $ac_compile itself does not contain backslashes and begins
8924    # with a dollar sign (not a hyphen), so the echo should work correctly.
8925    lt_compile=`echo "$ac_compile" | $SED \
8926    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8927    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8928    -e 's:$: $lt_compiler_flag:'`
8929    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8930    (eval "$lt_compile" 2>out/conftest.err)
8931    ac_status=$?
8932    cat out/conftest.err >&5
8933    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8935    then
8936      # The compiler can only warn and ignore the option if not recognized
8937      # So say no if there are warnings
8938      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8939      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8940      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8941        lt_cv_prog_compiler_c_o=yes
8942      fi
8943    fi
8944    chmod u+w . 2>&5
8945    $RM conftest*
8946    # SGI C++ compiler will create directory out/ii_files/ for
8947    # template instantiation
8948    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8949    $RM out/* && rmdir out
8950    cd ..
8951    $RM -r conftest
8952    $RM conftest*
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8956 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8957
8958
8959
8960
8961 hard_links="nottested"
8962 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8963   # do not overwrite the value of need_locks provided by the user
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8965 $as_echo_n "checking if we can lock with hard links... " >&6; }
8966   hard_links=yes
8967   $RM conftest*
8968   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8969   touch conftest.a
8970   ln conftest.a conftest.b 2>&5 || hard_links=no
8971   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8973 $as_echo "$hard_links" >&6; }
8974   if test "$hard_links" = no; then
8975     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8976 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8977     need_locks=warn
8978   fi
8979 else
8980   need_locks=no
8981 fi
8982
8983
8984
8985
8986
8987
8988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8989 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8990
8991   runpath_var=
8992   allow_undefined_flag=
8993   always_export_symbols=no
8994   archive_cmds=
8995   archive_expsym_cmds=
8996   compiler_needs_object=no
8997   enable_shared_with_static_runtimes=no
8998   export_dynamic_flag_spec=
8999   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9000   hardcode_automatic=no
9001   hardcode_direct=no
9002   hardcode_direct_absolute=no
9003   hardcode_libdir_flag_spec=
9004   hardcode_libdir_separator=
9005   hardcode_minus_L=no
9006   hardcode_shlibpath_var=unsupported
9007   inherit_rpath=no
9008   link_all_deplibs=unknown
9009   module_cmds=
9010   module_expsym_cmds=
9011   old_archive_from_new_cmds=
9012   old_archive_from_expsyms_cmds=
9013   thread_safe_flag_spec=
9014   whole_archive_flag_spec=
9015   # include_expsyms should be a list of space-separated symbols to be *always*
9016   # included in the symbol list
9017   include_expsyms=
9018   # exclude_expsyms can be an extended regexp of symbols to exclude
9019   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9020   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9021   # as well as any symbol that contains `d'.
9022   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9023   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9024   # platforms (ab)use it in PIC code, but their linkers get confused if
9025   # the symbol is explicitly referenced.  Since portable code cannot
9026   # rely on this symbol name, it's probably fine to never include it in
9027   # preloaded symbol tables.
9028   # Exclude shared library initialization/finalization symbols.
9029   extract_expsyms_cmds=
9030
9031   case $host_os in
9032   cygwin* | mingw* | pw32* | cegcc*)
9033     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9034     # When not using gcc, we currently assume that we are using
9035     # Microsoft Visual C++.
9036     if test "$GCC" != yes; then
9037       with_gnu_ld=no
9038     fi
9039     ;;
9040   interix*)
9041     # we just hope/assume this is gcc and not c89 (= MSVC++)
9042     with_gnu_ld=yes
9043     ;;
9044   openbsd*)
9045     with_gnu_ld=no
9046     ;;
9047   esac
9048
9049   ld_shlibs=yes
9050
9051   # On some targets, GNU ld is compatible enough with the native linker
9052   # that we're better off using the native interface for both.
9053   lt_use_gnu_ld_interface=no
9054   if test "$with_gnu_ld" = yes; then
9055     case $host_os in
9056       aix*)
9057         # The AIX port of GNU ld has always aspired to compatibility
9058         # with the native linker.  However, as the warning in the GNU ld
9059         # block says, versions before 2.19.5* couldn't really create working
9060         # shared libraries, regardless of the interface used.
9061         case `$LD -v 2>&1` in
9062           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9063           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9064           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9065           *)
9066             lt_use_gnu_ld_interface=yes
9067             ;;
9068         esac
9069         ;;
9070       *)
9071         lt_use_gnu_ld_interface=yes
9072         ;;
9073     esac
9074   fi
9075
9076   if test "$lt_use_gnu_ld_interface" = yes; then
9077     # If archive_cmds runs LD, not CC, wlarc should be empty
9078     wlarc='${wl}'
9079
9080     # Set some defaults for GNU ld with shared library support. These
9081     # are reset later if shared libraries are not supported. Putting them
9082     # here allows them to be overridden if necessary.
9083     runpath_var=LD_RUN_PATH
9084     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9085     export_dynamic_flag_spec='${wl}--export-dynamic'
9086     # ancient GNU ld didn't support --whole-archive et. al.
9087     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9088       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9089     else
9090       whole_archive_flag_spec=
9091     fi
9092     supports_anon_versioning=no
9093     case `$LD -v 2>&1` in
9094       *GNU\ gold*) supports_anon_versioning=yes ;;
9095       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9096       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9097       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9098       *\ 2.11.*) ;; # other 2.11 versions
9099       *) supports_anon_versioning=yes ;;
9100     esac
9101
9102     # See if GNU ld supports shared libraries.
9103     case $host_os in
9104     aix[3-9]*)
9105       # On AIX/PPC, the GNU linker is very broken
9106       if test "$host_cpu" != ia64; then
9107         ld_shlibs=no
9108         cat <<_LT_EOF 1>&2
9109
9110 *** Warning: the GNU linker, at least up to release 2.19, is reported
9111 *** to be unable to reliably create shared libraries on AIX.
9112 *** Therefore, libtool is disabling shared libraries support.  If you
9113 *** really care for shared libraries, you may want to install binutils
9114 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9115 *** You will then need to restart the configuration process.
9116
9117 _LT_EOF
9118       fi
9119       ;;
9120
9121     amigaos*)
9122       case $host_cpu in
9123       powerpc)
9124             # see comment about AmigaOS4 .so support
9125             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126             archive_expsym_cmds=''
9127         ;;
9128       m68k)
9129             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)'
9130             hardcode_libdir_flag_spec='-L$libdir'
9131             hardcode_minus_L=yes
9132         ;;
9133       esac
9134       ;;
9135
9136     beos*)
9137       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9138         allow_undefined_flag=unsupported
9139         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9140         # support --undefined.  This deserves some investigation.  FIXME
9141         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142       else
9143         ld_shlibs=no
9144       fi
9145       ;;
9146
9147     cygwin* | mingw* | pw32* | cegcc*)
9148       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9149       # as there is no search path for DLLs.
9150       hardcode_libdir_flag_spec='-L$libdir'
9151       export_dynamic_flag_spec='${wl}--export-all-symbols'
9152       allow_undefined_flag=unsupported
9153       always_export_symbols=no
9154       enable_shared_with_static_runtimes=yes
9155       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'
9156       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9157
9158       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9159         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9160         # If the export-symbols file already is a .def file (1st line
9161         # is EXPORTS), use it as is; otherwise, prepend...
9162         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9163           cp $export_symbols $output_objdir/$soname.def;
9164         else
9165           echo EXPORTS > $output_objdir/$soname.def;
9166           cat $export_symbols >> $output_objdir/$soname.def;
9167         fi~
9168         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9169       else
9170         ld_shlibs=no
9171       fi
9172       ;;
9173
9174     haiku*)
9175       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176       link_all_deplibs=yes
9177       ;;
9178
9179     interix[3-9]*)
9180       hardcode_direct=no
9181       hardcode_shlibpath_var=no
9182       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9183       export_dynamic_flag_spec='${wl}-E'
9184       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9185       # Instead, shared libraries are loaded at an image base (0x10000000 by
9186       # default) and relocated if they conflict, which is a slow very memory
9187       # consuming and fragmenting process.  To avoid this, we pick a random,
9188       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9189       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9190       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9191       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'
9192       ;;
9193
9194     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9195       tmp_diet=no
9196       if test "$host_os" = linux-dietlibc; then
9197         case $cc_basename in
9198           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9199         esac
9200       fi
9201       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9202          && test "$tmp_diet" = no
9203       then
9204         tmp_addflag=' $pic_flag'
9205         tmp_sharedflag='-shared'
9206         case $cc_basename,$host_cpu in
9207         pgcc*)                          # Portland Group C compiler
9208           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'
9209           tmp_addflag=' $pic_flag'
9210           ;;
9211         pgf77* | pgf90* | pgf95* | pgfortran*)
9212                                         # Portland Group f77 and f90 compilers
9213           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'
9214           tmp_addflag=' $pic_flag -Mnomain' ;;
9215         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9216           tmp_addflag=' -i_dynamic' ;;
9217         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9218           tmp_addflag=' -i_dynamic -nofor_main' ;;
9219         ifc* | ifort*)                  # Intel Fortran compiler
9220           tmp_addflag=' -nofor_main' ;;
9221         lf95*)                          # Lahey Fortran 8.1
9222           whole_archive_flag_spec=
9223           tmp_sharedflag='--shared' ;;
9224         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9225           tmp_sharedflag='-qmkshrobj'
9226           tmp_addflag= ;;
9227         nvcc*)  # Cuda Compiler Driver 2.2
9228           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'
9229           compiler_needs_object=yes
9230           ;;
9231         esac
9232         case `$CC -V 2>&1 | sed 5q` in
9233         *Sun\ C*)                       # Sun C 5.9
9234           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'
9235           compiler_needs_object=yes
9236           tmp_sharedflag='-G' ;;
9237         *Sun\ F*)                       # Sun Fortran 8.3
9238           tmp_sharedflag='-G' ;;
9239         esac
9240         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9241
9242         if test "x$supports_anon_versioning" = xyes; then
9243           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9244             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9245             echo "local: *; };" >> $output_objdir/$libname.ver~
9246             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9247         fi
9248
9249         case $cc_basename in
9250         xlf* | bgf* | bgxlf* | mpixlf*)
9251           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9252           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9253           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9254           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9255           if test "x$supports_anon_versioning" = xyes; then
9256             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9257               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9258               echo "local: *; };" >> $output_objdir/$libname.ver~
9259               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9260           fi
9261           ;;
9262         esac
9263       else
9264         ld_shlibs=no
9265       fi
9266       ;;
9267
9268     netbsd*)
9269       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9270         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9271         wlarc=
9272       else
9273         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9274         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9275       fi
9276       ;;
9277
9278     solaris*)
9279       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9280         ld_shlibs=no
9281         cat <<_LT_EOF 1>&2
9282
9283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9284 *** create shared libraries on Solaris systems.  Therefore, libtool
9285 *** is disabling shared libraries support.  We urge you to upgrade GNU
9286 *** binutils to release 2.9.1 or newer.  Another option is to modify
9287 *** your PATH or compiler configuration so that the native linker is
9288 *** used, and then restart.
9289
9290 _LT_EOF
9291       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9293         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9294       else
9295         ld_shlibs=no
9296       fi
9297       ;;
9298
9299     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9300       case `$LD -v 2>&1` in
9301         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9302         ld_shlibs=no
9303         cat <<_LT_EOF 1>&2
9304
9305 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9306 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9307 *** is disabling shared libraries support.  We urge you to upgrade GNU
9308 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9309 *** your PATH or compiler configuration so that the native linker is
9310 *** used, and then restart.
9311
9312 _LT_EOF
9313         ;;
9314         *)
9315           # For security reasons, it is highly recommended that you always
9316           # use absolute paths for naming shared libraries, and exclude the
9317           # DT_RUNPATH tag from executables and libraries.  But doing so
9318           # requires that you compile everything twice, which is a pain.
9319           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9320             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9321             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9323           else
9324             ld_shlibs=no
9325           fi
9326         ;;
9327       esac
9328       ;;
9329
9330     sunos4*)
9331       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9332       wlarc=
9333       hardcode_direct=yes
9334       hardcode_shlibpath_var=no
9335       ;;
9336
9337     *)
9338       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9339         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9340         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9341       else
9342         ld_shlibs=no
9343       fi
9344       ;;
9345     esac
9346
9347     if test "$ld_shlibs" = no; then
9348       runpath_var=
9349       hardcode_libdir_flag_spec=
9350       export_dynamic_flag_spec=
9351       whole_archive_flag_spec=
9352     fi
9353   else
9354     # PORTME fill in a description of your system's linker (not GNU ld)
9355     case $host_os in
9356     aix3*)
9357       allow_undefined_flag=unsupported
9358       always_export_symbols=yes
9359       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'
9360       # Note: this linker hardcodes the directories in LIBPATH if there
9361       # are no directories specified by -L.
9362       hardcode_minus_L=yes
9363       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9364         # Neither direct hardcoding nor static linking is supported with a
9365         # broken collect2.
9366         hardcode_direct=unsupported
9367       fi
9368       ;;
9369
9370     aix[4-9]*)
9371       if test "$host_cpu" = ia64; then
9372         # On IA64, the linker does run time linking by default, so we don't
9373         # have to do anything special.
9374         aix_use_runtimelinking=no
9375         exp_sym_flag='-Bexport'
9376         no_entry_flag=""
9377       else
9378         # If we're using GNU nm, then we don't want the "-C" option.
9379         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9380         # Also, AIX nm treats weak defined symbols like other global
9381         # defined symbols, whereas GNU nm marks them as "W".
9382         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9383           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'
9384         else
9385           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'
9386         fi
9387         aix_use_runtimelinking=no
9388
9389         # Test if we are trying to use run time linking or normal
9390         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9391         # need to do runtime linking.
9392         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9393           for ld_flag in $LDFLAGS; do
9394           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9395             aix_use_runtimelinking=yes
9396             break
9397           fi
9398           done
9399           ;;
9400         esac
9401
9402         exp_sym_flag='-bexport'
9403         no_entry_flag='-bnoentry'
9404       fi
9405
9406       # When large executables or shared objects are built, AIX ld can
9407       # have problems creating the table of contents.  If linking a library
9408       # or program results in "error TOC overflow" add -mminimal-toc to
9409       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9410       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9411
9412       archive_cmds=''
9413       hardcode_direct=yes
9414       hardcode_direct_absolute=yes
9415       hardcode_libdir_separator=':'
9416       link_all_deplibs=yes
9417       file_list_spec='${wl}-f,'
9418
9419       if test "$GCC" = yes; then
9420         case $host_os in aix4.[012]|aix4.[012].*)
9421         # We only want to do this on AIX 4.2 and lower, the check
9422         # below for broken collect2 doesn't work under 4.3+
9423           collect2name=`${CC} -print-prog-name=collect2`
9424           if test -f "$collect2name" &&
9425            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9426           then
9427           # We have reworked collect2
9428           :
9429           else
9430           # We have old collect2
9431           hardcode_direct=unsupported
9432           # It fails to find uninstalled libraries when the uninstalled
9433           # path is not listed in the libpath.  Setting hardcode_minus_L
9434           # to unsupported forces relinking
9435           hardcode_minus_L=yes
9436           hardcode_libdir_flag_spec='-L$libdir'
9437           hardcode_libdir_separator=
9438           fi
9439           ;;
9440         esac
9441         shared_flag='-shared'
9442         if test "$aix_use_runtimelinking" = yes; then
9443           shared_flag="$shared_flag "'${wl}-G'
9444         fi
9445       else
9446         # not using gcc
9447         if test "$host_cpu" = ia64; then
9448         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9449         # chokes on -Wl,-G. The following line is correct:
9450           shared_flag='-G'
9451         else
9452           if test "$aix_use_runtimelinking" = yes; then
9453             shared_flag='${wl}-G'
9454           else
9455             shared_flag='${wl}-bM:SRE'
9456           fi
9457         fi
9458       fi
9459
9460       export_dynamic_flag_spec='${wl}-bexpall'
9461       # It seems that -bexpall does not export symbols beginning with
9462       # underscore (_), so it is better to generate a list of symbols to export.
9463       always_export_symbols=yes
9464       if test "$aix_use_runtimelinking" = yes; then
9465         # Warning - without using the other runtime loading flags (-brtl),
9466         # -berok will link without error, but may produce a broken library.
9467         allow_undefined_flag='-berok'
9468         # Determine the default libpath from the value encoded in an
9469         # empty executable.
9470         if test "${lt_cv_aix_libpath+set}" = set; then
9471   aix_libpath=$lt_cv_aix_libpath
9472 else
9473   if ${lt_cv_aix_libpath_+:} false; then :
9474   $as_echo_n "(cached) " >&6
9475 else
9476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9477 /* end confdefs.h.  */
9478
9479 int
9480 main ()
9481 {
9482
9483   ;
9484   return 0;
9485 }
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488
9489   lt_aix_libpath_sed='
9490       /Import File Strings/,/^$/ {
9491           /^0/ {
9492               s/^0  *\([^ ]*\) *$/\1/
9493               p
9494           }
9495       }'
9496   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9497   # Check for a 64-bit object if we didn't find anything.
9498   if test -z "$lt_cv_aix_libpath_"; then
9499     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9500   fi
9501 fi
9502 rm -f core conftest.err conftest.$ac_objext \
9503     conftest$ac_exeext conftest.$ac_ext
9504   if test -z "$lt_cv_aix_libpath_"; then
9505     lt_cv_aix_libpath_="/usr/lib:/lib"
9506   fi
9507
9508 fi
9509
9510   aix_libpath=$lt_cv_aix_libpath_
9511 fi
9512
9513         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9514         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"
9515       else
9516         if test "$host_cpu" = ia64; then
9517           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9518           allow_undefined_flag="-z nodefs"
9519           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"
9520         else
9521          # Determine the default libpath from the value encoded in an
9522          # empty executable.
9523          if test "${lt_cv_aix_libpath+set}" = set; then
9524   aix_libpath=$lt_cv_aix_libpath
9525 else
9526   if ${lt_cv_aix_libpath_+:} false; then :
9527   $as_echo_n "(cached) " >&6
9528 else
9529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9530 /* end confdefs.h.  */
9531
9532 int
9533 main ()
9534 {
9535
9536   ;
9537   return 0;
9538 }
9539 _ACEOF
9540 if ac_fn_c_try_link "$LINENO"; then :
9541
9542   lt_aix_libpath_sed='
9543       /Import File Strings/,/^$/ {
9544           /^0/ {
9545               s/^0  *\([^ ]*\) *$/\1/
9546               p
9547           }
9548       }'
9549   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9550   # Check for a 64-bit object if we didn't find anything.
9551   if test -z "$lt_cv_aix_libpath_"; then
9552     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9553   fi
9554 fi
9555 rm -f core conftest.err conftest.$ac_objext \
9556     conftest$ac_exeext conftest.$ac_ext
9557   if test -z "$lt_cv_aix_libpath_"; then
9558     lt_cv_aix_libpath_="/usr/lib:/lib"
9559   fi
9560
9561 fi
9562
9563   aix_libpath=$lt_cv_aix_libpath_
9564 fi
9565
9566          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9567           # Warning - without using the other run time loading flags,
9568           # -berok will link without error, but may produce a broken library.
9569           no_undefined_flag=' ${wl}-bernotok'
9570           allow_undefined_flag=' ${wl}-berok'
9571           if test "$with_gnu_ld" = yes; then
9572             # We only use this code for GNU lds that support --whole-archive.
9573             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9574           else
9575             # Exported symbols can be pulled into shared objects from archives
9576             whole_archive_flag_spec='$convenience'
9577           fi
9578           archive_cmds_need_lc=yes
9579           # This is similar to how AIX traditionally builds its shared libraries.
9580           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'
9581         fi
9582       fi
9583       ;;
9584
9585     amigaos*)
9586       case $host_cpu in
9587       powerpc)
9588             # see comment about AmigaOS4 .so support
9589             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590             archive_expsym_cmds=''
9591         ;;
9592       m68k)
9593             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)'
9594             hardcode_libdir_flag_spec='-L$libdir'
9595             hardcode_minus_L=yes
9596         ;;
9597       esac
9598       ;;
9599
9600     bsdi[45]*)
9601       export_dynamic_flag_spec=-rdynamic
9602       ;;
9603
9604     cygwin* | mingw* | pw32* | cegcc*)
9605       # When not using gcc, we currently assume that we are using
9606       # Microsoft Visual C++.
9607       # hardcode_libdir_flag_spec is actually meaningless, as there is
9608       # no search path for DLLs.
9609       case $cc_basename in
9610       cl*)
9611         # Native MSVC
9612         hardcode_libdir_flag_spec=' '
9613         allow_undefined_flag=unsupported
9614         always_export_symbols=yes
9615         file_list_spec='@'
9616         # Tell ltmain to make .lib files, not .a files.
9617         libext=lib
9618         # Tell ltmain to make .dll files, not .so files.
9619         shrext_cmds=".dll"
9620         # FIXME: Setting linknames here is a bad hack.
9621         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9622         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9623             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9624           else
9625             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9626           fi~
9627           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9628           linknames='
9629         # The linker will not automatically build a static lib if we build a DLL.
9630         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9631         enable_shared_with_static_runtimes=yes
9632         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9633         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9634         # Don't use ranlib
9635         old_postinstall_cmds='chmod 644 $oldlib'
9636         postlink_cmds='lt_outputfile="@OUTPUT@"~
9637           lt_tool_outputfile="@TOOL_OUTPUT@"~
9638           case $lt_outputfile in
9639             *.exe|*.EXE) ;;
9640             *)
9641               lt_outputfile="$lt_outputfile.exe"
9642               lt_tool_outputfile="$lt_tool_outputfile.exe"
9643               ;;
9644           esac~
9645           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9646             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9647             $RM "$lt_outputfile.manifest";
9648           fi'
9649         ;;
9650       *)
9651         # Assume MSVC wrapper
9652         hardcode_libdir_flag_spec=' '
9653         allow_undefined_flag=unsupported
9654         # Tell ltmain to make .lib files, not .a files.
9655         libext=lib
9656         # Tell ltmain to make .dll files, not .so files.
9657         shrext_cmds=".dll"
9658         # FIXME: Setting linknames here is a bad hack.
9659         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9660         # The linker will automatically build a .lib file if we build a DLL.
9661         old_archive_from_new_cmds='true'
9662         # FIXME: Should let the user specify the lib program.
9663         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9664         enable_shared_with_static_runtimes=yes
9665         ;;
9666       esac
9667       ;;
9668
9669     darwin* | rhapsody*)
9670
9671
9672   archive_cmds_need_lc=no
9673   hardcode_direct=no
9674   hardcode_automatic=yes
9675   hardcode_shlibpath_var=unsupported
9676   if test "$lt_cv_ld_force_load" = "yes"; then
9677     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\"`'
9678
9679   else
9680     whole_archive_flag_spec=''
9681   fi
9682   link_all_deplibs=yes
9683   allow_undefined_flag="$_lt_dar_allow_undefined"
9684   case $cc_basename in
9685      ifort*) _lt_dar_can_shared=yes ;;
9686      *) _lt_dar_can_shared=$GCC ;;
9687   esac
9688   if test "$_lt_dar_can_shared" = "yes"; then
9689     output_verbose_link_cmd=func_echo_all
9690     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9691     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9692     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}"
9693     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}"
9694
9695   else
9696   ld_shlibs=no
9697   fi
9698
9699       ;;
9700
9701     dgux*)
9702       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703       hardcode_libdir_flag_spec='-L$libdir'
9704       hardcode_shlibpath_var=no
9705       ;;
9706
9707     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9708     # support.  Future versions do this automatically, but an explicit c++rt0.o
9709     # does not break anything, and helps significantly (at the cost of a little
9710     # extra space).
9711     freebsd2.2*)
9712       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9713       hardcode_libdir_flag_spec='-R$libdir'
9714       hardcode_direct=yes
9715       hardcode_shlibpath_var=no
9716       ;;
9717
9718     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9719     freebsd2.*)
9720       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9721       hardcode_direct=yes
9722       hardcode_minus_L=yes
9723       hardcode_shlibpath_var=no
9724       ;;
9725
9726     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9727     freebsd* | dragonfly*)
9728       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729       hardcode_libdir_flag_spec='-R$libdir'
9730       hardcode_direct=yes
9731       hardcode_shlibpath_var=no
9732       ;;
9733
9734     hpux9*)
9735       if test "$GCC" = yes; then
9736         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'
9737       else
9738         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'
9739       fi
9740       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9741       hardcode_libdir_separator=:
9742       hardcode_direct=yes
9743
9744       # hardcode_minus_L: Not really in the search PATH,
9745       # but as the default location of the library.
9746       hardcode_minus_L=yes
9747       export_dynamic_flag_spec='${wl}-E'
9748       ;;
9749
9750     hpux10*)
9751       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9752         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9753       else
9754         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9755       fi
9756       if test "$with_gnu_ld" = no; then
9757         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9758         hardcode_libdir_separator=:
9759         hardcode_direct=yes
9760         hardcode_direct_absolute=yes
9761         export_dynamic_flag_spec='${wl}-E'
9762         # hardcode_minus_L: Not really in the search PATH,
9763         # but as the default location of the library.
9764         hardcode_minus_L=yes
9765       fi
9766       ;;
9767
9768     hpux11*)
9769       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9770         case $host_cpu in
9771         hppa*64*)
9772           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773           ;;
9774         ia64*)
9775           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9776           ;;
9777         *)
9778           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9779           ;;
9780         esac
9781       else
9782         case $host_cpu in
9783         hppa*64*)
9784           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9785           ;;
9786         ia64*)
9787           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9788           ;;
9789         *)
9790
9791           # Older versions of the 11.00 compiler do not understand -b yet
9792           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9793           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9794 $as_echo_n "checking if $CC understands -b... " >&6; }
9795 if ${lt_cv_prog_compiler__b+:} false; then :
9796   $as_echo_n "(cached) " >&6
9797 else
9798   lt_cv_prog_compiler__b=no
9799    save_LDFLAGS="$LDFLAGS"
9800    LDFLAGS="$LDFLAGS -b"
9801    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9802    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9803      # The linker can only warn and ignore the option if not recognized
9804      # So say no if there are warnings
9805      if test -s conftest.err; then
9806        # Append any errors to the config.log.
9807        cat conftest.err 1>&5
9808        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9809        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9810        if diff conftest.exp conftest.er2 >/dev/null; then
9811          lt_cv_prog_compiler__b=yes
9812        fi
9813      else
9814        lt_cv_prog_compiler__b=yes
9815      fi
9816    fi
9817    $RM -r conftest*
9818    LDFLAGS="$save_LDFLAGS"
9819
9820 fi
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9822 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9823
9824 if test x"$lt_cv_prog_compiler__b" = xyes; then
9825     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826 else
9827     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9828 fi
9829
9830           ;;
9831         esac
9832       fi
9833       if test "$with_gnu_ld" = no; then
9834         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9835         hardcode_libdir_separator=:
9836
9837         case $host_cpu in
9838         hppa*64*|ia64*)
9839           hardcode_direct=no
9840           hardcode_shlibpath_var=no
9841           ;;
9842         *)
9843           hardcode_direct=yes
9844           hardcode_direct_absolute=yes
9845           export_dynamic_flag_spec='${wl}-E'
9846
9847           # hardcode_minus_L: Not really in the search PATH,
9848           # but as the default location of the library.
9849           hardcode_minus_L=yes
9850           ;;
9851         esac
9852       fi
9853       ;;
9854
9855     irix5* | irix6* | nonstopux*)
9856       if test "$GCC" = yes; then
9857         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'
9858         # Try to use the -exported_symbol ld option, if it does not
9859         # work, assume that -exports_file does not work either and
9860         # implicitly export all symbols.
9861         # This should be the same for all languages, so no per-tag cache variable.
9862         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9863 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9864 if ${lt_cv_irix_exported_symbol+:} false; then :
9865   $as_echo_n "(cached) " >&6
9866 else
9867   save_LDFLAGS="$LDFLAGS"
9868            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9869            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h.  */
9871 int foo (void) { return 0; }
9872 _ACEOF
9873 if ac_fn_c_try_link "$LINENO"; then :
9874   lt_cv_irix_exported_symbol=yes
9875 else
9876   lt_cv_irix_exported_symbol=no
9877 fi
9878 rm -f core conftest.err conftest.$ac_objext \
9879     conftest$ac_exeext conftest.$ac_ext
9880            LDFLAGS="$save_LDFLAGS"
9881 fi
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9883 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9884         if test "$lt_cv_irix_exported_symbol" = yes; then
9885           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'
9886         fi
9887       else
9888         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'
9889         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'
9890       fi
9891       archive_cmds_need_lc='no'
9892       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9893       hardcode_libdir_separator=:
9894       inherit_rpath=yes
9895       link_all_deplibs=yes
9896       ;;
9897
9898     netbsd*)
9899       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9900         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9901       else
9902         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9903       fi
9904       hardcode_libdir_flag_spec='-R$libdir'
9905       hardcode_direct=yes
9906       hardcode_shlibpath_var=no
9907       ;;
9908
9909     newsos6)
9910       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9911       hardcode_direct=yes
9912       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9913       hardcode_libdir_separator=:
9914       hardcode_shlibpath_var=no
9915       ;;
9916
9917     *nto* | *qnx*)
9918       ;;
9919
9920     openbsd*)
9921       if test -f /usr/libexec/ld.so; then
9922         hardcode_direct=yes
9923         hardcode_shlibpath_var=no
9924         hardcode_direct_absolute=yes
9925         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9926           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9927           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9928           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929           export_dynamic_flag_spec='${wl}-E'
9930         else
9931           case $host_os in
9932            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9933              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9934              hardcode_libdir_flag_spec='-R$libdir'
9935              ;;
9936            *)
9937              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9938              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9939              ;;
9940           esac
9941         fi
9942       else
9943         ld_shlibs=no
9944       fi
9945       ;;
9946
9947     os2*)
9948       hardcode_libdir_flag_spec='-L$libdir'
9949       hardcode_minus_L=yes
9950       allow_undefined_flag=unsupported
9951       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'
9952       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9953       ;;
9954
9955     osf3*)
9956       if test "$GCC" = yes; then
9957         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9958         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'
9959       else
9960         allow_undefined_flag=' -expect_unresolved \*'
9961         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'
9962       fi
9963       archive_cmds_need_lc='no'
9964       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9965       hardcode_libdir_separator=:
9966       ;;
9967
9968     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9969       if test "$GCC" = yes; then
9970         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9971         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'
9972         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9973       else
9974         allow_undefined_flag=' -expect_unresolved \*'
9975         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'
9976         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~
9977         $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'
9978
9979         # Both c and cxx compiler support -rpath directly
9980         hardcode_libdir_flag_spec='-rpath $libdir'
9981       fi
9982       archive_cmds_need_lc='no'
9983       hardcode_libdir_separator=:
9984       ;;
9985
9986     solaris*)
9987       no_undefined_flag=' -z defs'
9988       if test "$GCC" = yes; then
9989         wlarc='${wl}'
9990         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9991         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9992           $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'
9993       else
9994         case `$CC -V 2>&1` in
9995         *"Compilers 5.0"*)
9996           wlarc=''
9997           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9999           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10000           ;;
10001         *)
10002           wlarc='${wl}'
10003           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10004           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10006           ;;
10007         esac
10008       fi
10009       hardcode_libdir_flag_spec='-R$libdir'
10010       hardcode_shlibpath_var=no
10011       case $host_os in
10012       solaris2.[0-5] | solaris2.[0-5].*) ;;
10013       *)
10014         # The compiler driver will combine and reorder linker options,
10015         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10016         # but is careful enough not to reorder.
10017         # Supported since Solaris 2.6 (maybe 2.5.1?)
10018         if test "$GCC" = yes; then
10019           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10020         else
10021           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10022         fi
10023         ;;
10024       esac
10025       link_all_deplibs=yes
10026       ;;
10027
10028     sunos4*)
10029       if test "x$host_vendor" = xsequent; then
10030         # Use $CC to link under sequent, because it throws in some extra .o
10031         # files that make .init and .fini sections work.
10032         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10033       else
10034         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10035       fi
10036       hardcode_libdir_flag_spec='-L$libdir'
10037       hardcode_direct=yes
10038       hardcode_minus_L=yes
10039       hardcode_shlibpath_var=no
10040       ;;
10041
10042     sysv4)
10043       case $host_vendor in
10044         sni)
10045           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10046           hardcode_direct=yes # is this really true???
10047         ;;
10048         siemens)
10049           ## LD is ld it makes a PLAMLIB
10050           ## CC just makes a GrossModule.
10051           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10052           reload_cmds='$CC -r -o $output$reload_objs'
10053           hardcode_direct=no
10054         ;;
10055         motorola)
10056           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10058         ;;
10059       esac
10060       runpath_var='LD_RUN_PATH'
10061       hardcode_shlibpath_var=no
10062       ;;
10063
10064     sysv4.3*)
10065       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066       hardcode_shlibpath_var=no
10067       export_dynamic_flag_spec='-Bexport'
10068       ;;
10069
10070     sysv4*MP*)
10071       if test -d /usr/nec; then
10072         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10073         hardcode_shlibpath_var=no
10074         runpath_var=LD_RUN_PATH
10075         hardcode_runpath_var=yes
10076         ld_shlibs=yes
10077       fi
10078       ;;
10079
10080     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10081       no_undefined_flag='${wl}-z,text'
10082       archive_cmds_need_lc=no
10083       hardcode_shlibpath_var=no
10084       runpath_var='LD_RUN_PATH'
10085
10086       if test "$GCC" = yes; then
10087         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10088         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10089       else
10090         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10092       fi
10093       ;;
10094
10095     sysv5* | sco3.2v5* | sco5v6*)
10096       # Note: We can NOT use -z defs as we might desire, because we do not
10097       # link with -lc, and that would cause any symbols used from libc to
10098       # always be unresolved, which means just about no library would
10099       # ever link correctly.  If we're not using GNU ld we use -z text
10100       # though, which does catch some bad symbols but isn't as heavy-handed
10101       # as -z defs.
10102       no_undefined_flag='${wl}-z,text'
10103       allow_undefined_flag='${wl}-z,nodefs'
10104       archive_cmds_need_lc=no
10105       hardcode_shlibpath_var=no
10106       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10107       hardcode_libdir_separator=':'
10108       link_all_deplibs=yes
10109       export_dynamic_flag_spec='${wl}-Bexport'
10110       runpath_var='LD_RUN_PATH'
10111
10112       if test "$GCC" = yes; then
10113         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10114         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10115       else
10116         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10117         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10118       fi
10119       ;;
10120
10121     uts4*)
10122       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10123       hardcode_libdir_flag_spec='-L$libdir'
10124       hardcode_shlibpath_var=no
10125       ;;
10126
10127     *)
10128       ld_shlibs=no
10129       ;;
10130     esac
10131
10132     if test x$host_vendor = xsni; then
10133       case $host in
10134       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10135         export_dynamic_flag_spec='${wl}-Blargedynsym'
10136         ;;
10137       esac
10138     fi
10139   fi
10140
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10142 $as_echo "$ld_shlibs" >&6; }
10143 test "$ld_shlibs" = no && can_build_shared=no
10144
10145 with_gnu_ld=$with_gnu_ld
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161 #
10162 # Do we need to explicitly link libc?
10163 #
10164 case "x$archive_cmds_need_lc" in
10165 x|xyes)
10166   # Assume -lc should be added
10167   archive_cmds_need_lc=yes
10168
10169   if test "$enable_shared" = yes && test "$GCC" = yes; then
10170     case $archive_cmds in
10171     *'~'*)
10172       # FIXME: we may have to deal with multi-command sequences.
10173       ;;
10174     '$CC '*)
10175       # Test whether the compiler implicitly links with -lc since on some
10176       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10177       # to ld, don't add -lc before -lgcc.
10178       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10180 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10181   $as_echo_n "(cached) " >&6
10182 else
10183   $RM conftest*
10184         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10185
10186         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10187   (eval $ac_compile) 2>&5
10188   ac_status=$?
10189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190   test $ac_status = 0; } 2>conftest.err; then
10191           soname=conftest
10192           lib=conftest
10193           libobjs=conftest.$ac_objext
10194           deplibs=
10195           wl=$lt_prog_compiler_wl
10196           pic_flag=$lt_prog_compiler_pic
10197           compiler_flags=-v
10198           linker_flags=-v
10199           verstring=
10200           output_objdir=.
10201           libname=conftest
10202           lt_save_allow_undefined_flag=$allow_undefined_flag
10203           allow_undefined_flag=
10204           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10205   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10206   ac_status=$?
10207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10208   test $ac_status = 0; }
10209           then
10210             lt_cv_archive_cmds_need_lc=no
10211           else
10212             lt_cv_archive_cmds_need_lc=yes
10213           fi
10214           allow_undefined_flag=$lt_save_allow_undefined_flag
10215         else
10216           cat conftest.err 1>&5
10217         fi
10218         $RM conftest*
10219
10220 fi
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10222 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10223       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10224       ;;
10225     esac
10226   fi
10227   ;;
10228 esac
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10382 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10383
10384 if test "$GCC" = yes; then
10385   case $host_os in
10386     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10387     *) lt_awk_arg="/^libraries:/" ;;
10388   esac
10389   case $host_os in
10390     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10391     *) lt_sed_strip_eq="s,=/,/,g" ;;
10392   esac
10393   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10394   case $lt_search_path_spec in
10395   *\;*)
10396     # if the path contains ";" then we assume it to be the separator
10397     # otherwise default to the standard path separator (i.e. ":") - it is
10398     # assumed that no part of a normal pathname contains ";" but that should
10399     # okay in the real world where ";" in dirpaths is itself problematic.
10400     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10401     ;;
10402   *)
10403     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10404     ;;
10405   esac
10406   # Ok, now we have the path, separated by spaces, we can step through it
10407   # and add multilib dir if necessary.
10408   lt_tmp_lt_search_path_spec=
10409   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10410   for lt_sys_path in $lt_search_path_spec; do
10411     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10412       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10413     else
10414       test -d "$lt_sys_path" && \
10415         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10416     fi
10417   done
10418   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10419 BEGIN {RS=" "; FS="/|\n";} {
10420   lt_foo="";
10421   lt_count=0;
10422   for (lt_i = NF; lt_i > 0; lt_i--) {
10423     if ($lt_i != "" && $lt_i != ".") {
10424       if ($lt_i == "..") {
10425         lt_count++;
10426       } else {
10427         if (lt_count == 0) {
10428           lt_foo="/" $lt_i lt_foo;
10429         } else {
10430           lt_count--;
10431         }
10432       }
10433     }
10434   }
10435   if (lt_foo != "") { lt_freq[lt_foo]++; }
10436   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10437 }'`
10438   # AWK program above erroneously prepends '/' to C:/dos/paths
10439   # for these hosts.
10440   case $host_os in
10441     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10442       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10443   esac
10444   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10445 else
10446   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10447 fi
10448 library_names_spec=
10449 libname_spec='lib$name'
10450 soname_spec=
10451 shrext_cmds=".so"
10452 postinstall_cmds=
10453 postuninstall_cmds=
10454 finish_cmds=
10455 finish_eval=
10456 shlibpath_var=
10457 shlibpath_overrides_runpath=unknown
10458 version_type=none
10459 dynamic_linker="$host_os ld.so"
10460 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10461 need_lib_prefix=unknown
10462 hardcode_into_libs=no
10463
10464 # when you set need_version to no, make sure it does not cause -set_version
10465 # flags to be left without arguments
10466 need_version=unknown
10467
10468 case $host_os in
10469 aix3*)
10470   version_type=linux # correct to gnu/linux during the next big refactor
10471   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10472   shlibpath_var=LIBPATH
10473
10474   # AIX 3 has no versioning support, so we append a major version to the name.
10475   soname_spec='${libname}${release}${shared_ext}$major'
10476   ;;
10477
10478 aix[4-9]*)
10479   version_type=linux # correct to gnu/linux during the next big refactor
10480   need_lib_prefix=no
10481   need_version=no
10482   hardcode_into_libs=yes
10483   if test "$host_cpu" = ia64; then
10484     # AIX 5 supports IA64
10485     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10486     shlibpath_var=LD_LIBRARY_PATH
10487   else
10488     # With GCC up to 2.95.x, collect2 would create an import file
10489     # for dependence libraries.  The import file would start with
10490     # the line `#! .'.  This would cause the generated library to
10491     # depend on `.', always an invalid library.  This was fixed in
10492     # development snapshots of GCC prior to 3.0.
10493     case $host_os in
10494       aix4 | aix4.[01] | aix4.[01].*)
10495       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10496            echo ' yes '
10497            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10498         :
10499       else
10500         can_build_shared=no
10501       fi
10502       ;;
10503     esac
10504     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10505     # soname into executable. Probably we can add versioning support to
10506     # collect2, so additional links can be useful in future.
10507     if test "$aix_use_runtimelinking" = yes; then
10508       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10509       # instead of lib<name>.a to let people know that these are not
10510       # typical AIX shared libraries.
10511       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512     else
10513       # We preserve .a as extension for shared libraries through AIX4.2
10514       # and later when we are not doing run time linking.
10515       library_names_spec='${libname}${release}.a $libname.a'
10516       soname_spec='${libname}${release}${shared_ext}$major'
10517     fi
10518     shlibpath_var=LIBPATH
10519   fi
10520   ;;
10521
10522 amigaos*)
10523   case $host_cpu in
10524   powerpc)
10525     # Since July 2007 AmigaOS4 officially supports .so libraries.
10526     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528     ;;
10529   m68k)
10530     library_names_spec='$libname.ixlibrary $libname.a'
10531     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10532     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'
10533     ;;
10534   esac
10535   ;;
10536
10537 beos*)
10538   library_names_spec='${libname}${shared_ext}'
10539   dynamic_linker="$host_os ld.so"
10540   shlibpath_var=LIBRARY_PATH
10541   ;;
10542
10543 bsdi[45]*)
10544   version_type=linux # correct to gnu/linux during the next big refactor
10545   need_version=no
10546   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10547   soname_spec='${libname}${release}${shared_ext}$major'
10548   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10549   shlibpath_var=LD_LIBRARY_PATH
10550   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10551   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10552   # the default ld.so.conf also contains /usr/contrib/lib and
10553   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10554   # libtool to hard-code these into programs
10555   ;;
10556
10557 cygwin* | mingw* | pw32* | cegcc*)
10558   version_type=windows
10559   shrext_cmds=".dll"
10560   need_version=no
10561   need_lib_prefix=no
10562
10563   case $GCC,$cc_basename in
10564   yes,*)
10565     # gcc
10566     library_names_spec='$libname.dll.a'
10567     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10568     postinstall_cmds='base_file=`basename \${file}`~
10569       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10570       dldir=$destdir/`dirname \$dlpath`~
10571       test -d \$dldir || mkdir -p \$dldir~
10572       $install_prog $dir/$dlname \$dldir/$dlname~
10573       chmod a+x \$dldir/$dlname~
10574       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10575         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10576       fi'
10577     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10578       dlpath=$dir/\$dldll~
10579        $RM \$dlpath'
10580     shlibpath_overrides_runpath=yes
10581
10582     case $host_os in
10583     cygwin*)
10584       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10585       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10586
10587       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10588       ;;
10589     mingw* | cegcc*)
10590       # MinGW DLLs use traditional 'lib' prefix
10591       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10592       ;;
10593     pw32*)
10594       # pw32 DLLs use 'pw' prefix rather than 'lib'
10595       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10596       ;;
10597     esac
10598     dynamic_linker='Win32 ld.exe'
10599     ;;
10600
10601   *,cl*)
10602     # Native MSVC
10603     libname_spec='$name'
10604     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10605     library_names_spec='${libname}.dll.lib'
10606
10607     case $build_os in
10608     mingw*)
10609       sys_lib_search_path_spec=
10610       lt_save_ifs=$IFS
10611       IFS=';'
10612       for lt_path in $LIB
10613       do
10614         IFS=$lt_save_ifs
10615         # Let DOS variable expansion print the short 8.3 style file name.
10616         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10617         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10618       done
10619       IFS=$lt_save_ifs
10620       # Convert to MSYS style.
10621       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10622       ;;
10623     cygwin*)
10624       # Convert to unix form, then to dos form, then back to unix form
10625       # but this time dos style (no spaces!) so that the unix form looks
10626       # like /cygdrive/c/PROGRA~1:/cygdr...
10627       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10628       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10629       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10630       ;;
10631     *)
10632       sys_lib_search_path_spec="$LIB"
10633       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10634         # It is most probably a Windows format PATH.
10635         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10636       else
10637         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10638       fi
10639       # FIXME: find the short name or the path components, as spaces are
10640       # common. (e.g. "Program Files" -> "PROGRA~1")
10641       ;;
10642     esac
10643
10644     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10645     postinstall_cmds='base_file=`basename \${file}`~
10646       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10647       dldir=$destdir/`dirname \$dlpath`~
10648       test -d \$dldir || mkdir -p \$dldir~
10649       $install_prog $dir/$dlname \$dldir/$dlname'
10650     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10651       dlpath=$dir/\$dldll~
10652        $RM \$dlpath'
10653     shlibpath_overrides_runpath=yes
10654     dynamic_linker='Win32 link.exe'
10655     ;;
10656
10657   *)
10658     # Assume MSVC wrapper
10659     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10660     dynamic_linker='Win32 ld.exe'
10661     ;;
10662   esac
10663   # FIXME: first we should search . and the directory the executable is in
10664   shlibpath_var=PATH
10665   ;;
10666
10667 darwin* | rhapsody*)
10668   dynamic_linker="$host_os dyld"
10669   version_type=darwin
10670   need_lib_prefix=no
10671   need_version=no
10672   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10673   soname_spec='${libname}${release}${major}$shared_ext'
10674   shlibpath_overrides_runpath=yes
10675   shlibpath_var=DYLD_LIBRARY_PATH
10676   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10677
10678   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10679   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10680   ;;
10681
10682 dgux*)
10683   version_type=linux # correct to gnu/linux during the next big refactor
10684   need_lib_prefix=no
10685   need_version=no
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   ;;
10690
10691 freebsd* | dragonfly*)
10692   # DragonFly does not have aout.  When/if they implement a new
10693   # versioning mechanism, adjust this.
10694   if test -x /usr/bin/objformat; then
10695     objformat=`/usr/bin/objformat`
10696   else
10697     case $host_os in
10698     freebsd[23].*) objformat=aout ;;
10699     *) objformat=elf ;;
10700     esac
10701   fi
10702   version_type=freebsd-$objformat
10703   case $version_type in
10704     freebsd-elf*)
10705       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10706       need_version=no
10707       need_lib_prefix=no
10708       ;;
10709     freebsd-*)
10710       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10711       need_version=yes
10712       ;;
10713   esac
10714   shlibpath_var=LD_LIBRARY_PATH
10715   case $host_os in
10716   freebsd2.*)
10717     shlibpath_overrides_runpath=yes
10718     ;;
10719   freebsd3.[01]* | freebsdelf3.[01]*)
10720     shlibpath_overrides_runpath=yes
10721     hardcode_into_libs=yes
10722     ;;
10723   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10724   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10725     shlibpath_overrides_runpath=no
10726     hardcode_into_libs=yes
10727     ;;
10728   *) # from 4.6 on, and DragonFly
10729     shlibpath_overrides_runpath=yes
10730     hardcode_into_libs=yes
10731     ;;
10732   esac
10733   ;;
10734
10735 gnu*)
10736   version_type=linux # correct to gnu/linux during the next big refactor
10737   need_lib_prefix=no
10738   need_version=no
10739   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10740   soname_spec='${libname}${release}${shared_ext}$major'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   shlibpath_overrides_runpath=no
10743   hardcode_into_libs=yes
10744   ;;
10745
10746 haiku*)
10747   version_type=linux # correct to gnu/linux during the next big refactor
10748   need_lib_prefix=no
10749   need_version=no
10750   dynamic_linker="$host_os runtime_loader"
10751   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10752   soname_spec='${libname}${release}${shared_ext}$major'
10753   shlibpath_var=LIBRARY_PATH
10754   shlibpath_overrides_runpath=yes
10755   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10756   hardcode_into_libs=yes
10757   ;;
10758
10759 hpux9* | hpux10* | hpux11*)
10760   # Give a soname corresponding to the major version so that dld.sl refuses to
10761   # link against other versions.
10762   version_type=sunos
10763   need_lib_prefix=no
10764   need_version=no
10765   case $host_cpu in
10766   ia64*)
10767     shrext_cmds='.so'
10768     hardcode_into_libs=yes
10769     dynamic_linker="$host_os dld.so"
10770     shlibpath_var=LD_LIBRARY_PATH
10771     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10772     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773     soname_spec='${libname}${release}${shared_ext}$major'
10774     if test "X$HPUX_IA64_MODE" = X32; then
10775       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10776     else
10777       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10778     fi
10779     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10780     ;;
10781   hppa*64*)
10782     shrext_cmds='.sl'
10783     hardcode_into_libs=yes
10784     dynamic_linker="$host_os dld.sl"
10785     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788     soname_spec='${libname}${release}${shared_ext}$major'
10789     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10790     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10791     ;;
10792   *)
10793     shrext_cmds='.sl'
10794     dynamic_linker="$host_os dld.sl"
10795     shlibpath_var=SHLIB_PATH
10796     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10797     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10798     soname_spec='${libname}${release}${shared_ext}$major'
10799     ;;
10800   esac
10801   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10802   postinstall_cmds='chmod 555 $lib'
10803   # or fails outright, so override atomically:
10804   install_override_mode=555
10805   ;;
10806
10807 interix[3-9]*)
10808   version_type=linux # correct to gnu/linux during the next big refactor
10809   need_lib_prefix=no
10810   need_version=no
10811   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10812   soname_spec='${libname}${release}${shared_ext}$major'
10813   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10814   shlibpath_var=LD_LIBRARY_PATH
10815   shlibpath_overrides_runpath=no
10816   hardcode_into_libs=yes
10817   ;;
10818
10819 irix5* | irix6* | nonstopux*)
10820   case $host_os in
10821     nonstopux*) version_type=nonstopux ;;
10822     *)
10823         if test "$lt_cv_prog_gnu_ld" = yes; then
10824                 version_type=linux # correct to gnu/linux during the next big refactor
10825         else
10826                 version_type=irix
10827         fi ;;
10828   esac
10829   need_lib_prefix=no
10830   need_version=no
10831   soname_spec='${libname}${release}${shared_ext}$major'
10832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10833   case $host_os in
10834   irix5* | nonstopux*)
10835     libsuff= shlibsuff=
10836     ;;
10837   *)
10838     case $LD in # libtool.m4 will add one of these switches to LD
10839     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10840       libsuff= shlibsuff= libmagic=32-bit;;
10841     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10842       libsuff=32 shlibsuff=N32 libmagic=N32;;
10843     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10844       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10845     *) libsuff= shlibsuff= libmagic=never-match;;
10846     esac
10847     ;;
10848   esac
10849   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10850   shlibpath_overrides_runpath=no
10851   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10852   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10853   hardcode_into_libs=yes
10854   ;;
10855
10856 # No shared lib support for Linux oldld, aout, or coff.
10857 linux*oldld* | linux*aout* | linux*coff*)
10858   dynamic_linker=no
10859   ;;
10860
10861 # This must be glibc/ELF.
10862 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10863   version_type=linux # correct to gnu/linux during the next big refactor
10864   need_lib_prefix=no
10865   need_version=no
10866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867   soname_spec='${libname}${release}${shared_ext}$major'
10868   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   shlibpath_overrides_runpath=no
10871
10872   # Some binutils ld are patched to set DT_RUNPATH
10873   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10874   $as_echo_n "(cached) " >&6
10875 else
10876   lt_cv_shlibpath_overrides_runpath=no
10877     save_LDFLAGS=$LDFLAGS
10878     save_libdir=$libdir
10879     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10880          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10881     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10882 /* end confdefs.h.  */
10883
10884 int
10885 main ()
10886 {
10887
10888   ;
10889   return 0;
10890 }
10891 _ACEOF
10892 if ac_fn_c_try_link "$LINENO"; then :
10893   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10894   lt_cv_shlibpath_overrides_runpath=yes
10895 fi
10896 fi
10897 rm -f core conftest.err conftest.$ac_objext \
10898     conftest$ac_exeext conftest.$ac_ext
10899     LDFLAGS=$save_LDFLAGS
10900     libdir=$save_libdir
10901
10902 fi
10903
10904   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10905
10906   # This implies no fast_install, which is unacceptable.
10907   # Some rework will be needed to allow for fast_install
10908   # before this can be enabled.
10909   hardcode_into_libs=yes
10910
10911   # Add ABI-specific directories to the system library path.
10912   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10913
10914   # Append ld.so.conf contents to the search path
10915   if test -f /etc/ld.so.conf; then
10916     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' ' '`
10917     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10918
10919   fi
10920
10921   # We used to test for /lib/ld.so.1 and disable shared libraries on
10922   # powerpc, because MkLinux only supported shared libraries with the
10923   # GNU dynamic linker.  Since this was broken with cross compilers,
10924   # most powerpc-linux boxes support dynamic linking these days and
10925   # people can always --disable-shared, the test was removed, and we
10926   # assume the GNU/Linux dynamic linker is in use.
10927   dynamic_linker='GNU/Linux ld.so'
10928   ;;
10929
10930 netbsd*)
10931   version_type=sunos
10932   need_lib_prefix=no
10933   need_version=no
10934   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10935     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10936     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10937     dynamic_linker='NetBSD (a.out) ld.so'
10938   else
10939     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940     soname_spec='${libname}${release}${shared_ext}$major'
10941     dynamic_linker='NetBSD ld.elf_so'
10942   fi
10943   shlibpath_var=LD_LIBRARY_PATH
10944   shlibpath_overrides_runpath=yes
10945   hardcode_into_libs=yes
10946   ;;
10947
10948 newsos6)
10949   version_type=linux # correct to gnu/linux during the next big refactor
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951   shlibpath_var=LD_LIBRARY_PATH
10952   shlibpath_overrides_runpath=yes
10953   ;;
10954
10955 *nto* | *qnx*)
10956   version_type=qnx
10957   need_lib_prefix=no
10958   need_version=no
10959   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960   soname_spec='${libname}${release}${shared_ext}$major'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   shlibpath_overrides_runpath=no
10963   hardcode_into_libs=yes
10964   dynamic_linker='ldqnx.so'
10965   ;;
10966
10967 openbsd*)
10968   version_type=sunos
10969   sys_lib_dlsearch_path_spec="/usr/lib"
10970   need_lib_prefix=no
10971   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10972   case $host_os in
10973     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10974     *)                          need_version=no  ;;
10975   esac
10976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10977   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10978   shlibpath_var=LD_LIBRARY_PATH
10979   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10980     case $host_os in
10981       openbsd2.[89] | openbsd2.[89].*)
10982         shlibpath_overrides_runpath=no
10983         ;;
10984       *)
10985         shlibpath_overrides_runpath=yes
10986         ;;
10987       esac
10988   else
10989     shlibpath_overrides_runpath=yes
10990   fi
10991   ;;
10992
10993 os2*)
10994   libname_spec='$name'
10995   shrext_cmds=".dll"
10996   need_lib_prefix=no
10997   library_names_spec='$libname${shared_ext} $libname.a'
10998   dynamic_linker='OS/2 ld.exe'
10999   shlibpath_var=LIBPATH
11000   ;;
11001
11002 osf3* | osf4* | osf5*)
11003   version_type=osf
11004   need_lib_prefix=no
11005   need_version=no
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008   shlibpath_var=LD_LIBRARY_PATH
11009   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11010   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11011   ;;
11012
11013 rdos*)
11014   dynamic_linker=no
11015   ;;
11016
11017 solaris*)
11018   version_type=linux # correct to gnu/linux during the next big refactor
11019   need_lib_prefix=no
11020   need_version=no
11021   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022   soname_spec='${libname}${release}${shared_ext}$major'
11023   shlibpath_var=LD_LIBRARY_PATH
11024   shlibpath_overrides_runpath=yes
11025   hardcode_into_libs=yes
11026   # ldd complains unless libraries are executable
11027   postinstall_cmds='chmod +x $lib'
11028   ;;
11029
11030 sunos4*)
11031   version_type=sunos
11032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11033   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11034   shlibpath_var=LD_LIBRARY_PATH
11035   shlibpath_overrides_runpath=yes
11036   if test "$with_gnu_ld" = yes; then
11037     need_lib_prefix=no
11038   fi
11039   need_version=yes
11040   ;;
11041
11042 sysv4 | sysv4.3*)
11043   version_type=linux # correct to gnu/linux during the next big refactor
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   case $host_vendor in
11048     sni)
11049       shlibpath_overrides_runpath=no
11050       need_lib_prefix=no
11051       runpath_var=LD_RUN_PATH
11052       ;;
11053     siemens)
11054       need_lib_prefix=no
11055       ;;
11056     motorola)
11057       need_lib_prefix=no
11058       need_version=no
11059       shlibpath_overrides_runpath=no
11060       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11061       ;;
11062   esac
11063   ;;
11064
11065 sysv4*MP*)
11066   if test -d /usr/nec ;then
11067     version_type=linux # correct to gnu/linux during the next big refactor
11068     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11069     soname_spec='$libname${shared_ext}.$major'
11070     shlibpath_var=LD_LIBRARY_PATH
11071   fi
11072   ;;
11073
11074 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11075   version_type=freebsd-elf
11076   need_lib_prefix=no
11077   need_version=no
11078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11079   soname_spec='${libname}${release}${shared_ext}$major'
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=yes
11082   hardcode_into_libs=yes
11083   if test "$with_gnu_ld" = yes; then
11084     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11085   else
11086     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11087     case $host_os in
11088       sco3.2v5*)
11089         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11090         ;;
11091     esac
11092   fi
11093   sys_lib_dlsearch_path_spec='/usr/lib'
11094   ;;
11095
11096 tpf*)
11097   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11098   version_type=linux # correct to gnu/linux during the next big refactor
11099   need_lib_prefix=no
11100   need_version=no
11101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=no
11104   hardcode_into_libs=yes
11105   ;;
11106
11107 uts4*)
11108   version_type=linux # correct to gnu/linux during the next big refactor
11109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110   soname_spec='${libname}${release}${shared_ext}$major'
11111   shlibpath_var=LD_LIBRARY_PATH
11112   ;;
11113
11114 *)
11115   dynamic_linker=no
11116   ;;
11117 esac
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11119 $as_echo "$dynamic_linker" >&6; }
11120 test "$dynamic_linker" = no && can_build_shared=no
11121
11122 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11123 if test "$GCC" = yes; then
11124   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11125 fi
11126
11127 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11128   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11129 fi
11130 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11131   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11132 fi
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11226 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11227 hardcode_action=
11228 if test -n "$hardcode_libdir_flag_spec" ||
11229    test -n "$runpath_var" ||
11230    test "X$hardcode_automatic" = "Xyes" ; then
11231
11232   # We can hardcode non-existent directories.
11233   if test "$hardcode_direct" != no &&
11234      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11235      # have to relink, otherwise we might link with an installed library
11236      # when we should be linking with a yet-to-be-installed one
11237      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11238      test "$hardcode_minus_L" != no; then
11239     # Linking always hardcodes the temporary library directory.
11240     hardcode_action=relink
11241   else
11242     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11243     hardcode_action=immediate
11244   fi
11245 else
11246   # We cannot hardcode anything, or else we can only hardcode existing
11247   # directories.
11248   hardcode_action=unsupported
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11251 $as_echo "$hardcode_action" >&6; }
11252
11253 if test "$hardcode_action" = relink ||
11254    test "$inherit_rpath" = yes; then
11255   # Fast installation is not supported
11256   enable_fast_install=no
11257 elif test "$shlibpath_overrides_runpath" = yes ||
11258      test "$enable_shared" = no; then
11259   # Fast installation is not necessary
11260   enable_fast_install=needless
11261 fi
11262
11263
11264
11265
11266
11267
11268   if test "x$enable_dlopen" != xyes; then
11269   enable_dlopen=unknown
11270   enable_dlopen_self=unknown
11271   enable_dlopen_self_static=unknown
11272 else
11273   lt_cv_dlopen=no
11274   lt_cv_dlopen_libs=
11275
11276   case $host_os in
11277   beos*)
11278     lt_cv_dlopen="load_add_on"
11279     lt_cv_dlopen_libs=
11280     lt_cv_dlopen_self=yes
11281     ;;
11282
11283   mingw* | pw32* | cegcc*)
11284     lt_cv_dlopen="LoadLibrary"
11285     lt_cv_dlopen_libs=
11286     ;;
11287
11288   cygwin*)
11289     lt_cv_dlopen="dlopen"
11290     lt_cv_dlopen_libs=
11291     ;;
11292
11293   darwin*)
11294   # if libdl is installed we need to link against it
11295     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11296 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11297 if ${ac_cv_lib_dl_dlopen+:} false; then :
11298   $as_echo_n "(cached) " >&6
11299 else
11300   ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldl  $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h.  */
11304
11305 /* Override any GCC internal prototype to avoid an error.
11306    Use char because int might match the return type of a GCC
11307    builtin and then its argument prototype would still apply.  */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dlopen ();
11312 int
11313 main ()
11314 {
11315 return dlopen ();
11316   ;
11317   return 0;
11318 }
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321   ac_cv_lib_dl_dlopen=yes
11322 else
11323   ac_cv_lib_dl_dlopen=no
11324 fi
11325 rm -f core conftest.err conftest.$ac_objext \
11326     conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11328 fi
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11330 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11331 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11332   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11333 else
11334
11335     lt_cv_dlopen="dyld"
11336     lt_cv_dlopen_libs=
11337     lt_cv_dlopen_self=yes
11338
11339 fi
11340
11341     ;;
11342
11343   *)
11344     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11345 if test "x$ac_cv_func_shl_load" = xyes; then :
11346   lt_cv_dlopen="shl_load"
11347 else
11348   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11349 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11350 if ${ac_cv_lib_dld_shl_load+:} false; then :
11351   $as_echo_n "(cached) " >&6
11352 else
11353   ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-ldld  $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h.  */
11357
11358 /* Override any GCC internal prototype to avoid an error.
11359    Use char because int might match the return type of a GCC
11360    builtin and then its argument prototype would still apply.  */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char shl_load ();
11365 int
11366 main ()
11367 {
11368 return shl_load ();
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374   ac_cv_lib_dld_shl_load=yes
11375 else
11376   ac_cv_lib_dld_shl_load=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext \
11379     conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11383 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11384 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11385   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11386 else
11387   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11388 if test "x$ac_cv_func_dlopen" = xyes; then :
11389   lt_cv_dlopen="dlopen"
11390 else
11391   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11392 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11393 if ${ac_cv_lib_dl_dlopen+:} false; then :
11394   $as_echo_n "(cached) " >&6
11395 else
11396   ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldl  $LIBS"
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h.  */
11400
11401 /* Override any GCC internal prototype to avoid an error.
11402    Use char because int might match the return type of a GCC
11403    builtin and then its argument prototype would still apply.  */
11404 #ifdef __cplusplus
11405 extern "C"
11406 #endif
11407 char dlopen ();
11408 int
11409 main ()
11410 {
11411 return dlopen ();
11412   ;
11413   return 0;
11414 }
11415 _ACEOF
11416 if ac_fn_c_try_link "$LINENO"; then :
11417   ac_cv_lib_dl_dlopen=yes
11418 else
11419   ac_cv_lib_dl_dlopen=no
11420 fi
11421 rm -f core conftest.err conftest.$ac_objext \
11422     conftest$ac_exeext conftest.$ac_ext
11423 LIBS=$ac_check_lib_save_LIBS
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11426 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11427 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11428   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11429 else
11430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11431 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11432 if ${ac_cv_lib_svld_dlopen+:} false; then :
11433   $as_echo_n "(cached) " >&6
11434 else
11435   ac_check_lib_save_LIBS=$LIBS
11436 LIBS="-lsvld  $LIBS"
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h.  */
11439
11440 /* Override any GCC internal prototype to avoid an error.
11441    Use char because int might match the return type of a GCC
11442    builtin and then its argument prototype would still apply.  */
11443 #ifdef __cplusplus
11444 extern "C"
11445 #endif
11446 char dlopen ();
11447 int
11448 main ()
11449 {
11450 return dlopen ();
11451   ;
11452   return 0;
11453 }
11454 _ACEOF
11455 if ac_fn_c_try_link "$LINENO"; then :
11456   ac_cv_lib_svld_dlopen=yes
11457 else
11458   ac_cv_lib_svld_dlopen=no
11459 fi
11460 rm -f core conftest.err conftest.$ac_objext \
11461     conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11463 fi
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11465 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11466 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11467   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11470 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11471 if ${ac_cv_lib_dld_dld_link+:} false; then :
11472   $as_echo_n "(cached) " >&6
11473 else
11474   ac_check_lib_save_LIBS=$LIBS
11475 LIBS="-ldld  $LIBS"
11476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477 /* end confdefs.h.  */
11478
11479 /* Override any GCC internal prototype to avoid an error.
11480    Use char because int might match the return type of a GCC
11481    builtin and then its argument prototype would still apply.  */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char dld_link ();
11486 int
11487 main ()
11488 {
11489 return dld_link ();
11490   ;
11491   return 0;
11492 }
11493 _ACEOF
11494 if ac_fn_c_try_link "$LINENO"; then :
11495   ac_cv_lib_dld_dld_link=yes
11496 else
11497   ac_cv_lib_dld_dld_link=no
11498 fi
11499 rm -f core conftest.err conftest.$ac_objext \
11500     conftest$ac_exeext conftest.$ac_ext
11501 LIBS=$ac_check_lib_save_LIBS
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11504 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11505 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11506   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11507 fi
11508
11509
11510 fi
11511
11512
11513 fi
11514
11515
11516 fi
11517
11518
11519 fi
11520
11521
11522 fi
11523
11524     ;;
11525   esac
11526
11527   if test "x$lt_cv_dlopen" != xno; then
11528     enable_dlopen=yes
11529   else
11530     enable_dlopen=no
11531   fi
11532
11533   case $lt_cv_dlopen in
11534   dlopen)
11535     save_CPPFLAGS="$CPPFLAGS"
11536     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11537
11538     save_LDFLAGS="$LDFLAGS"
11539     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11540
11541     save_LIBS="$LIBS"
11542     LIBS="$lt_cv_dlopen_libs $LIBS"
11543
11544     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11545 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11546 if ${lt_cv_dlopen_self+:} false; then :
11547   $as_echo_n "(cached) " >&6
11548 else
11549           if test "$cross_compiling" = yes; then :
11550   lt_cv_dlopen_self=cross
11551 else
11552   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11553   lt_status=$lt_dlunknown
11554   cat > conftest.$ac_ext <<_LT_EOF
11555 #line $LINENO "configure"
11556 #include "confdefs.h"
11557
11558 #if HAVE_DLFCN_H
11559 #include <dlfcn.h>
11560 #endif
11561
11562 #include <stdio.h>
11563
11564 #ifdef RTLD_GLOBAL
11565 #  define LT_DLGLOBAL           RTLD_GLOBAL
11566 #else
11567 #  ifdef DL_GLOBAL
11568 #    define LT_DLGLOBAL         DL_GLOBAL
11569 #  else
11570 #    define LT_DLGLOBAL         0
11571 #  endif
11572 #endif
11573
11574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11575    find out it does not work in some platform. */
11576 #ifndef LT_DLLAZY_OR_NOW
11577 #  ifdef RTLD_LAZY
11578 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11579 #  else
11580 #    ifdef DL_LAZY
11581 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11582 #    else
11583 #      ifdef RTLD_NOW
11584 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11585 #      else
11586 #        ifdef DL_NOW
11587 #          define LT_DLLAZY_OR_NOW      DL_NOW
11588 #        else
11589 #          define LT_DLLAZY_OR_NOW      0
11590 #        endif
11591 #      endif
11592 #    endif
11593 #  endif
11594 #endif
11595
11596 /* When -fvisbility=hidden is used, assume the code has been annotated
11597    correspondingly for the symbols needed.  */
11598 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11599 int fnord () __attribute__((visibility("default")));
11600 #endif
11601
11602 int fnord () { return 42; }
11603 int main ()
11604 {
11605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11606   int status = $lt_dlunknown;
11607
11608   if (self)
11609     {
11610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11611       else
11612         {
11613           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11614           else puts (dlerror ());
11615         }
11616       /* dlclose (self); */
11617     }
11618   else
11619     puts (dlerror ());
11620
11621   return status;
11622 }
11623 _LT_EOF
11624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11625   (eval $ac_link) 2>&5
11626   ac_status=$?
11627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11628   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11629     (./conftest; exit; ) >&5 2>/dev/null
11630     lt_status=$?
11631     case x$lt_status in
11632       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11633       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11634       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11635     esac
11636   else :
11637     # compilation failed
11638     lt_cv_dlopen_self=no
11639   fi
11640 fi
11641 rm -fr conftest*
11642
11643
11644 fi
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11646 $as_echo "$lt_cv_dlopen_self" >&6; }
11647
11648     if test "x$lt_cv_dlopen_self" = xyes; then
11649       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11650       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11651 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11652 if ${lt_cv_dlopen_self_static+:} false; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655           if test "$cross_compiling" = yes; then :
11656   lt_cv_dlopen_self_static=cross
11657 else
11658   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11659   lt_status=$lt_dlunknown
11660   cat > conftest.$ac_ext <<_LT_EOF
11661 #line $LINENO "configure"
11662 #include "confdefs.h"
11663
11664 #if HAVE_DLFCN_H
11665 #include <dlfcn.h>
11666 #endif
11667
11668 #include <stdio.h>
11669
11670 #ifdef RTLD_GLOBAL
11671 #  define LT_DLGLOBAL           RTLD_GLOBAL
11672 #else
11673 #  ifdef DL_GLOBAL
11674 #    define LT_DLGLOBAL         DL_GLOBAL
11675 #  else
11676 #    define LT_DLGLOBAL         0
11677 #  endif
11678 #endif
11679
11680 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11681    find out it does not work in some platform. */
11682 #ifndef LT_DLLAZY_OR_NOW
11683 #  ifdef RTLD_LAZY
11684 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11685 #  else
11686 #    ifdef DL_LAZY
11687 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11688 #    else
11689 #      ifdef RTLD_NOW
11690 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11691 #      else
11692 #        ifdef DL_NOW
11693 #          define LT_DLLAZY_OR_NOW      DL_NOW
11694 #        else
11695 #          define LT_DLLAZY_OR_NOW      0
11696 #        endif
11697 #      endif
11698 #    endif
11699 #  endif
11700 #endif
11701
11702 /* When -fvisbility=hidden is used, assume the code has been annotated
11703    correspondingly for the symbols needed.  */
11704 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11705 int fnord () __attribute__((visibility("default")));
11706 #endif
11707
11708 int fnord () { return 42; }
11709 int main ()
11710 {
11711   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11712   int status = $lt_dlunknown;
11713
11714   if (self)
11715     {
11716       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11717       else
11718         {
11719           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11720           else puts (dlerror ());
11721         }
11722       /* dlclose (self); */
11723     }
11724   else
11725     puts (dlerror ());
11726
11727   return status;
11728 }
11729 _LT_EOF
11730   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11731   (eval $ac_link) 2>&5
11732   ac_status=$?
11733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11734   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11735     (./conftest; exit; ) >&5 2>/dev/null
11736     lt_status=$?
11737     case x$lt_status in
11738       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11739       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11740       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11741     esac
11742   else :
11743     # compilation failed
11744     lt_cv_dlopen_self_static=no
11745   fi
11746 fi
11747 rm -fr conftest*
11748
11749
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11752 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11753     fi
11754
11755     CPPFLAGS="$save_CPPFLAGS"
11756     LDFLAGS="$save_LDFLAGS"
11757     LIBS="$save_LIBS"
11758     ;;
11759   esac
11760
11761   case $lt_cv_dlopen_self in
11762   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11763   *) enable_dlopen_self=unknown ;;
11764   esac
11765
11766   case $lt_cv_dlopen_self_static in
11767   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11768   *) enable_dlopen_self_static=unknown ;;
11769   esac
11770 fi
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788 striplib=
11789 old_striplib=
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11791 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11792 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11793   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11794   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11796 $as_echo "yes" >&6; }
11797 else
11798 # FIXME - insert some real tests, host_os isn't really good enough
11799   case $host_os in
11800   darwin*)
11801     if test -n "$STRIP" ; then
11802       striplib="$STRIP -x"
11803       old_striplib="$STRIP -S"
11804       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806     else
11807       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11808 $as_echo "no" >&6; }
11809     fi
11810     ;;
11811   *)
11812     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11813 $as_echo "no" >&6; }
11814     ;;
11815   esac
11816 fi
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829   # Report which library types will actually be built
11830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11831 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11833 $as_echo "$can_build_shared" >&6; }
11834
11835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11836 $as_echo_n "checking whether to build shared libraries... " >&6; }
11837   test "$can_build_shared" = "no" && enable_shared=no
11838
11839   # On AIX, shared libraries and static libraries use the same namespace, and
11840   # are all built from PIC.
11841   case $host_os in
11842   aix3*)
11843     test "$enable_shared" = yes && enable_static=no
11844     if test -n "$RANLIB"; then
11845       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11846       postinstall_cmds='$RANLIB $lib'
11847     fi
11848     ;;
11849
11850   aix[4-9]*)
11851     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11852       test "$enable_shared" = yes && enable_static=no
11853     fi
11854     ;;
11855   esac
11856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11857 $as_echo "$enable_shared" >&6; }
11858
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11860 $as_echo_n "checking whether to build static libraries... " >&6; }
11861   # Make sure either enable_shared or enable_static is yes.
11862   test "$enable_shared" = yes || enable_static=yes
11863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11864 $as_echo "$enable_static" >&6; }
11865
11866
11867
11868
11869 fi
11870 ac_ext=c
11871 ac_cpp='$CPP $CPPFLAGS'
11872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11875
11876 CC="$lt_save_CC"
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892         ac_config_commands="$ac_config_commands libtool"
11893
11894
11895
11896
11897 # Only expand once:
11898
11899
11900
11901
11902 AX_CC_MAXOPT
11903 AX_CFLAGS_WARN_ALL
11904 if test "x$GCC" = "xyes"; then
11905   CFLAGS="$CFLAGS -fexceptions"
11906 fi
11907
11908
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11910 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11911     # Check whether --enable-maintainer-mode was given.
11912 if test "${enable_maintainer_mode+set}" = set; then :
11913   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11914 else
11915   USE_MAINTAINER_MODE=no
11916 fi
11917
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11919 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11920    if test $USE_MAINTAINER_MODE = yes; then
11921   MAINTAINER_MODE_TRUE=
11922   MAINTAINER_MODE_FALSE='#'
11923 else
11924   MAINTAINER_MODE_TRUE='#'
11925   MAINTAINER_MODE_FALSE=
11926 fi
11927
11928   MAINT=$MAINTAINER_MODE_TRUE
11929
11930
11931
11932 for ac_header in sys/mman.h
11933 do :
11934   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11935 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11936   cat >>confdefs.h <<_ACEOF
11937 #define HAVE_SYS_MMAN_H 1
11938 _ACEOF
11939
11940 fi
11941
11942 done
11943
11944 for ac_func in mmap
11945 do :
11946   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11947 if test "x$ac_cv_func_mmap" = xyes; then :
11948   cat >>confdefs.h <<_ACEOF
11949 #define HAVE_MMAP 1
11950 _ACEOF
11951
11952 fi
11953 done
11954
11955
11956 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11957 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
11958   libffi_header_sys_mman_h=yes
11959 else
11960   libffi_header_sys_mman_h=no
11961 fi
11962
11963
11964 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11965 if test "x$ac_cv_func_mmap" = xyes; then :
11966   libffi_func_mmap=yes
11967 else
11968   libffi_func_mmap=no
11969 fi
11970
11971 if test "$libffi_header_sys_mman_h" != yes \
11972  || test "$libffi_func_mmap" != yes; then
11973    ac_cv_func_mmap_file=no
11974    ac_cv_func_mmap_dev_zero=no
11975    ac_cv_func_mmap_anon=no
11976 else
11977    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11978 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11979 if ${ac_cv_func_mmap_file+:} false; then :
11980   $as_echo_n "(cached) " >&6
11981 else
11982   # Add a system to this blacklist if
11983    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11984    # memory area containing the same data that you'd get if you applied
11985    # read() to the same fd.  The only system known to have a problem here
11986    # is VMS, where text files have record structure.
11987    case "$host_os" in
11988      vms* | ultrix*)
11989         ac_cv_func_mmap_file=no ;;
11990      *)
11991         ac_cv_func_mmap_file=yes;;
11992    esac
11993 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11995 $as_echo "$ac_cv_func_mmap_file" >&6; }
11996    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11997 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11998 if ${ac_cv_func_mmap_dev_zero+:} false; then :
11999   $as_echo_n "(cached) " >&6
12000 else
12001   # Add a system to this blacklist if it has mmap() but /dev/zero
12002    # does not exist, or if mmapping /dev/zero does not give anonymous
12003    # zeroed pages with both the following properties:
12004    # 1. If you map N consecutive pages in with one call, and then
12005    #    unmap any subset of those pages, the pages that were not
12006    #    explicitly unmapped remain accessible.
12007    # 2. If you map two adjacent blocks of memory and then unmap them
12008    #    both at once, they must both go away.
12009    # Systems known to be in this category are Windows (all variants),
12010    # VMS, and Darwin.
12011    case "$host_os" in
12012      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
12013         ac_cv_func_mmap_dev_zero=no ;;
12014      *)
12015         ac_cv_func_mmap_dev_zero=yes;;
12016    esac
12017 fi
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
12019 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
12020
12021    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
12022    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
12023 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
12024 if ${ac_cv_decl_map_anon+:} false; then :
12025   $as_echo_n "(cached) " >&6
12026 else
12027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028 /* end confdefs.h.  */
12029 #include <sys/types.h>
12030 #include <sys/mman.h>
12031 #include <unistd.h>
12032
12033 #ifndef MAP_ANONYMOUS
12034 #define MAP_ANONYMOUS MAP_ANON
12035 #endif
12036
12037 int
12038 main ()
12039 {
12040 int n = MAP_ANONYMOUS;
12041   ;
12042   return 0;
12043 }
12044 _ACEOF
12045 if ac_fn_c_try_compile "$LINENO"; then :
12046   ac_cv_decl_map_anon=yes
12047 else
12048   ac_cv_decl_map_anon=no
12049 fi
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 fi
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
12053 $as_echo "$ac_cv_decl_map_anon" >&6; }
12054
12055    if test $ac_cv_decl_map_anon = no; then
12056      ac_cv_func_mmap_anon=no
12057    else
12058      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
12059 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
12060 if ${ac_cv_func_mmap_anon+:} false; then :
12061   $as_echo_n "(cached) " >&6
12062 else
12063   # Add a system to this blacklist if it has mmap() and MAP_ANON or
12064    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
12065    # doesn't give anonymous zeroed pages with the same properties listed
12066    # above for use of /dev/zero.
12067    # Systems known to be in this category are Windows, VMS, and SCO Unix.
12068    case "$host_os" in
12069      vms* | cygwin* | pe | mingw* | sco* | udk* )
12070         ac_cv_func_mmap_anon=no ;;
12071      *)
12072         ac_cv_func_mmap_anon=yes;;
12073    esac
12074 fi
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
12076 $as_echo "$ac_cv_func_mmap_anon" >&6; }
12077    fi
12078 fi
12079
12080 if test $ac_cv_func_mmap_file = yes; then
12081
12082 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
12083
12084 fi
12085 if test $ac_cv_func_mmap_dev_zero = yes; then
12086
12087 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
12088
12089 fi
12090 if test $ac_cv_func_mmap_anon = yes; then
12091
12092 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
12093
12094 fi
12095
12096
12097  if test -d $srcdir/testsuite; then
12098   TESTSUBDIR_TRUE=
12099   TESTSUBDIR_FALSE='#'
12100 else
12101   TESTSUBDIR_TRUE='#'
12102   TESTSUBDIR_FALSE=
12103 fi
12104
12105
12106 TARGETDIR="unknown"
12107 case "$host" in
12108   alpha*-*-*)
12109         TARGET=ALPHA; TARGETDIR=alpha;
12110         # Support 128-bit long double, changeable via command-line switch.
12111         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
12112         ;;
12113
12114   arm*-*-*)
12115         TARGET=ARM; TARGETDIR=arm
12116         ;;
12117
12118   amd64-*-freebsd* | amd64-*-openbsd*)
12119         TARGET=X86_64; TARGETDIR=x86
12120         ;;
12121
12122   amd64-*-freebsd*)
12123         TARGET=X86_64; TARGETDIR=x86
12124         ;;
12125
12126   avr32*-*-*)
12127         TARGET=AVR32; TARGETDIR=avr32
12128         ;;
12129
12130   bfin*)
12131         TARGET=BFIN; TARGETDIR=bfin
12132         ;;
12133
12134   cris-*-*)
12135         TARGET=LIBFFI_CRIS; TARGETDIR=cris
12136         ;;
12137
12138   frv-*-*)
12139         TARGET=FRV; TARGETDIR=frv
12140         ;;
12141
12142   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
12143         TARGET=PA_LINUX; TARGETDIR=pa
12144         ;;
12145   hppa*64-*-hpux*)
12146         TARGET=PA64_HPUX; TARGETDIR=pa
12147         ;;
12148   hppa*-*-hpux*)
12149         TARGET=PA_HPUX; TARGETDIR=pa
12150         ;;
12151
12152   i?86-*-freebsd* | i?86-*-openbsd*)
12153         TARGET=X86_FREEBSD; TARGETDIR=x86
12154         ;;
12155   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
12156         TARGET=X86_WIN32; TARGETDIR=x86
12157         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12158         # We must also check with_cross_host to decide if this is a native
12159         # or cross-build and select where to install dlls appropriately.
12160         if test -n "$with_cross_host" &&
12161            test x"$with_cross_host" != x"no"; then
12162           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12163         else
12164           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12165         fi
12166         ;;
12167   i?86-*-darwin*)
12168         TARGET=X86_DARWIN; TARGETDIR=x86
12169         ;;
12170   i?86-*-solaris2.1[0-9]*)
12171         TARGET=X86_64; TARGETDIR=x86
12172         ;;
12173   i?86-*-*)
12174         TARGET=X86_64; TARGETDIR=x86
12175         ;;
12176
12177   ia64*-*-*)
12178         TARGET=IA64; TARGETDIR=ia64
12179         ;;
12180
12181   m32r*-*-*)
12182         TARGET=M32R; TARGETDIR=m32r
12183         ;;
12184
12185   m68k-*-*)
12186         TARGET=M68K; TARGETDIR=m68k
12187         ;;
12188
12189   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
12190         TARGET=MIPS; TARGETDIR=mips
12191         ;;
12192   mips*-*-linux* | mips*-*-openbsd*)
12193         # Support 128-bit long double for NewABI.
12194         HAVE_LONG_DOUBLE='defined(__mips64)'
12195         TARGET=MIPS; TARGETDIR=mips
12196         ;;
12197
12198   moxie-*-*)
12199         TARGET=MOXIE; TARGETDIR=moxie
12200         ;;
12201
12202   powerpc*-*-linux* | powerpc-*-sysv*)
12203         TARGET=POWERPC; TARGETDIR=powerpc
12204         ;;
12205   powerpc-*-amigaos*)
12206         TARGET=POWERPC; TARGETDIR=powerpc
12207         ;;
12208   powerpc-*-beos*)
12209         TARGET=POWERPC; TARGETDIR=powerpc
12210         ;;
12211   powerpc-*-darwin* | powerpc64-*-darwin*)
12212         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
12213         ;;
12214   powerpc-*-aix* | rs6000-*-aix*)
12215         TARGET=POWERPC_AIX; TARGETDIR=powerpc
12216         ;;
12217   powerpc-*-freebsd* | powerpc-*-openbsd*)
12218         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
12219         ;;
12220   powerpc64-*-freebsd*)
12221         TARGET=POWERPC; TARGETDIR=powerpc
12222         ;;
12223   powerpc*-*-rtems*)
12224         TARGET=POWERPC; TARGETDIR=powerpc
12225         ;;
12226
12227   s390-*-* | s390x-*-*)
12228         TARGET=S390; TARGETDIR=s390
12229         ;;
12230
12231   sh-*-* | sh[34]*-*-*)
12232         TARGET=SH; TARGETDIR=sh
12233         ;;
12234   sh64-*-* | sh5*-*-*)
12235         TARGET=SH64; TARGETDIR=sh64
12236         ;;
12237
12238   sparc*-*-*)
12239         TARGET=SPARC; TARGETDIR=sparc
12240         ;;
12241
12242   x86_64-*-darwin*)
12243         TARGET=X86_DARWIN; TARGETDIR=x86
12244         ;;
12245
12246   x86_64-*-cygwin* | x86_64-*-mingw*)
12247         TARGET=X86_WIN64; TARGETDIR=x86
12248         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
12249         # We must also check with_cross_host to decide if this is a native
12250         # or cross-build and select where to install dlls appropriately.
12251         if test -n "$with_cross_host" &&
12252            test x"$with_cross_host" != x"no"; then
12253           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
12254         else
12255           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
12256         fi
12257         ;;
12258
12259   x86_64-*-*)
12260         TARGET=X86_64; TARGETDIR=x86
12261         ;;
12262 esac
12263
12264
12265
12266
12267 if test $TARGETDIR = unknown; then
12268   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
12269 fi
12270
12271  if test x$TARGET = xMIPS; then
12272   MIPS_TRUE=
12273   MIPS_FALSE='#'
12274 else
12275   MIPS_TRUE='#'
12276   MIPS_FALSE=
12277 fi
12278
12279  if test x$TARGET = xBFIN; then
12280   BFIN_TRUE=
12281   BFIN_FALSE='#'
12282 else
12283   BFIN_TRUE='#'
12284   BFIN_FALSE=
12285 fi
12286
12287  if test x$TARGET = xSPARC; then
12288   SPARC_TRUE=
12289   SPARC_FALSE='#'
12290 else
12291   SPARC_TRUE='#'
12292   SPARC_FALSE=
12293 fi
12294
12295  if test x$TARGET = xX86; then
12296   X86_TRUE=
12297   X86_FALSE='#'
12298 else
12299   X86_TRUE='#'
12300   X86_FALSE=
12301 fi
12302
12303  if test x$TARGET = xX86_FREEBSD; then
12304   X86_FREEBSD_TRUE=
12305   X86_FREEBSD_FALSE='#'
12306 else
12307   X86_FREEBSD_TRUE='#'
12308   X86_FREEBSD_FALSE=
12309 fi
12310
12311  if test x$TARGET = xX86_WIN32; then
12312   X86_WIN32_TRUE=
12313   X86_WIN32_FALSE='#'
12314 else
12315   X86_WIN32_TRUE='#'
12316   X86_WIN32_FALSE=
12317 fi
12318
12319  if test x$TARGET = xX86_WIN64; then
12320   X86_WIN64_TRUE=
12321   X86_WIN64_FALSE='#'
12322 else
12323   X86_WIN64_TRUE='#'
12324   X86_WIN64_FALSE=
12325 fi
12326
12327  if test x$TARGET = xX86_DARWIN; then
12328   X86_DARWIN_TRUE=
12329   X86_DARWIN_FALSE='#'
12330 else
12331   X86_DARWIN_TRUE='#'
12332   X86_DARWIN_FALSE=
12333 fi
12334
12335  if test x$TARGET = xALPHA; then
12336   ALPHA_TRUE=
12337   ALPHA_FALSE='#'
12338 else
12339   ALPHA_TRUE='#'
12340   ALPHA_FALSE=
12341 fi
12342
12343  if test x$TARGET = xIA64; then
12344   IA64_TRUE=
12345   IA64_FALSE='#'
12346 else
12347   IA64_TRUE='#'
12348   IA64_FALSE=
12349 fi
12350
12351  if test x$TARGET = xM32R; then
12352   M32R_TRUE=
12353   M32R_FALSE='#'
12354 else
12355   M32R_TRUE='#'
12356   M32R_FALSE=
12357 fi
12358
12359  if test x$TARGET = xM68K; then
12360   M68K_TRUE=
12361   M68K_FALSE='#'
12362 else
12363   M68K_TRUE='#'
12364   M68K_FALSE=
12365 fi
12366
12367  if test x$TARGET = xMOXIE; then
12368   MOXIE_TRUE=
12369   MOXIE_FALSE='#'
12370 else
12371   MOXIE_TRUE='#'
12372   MOXIE_FALSE=
12373 fi
12374
12375  if test x$TARGET = xPOWERPC; then
12376   POWERPC_TRUE=
12377   POWERPC_FALSE='#'
12378 else
12379   POWERPC_TRUE='#'
12380   POWERPC_FALSE=
12381 fi
12382
12383  if test x$TARGET = xPOWERPC_AIX; then
12384   POWERPC_AIX_TRUE=
12385   POWERPC_AIX_FALSE='#'
12386 else
12387   POWERPC_AIX_TRUE='#'
12388   POWERPC_AIX_FALSE=
12389 fi
12390
12391  if test x$TARGET = xPOWERPC_DARWIN; then
12392   POWERPC_DARWIN_TRUE=
12393   POWERPC_DARWIN_FALSE='#'
12394 else
12395   POWERPC_DARWIN_TRUE='#'
12396   POWERPC_DARWIN_FALSE=
12397 fi
12398
12399  if test x$TARGET = xPOWERPC_FREEBSD; then
12400   POWERPC_FREEBSD_TRUE=
12401   POWERPC_FREEBSD_FALSE='#'
12402 else
12403   POWERPC_FREEBSD_TRUE='#'
12404   POWERPC_FREEBSD_FALSE=
12405 fi
12406
12407  if test x$TARGET = xARM; then
12408   ARM_TRUE=
12409   ARM_FALSE='#'
12410 else
12411   ARM_TRUE='#'
12412   ARM_FALSE=
12413 fi
12414
12415  if test x$TARGET = xAVR32; then
12416   AVR32_TRUE=
12417   AVR32_FALSE='#'
12418 else
12419   AVR32_TRUE='#'
12420   AVR32_FALSE=
12421 fi
12422
12423  if test x$TARGET = xLIBFFI_CRIS; then
12424   LIBFFI_CRIS_TRUE=
12425   LIBFFI_CRIS_FALSE='#'
12426 else
12427   LIBFFI_CRIS_TRUE='#'
12428   LIBFFI_CRIS_FALSE=
12429 fi
12430
12431  if test x$TARGET = xFRV; then
12432   FRV_TRUE=
12433   FRV_FALSE='#'
12434 else
12435   FRV_TRUE='#'
12436   FRV_FALSE=
12437 fi
12438
12439  if test x$TARGET = xS390; then
12440   S390_TRUE=
12441   S390_FALSE='#'
12442 else
12443   S390_TRUE='#'
12444   S390_FALSE=
12445 fi
12446
12447  if test x$TARGET = xX86_64; then
12448   X86_64_TRUE=
12449   X86_64_FALSE='#'
12450 else
12451   X86_64_TRUE='#'
12452   X86_64_FALSE=
12453 fi
12454
12455  if test x$TARGET = xSH; then
12456   SH_TRUE=
12457   SH_FALSE='#'
12458 else
12459   SH_TRUE='#'
12460   SH_FALSE=
12461 fi
12462
12463  if test x$TARGET = xSH64; then
12464   SH64_TRUE=
12465   SH64_FALSE='#'
12466 else
12467   SH64_TRUE='#'
12468   SH64_FALSE=
12469 fi
12470
12471  if test x$TARGET = xPA_LINUX; then
12472   PA_LINUX_TRUE=
12473   PA_LINUX_FALSE='#'
12474 else
12475   PA_LINUX_TRUE='#'
12476   PA_LINUX_FALSE=
12477 fi
12478
12479  if test x$TARGET = xPA_HPUX; then
12480   PA_HPUX_TRUE=
12481   PA_HPUX_FALSE='#'
12482 else
12483   PA_HPUX_TRUE='#'
12484   PA_HPUX_FALSE=
12485 fi
12486
12487  if test x$TARGET = xPA64_HPUX; then
12488   PA64_HPUX_TRUE=
12489   PA64_HPUX_FALSE='#'
12490 else
12491   PA64_HPUX_TRUE='#'
12492   PA64_HPUX_FALSE=
12493 fi
12494
12495
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12497 $as_echo_n "checking for ANSI C header files... " >&6; }
12498 if ${ac_cv_header_stdc+:} false; then :
12499   $as_echo_n "(cached) " >&6
12500 else
12501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12502 /* end confdefs.h.  */
12503 #include <stdlib.h>
12504 #include <stdarg.h>
12505 #include <string.h>
12506 #include <float.h>
12507
12508 int
12509 main ()
12510 {
12511
12512   ;
12513   return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_compile "$LINENO"; then :
12517   ac_cv_header_stdc=yes
12518 else
12519   ac_cv_header_stdc=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12522
12523 if test $ac_cv_header_stdc = yes; then
12524   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12526 /* end confdefs.h.  */
12527 #include <string.h>
12528
12529 _ACEOF
12530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12531   $EGREP "memchr" >/dev/null 2>&1; then :
12532
12533 else
12534   ac_cv_header_stdc=no
12535 fi
12536 rm -f conftest*
12537
12538 fi
12539
12540 if test $ac_cv_header_stdc = yes; then
12541   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h.  */
12544 #include <stdlib.h>
12545
12546 _ACEOF
12547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12548   $EGREP "free" >/dev/null 2>&1; then :
12549
12550 else
12551   ac_cv_header_stdc=no
12552 fi
12553 rm -f conftest*
12554
12555 fi
12556
12557 if test $ac_cv_header_stdc = yes; then
12558   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12559   if test "$cross_compiling" = yes; then :
12560   :
12561 else
12562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h.  */
12564 #include <ctype.h>
12565 #include <stdlib.h>
12566 #if ((' ' & 0x0FF) == 0x020)
12567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12569 #else
12570 # define ISLOWER(c) \
12571                    (('a' <= (c) && (c) <= 'i') \
12572                      || ('j' <= (c) && (c) <= 'r') \
12573                      || ('s' <= (c) && (c) <= 'z'))
12574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12575 #endif
12576
12577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12578 int
12579 main ()
12580 {
12581   int i;
12582   for (i = 0; i < 256; i++)
12583     if (XOR (islower (i), ISLOWER (i))
12584         || toupper (i) != TOUPPER (i))
12585       return 2;
12586   return 0;
12587 }
12588 _ACEOF
12589 if ac_fn_c_try_run "$LINENO"; then :
12590
12591 else
12592   ac_cv_header_stdc=no
12593 fi
12594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12595   conftest.$ac_objext conftest.beam conftest.$ac_ext
12596 fi
12597
12598 fi
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12601 $as_echo "$ac_cv_header_stdc" >&6; }
12602 if test $ac_cv_header_stdc = yes; then
12603
12604 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12605
12606 fi
12607
12608 for ac_func in memcpy
12609 do :
12610   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
12611 if test "x$ac_cv_func_memcpy" = xyes; then :
12612   cat >>confdefs.h <<_ACEOF
12613 #define HAVE_MEMCPY 1
12614 _ACEOF
12615
12616 fi
12617 done
12618
12619 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12620 if test "x$ac_cv_type_size_t" = xyes; then :
12621
12622 else
12623
12624 cat >>confdefs.h <<_ACEOF
12625 #define size_t unsigned int
12626 _ACEOF
12627
12628 fi
12629
12630 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12631 # for constant arguments.  Useless!
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
12633 $as_echo_n "checking for working alloca.h... " >&6; }
12634 if ${ac_cv_working_alloca_h+:} false; then :
12635   $as_echo_n "(cached) " >&6
12636 else
12637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h.  */
12639 #include <alloca.h>
12640 int
12641 main ()
12642 {
12643 char *p = (char *) alloca (2 * sizeof (int));
12644                           if (p) return 0;
12645   ;
12646   return 0;
12647 }
12648 _ACEOF
12649 if ac_fn_c_try_link "$LINENO"; then :
12650   ac_cv_working_alloca_h=yes
12651 else
12652   ac_cv_working_alloca_h=no
12653 fi
12654 rm -f core conftest.err conftest.$ac_objext \
12655     conftest$ac_exeext conftest.$ac_ext
12656 fi
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
12658 $as_echo "$ac_cv_working_alloca_h" >&6; }
12659 if test $ac_cv_working_alloca_h = yes; then
12660
12661 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
12662
12663 fi
12664
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
12666 $as_echo_n "checking for alloca... " >&6; }
12667 if ${ac_cv_func_alloca_works+:} false; then :
12668   $as_echo_n "(cached) " >&6
12669 else
12670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h.  */
12672 #ifdef __GNUC__
12673 # define alloca __builtin_alloca
12674 #else
12675 # ifdef _MSC_VER
12676 #  include <malloc.h>
12677 #  define alloca _alloca
12678 # else
12679 #  ifdef HAVE_ALLOCA_H
12680 #   include <alloca.h>
12681 #  else
12682 #   ifdef _AIX
12683  #pragma alloca
12684 #   else
12685 #    ifndef alloca /* predefined by HP cc +Olibcalls */
12686 void *alloca (size_t);
12687 #    endif
12688 #   endif
12689 #  endif
12690 # endif
12691 #endif
12692
12693 int
12694 main ()
12695 {
12696 char *p = (char *) alloca (1);
12697                                     if (p) return 0;
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_link "$LINENO"; then :
12703   ac_cv_func_alloca_works=yes
12704 else
12705   ac_cv_func_alloca_works=no
12706 fi
12707 rm -f core conftest.err conftest.$ac_objext \
12708     conftest$ac_exeext conftest.$ac_ext
12709 fi
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
12711 $as_echo "$ac_cv_func_alloca_works" >&6; }
12712
12713 if test $ac_cv_func_alloca_works = yes; then
12714
12715 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
12716
12717 else
12718   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12719 # that cause trouble.  Some versions do not even contain alloca or
12720 # contain a buggy version.  If you still want to use their alloca,
12721 # use ar to extract alloca.o from them instead of compiling alloca.c.
12722
12723 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
12724
12725 $as_echo "#define C_ALLOCA 1" >>confdefs.h
12726
12727
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
12729 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
12730 if ${ac_cv_os_cray+:} false; then :
12731   $as_echo_n "(cached) " >&6
12732 else
12733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12734 /* end confdefs.h.  */
12735 #if defined CRAY && ! defined CRAY2
12736 webecray
12737 #else
12738 wenotbecray
12739 #endif
12740
12741 _ACEOF
12742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12743   $EGREP "webecray" >/dev/null 2>&1; then :
12744   ac_cv_os_cray=yes
12745 else
12746   ac_cv_os_cray=no
12747 fi
12748 rm -f conftest*
12749
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
12752 $as_echo "$ac_cv_os_cray" >&6; }
12753 if test $ac_cv_os_cray = yes; then
12754   for ac_func in _getb67 GETB67 getb67; do
12755     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12756 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12757 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12758
12759 cat >>confdefs.h <<_ACEOF
12760 #define CRAY_STACKSEG_END $ac_func
12761 _ACEOF
12762
12763     break
12764 fi
12765
12766   done
12767 fi
12768
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
12770 $as_echo_n "checking stack direction for C alloca... " >&6; }
12771 if ${ac_cv_c_stack_direction+:} false; then :
12772   $as_echo_n "(cached) " >&6
12773 else
12774   if test "$cross_compiling" = yes; then :
12775   ac_cv_c_stack_direction=0
12776 else
12777   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h.  */
12779 $ac_includes_default
12780 int
12781 find_stack_direction ()
12782 {
12783   static char *addr = 0;
12784   auto char dummy;
12785   if (addr == 0)
12786     {
12787       addr = &dummy;
12788       return find_stack_direction ();
12789     }
12790   else
12791     return (&dummy > addr) ? 1 : -1;
12792 }
12793
12794 int
12795 main ()
12796 {
12797   return find_stack_direction () < 0;
12798 }
12799 _ACEOF
12800 if ac_fn_c_try_run "$LINENO"; then :
12801   ac_cv_c_stack_direction=1
12802 else
12803   ac_cv_c_stack_direction=-1
12804 fi
12805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12806   conftest.$ac_objext conftest.beam conftest.$ac_ext
12807 fi
12808
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
12811 $as_echo "$ac_cv_c_stack_direction" >&6; }
12812 cat >>confdefs.h <<_ACEOF
12813 #define STACK_DIRECTION $ac_cv_c_stack_direction
12814 _ACEOF
12815
12816
12817 fi
12818
12819
12820 # The cast to long int works around a bug in the HP C Compiler
12821 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12822 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12823 # This bug is HP SR number 8606223364.
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
12825 $as_echo_n "checking size of double... " >&6; }
12826 if ${ac_cv_sizeof_double+:} false; then :
12827   $as_echo_n "(cached) " >&6
12828 else
12829   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
12830
12831 else
12832   if test "$ac_cv_type_double" = yes; then
12833      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12835 as_fn_error 77 "cannot compute sizeof (double)
12836 See \`config.log' for more details" "$LINENO" 5; }
12837    else
12838      ac_cv_sizeof_double=0
12839    fi
12840 fi
12841
12842 fi
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
12844 $as_echo "$ac_cv_sizeof_double" >&6; }
12845
12846
12847
12848 cat >>confdefs.h <<_ACEOF
12849 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
12850 _ACEOF
12851
12852
12853 # The cast to long int works around a bug in the HP C Compiler
12854 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12855 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12856 # This bug is HP SR number 8606223364.
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12858 $as_echo_n "checking size of long double... " >&6; }
12859 if ${ac_cv_sizeof_long_double+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
12863
12864 else
12865   if test "$ac_cv_type_long_double" = yes; then
12866      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12868 as_fn_error 77 "cannot compute sizeof (long double)
12869 See \`config.log' for more details" "$LINENO" 5; }
12870    else
12871      ac_cv_sizeof_long_double=0
12872    fi
12873 fi
12874
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12877 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12878
12879
12880
12881 cat >>confdefs.h <<_ACEOF
12882 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12883 _ACEOF
12884
12885
12886
12887 # Also AC_SUBST this variable for ffi.h.
12888 if test -z "$HAVE_LONG_DOUBLE"; then
12889   HAVE_LONG_DOUBLE=0
12890   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12891     if test $ac_cv_sizeof_long_double != 0; then
12892       HAVE_LONG_DOUBLE=1
12893
12894 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12895
12896     fi
12897   fi
12898 fi
12899
12900
12901  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12902 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12903 if ${ac_cv_c_bigendian+:} false; then :
12904   $as_echo_n "(cached) " >&6
12905 else
12906   ac_cv_c_bigendian=unknown
12907     # See if we're dealing with a universal compiler.
12908     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909 /* end confdefs.h.  */
12910 #ifndef __APPLE_CC__
12911                not a universal capable compiler
12912              #endif
12913              typedef int dummy;
12914
12915 _ACEOF
12916 if ac_fn_c_try_compile "$LINENO"; then :
12917
12918         # Check for potential -arch flags.  It is not universal unless
12919         # there are at least two -arch flags with different values.
12920         ac_arch=
12921         ac_prev=
12922         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12923          if test -n "$ac_prev"; then
12924            case $ac_word in
12925              i?86 | x86_64 | ppc | ppc64)
12926                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12927                  ac_arch=$ac_word
12928                else
12929                  ac_cv_c_bigendian=universal
12930                  break
12931                fi
12932                ;;
12933            esac
12934            ac_prev=
12935          elif test "x$ac_word" = "x-arch"; then
12936            ac_prev=arch
12937          fi
12938        done
12939 fi
12940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12941     if test $ac_cv_c_bigendian = unknown; then
12942       # See if sys/param.h defines the BYTE_ORDER macro.
12943       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h.  */
12945 #include <sys/types.h>
12946              #include <sys/param.h>
12947
12948 int
12949 main ()
12950 {
12951 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12952                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12953                      && LITTLE_ENDIAN)
12954               bogus endian macros
12955              #endif
12956
12957   ;
12958   return 0;
12959 }
12960 _ACEOF
12961 if ac_fn_c_try_compile "$LINENO"; then :
12962   # It does; now see whether it defined to BIG_ENDIAN or not.
12963          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12964 /* end confdefs.h.  */
12965 #include <sys/types.h>
12966                 #include <sys/param.h>
12967
12968 int
12969 main ()
12970 {
12971 #if BYTE_ORDER != BIG_ENDIAN
12972                  not big endian
12973                 #endif
12974
12975   ;
12976   return 0;
12977 }
12978 _ACEOF
12979 if ac_fn_c_try_compile "$LINENO"; then :
12980   ac_cv_c_bigendian=yes
12981 else
12982   ac_cv_c_bigendian=no
12983 fi
12984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987     fi
12988     if test $ac_cv_c_bigendian = unknown; then
12989       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12990       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h.  */
12992 #include <limits.h>
12993
12994 int
12995 main ()
12996 {
12997 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12998               bogus endian macros
12999              #endif
13000
13001   ;
13002   return 0;
13003 }
13004 _ACEOF
13005 if ac_fn_c_try_compile "$LINENO"; then :
13006   # It does; now see whether it defined to _BIG_ENDIAN or not.
13007          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h.  */
13009 #include <limits.h>
13010
13011 int
13012 main ()
13013 {
13014 #ifndef _BIG_ENDIAN
13015                  not big endian
13016                 #endif
13017
13018   ;
13019   return 0;
13020 }
13021 _ACEOF
13022 if ac_fn_c_try_compile "$LINENO"; then :
13023   ac_cv_c_bigendian=yes
13024 else
13025   ac_cv_c_bigendian=no
13026 fi
13027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13028 fi
13029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13030     fi
13031     if test $ac_cv_c_bigendian = unknown; then
13032       # Compile a test program.
13033       if test "$cross_compiling" = yes; then :
13034   # Try to guess by grepping values from an object file.
13035          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h.  */
13037 short int ascii_mm[] =
13038                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13039                 short int ascii_ii[] =
13040                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13041                 int use_ascii (int i) {
13042                   return ascii_mm[i] + ascii_ii[i];
13043                 }
13044                 short int ebcdic_ii[] =
13045                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13046                 short int ebcdic_mm[] =
13047                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13048                 int use_ebcdic (int i) {
13049                   return ebcdic_mm[i] + ebcdic_ii[i];
13050                 }
13051                 extern int foo;
13052
13053 int
13054 main ()
13055 {
13056 return use_ascii (foo) == use_ebcdic (foo);
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_c_try_compile "$LINENO"; then :
13062   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13063               ac_cv_c_bigendian=yes
13064             fi
13065             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13066               if test "$ac_cv_c_bigendian" = unknown; then
13067                 ac_cv_c_bigendian=no
13068               else
13069                 # finding both strings is unlikely to happen, but who knows?
13070                 ac_cv_c_bigendian=unknown
13071               fi
13072             fi
13073 fi
13074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13075 else
13076   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h.  */
13078 $ac_includes_default
13079 int
13080 main ()
13081 {
13082
13083              /* Are we little or big endian?  From Harbison&Steele.  */
13084              union
13085              {
13086                long int l;
13087                char c[sizeof (long int)];
13088              } u;
13089              u.l = 1;
13090              return u.c[sizeof (long int) - 1] == 1;
13091
13092   ;
13093   return 0;
13094 }
13095 _ACEOF
13096 if ac_fn_c_try_run "$LINENO"; then :
13097   ac_cv_c_bigendian=no
13098 else
13099   ac_cv_c_bigendian=yes
13100 fi
13101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13102   conftest.$ac_objext conftest.beam conftest.$ac_ext
13103 fi
13104
13105     fi
13106 fi
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13108 $as_echo "$ac_cv_c_bigendian" >&6; }
13109  case $ac_cv_c_bigendian in #(
13110    yes)
13111      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13112 ;; #(
13113    no)
13114       ;; #(
13115    universal)
13116
13117 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13118
13119      ;; #(
13120    *)
13121      as_fn_error $? "unknown endianness
13122  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13123  esac
13124
13125
13126 GCC_AS_CFI_PSEUDO_OP
13127
13128 if test x$TARGET = xSPARC; then
13129     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
13130 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
13131 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
13132   $as_echo_n "(cached) " >&6
13133 else
13134
13135         save_CFLAGS="$CFLAGS"
13136         save_LDFLAGS="$LDFLAGS"
13137         CFLAGS="$CFLAGS -fpic"
13138         LDFLAGS="$LDFLAGS -shared"
13139         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h.  */
13141 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
13142 int
13143 main ()
13144 {
13145
13146   ;
13147   return 0;
13148 }
13149 _ACEOF
13150 if ac_fn_c_try_link "$LINENO"; then :
13151   libffi_cv_as_sparc_ua_pcrel=yes
13152 else
13153   libffi_cv_as_sparc_ua_pcrel=no
13154 fi
13155 rm -f core conftest.err conftest.$ac_objext \
13156     conftest$ac_exeext conftest.$ac_ext
13157         CFLAGS="$save_CFLAGS"
13158         LDFLAGS="$save_LDFLAGS"
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
13161 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
13162     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
13163
13164 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
13165
13166     fi
13167
13168     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
13169 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
13170 if ${libffi_cv_as_register_pseudo_op+:} false; then :
13171   $as_echo_n "(cached) " >&6
13172 else
13173
13174        libffi_cv_as_register_pseudo_op=unknown
13175        # Check if we have .register
13176        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13177 /* end confdefs.h.  */
13178 asm (".register %g2, #scratch");
13179 int
13180 main ()
13181 {
13182
13183   ;
13184   return 0;
13185 }
13186 _ACEOF
13187 if ac_fn_c_try_compile "$LINENO"; then :
13188   libffi_cv_as_register_pseudo_op=yes
13189 else
13190   libffi_cv_as_register_pseudo_op=no
13191 fi
13192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13193
13194 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
13196 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
13197     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
13198
13199 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
13200
13201     fi
13202 fi
13203
13204 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
13205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
13206 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
13207 if ${libffi_cv_as_x86_pcrel+:} false; then :
13208   $as_echo_n "(cached) " >&6
13209 else
13210
13211         libffi_cv_as_x86_pcrel=yes
13212         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
13213         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
13214             libffi_cv_as_x86_pcrel=no
13215         fi
13216
13217 fi
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
13219 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
13220     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
13221
13222 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
13223
13224     fi
13225
13226     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
13227 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
13228 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
13229   $as_echo_n "(cached) " >&6
13230 else
13231
13232        libffi_cv_as_ascii_pseudo_op=unknown
13233        # Check if we have .ascii
13234        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h.  */
13236 asm (".ascii \\"string\\"");
13237 int
13238 main ()
13239 {
13240
13241   ;
13242   return 0;
13243 }
13244 _ACEOF
13245 if ac_fn_c_try_compile "$LINENO"; then :
13246   libffi_cv_as_ascii_pseudo_op=yes
13247 else
13248   libffi_cv_as_ascii_pseudo_op=no
13249 fi
13250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13251
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
13254 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
13255     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
13256
13257 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
13258
13259     fi
13260
13261     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
13262 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
13263 if ${libffi_cv_as_string_pseudo_op+:} false; then :
13264   $as_echo_n "(cached) " >&6
13265 else
13266
13267        libffi_cv_as_string_pseudo_op=unknown
13268        # Check if we have .string
13269        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 /* end confdefs.h.  */
13271 asm (".string \\"string\\"");
13272 int
13273 main ()
13274 {
13275
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"; then :
13281   libffi_cv_as_string_pseudo_op=yes
13282 else
13283   libffi_cv_as_string_pseudo_op=no
13284 fi
13285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286
13287 fi
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
13289 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
13290     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
13291
13292 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
13293
13294     fi
13295 fi
13296
13297 if test x$TARGET = xX86_WIN64; then
13298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
13299 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
13300 if ${lt_cv_sys_symbol_underscore+:} false; then :
13301   $as_echo_n "(cached) " >&6
13302 else
13303   lt_cv_sys_symbol_underscore=no
13304   cat > conftest.$ac_ext <<_LT_EOF
13305 void nm_test_func(){}
13306 int main(){nm_test_func;return 0;}
13307 _LT_EOF
13308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13309   (eval $ac_compile) 2>&5
13310   ac_status=$?
13311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13312   test $ac_status = 0; }; then
13313     # Now try to grab the symbols.
13314     ac_nlist=conftest.nm
13315     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
13316   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
13317   ac_status=$?
13318   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13319   test $ac_status = 0; } && test -s "$ac_nlist"; then
13320       # See whether the symbols have a leading underscore.
13321       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
13322         lt_cv_sys_symbol_underscore=yes
13323       else
13324         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
13325           :
13326         else
13327           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
13328         fi
13329       fi
13330     else
13331       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
13332     fi
13333   else
13334     echo "configure: failed program was:" >&5
13335     cat conftest.c >&5
13336   fi
13337   rm -rf conftest*
13338
13339 fi
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
13341 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
13342   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
13343
13344
13345     if test "x$sys_symbol_underscore" = xyes; then
13346
13347 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
13348
13349     fi
13350 fi
13351
13352
13353 FFI_EXEC_TRAMPOLINE_TABLE=0
13354 case "$target" in
13355      *arm*-apple-darwin*)
13356        FFI_EXEC_TRAMPOLINE_TABLE=1
13357
13358 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
13359
13360      ;;
13361      *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
13362
13363 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
13364
13365      ;;
13366 esac
13367  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
13368   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
13369   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
13370 else
13371   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
13372   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
13373 fi
13374
13375
13376
13377 if test x$TARGET = xX86_64; then
13378     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
13379 $as_echo_n "checking assembler supports unwind section type... " >&6; }
13380 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
13381   $as_echo_n "(cached) " >&6
13382 else
13383
13384         libffi_cv_as_x86_64_unwind_section_type=yes
13385         echo '.section .eh_frame,"a",@unwind' > conftest.s
13386         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
13387             libffi_cv_as_x86_64_unwind_section_type=no
13388         fi
13389
13390 fi
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
13392 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
13393     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
13394
13395 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
13396
13397     fi
13398 fi
13399
13400 if test "x$GCC" = "xyes"; then
13401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
13402 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
13403 if ${libffi_cv_ro_eh_frame+:} false; then :
13404   $as_echo_n "(cached) " >&6
13405 else
13406
13407         libffi_cv_ro_eh_frame=no
13408         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
13409         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
13410             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
13411                 libffi_cv_ro_eh_frame=yes
13412             elif grep '.section.*eh_frame.*#alloc' conftest.c \
13413                  | grep -v '#write' > /dev/null; then
13414                 libffi_cv_ro_eh_frame=yes
13415             fi
13416         fi
13417         rm -f conftest.*
13418
13419 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
13421 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
13422   if test "x$libffi_cv_ro_eh_frame" = xyes; then
13423
13424 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
13425
13426
13427 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
13428
13429   else
13430
13431 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
13432
13433   fi
13434
13435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
13436 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
13437 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
13438   $as_echo_n "(cached) " >&6
13439 else
13440
13441         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
13442         libffi_cv_hidden_visibility_attribute=no
13443         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
13444   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13445   (eval $ac_try) 2>&5
13446   ac_status=$?
13447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13448   test $ac_status = 0; }; }; then
13449             if grep '\.hidden.*foo' conftest.s >/dev/null; then
13450                 libffi_cv_hidden_visibility_attribute=yes
13451             fi
13452         fi
13453         rm -f conftest.*
13454
13455 fi
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
13457 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
13458   if test $libffi_cv_hidden_visibility_attribute = yes; then
13459
13460 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
13461
13462   fi
13463 fi
13464
13465
13466
13467
13468
13469
13470
13471
13472 # Check whether --enable-debug was given.
13473 if test "${enable_debug+set}" = set; then :
13474   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
13475
13476 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
13477
13478   fi
13479 fi
13480
13481  if test "$enable_debug" = "yes"; then
13482   FFI_DEBUG_TRUE=
13483   FFI_DEBUG_FALSE='#'
13484 else
13485   FFI_DEBUG_TRUE='#'
13486   FFI_DEBUG_FALSE=
13487 fi
13488
13489
13490 # Check whether --enable-structs was given.
13491 if test "${enable_structs+set}" = set; then :
13492   enableval=$enable_structs; if test "$enable_structs" = "no"; then
13493
13494 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
13495
13496   fi
13497 fi
13498
13499
13500 # Check whether --enable-raw-api was given.
13501 if test "${enable_raw_api+set}" = set; then :
13502   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
13503
13504 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
13505
13506   fi
13507 fi
13508
13509
13510 # Check whether --enable-purify-safety was given.
13511 if test "${enable_purify_safety+set}" = set; then :
13512   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
13513
13514 $as_echo "#define USING_PURIFY 1" >>confdefs.h
13515
13516   fi
13517 fi
13518
13519
13520 # These variables are only ever used when we cross-build to X86_WIN32.
13521 # And we only support this with GCC, so...
13522 if test x"$GCC" != x"no"; then
13523   if test -n "$with_cross_host" &&
13524      test x"$with_cross_host" != x"no"; then
13525     toolexecdir='$(exec_prefix)/$(target_alias)'
13526     toolexeclibdir='$(toolexecdir)/lib'
13527   else
13528     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
13529     toolexeclibdir='$(libdir)'
13530   fi
13531   multi_os_directory=`$CC -print-multi-os-directory`
13532   case $multi_os_directory in
13533     .) ;; # Avoid trailing /.
13534     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
13535   esac
13536
13537
13538 fi
13539
13540 if test "${multilib}" = "yes"; then
13541   multilib_arg="--enable-multilib"
13542 else
13543   multilib_arg=
13544 fi
13545
13546 ac_config_commands="$ac_config_commands include"
13547
13548 ac_config_commands="$ac_config_commands src"
13549
13550
13551 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
13552
13553
13554 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
13555
13556
13557 cat >confcache <<\_ACEOF
13558 # This file is a shell script that caches the results of configure
13559 # tests run on this system so they can be shared between configure
13560 # scripts and configure runs, see configure's option --config-cache.
13561 # It is not useful on other systems.  If it contains results you don't
13562 # want to keep, you may remove or edit it.
13563 #
13564 # config.status only pays attention to the cache file if you give it
13565 # the --recheck option to rerun configure.
13566 #
13567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13569 # following values.
13570
13571 _ACEOF
13572
13573 # The following way of writing the cache mishandles newlines in values,
13574 # but we know of no workaround that is simple, portable, and efficient.
13575 # So, we kill variables containing newlines.
13576 # Ultrix sh set writes to stderr and can't be redirected directly,
13577 # and sets the high bit in the cache file unless we assign to the vars.
13578 (
13579   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13580     eval ac_val=\$$ac_var
13581     case $ac_val in #(
13582     *${as_nl}*)
13583       case $ac_var in #(
13584       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13586       esac
13587       case $ac_var in #(
13588       _ | IFS | as_nl) ;; #(
13589       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13590       *) { eval $ac_var=; unset $ac_var;} ;;
13591       esac ;;
13592     esac
13593   done
13594
13595   (set) 2>&1 |
13596     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13597     *${as_nl}ac_space=\ *)
13598       # `set' does not quote correctly, so add quotes: double-quote
13599       # substitution turns \\\\ into \\, and sed turns \\ into \.
13600       sed -n \
13601         "s/'/'\\\\''/g;
13602           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13603       ;; #(
13604     *)
13605       # `set' quotes correctly as required by POSIX, so do not add quotes.
13606       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13607       ;;
13608     esac |
13609     sort
13610 ) |
13611   sed '
13612      /^ac_cv_env_/b end
13613      t clear
13614      :clear
13615      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13616      t end
13617      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13618      :end' >>confcache
13619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13620   if test -w "$cache_file"; then
13621     if test "x$cache_file" != "x/dev/null"; then
13622       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13623 $as_echo "$as_me: updating cache $cache_file" >&6;}
13624       if test ! -f "$cache_file" || test -h "$cache_file"; then
13625         cat confcache >"$cache_file"
13626       else
13627         case $cache_file in #(
13628         */* | ?:*)
13629           mv -f confcache "$cache_file"$$ &&
13630           mv -f "$cache_file"$$ "$cache_file" ;; #(
13631         *)
13632           mv -f confcache "$cache_file" ;;
13633         esac
13634       fi
13635     fi
13636   else
13637     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13639   fi
13640 fi
13641 rm -f confcache
13642
13643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13644 # Let make expand exec_prefix.
13645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13646
13647 DEFS=-DHAVE_CONFIG_H
13648
13649 ac_libobjs=
13650 ac_ltlibobjs=
13651 U=
13652 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13653   # 1. Remove the extension, and $U if already installed.
13654   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13655   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13656   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13657   #    will be set to the directory where LIBOBJS objects are built.
13658   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13659   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13660 done
13661 LIBOBJS=$ac_libobjs
13662
13663 LTLIBOBJS=$ac_ltlibobjs
13664
13665
13666  if test -n "$EXEEXT"; then
13667   am__EXEEXT_TRUE=
13668   am__EXEEXT_FALSE='#'
13669 else
13670   am__EXEEXT_TRUE='#'
13671   am__EXEEXT_FALSE=
13672 fi
13673
13674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13675   as_fn_error $? "conditional \"AMDEP\" was never defined.
13676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13677 fi
13678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13679   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13681 fi
13682 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
13683   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
13684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13685 fi
13686 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13687   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13689 fi
13690 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
13691   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
13692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13693 fi
13694 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
13695   as_fn_error $? "conditional \"MIPS\" was never defined.
13696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13697 fi
13698 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
13699   as_fn_error $? "conditional \"BFIN\" was never defined.
13700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13701 fi
13702 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
13703   as_fn_error $? "conditional \"SPARC\" was never defined.
13704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13705 fi
13706 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
13707   as_fn_error $? "conditional \"X86\" was never defined.
13708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13709 fi
13710 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
13711   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
13712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13713 fi
13714 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
13715   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
13716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13717 fi
13718 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
13719   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
13720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13721 fi
13722 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
13723   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
13724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13725 fi
13726 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
13727   as_fn_error $? "conditional \"ALPHA\" was never defined.
13728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13729 fi
13730 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
13731   as_fn_error $? "conditional \"IA64\" was never defined.
13732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13733 fi
13734 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
13735   as_fn_error $? "conditional \"M32R\" was never defined.
13736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13737 fi
13738 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
13739   as_fn_error $? "conditional \"M68K\" was never defined.
13740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13741 fi
13742 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
13743   as_fn_error $? "conditional \"MOXIE\" was never defined.
13744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13745 fi
13746 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
13747   as_fn_error $? "conditional \"POWERPC\" was never defined.
13748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13749 fi
13750 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
13751   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
13752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13753 fi
13754 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
13755   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
13756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13757 fi
13758 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
13759   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
13760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13761 fi
13762 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
13763   as_fn_error $? "conditional \"ARM\" was never defined.
13764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13765 fi
13766 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
13767   as_fn_error $? "conditional \"AVR32\" was never defined.
13768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13769 fi
13770 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
13771   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
13772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13773 fi
13774 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
13775   as_fn_error $? "conditional \"FRV\" was never defined.
13776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13777 fi
13778 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
13779   as_fn_error $? "conditional \"S390\" was never defined.
13780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13781 fi
13782 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
13783   as_fn_error $? "conditional \"X86_64\" was never defined.
13784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13785 fi
13786 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
13787   as_fn_error $? "conditional \"SH\" was never defined.
13788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13789 fi
13790 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
13791   as_fn_error $? "conditional \"SH64\" was never defined.
13792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13793 fi
13794 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
13795   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
13796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13797 fi
13798 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
13799   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
13800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13801 fi
13802 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
13803   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
13804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13805 fi
13806
13807 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
13808   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
13809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13810 fi
13811 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
13812   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
13813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13814 fi
13815
13816 : "${CONFIG_STATUS=./config.status}"
13817 ac_write_fail=0
13818 ac_clean_files_save=$ac_clean_files
13819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13822 as_write_fail=0
13823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13824 #! $SHELL
13825 # Generated by $as_me.
13826 # Run this file to recreate the current configuration.
13827 # Compiler output produced by configure, useful for debugging
13828 # configure, is in config.log if it exists.
13829
13830 debug=false
13831 ac_cs_recheck=false
13832 ac_cs_silent=false
13833
13834 SHELL=\${CONFIG_SHELL-$SHELL}
13835 export SHELL
13836 _ASEOF
13837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13838 ## -------------------- ##
13839 ## M4sh Initialization. ##
13840 ## -------------------- ##
13841
13842 # Be more Bourne compatible
13843 DUALCASE=1; export DUALCASE # for MKS sh
13844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13845   emulate sh
13846   NULLCMD=:
13847   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13848   # is contrary to our usage.  Disable this feature.
13849   alias -g '${1+"$@"}'='"$@"'
13850   setopt NO_GLOB_SUBST
13851 else
13852   case `(set -o) 2>/dev/null` in #(
13853   *posix*) :
13854     set -o posix ;; #(
13855   *) :
13856      ;;
13857 esac
13858 fi
13859
13860
13861 as_nl='
13862 '
13863 export as_nl
13864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13868 # Prefer a ksh shell builtin over an external printf program on Solaris,
13869 # but without wasting forks for bash or zsh.
13870 if test -z "$BASH_VERSION$ZSH_VERSION" \
13871     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13872   as_echo='print -r --'
13873   as_echo_n='print -rn --'
13874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13875   as_echo='printf %s\n'
13876   as_echo_n='printf %s'
13877 else
13878   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13879     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13880     as_echo_n='/usr/ucb/echo -n'
13881   else
13882     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13883     as_echo_n_body='eval
13884       arg=$1;
13885       case $arg in #(
13886       *"$as_nl"*)
13887         expr "X$arg" : "X\\(.*\\)$as_nl";
13888         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13889       esac;
13890       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13891     '
13892     export as_echo_n_body
13893     as_echo_n='sh -c $as_echo_n_body as_echo'
13894   fi
13895   export as_echo_body
13896   as_echo='sh -c $as_echo_body as_echo'
13897 fi
13898
13899 # The user is always right.
13900 if test "${PATH_SEPARATOR+set}" != set; then
13901   PATH_SEPARATOR=:
13902   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13903     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13904       PATH_SEPARATOR=';'
13905   }
13906 fi
13907
13908
13909 # IFS
13910 # We need space, tab and new line, in precisely that order.  Quoting is
13911 # there to prevent editors from complaining about space-tab.
13912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13913 # splitting by setting IFS to empty value.)
13914 IFS=" ""        $as_nl"
13915
13916 # Find who we are.  Look in the path if we contain no directory separator.
13917 as_myself=
13918 case $0 in #((
13919   *[\\/]* ) as_myself=$0 ;;
13920   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13921 for as_dir in $PATH
13922 do
13923   IFS=$as_save_IFS
13924   test -z "$as_dir" && as_dir=.
13925     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13926   done
13927 IFS=$as_save_IFS
13928
13929      ;;
13930 esac
13931 # We did not find ourselves, most probably we were run as `sh COMMAND'
13932 # in which case we are not to be found in the path.
13933 if test "x$as_myself" = x; then
13934   as_myself=$0
13935 fi
13936 if test ! -f "$as_myself"; then
13937   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13938   exit 1
13939 fi
13940
13941 # Unset variables that we do not need and which cause bugs (e.g. in
13942 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13943 # suppresses any "Segmentation fault" message there.  '((' could
13944 # trigger a bug in pdksh 5.2.14.
13945 for as_var in BASH_ENV ENV MAIL MAILPATH
13946 do eval test x\${$as_var+set} = xset \
13947   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13948 done
13949 PS1='$ '
13950 PS2='> '
13951 PS4='+ '
13952
13953 # NLS nuisances.
13954 LC_ALL=C
13955 export LC_ALL
13956 LANGUAGE=C
13957 export LANGUAGE
13958
13959 # CDPATH.
13960 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13961
13962
13963 # as_fn_error STATUS ERROR [LINENO LOG_FD]
13964 # ----------------------------------------
13965 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13966 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13967 # script with STATUS, using 1 if that was 0.
13968 as_fn_error ()
13969 {
13970   as_status=$1; test $as_status -eq 0 && as_status=1
13971   if test "$4"; then
13972     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13973     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13974   fi
13975   $as_echo "$as_me: error: $2" >&2
13976   as_fn_exit $as_status
13977 } # as_fn_error
13978
13979
13980 # as_fn_set_status STATUS
13981 # -----------------------
13982 # Set $? to STATUS, without forking.
13983 as_fn_set_status ()
13984 {
13985   return $1
13986 } # as_fn_set_status
13987
13988 # as_fn_exit STATUS
13989 # -----------------
13990 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13991 as_fn_exit ()
13992 {
13993   set +e
13994   as_fn_set_status $1
13995   exit $1
13996 } # as_fn_exit
13997
13998 # as_fn_unset VAR
13999 # ---------------
14000 # Portably unset VAR.
14001 as_fn_unset ()
14002 {
14003   { eval $1=; unset $1;}
14004 }
14005 as_unset=as_fn_unset
14006 # as_fn_append VAR VALUE
14007 # ----------------------
14008 # Append the text in VALUE to the end of the definition contained in VAR. Take
14009 # advantage of any shell optimizations that allow amortized linear growth over
14010 # repeated appends, instead of the typical quadratic growth present in naive
14011 # implementations.
14012 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14013   eval 'as_fn_append ()
14014   {
14015     eval $1+=\$2
14016   }'
14017 else
14018   as_fn_append ()
14019   {
14020     eval $1=\$$1\$2
14021   }
14022 fi # as_fn_append
14023
14024 # as_fn_arith ARG...
14025 # ------------------
14026 # Perform arithmetic evaluation on the ARGs, and store the result in the
14027 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14028 # must be portable across $(()) and expr.
14029 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14030   eval 'as_fn_arith ()
14031   {
14032     as_val=$(( $* ))
14033   }'
14034 else
14035   as_fn_arith ()
14036   {
14037     as_val=`expr "$@" || test $? -eq 1`
14038   }
14039 fi # as_fn_arith
14040
14041
14042 if expr a : '\(a\)' >/dev/null 2>&1 &&
14043    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14044   as_expr=expr
14045 else
14046   as_expr=false
14047 fi
14048
14049 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14050   as_basename=basename
14051 else
14052   as_basename=false
14053 fi
14054
14055 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14056   as_dirname=dirname
14057 else
14058   as_dirname=false
14059 fi
14060
14061 as_me=`$as_basename -- "$0" ||
14062 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14063          X"$0" : 'X\(//\)$' \| \
14064          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14065 $as_echo X/"$0" |
14066     sed '/^.*\/\([^/][^/]*\)\/*$/{
14067             s//\1/
14068             q
14069           }
14070           /^X\/\(\/\/\)$/{
14071             s//\1/
14072             q
14073           }
14074           /^X\/\(\/\).*/{
14075             s//\1/
14076             q
14077           }
14078           s/.*/./; q'`
14079
14080 # Avoid depending upon Character Ranges.
14081 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14082 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14083 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14084 as_cr_digits='0123456789'
14085 as_cr_alnum=$as_cr_Letters$as_cr_digits
14086
14087 ECHO_C= ECHO_N= ECHO_T=
14088 case `echo -n x` in #(((((
14089 -n*)
14090   case `echo 'xy\c'` in
14091   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14092   xy)  ECHO_C='\c';;
14093   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14094        ECHO_T=' ';;
14095   esac;;
14096 *)
14097   ECHO_N='-n';;
14098 esac
14099
14100 rm -f conf$$ conf$$.exe conf$$.file
14101 if test -d conf$$.dir; then
14102   rm -f conf$$.dir/conf$$.file
14103 else
14104   rm -f conf$$.dir
14105   mkdir conf$$.dir 2>/dev/null
14106 fi
14107 if (echo >conf$$.file) 2>/dev/null; then
14108   if ln -s conf$$.file conf$$ 2>/dev/null; then
14109     as_ln_s='ln -s'
14110     # ... but there are two gotchas:
14111     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14112     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14113     # In both cases, we have to default to `cp -p'.
14114     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14115       as_ln_s='cp -p'
14116   elif ln conf$$.file conf$$ 2>/dev/null; then
14117     as_ln_s=ln
14118   else
14119     as_ln_s='cp -p'
14120   fi
14121 else
14122   as_ln_s='cp -p'
14123 fi
14124 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14125 rmdir conf$$.dir 2>/dev/null
14126
14127
14128 # as_fn_mkdir_p
14129 # -------------
14130 # Create "$as_dir" as a directory, including parents if necessary.
14131 as_fn_mkdir_p ()
14132 {
14133
14134   case $as_dir in #(
14135   -*) as_dir=./$as_dir;;
14136   esac
14137   test -d "$as_dir" || eval $as_mkdir_p || {
14138     as_dirs=
14139     while :; do
14140       case $as_dir in #(
14141       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14142       *) as_qdir=$as_dir;;
14143       esac
14144       as_dirs="'$as_qdir' $as_dirs"
14145       as_dir=`$as_dirname -- "$as_dir" ||
14146 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14147          X"$as_dir" : 'X\(//\)[^/]' \| \
14148          X"$as_dir" : 'X\(//\)$' \| \
14149          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14150 $as_echo X"$as_dir" |
14151     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14152             s//\1/
14153             q
14154           }
14155           /^X\(\/\/\)[^/].*/{
14156             s//\1/
14157             q
14158           }
14159           /^X\(\/\/\)$/{
14160             s//\1/
14161             q
14162           }
14163           /^X\(\/\).*/{
14164             s//\1/
14165             q
14166           }
14167           s/.*/./; q'`
14168       test -d "$as_dir" && break
14169     done
14170     test -z "$as_dirs" || eval "mkdir $as_dirs"
14171   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14172
14173
14174 } # as_fn_mkdir_p
14175 if mkdir -p . 2>/dev/null; then
14176   as_mkdir_p='mkdir -p "$as_dir"'
14177 else
14178   test -d ./-p && rmdir ./-p
14179   as_mkdir_p=false
14180 fi
14181
14182 if test -x / >/dev/null 2>&1; then
14183   as_test_x='test -x'
14184 else
14185   if ls -dL / >/dev/null 2>&1; then
14186     as_ls_L_option=L
14187   else
14188     as_ls_L_option=
14189   fi
14190   as_test_x='
14191     eval sh -c '\''
14192       if test -d "$1"; then
14193         test -d "$1/.";
14194       else
14195         case $1 in #(
14196         -*)set "./$1";;
14197         esac;
14198         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14199         ???[sx]*):;;*)false;;esac;fi
14200     '\'' sh
14201   '
14202 fi
14203 as_executable_p=$as_test_x
14204
14205 # Sed expression to map a string onto a valid CPP name.
14206 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14207
14208 # Sed expression to map a string onto a valid variable name.
14209 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14210
14211
14212 exec 6>&1
14213 ## ----------------------------------- ##
14214 ## Main body of $CONFIG_STATUS script. ##
14215 ## ----------------------------------- ##
14216 _ASEOF
14217 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14218
14219 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14220 # Save the log message, to keep $0 and so on meaningful, and to
14221 # report actual input values of CONFIG_FILES etc. instead of their
14222 # values after options handling.
14223 ac_log="
14224 This file was extended by libffi $as_me 3.0.11, which was
14225 generated by GNU Autoconf 2.68.  Invocation command line was
14226
14227   CONFIG_FILES    = $CONFIG_FILES
14228   CONFIG_HEADERS  = $CONFIG_HEADERS
14229   CONFIG_LINKS    = $CONFIG_LINKS
14230   CONFIG_COMMANDS = $CONFIG_COMMANDS
14231   $ $0 $@
14232
14233 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14234 "
14235
14236 _ACEOF
14237
14238 case $ac_config_files in *"
14239 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14240 esac
14241
14242 case $ac_config_headers in *"
14243 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14244 esac
14245
14246
14247 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14248 # Files that config.status was made for.
14249 config_files="$ac_config_files"
14250 config_headers="$ac_config_headers"
14251 config_links="$ac_config_links"
14252 config_commands="$ac_config_commands"
14253
14254 _ACEOF
14255
14256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14257 ac_cs_usage="\
14258 \`$as_me' instantiates files and other configuration actions
14259 from templates according to the current configuration.  Unless the files
14260 and actions are specified as TAGs, all are instantiated by default.
14261
14262 Usage: $0 [OPTION]... [TAG]...
14263
14264   -h, --help       print this help, then exit
14265   -V, --version    print version number and configuration settings, then exit
14266       --config     print configuration, then exit
14267   -q, --quiet, --silent
14268                    do not print progress messages
14269   -d, --debug      don't remove temporary files
14270       --recheck    update $as_me by reconfiguring in the same conditions
14271       --file=FILE[:TEMPLATE]
14272                    instantiate the configuration file FILE
14273       --header=FILE[:TEMPLATE]
14274                    instantiate the configuration header FILE
14275
14276 Configuration files:
14277 $config_files
14278
14279 Configuration headers:
14280 $config_headers
14281
14282 Configuration links:
14283 $config_links
14284
14285 Configuration commands:
14286 $config_commands
14287
14288 Report bugs to <http://github.com/atgreen/libffi/issues>."
14289
14290 _ACEOF
14291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14292 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14293 ac_cs_version="\\
14294 libffi config.status 3.0.11
14295 configured by $0, generated by GNU Autoconf 2.68,
14296   with options \\"\$ac_cs_config\\"
14297
14298 Copyright (C) 2010 Free Software Foundation, Inc.
14299 This config.status script is free software; the Free Software Foundation
14300 gives unlimited permission to copy, distribute and modify it."
14301
14302 ac_pwd='$ac_pwd'
14303 srcdir='$srcdir'
14304 INSTALL='$INSTALL'
14305 MKDIR_P='$MKDIR_P'
14306 AWK='$AWK'
14307 test -n "\$AWK" || AWK=awk
14308 _ACEOF
14309
14310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14311 # The default lists apply if the user does not specify any file.
14312 ac_need_defaults=:
14313 while test $# != 0
14314 do
14315   case $1 in
14316   --*=?*)
14317     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14318     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14319     ac_shift=:
14320     ;;
14321   --*=)
14322     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14323     ac_optarg=
14324     ac_shift=:
14325     ;;
14326   *)
14327     ac_option=$1
14328     ac_optarg=$2
14329     ac_shift=shift
14330     ;;
14331   esac
14332
14333   case $ac_option in
14334   # Handling of the options.
14335   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14336     ac_cs_recheck=: ;;
14337   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14338     $as_echo "$ac_cs_version"; exit ;;
14339   --config | --confi | --conf | --con | --co | --c )
14340     $as_echo "$ac_cs_config"; exit ;;
14341   --debug | --debu | --deb | --de | --d | -d )
14342     debug=: ;;
14343   --file | --fil | --fi | --f )
14344     $ac_shift
14345     case $ac_optarg in
14346     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14347     '') as_fn_error $? "missing file argument" ;;
14348     esac
14349     as_fn_append CONFIG_FILES " '$ac_optarg'"
14350     ac_need_defaults=false;;
14351   --header | --heade | --head | --hea )
14352     $ac_shift
14353     case $ac_optarg in
14354     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14355     esac
14356     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14357     ac_need_defaults=false;;
14358   --he | --h)
14359     # Conflict between --help and --header
14360     as_fn_error $? "ambiguous option: \`$1'
14361 Try \`$0 --help' for more information.";;
14362   --help | --hel | -h )
14363     $as_echo "$ac_cs_usage"; exit ;;
14364   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14365   | -silent | --silent | --silen | --sile | --sil | --si | --s)
14366     ac_cs_silent=: ;;
14367
14368   # This is an error.
14369   -*) as_fn_error $? "unrecognized option: \`$1'
14370 Try \`$0 --help' for more information." ;;
14371
14372   *) as_fn_append ac_config_targets " $1"
14373      ac_need_defaults=false ;;
14374
14375   esac
14376   shift
14377 done
14378
14379 ac_configure_extra_args=
14380
14381 if $ac_cs_silent; then
14382   exec 6>/dev/null
14383   ac_configure_extra_args="$ac_configure_extra_args --silent"
14384 fi
14385
14386 _ACEOF
14387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14388 if \$ac_cs_recheck; then
14389   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14390   shift
14391   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14392   CONFIG_SHELL='$SHELL'
14393   export CONFIG_SHELL
14394   exec "\$@"
14395 fi
14396
14397 _ACEOF
14398 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14399 exec 5>>config.log
14400 {
14401   echo
14402   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14403 ## Running $as_me. ##
14404 _ASBOX
14405   $as_echo "$ac_log"
14406 } >&5
14407
14408 _ACEOF
14409 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410 #
14411 # INIT-COMMANDS
14412 #
14413 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14414
14415
14416 # The HP-UX ksh and POSIX shell print the target directory to stdout
14417 # if CDPATH is set.
14418 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14419
14420 sed_quote_subst='$sed_quote_subst'
14421 double_quote_subst='$double_quote_subst'
14422 delay_variable_subst='$delay_variable_subst'
14423 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14424 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14425 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14426 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14427 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14428 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14429 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14430 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14431 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14432 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14433 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14434 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14435 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14436 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14437 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14438 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14439 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14440 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14441 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14442 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14443 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14444 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14445 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14446 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14447 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14448 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14449 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14450 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14451 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14452 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14453 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14454 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14455 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14456 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14457 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14458 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14459 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14460 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14461 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14462 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14463 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14464 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14465 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14466 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14467 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14468 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14469 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14470 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14471 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14472 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14473 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14474 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14475 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14476 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14477 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14478 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14479 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"`'
14480 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14481 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14482 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14483 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14484 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14485 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14486 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14487 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14488 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14489 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14490 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14491 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14492 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14493 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14494 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14495 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14496 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14497 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14498 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14499 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14500 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14501 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14502 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14503 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14504 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14505 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14506 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14507 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14508 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14509 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14510 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14511 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14512 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14513 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14514 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14515 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14516 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14517 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14518 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14519 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14520 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14521 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14522 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14523 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14524 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14525 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14526 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14527 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14528 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14529 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14530 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14531 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14532 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14533 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14534 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14535 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14536 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14537 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14538 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14539 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14540 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14541 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14542 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14543 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14544 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14545 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14546 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14547 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14548 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14549 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14550 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14551 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14552 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14553
14554 LTCC='$LTCC'
14555 LTCFLAGS='$LTCFLAGS'
14556 compiler='$compiler_DEFAULT'
14557
14558 # A function that is used when there is no print builtin or printf.
14559 func_fallback_echo ()
14560 {
14561   eval 'cat <<_LTECHO_EOF
14562 \$1
14563 _LTECHO_EOF'
14564 }
14565
14566 # Quote evaled strings.
14567 for var in SHELL \
14568 ECHO \
14569 PATH_SEPARATOR \
14570 SED \
14571 GREP \
14572 EGREP \
14573 FGREP \
14574 LD \
14575 NM \
14576 LN_S \
14577 lt_SP2NL \
14578 lt_NL2SP \
14579 reload_flag \
14580 OBJDUMP \
14581 deplibs_check_method \
14582 file_magic_cmd \
14583 file_magic_glob \
14584 want_nocaseglob \
14585 DLLTOOL \
14586 sharedlib_from_linklib_cmd \
14587 AR \
14588 AR_FLAGS \
14589 archiver_list_spec \
14590 STRIP \
14591 RANLIB \
14592 CC \
14593 CFLAGS \
14594 compiler \
14595 lt_cv_sys_global_symbol_pipe \
14596 lt_cv_sys_global_symbol_to_cdecl \
14597 lt_cv_sys_global_symbol_to_c_name_address \
14598 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14599 nm_file_list_spec \
14600 lt_prog_compiler_no_builtin_flag \
14601 lt_prog_compiler_pic \
14602 lt_prog_compiler_wl \
14603 lt_prog_compiler_static \
14604 lt_cv_prog_compiler_c_o \
14605 need_locks \
14606 MANIFEST_TOOL \
14607 DSYMUTIL \
14608 NMEDIT \
14609 LIPO \
14610 OTOOL \
14611 OTOOL64 \
14612 shrext_cmds \
14613 export_dynamic_flag_spec \
14614 whole_archive_flag_spec \
14615 compiler_needs_object \
14616 with_gnu_ld \
14617 allow_undefined_flag \
14618 no_undefined_flag \
14619 hardcode_libdir_flag_spec \
14620 hardcode_libdir_separator \
14621 exclude_expsyms \
14622 include_expsyms \
14623 file_list_spec \
14624 variables_saved_for_relink \
14625 libname_spec \
14626 library_names_spec \
14627 soname_spec \
14628 install_override_mode \
14629 finish_eval \
14630 old_striplib \
14631 striplib; do
14632     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14633     *[\\\\\\\`\\"\\\$]*)
14634       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14635       ;;
14636     *)
14637       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14638       ;;
14639     esac
14640 done
14641
14642 # Double-quote double-evaled strings.
14643 for var in reload_cmds \
14644 old_postinstall_cmds \
14645 old_postuninstall_cmds \
14646 old_archive_cmds \
14647 extract_expsyms_cmds \
14648 old_archive_from_new_cmds \
14649 old_archive_from_expsyms_cmds \
14650 archive_cmds \
14651 archive_expsym_cmds \
14652 module_cmds \
14653 module_expsym_cmds \
14654 export_symbols_cmds \
14655 prelink_cmds \
14656 postlink_cmds \
14657 postinstall_cmds \
14658 postuninstall_cmds \
14659 finish_cmds \
14660 sys_lib_search_path_spec \
14661 sys_lib_dlsearch_path_spec; do
14662     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14663     *[\\\\\\\`\\"\\\$]*)
14664       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14665       ;;
14666     *)
14667       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14668       ;;
14669     esac
14670 done
14671
14672 ac_aux_dir='$ac_aux_dir'
14673 xsi_shell='$xsi_shell'
14674 lt_shell_append='$lt_shell_append'
14675
14676 # See if we are running on zsh, and set the options which allow our
14677 # commands through without removal of \ escapes INIT.
14678 if test -n "\${ZSH_VERSION+set}" ; then
14679    setopt NO_GLOB_SUBST
14680 fi
14681
14682
14683     PACKAGE='$PACKAGE'
14684     VERSION='$VERSION'
14685     TIMESTAMP='$TIMESTAMP'
14686     RM='$RM'
14687     ofile='$ofile'
14688
14689
14690
14691 TARGETDIR="$TARGETDIR"
14692
14693 _ACEOF
14694
14695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14696
14697 # Handling of arguments.
14698 for ac_config_target in $ac_config_targets
14699 do
14700   case $ac_config_target in
14701     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
14702     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14703     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14704     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
14705     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
14706     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
14707     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
14708     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
14709     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14710     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
14711     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14712     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
14713
14714   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14715   esac
14716 done
14717
14718
14719 # If the user did not use the arguments to specify the items to instantiate,
14720 # then the envvar interface is used.  Set only those that are not.
14721 # We use the long form for the default assignment because of an extremely
14722 # bizarre bug on SunOS 4.1.3.
14723 if $ac_need_defaults; then
14724   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14725   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14726   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
14727   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14728 fi
14729
14730 # Have a temporary directory for convenience.  Make it in the build tree
14731 # simply because there is no reason against having it here, and in addition,
14732 # creating and moving files from /tmp can sometimes cause problems.
14733 # Hook for its removal unless debugging.
14734 # Note that there is a small window in which the directory will not be cleaned:
14735 # after its creation but before its name has been assigned to `$tmp'.
14736 $debug ||
14737 {
14738   tmp= ac_tmp=
14739   trap 'exit_status=$?
14740   : "${ac_tmp:=$tmp}"
14741   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14742 ' 0
14743   trap 'as_fn_exit 1' 1 2 13 15
14744 }
14745 # Create a (secure) tmp directory for tmp files.
14746
14747 {
14748   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14749   test -d "$tmp"
14750 }  ||
14751 {
14752   tmp=./conf$$-$RANDOM
14753   (umask 077 && mkdir "$tmp")
14754 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14755 ac_tmp=$tmp
14756
14757 # Set up the scripts for CONFIG_FILES section.
14758 # No need to generate them if there are no CONFIG_FILES.
14759 # This happens for instance with `./config.status config.h'.
14760 if test -n "$CONFIG_FILES"; then
14761
14762
14763 ac_cr=`echo X | tr X '\015'`
14764 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14765 # But we know of no other shell where ac_cr would be empty at this
14766 # point, so we can use a bashism as a fallback.
14767 if test "x$ac_cr" = x; then
14768   eval ac_cr=\$\'\\r\'
14769 fi
14770 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14771 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14772   ac_cs_awk_cr='\\r'
14773 else
14774   ac_cs_awk_cr=$ac_cr
14775 fi
14776
14777 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14778 _ACEOF
14779
14780
14781 {
14782   echo "cat >conf$$subs.awk <<_ACEOF" &&
14783   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14784   echo "_ACEOF"
14785 } >conf$$subs.sh ||
14786   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14787 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14788 ac_delim='%!_!# '
14789 for ac_last_try in false false false false false :; do
14790   . ./conf$$subs.sh ||
14791     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14792
14793   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14794   if test $ac_delim_n = $ac_delim_num; then
14795     break
14796   elif $ac_last_try; then
14797     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14798   else
14799     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14800   fi
14801 done
14802 rm -f conf$$subs.sh
14803
14804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14805 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14806 _ACEOF
14807 sed -n '
14808 h
14809 s/^/S["/; s/!.*/"]=/
14810 p
14811 g
14812 s/^[^!]*!//
14813 :repl
14814 t repl
14815 s/'"$ac_delim"'$//
14816 t delim
14817 :nl
14818 h
14819 s/\(.\{148\}\)..*/\1/
14820 t more1
14821 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14822 p
14823 n
14824 b repl
14825 :more1
14826 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14827 p
14828 g
14829 s/.\{148\}//
14830 t nl
14831 :delim
14832 h
14833 s/\(.\{148\}\)..*/\1/
14834 t more2
14835 s/["\\]/\\&/g; s/^/"/; s/$/"/
14836 p
14837 b
14838 :more2
14839 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14840 p
14841 g
14842 s/.\{148\}//
14843 t delim
14844 ' <conf$$subs.awk | sed '
14845 /^[^""]/{
14846   N
14847   s/\n//
14848 }
14849 ' >>$CONFIG_STATUS || ac_write_fail=1
14850 rm -f conf$$subs.awk
14851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14852 _ACAWK
14853 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14854   for (key in S) S_is_set[key] = 1
14855   FS = "\a"
14856
14857 }
14858 {
14859   line = $ 0
14860   nfields = split(line, field, "@")
14861   substed = 0
14862   len = length(field[1])
14863   for (i = 2; i < nfields; i++) {
14864     key = field[i]
14865     keylen = length(key)
14866     if (S_is_set[key]) {
14867       value = S[key]
14868       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14869       len += length(value) + length(field[++i])
14870       substed = 1
14871     } else
14872       len += 1 + keylen
14873   }
14874
14875   print line
14876 }
14877
14878 _ACAWK
14879 _ACEOF
14880 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14881 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14882   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14883 else
14884   cat
14885 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14886   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14887 _ACEOF
14888
14889 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14890 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14891 # trailing colons and then remove the whole line if VPATH becomes empty
14892 # (actually we leave an empty line to preserve line numbers).
14893 if test "x$srcdir" = x.; then
14894   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
14895 h
14896 s///
14897 s/^/:/
14898 s/[      ]*$/:/
14899 s/:\$(srcdir):/:/g
14900 s/:\${srcdir}:/:/g
14901 s/:@srcdir@:/:/g
14902 s/^:*//
14903 s/:*$//
14904 x
14905 s/\(=[   ]*\).*/\1/
14906 G
14907 s/\n//
14908 s/^[^=]*=[       ]*$//
14909 }'
14910 fi
14911
14912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14913 fi # test -n "$CONFIG_FILES"
14914
14915 # Set up the scripts for CONFIG_HEADERS section.
14916 # No need to generate them if there are no CONFIG_HEADERS.
14917 # This happens for instance with `./config.status Makefile'.
14918 if test -n "$CONFIG_HEADERS"; then
14919 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14920 BEGIN {
14921 _ACEOF
14922
14923 # Transform confdefs.h into an awk script `defines.awk', embedded as
14924 # here-document in config.status, that substitutes the proper values into
14925 # config.h.in to produce config.h.
14926
14927 # Create a delimiter string that does not exist in confdefs.h, to ease
14928 # handling of long lines.
14929 ac_delim='%!_!# '
14930 for ac_last_try in false false :; do
14931   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14932   if test -z "$ac_tt"; then
14933     break
14934   elif $ac_last_try; then
14935     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14936   else
14937     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14938   fi
14939 done
14940
14941 # For the awk script, D is an array of macro values keyed by name,
14942 # likewise P contains macro parameters if any.  Preserve backslash
14943 # newline sequences.
14944
14945 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14946 sed -n '
14947 s/.\{148\}/&'"$ac_delim"'/g
14948 t rset
14949 :rset
14950 s/^[     ]*#[    ]*define[       ][      ]*/ /
14951 t def
14952 d
14953 :def
14954 s/\\$//
14955 t bsnl
14956 s/["\\]/\\&/g
14957 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14958 D["\1"]=" \3"/p
14959 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
14960 d
14961 :bsnl
14962 s/["\\]/\\&/g
14963 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
14964 D["\1"]=" \3\\\\\\n"\\/p
14965 t cont
14966 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14967 t cont
14968 d
14969 :cont
14970 n
14971 s/.\{148\}/&'"$ac_delim"'/g
14972 t clear
14973 :clear
14974 s/\\$//
14975 t bsnlc
14976 s/["\\]/\\&/g; s/^/"/; s/$/"/p
14977 d
14978 :bsnlc
14979 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14980 b cont
14981 ' <confdefs.h | sed '
14982 s/'"$ac_delim"'/"\\\
14983 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14984
14985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14986   for (key in D) D_is_set[key] = 1
14987   FS = "\a"
14988 }
14989 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14990   line = \$ 0
14991   split(line, arg, " ")
14992   if (arg[1] == "#") {
14993     defundef = arg[2]
14994     mac1 = arg[3]
14995   } else {
14996     defundef = substr(arg[1], 2)
14997     mac1 = arg[2]
14998   }
14999   split(mac1, mac2, "(") #)
15000   macro = mac2[1]
15001   prefix = substr(line, 1, index(line, defundef) - 1)
15002   if (D_is_set[macro]) {
15003     # Preserve the white space surrounding the "#".
15004     print prefix "define", macro P[macro] D[macro]
15005     next
15006   } else {
15007     # Replace #undef with comments.  This is necessary, for example,
15008     # in the case of _POSIX_SOURCE, which is predefined and required
15009     # on some systems where configure will not decide to define it.
15010     if (defundef == "undef") {
15011       print "/*", prefix defundef, macro, "*/"
15012       next
15013     }
15014   }
15015 }
15016 { print }
15017 _ACAWK
15018 _ACEOF
15019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15020   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15021 fi # test -n "$CONFIG_HEADERS"
15022
15023
15024 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
15025 shift
15026 for ac_tag
15027 do
15028   case $ac_tag in
15029   :[FHLC]) ac_mode=$ac_tag; continue;;
15030   esac
15031   case $ac_mode$ac_tag in
15032   :[FHL]*:*);;
15033   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15034   :[FH]-) ac_tag=-:-;;
15035   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15036   esac
15037   ac_save_IFS=$IFS
15038   IFS=:
15039   set x $ac_tag
15040   IFS=$ac_save_IFS
15041   shift
15042   ac_file=$1
15043   shift
15044
15045   case $ac_mode in
15046   :L) ac_source=$1;;
15047   :[FH])
15048     ac_file_inputs=
15049     for ac_f
15050     do
15051       case $ac_f in
15052       -) ac_f="$ac_tmp/stdin";;
15053       *) # Look for the file first in the build tree, then in the source tree
15054          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15055          # because $ac_f cannot contain `:'.
15056          test -f "$ac_f" ||
15057            case $ac_f in
15058            [\\/$]*) false;;
15059            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15060            esac ||
15061            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15062       esac
15063       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15064       as_fn_append ac_file_inputs " '$ac_f'"
15065     done
15066
15067     # Let's still pretend it is `configure' which instantiates (i.e., don't
15068     # use $as_me), people would be surprised to read:
15069     #    /* config.h.  Generated by config.status.  */
15070     configure_input='Generated from '`
15071           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15072         `' by configure.'
15073     if test x"$ac_file" != x-; then
15074       configure_input="$ac_file.  $configure_input"
15075       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15076 $as_echo "$as_me: creating $ac_file" >&6;}
15077     fi
15078     # Neutralize special characters interpreted by sed in replacement strings.
15079     case $configure_input in #(
15080     *\&* | *\|* | *\\* )
15081        ac_sed_conf_input=`$as_echo "$configure_input" |
15082        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15083     *) ac_sed_conf_input=$configure_input;;
15084     esac
15085
15086     case $ac_tag in
15087     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15088       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15089     esac
15090     ;;
15091   esac
15092
15093   ac_dir=`$as_dirname -- "$ac_file" ||
15094 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15095          X"$ac_file" : 'X\(//\)[^/]' \| \
15096          X"$ac_file" : 'X\(//\)$' \| \
15097          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15098 $as_echo X"$ac_file" |
15099     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15100             s//\1/
15101             q
15102           }
15103           /^X\(\/\/\)[^/].*/{
15104             s//\1/
15105             q
15106           }
15107           /^X\(\/\/\)$/{
15108             s//\1/
15109             q
15110           }
15111           /^X\(\/\).*/{
15112             s//\1/
15113             q
15114           }
15115           s/.*/./; q'`
15116   as_dir="$ac_dir"; as_fn_mkdir_p
15117   ac_builddir=.
15118
15119 case "$ac_dir" in
15120 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15121 *)
15122   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15123   # A ".." for each directory in $ac_dir_suffix.
15124   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15125   case $ac_top_builddir_sub in
15126   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15127   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15128   esac ;;
15129 esac
15130 ac_abs_top_builddir=$ac_pwd
15131 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15132 # for backward compatibility:
15133 ac_top_builddir=$ac_top_build_prefix
15134
15135 case $srcdir in
15136   .)  # We are building in place.
15137     ac_srcdir=.
15138     ac_top_srcdir=$ac_top_builddir_sub
15139     ac_abs_top_srcdir=$ac_pwd ;;
15140   [\\/]* | ?:[\\/]* )  # Absolute name.
15141     ac_srcdir=$srcdir$ac_dir_suffix;
15142     ac_top_srcdir=$srcdir
15143     ac_abs_top_srcdir=$srcdir ;;
15144   *) # Relative name.
15145     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15146     ac_top_srcdir=$ac_top_build_prefix$srcdir
15147     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15148 esac
15149 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15150
15151
15152   case $ac_mode in
15153   :F)
15154   #
15155   # CONFIG_FILE
15156   #
15157
15158   case $INSTALL in
15159   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15160   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15161   esac
15162   ac_MKDIR_P=$MKDIR_P
15163   case $MKDIR_P in
15164   [\\/$]* | ?:[\\/]* ) ;;
15165   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15166   esac
15167 _ACEOF
15168
15169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15170 # If the template does not know about datarootdir, expand it.
15171 # FIXME: This hack should be removed a few years after 2.60.
15172 ac_datarootdir_hack=; ac_datarootdir_seen=
15173 ac_sed_dataroot='
15174 /datarootdir/ {
15175   p
15176   q
15177 }
15178 /@datadir@/p
15179 /@docdir@/p
15180 /@infodir@/p
15181 /@localedir@/p
15182 /@mandir@/p'
15183 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15184 *datarootdir*) ac_datarootdir_seen=yes;;
15185 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15186   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15187 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15188 _ACEOF
15189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15190   ac_datarootdir_hack='
15191   s&@datadir@&$datadir&g
15192   s&@docdir@&$docdir&g
15193   s&@infodir@&$infodir&g
15194   s&@localedir@&$localedir&g
15195   s&@mandir@&$mandir&g
15196   s&\\\${datarootdir}&$datarootdir&g' ;;
15197 esac
15198 _ACEOF
15199
15200 # Neutralize VPATH when `$srcdir' = `.'.
15201 # Shell code in configure.ac might set extrasub.
15202 # FIXME: do we really want to maintain this feature?
15203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15204 ac_sed_extra="$ac_vpsub
15205 $extrasub
15206 _ACEOF
15207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15208 :t
15209 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15210 s|@configure_input@|$ac_sed_conf_input|;t t
15211 s&@top_builddir@&$ac_top_builddir_sub&;t t
15212 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15213 s&@srcdir@&$ac_srcdir&;t t
15214 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15215 s&@top_srcdir@&$ac_top_srcdir&;t t
15216 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15217 s&@builddir@&$ac_builddir&;t t
15218 s&@abs_builddir@&$ac_abs_builddir&;t t
15219 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15220 s&@INSTALL@&$ac_INSTALL&;t t
15221 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15222 $ac_datarootdir_hack
15223 "
15224 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15225   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15226
15227 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15228   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15229   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
15230       "$ac_tmp/out"`; test -z "$ac_out"; } &&
15231   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15232 which seems to be undefined.  Please make sure it is defined" >&5
15233 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15234 which seems to be undefined.  Please make sure it is defined" >&2;}
15235
15236   rm -f "$ac_tmp/stdin"
15237   case $ac_file in
15238   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15239   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15240   esac \
15241   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15242  ;;
15243   :H)
15244   #
15245   # CONFIG_HEADER
15246   #
15247   if test x"$ac_file" != x-; then
15248     {
15249       $as_echo "/* $configure_input  */" \
15250       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15251     } >"$ac_tmp/config.h" \
15252       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15253     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15254       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15255 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15256     else
15257       rm -f "$ac_file"
15258       mv "$ac_tmp/config.h" "$ac_file" \
15259         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15260     fi
15261   else
15262     $as_echo "/* $configure_input  */" \
15263       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15264       || as_fn_error $? "could not create -" "$LINENO" 5
15265   fi
15266 # Compute "$ac_file"'s index in $config_headers.
15267 _am_arg="$ac_file"
15268 _am_stamp_count=1
15269 for _am_header in $config_headers :; do
15270   case $_am_header in
15271     $_am_arg | $_am_arg:* )
15272       break ;;
15273     * )
15274       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15275   esac
15276 done
15277 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15278 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15279          X"$_am_arg" : 'X\(//\)[^/]' \| \
15280          X"$_am_arg" : 'X\(//\)$' \| \
15281          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15282 $as_echo X"$_am_arg" |
15283     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15284             s//\1/
15285             q
15286           }
15287           /^X\(\/\/\)[^/].*/{
15288             s//\1/
15289             q
15290           }
15291           /^X\(\/\/\)$/{
15292             s//\1/
15293             q
15294           }
15295           /^X\(\/\).*/{
15296             s//\1/
15297             q
15298           }
15299           s/.*/./; q'`/stamp-h$_am_stamp_count
15300  ;;
15301   :L)
15302   #
15303   # CONFIG_LINK
15304   #
15305
15306   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
15307     :
15308   else
15309     # Prefer the file from the source tree if names are identical.
15310     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
15311       ac_source=$srcdir/$ac_source
15312     fi
15313
15314     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
15315 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
15316
15317     if test ! -r "$ac_source"; then
15318       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
15319     fi
15320     rm -f "$ac_file"
15321
15322     # Try a relative symlink, then a hard link, then a copy.
15323     case $ac_source in
15324     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
15325         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
15326     esac
15327     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
15328       ln "$ac_source" "$ac_file" 2>/dev/null ||
15329       cp -p "$ac_source" "$ac_file" ||
15330       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
15331   fi
15332  ;;
15333   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15334 $as_echo "$as_me: executing $ac_file commands" >&6;}
15335  ;;
15336   esac
15337
15338
15339   case $ac_file$ac_mode in
15340     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15341   # Autoconf 2.62 quotes --file arguments for eval, but not when files
15342   # are listed without --file.  Let's play safe and only enable the eval
15343   # if we detect the quoting.
15344   case $CONFIG_FILES in
15345   *\'*) eval set x "$CONFIG_FILES" ;;
15346   *)   set x $CONFIG_FILES ;;
15347   esac
15348   shift
15349   for mf
15350   do
15351     # Strip MF so we end up with the name of the file.
15352     mf=`echo "$mf" | sed -e 's/:.*$//'`
15353     # Check whether this is an Automake generated Makefile or not.
15354     # We used to match only the files named `Makefile.in', but
15355     # some people rename them; so instead we look at the file content.
15356     # Grep'ing the first line is not enough: some people post-process
15357     # each Makefile.in and add a new line on top of each file to say so.
15358     # Grep'ing the whole file is not good either: AIX grep has a line
15359     # limit of 2048, but all sed's we know have understand at least 4000.
15360     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15361       dirpart=`$as_dirname -- "$mf" ||
15362 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15363          X"$mf" : 'X\(//\)[^/]' \| \
15364          X"$mf" : 'X\(//\)$' \| \
15365          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15366 $as_echo X"$mf" |
15367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15368             s//\1/
15369             q
15370           }
15371           /^X\(\/\/\)[^/].*/{
15372             s//\1/
15373             q
15374           }
15375           /^X\(\/\/\)$/{
15376             s//\1/
15377             q
15378           }
15379           /^X\(\/\).*/{
15380             s//\1/
15381             q
15382           }
15383           s/.*/./; q'`
15384     else
15385       continue
15386     fi
15387     # Extract the definition of DEPDIR, am__include, and am__quote
15388     # from the Makefile without running `make'.
15389     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15390     test -z "$DEPDIR" && continue
15391     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15392     test -z "am__include" && continue
15393     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15394     # When using ansi2knr, U may be empty or an underscore; expand it
15395     U=`sed -n 's/^U = //p' < "$mf"`
15396     # Find all dependency output files, they are included files with
15397     # $(DEPDIR) in their names.  We invoke sed twice because it is the
15398     # simplest approach to changing $(DEPDIR) to its actual value in the
15399     # expansion.
15400     for file in `sed -n "
15401       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15402          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15403       # Make sure the directory exists.
15404       test -f "$dirpart/$file" && continue
15405       fdir=`$as_dirname -- "$file" ||
15406 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15407          X"$file" : 'X\(//\)[^/]' \| \
15408          X"$file" : 'X\(//\)$' \| \
15409          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15410 $as_echo X"$file" |
15411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15412             s//\1/
15413             q
15414           }
15415           /^X\(\/\/\)[^/].*/{
15416             s//\1/
15417             q
15418           }
15419           /^X\(\/\/\)$/{
15420             s//\1/
15421             q
15422           }
15423           /^X\(\/\).*/{
15424             s//\1/
15425             q
15426           }
15427           s/.*/./; q'`
15428       as_dir=$dirpart/$fdir; as_fn_mkdir_p
15429       # echo "creating $dirpart/$file"
15430       echo '# dummy' > "$dirpart/$file"
15431     done
15432   done
15433 }
15434  ;;
15435     "libtool":C)
15436
15437     # See if we are running on zsh, and set the options which allow our
15438     # commands through without removal of \ escapes.
15439     if test -n "${ZSH_VERSION+set}" ; then
15440       setopt NO_GLOB_SUBST
15441     fi
15442
15443     cfgfile="${ofile}T"
15444     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15445     $RM "$cfgfile"
15446
15447     cat <<_LT_EOF >> "$cfgfile"
15448 #! $SHELL
15449
15450 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15451 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15452 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15453 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15454 #
15455 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15456 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
15457 #                 Foundation, Inc.
15458 #   Written by Gordon Matzigkeit, 1996
15459 #
15460 #   This file is part of GNU Libtool.
15461 #
15462 # GNU Libtool is free software; you can redistribute it and/or
15463 # modify it under the terms of the GNU General Public License as
15464 # published by the Free Software Foundation; either version 2 of
15465 # the License, or (at your option) any later version.
15466 #
15467 # As a special exception to the GNU General Public License,
15468 # if you distribute this file as part of a program or library that
15469 # is built using GNU Libtool, you may include this file under the
15470 # same distribution terms that you use for the rest of that program.
15471 #
15472 # GNU Libtool is distributed in the hope that it will be useful,
15473 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15474 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15475 # GNU General Public License for more details.
15476 #
15477 # You should have received a copy of the GNU General Public License
15478 # along with GNU Libtool; see the file COPYING.  If not, a copy
15479 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15480 # obtained by writing to the Free Software Foundation, Inc.,
15481 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15482
15483
15484 # The names of the tagged configurations supported by this script.
15485 available_tags=""
15486
15487 # ### BEGIN LIBTOOL CONFIG
15488
15489 # Which release of libtool.m4 was used?
15490 macro_version=$macro_version
15491 macro_revision=$macro_revision
15492
15493 # Whether or not to build shared libraries.
15494 build_libtool_libs=$enable_shared
15495
15496 # Whether or not to build static libraries.
15497 build_old_libs=$enable_static
15498
15499 # What type of objects to build.
15500 pic_mode=$pic_mode
15501
15502 # Whether or not to optimize for fast installation.
15503 fast_install=$enable_fast_install
15504
15505 # Shell to use when invoking shell scripts.
15506 SHELL=$lt_SHELL
15507
15508 # An echo program that protects backslashes.
15509 ECHO=$lt_ECHO
15510
15511 # The PATH separator for the build system.
15512 PATH_SEPARATOR=$lt_PATH_SEPARATOR
15513
15514 # The host system.
15515 host_alias=$host_alias
15516 host=$host
15517 host_os=$host_os
15518
15519 # The build system.
15520 build_alias=$build_alias
15521 build=$build
15522 build_os=$build_os
15523
15524 # A sed program that does not truncate output.
15525 SED=$lt_SED
15526
15527 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15528 Xsed="\$SED -e 1s/^X//"
15529
15530 # A grep program that handles long lines.
15531 GREP=$lt_GREP
15532
15533 # An ERE matcher.
15534 EGREP=$lt_EGREP
15535
15536 # A literal string matcher.
15537 FGREP=$lt_FGREP
15538
15539 # A BSD- or MS-compatible name lister.
15540 NM=$lt_NM
15541
15542 # Whether we need soft or hard links.
15543 LN_S=$lt_LN_S
15544
15545 # What is the maximum length of a command?
15546 max_cmd_len=$max_cmd_len
15547
15548 # Object file suffix (normally "o").
15549 objext=$ac_objext
15550
15551 # Executable file suffix (normally "").
15552 exeext=$exeext
15553
15554 # whether the shell understands "unset".
15555 lt_unset=$lt_unset
15556
15557 # turn spaces into newlines.
15558 SP2NL=$lt_lt_SP2NL
15559
15560 # turn newlines into spaces.
15561 NL2SP=$lt_lt_NL2SP
15562
15563 # convert \$build file names to \$host format.
15564 to_host_file_cmd=$lt_cv_to_host_file_cmd
15565
15566 # convert \$build files to toolchain format.
15567 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15568
15569 # An object symbol dumper.
15570 OBJDUMP=$lt_OBJDUMP
15571
15572 # Method to check whether dependent libraries are shared objects.
15573 deplibs_check_method=$lt_deplibs_check_method
15574
15575 # Command to use when deplibs_check_method = "file_magic".
15576 file_magic_cmd=$lt_file_magic_cmd
15577
15578 # How to find potential files when deplibs_check_method = "file_magic".
15579 file_magic_glob=$lt_file_magic_glob
15580
15581 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15582 want_nocaseglob=$lt_want_nocaseglob
15583
15584 # DLL creation program.
15585 DLLTOOL=$lt_DLLTOOL
15586
15587 # Command to associate shared and link libraries.
15588 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15589
15590 # The archiver.
15591 AR=$lt_AR
15592
15593 # Flags to create an archive.
15594 AR_FLAGS=$lt_AR_FLAGS
15595
15596 # How to feed a file listing to the archiver.
15597 archiver_list_spec=$lt_archiver_list_spec
15598
15599 # A symbol stripping program.
15600 STRIP=$lt_STRIP
15601
15602 # Commands used to install an old-style archive.
15603 RANLIB=$lt_RANLIB
15604 old_postinstall_cmds=$lt_old_postinstall_cmds
15605 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15606
15607 # Whether to use a lock for old archive extraction.
15608 lock_old_archive_extraction=$lock_old_archive_extraction
15609
15610 # A C compiler.
15611 LTCC=$lt_CC
15612
15613 # LTCC compiler flags.
15614 LTCFLAGS=$lt_CFLAGS
15615
15616 # Take the output of nm and produce a listing of raw symbols and C names.
15617 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15618
15619 # Transform the output of nm in a proper C declaration.
15620 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15621
15622 # Transform the output of nm in a C name address pair.
15623 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15624
15625 # Transform the output of nm in a C name address pair when lib prefix is needed.
15626 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15627
15628 # Specify filename containing input files for \$NM.
15629 nm_file_list_spec=$lt_nm_file_list_spec
15630
15631 # The root where to search for dependent libraries,and in which our libraries should be installed.
15632 lt_sysroot=$lt_sysroot
15633
15634 # The name of the directory that contains temporary libtool files.
15635 objdir=$objdir
15636
15637 # Used to examine libraries when file_magic_cmd begins with "file".
15638 MAGIC_CMD=$MAGIC_CMD
15639
15640 # Must we lock files when doing compilation?
15641 need_locks=$lt_need_locks
15642
15643 # Manifest tool.
15644 MANIFEST_TOOL=$lt_MANIFEST_TOOL
15645
15646 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15647 DSYMUTIL=$lt_DSYMUTIL
15648
15649 # Tool to change global to local symbols on Mac OS X.
15650 NMEDIT=$lt_NMEDIT
15651
15652 # Tool to manipulate fat objects and archives on Mac OS X.
15653 LIPO=$lt_LIPO
15654
15655 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15656 OTOOL=$lt_OTOOL
15657
15658 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15659 OTOOL64=$lt_OTOOL64
15660
15661 # Old archive suffix (normally "a").
15662 libext=$libext
15663
15664 # Shared library suffix (normally ".so").
15665 shrext_cmds=$lt_shrext_cmds
15666
15667 # The commands to extract the exported symbol list from a shared archive.
15668 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15669
15670 # Variables whose values should be saved in libtool wrapper scripts and
15671 # restored at link time.
15672 variables_saved_for_relink=$lt_variables_saved_for_relink
15673
15674 # Do we need the "lib" prefix for modules?
15675 need_lib_prefix=$need_lib_prefix
15676
15677 # Do we need a version for libraries?
15678 need_version=$need_version
15679
15680 # Library versioning type.
15681 version_type=$version_type
15682
15683 # Shared library runtime path variable.
15684 runpath_var=$runpath_var
15685
15686 # Shared library path variable.
15687 shlibpath_var=$shlibpath_var
15688
15689 # Is shlibpath searched before the hard-coded library search path?
15690 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15691
15692 # Format of library name prefix.
15693 libname_spec=$lt_libname_spec
15694
15695 # List of archive names.  First name is the real one, the rest are links.
15696 # The last name is the one that the linker finds with -lNAME
15697 library_names_spec=$lt_library_names_spec
15698
15699 # The coded name of the library, if different from the real name.
15700 soname_spec=$lt_soname_spec
15701
15702 # Permission mode override for installation of shared libraries.
15703 install_override_mode=$lt_install_override_mode
15704
15705 # Command to use after installation of a shared archive.
15706 postinstall_cmds=$lt_postinstall_cmds
15707
15708 # Command to use after uninstallation of a shared archive.
15709 postuninstall_cmds=$lt_postuninstall_cmds
15710
15711 # Commands used to finish a libtool library installation in a directory.
15712 finish_cmds=$lt_finish_cmds
15713
15714 # As "finish_cmds", except a single script fragment to be evaled but
15715 # not shown.
15716 finish_eval=$lt_finish_eval
15717
15718 # Whether we should hardcode library paths into libraries.
15719 hardcode_into_libs=$hardcode_into_libs
15720
15721 # Compile-time system search path for libraries.
15722 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15723
15724 # Run-time system search path for libraries.
15725 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15726
15727 # Whether dlopen is supported.
15728 dlopen_support=$enable_dlopen
15729
15730 # Whether dlopen of programs is supported.
15731 dlopen_self=$enable_dlopen_self
15732
15733 # Whether dlopen of statically linked programs is supported.
15734 dlopen_self_static=$enable_dlopen_self_static
15735
15736 # Commands to strip libraries.
15737 old_striplib=$lt_old_striplib
15738 striplib=$lt_striplib
15739
15740
15741 # The linker used to build libraries.
15742 LD=$lt_LD
15743
15744 # How to create reloadable object files.
15745 reload_flag=$lt_reload_flag
15746 reload_cmds=$lt_reload_cmds
15747
15748 # Commands used to build an old-style archive.
15749 old_archive_cmds=$lt_old_archive_cmds
15750
15751 # A language specific compiler.
15752 CC=$lt_compiler
15753
15754 # Is the compiler the GNU compiler?
15755 with_gcc=$GCC
15756
15757 # Compiler flag to turn off builtin functions.
15758 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15759
15760 # Additional compiler flags for building library objects.
15761 pic_flag=$lt_lt_prog_compiler_pic
15762
15763 # How to pass a linker flag through the compiler.
15764 wl=$lt_lt_prog_compiler_wl
15765
15766 # Compiler flag to prevent dynamic linking.
15767 link_static_flag=$lt_lt_prog_compiler_static
15768
15769 # Does compiler simultaneously support -c and -o options?
15770 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15771
15772 # Whether or not to add -lc for building shared libraries.
15773 build_libtool_need_lc=$archive_cmds_need_lc
15774
15775 # Whether or not to disallow shared libs when runtime libs are static.
15776 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15777
15778 # Compiler flag to allow reflexive dlopens.
15779 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15780
15781 # Compiler flag to generate shared objects directly from archives.
15782 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15783
15784 # Whether the compiler copes with passing no objects directly.
15785 compiler_needs_object=$lt_compiler_needs_object
15786
15787 # Create an old-style archive from a shared archive.
15788 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15789
15790 # Create a temporary old-style archive to link instead of a shared archive.
15791 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15792
15793 # Commands used to build a shared archive.
15794 archive_cmds=$lt_archive_cmds
15795 archive_expsym_cmds=$lt_archive_expsym_cmds
15796
15797 # Commands used to build a loadable module if different from building
15798 # a shared archive.
15799 module_cmds=$lt_module_cmds
15800 module_expsym_cmds=$lt_module_expsym_cmds
15801
15802 # Whether we are building with GNU ld or not.
15803 with_gnu_ld=$lt_with_gnu_ld
15804
15805 # Flag that allows shared libraries with undefined symbols to be built.
15806 allow_undefined_flag=$lt_allow_undefined_flag
15807
15808 # Flag that enforces no undefined symbols.
15809 no_undefined_flag=$lt_no_undefined_flag
15810
15811 # Flag to hardcode \$libdir into a binary during linking.
15812 # This must work even if \$libdir does not exist
15813 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15814
15815 # Whether we need a single "-rpath" flag with a separated argument.
15816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15817
15818 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15819 # DIR into the resulting binary.
15820 hardcode_direct=$hardcode_direct
15821
15822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15823 # DIR into the resulting binary and the resulting library dependency is
15824 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15825 # library is relocated.
15826 hardcode_direct_absolute=$hardcode_direct_absolute
15827
15828 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15829 # into the resulting binary.
15830 hardcode_minus_L=$hardcode_minus_L
15831
15832 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15833 # into the resulting binary.
15834 hardcode_shlibpath_var=$hardcode_shlibpath_var
15835
15836 # Set to "yes" if building a shared library automatically hardcodes DIR
15837 # into the library and all subsequent libraries and executables linked
15838 # against it.
15839 hardcode_automatic=$hardcode_automatic
15840
15841 # Set to yes if linker adds runtime paths of dependent libraries
15842 # to runtime path list.
15843 inherit_rpath=$inherit_rpath
15844
15845 # Whether libtool must link a program against all its dependency libraries.
15846 link_all_deplibs=$link_all_deplibs
15847
15848 # Set to "yes" if exported symbols are required.
15849 always_export_symbols=$always_export_symbols
15850
15851 # The commands to list exported symbols.
15852 export_symbols_cmds=$lt_export_symbols_cmds
15853
15854 # Symbols that should not be listed in the preloaded symbols.
15855 exclude_expsyms=$lt_exclude_expsyms
15856
15857 # Symbols that must always be exported.
15858 include_expsyms=$lt_include_expsyms
15859
15860 # Commands necessary for linking programs (against libraries) with templates.
15861 prelink_cmds=$lt_prelink_cmds
15862
15863 # Commands necessary for finishing linking programs.
15864 postlink_cmds=$lt_postlink_cmds
15865
15866 # Specify filename containing input files.
15867 file_list_spec=$lt_file_list_spec
15868
15869 # How to hardcode a shared library path into an executable.
15870 hardcode_action=$hardcode_action
15871
15872 # ### END LIBTOOL CONFIG
15873
15874 _LT_EOF
15875
15876   case $host_os in
15877   aix3*)
15878     cat <<\_LT_EOF >> "$cfgfile"
15879 # AIX sometimes has problems with the GCC collect2 program.  For some
15880 # reason, if we set the COLLECT_NAMES environment variable, the problems
15881 # vanish in a puff of smoke.
15882 if test "X${COLLECT_NAMES+set}" != Xset; then
15883   COLLECT_NAMES=
15884   export COLLECT_NAMES
15885 fi
15886 _LT_EOF
15887     ;;
15888   esac
15889
15890
15891 ltmain="$ac_aux_dir/ltmain.sh"
15892
15893
15894   # We use sed instead of cat because bash on DJGPP gets confused if
15895   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
15896   # text mode, it properly converts lines to CR/LF.  This bash problem
15897   # is reportedly fixed, but why not run on old versions too?
15898   sed '$q' "$ltmain" >> "$cfgfile" \
15899      || (rm -f "$cfgfile"; exit 1)
15900
15901   if test x"$xsi_shell" = xyes; then
15902   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15903 func_dirname ()\
15904 {\
15905 \    case ${1} in\
15906 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15907 \      *  ) func_dirname_result="${3}" ;;\
15908 \    esac\
15909 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15910   && mv -f "$cfgfile.tmp" "$cfgfile" \
15911     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15912 test 0 -eq $? || _lt_function_replace_fail=:
15913
15914
15915   sed -e '/^func_basename ()$/,/^} # func_basename /c\
15916 func_basename ()\
15917 {\
15918 \    func_basename_result="${1##*/}"\
15919 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15920   && mv -f "$cfgfile.tmp" "$cfgfile" \
15921     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15922 test 0 -eq $? || _lt_function_replace_fail=:
15923
15924
15925   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15926 func_dirname_and_basename ()\
15927 {\
15928 \    case ${1} in\
15929 \      */*) func_dirname_result="${1%/*}${2}" ;;\
15930 \      *  ) func_dirname_result="${3}" ;;\
15931 \    esac\
15932 \    func_basename_result="${1##*/}"\
15933 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15934   && mv -f "$cfgfile.tmp" "$cfgfile" \
15935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15936 test 0 -eq $? || _lt_function_replace_fail=:
15937
15938
15939   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15940 func_stripname ()\
15941 {\
15942 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15943 \    # positional parameters, so assign one to ordinary parameter first.\
15944 \    func_stripname_result=${3}\
15945 \    func_stripname_result=${func_stripname_result#"${1}"}\
15946 \    func_stripname_result=${func_stripname_result%"${2}"}\
15947 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15948   && mv -f "$cfgfile.tmp" "$cfgfile" \
15949     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15950 test 0 -eq $? || _lt_function_replace_fail=:
15951
15952
15953   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15954 func_split_long_opt ()\
15955 {\
15956 \    func_split_long_opt_name=${1%%=*}\
15957 \    func_split_long_opt_arg=${1#*=}\
15958 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15959   && mv -f "$cfgfile.tmp" "$cfgfile" \
15960     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15961 test 0 -eq $? || _lt_function_replace_fail=:
15962
15963
15964   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15965 func_split_short_opt ()\
15966 {\
15967 \    func_split_short_opt_arg=${1#??}\
15968 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15969 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15970   && mv -f "$cfgfile.tmp" "$cfgfile" \
15971     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15972 test 0 -eq $? || _lt_function_replace_fail=:
15973
15974
15975   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15976 func_lo2o ()\
15977 {\
15978 \    case ${1} in\
15979 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15980 \      *)    func_lo2o_result=${1} ;;\
15981 \    esac\
15982 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15983   && mv -f "$cfgfile.tmp" "$cfgfile" \
15984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15985 test 0 -eq $? || _lt_function_replace_fail=:
15986
15987
15988   sed -e '/^func_xform ()$/,/^} # func_xform /c\
15989 func_xform ()\
15990 {\
15991     func_xform_result=${1%.*}.lo\
15992 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15993   && mv -f "$cfgfile.tmp" "$cfgfile" \
15994     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15995 test 0 -eq $? || _lt_function_replace_fail=:
15996
15997
15998   sed -e '/^func_arith ()$/,/^} # func_arith /c\
15999 func_arith ()\
16000 {\
16001     func_arith_result=$(( $* ))\
16002 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16003   && mv -f "$cfgfile.tmp" "$cfgfile" \
16004     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16005 test 0 -eq $? || _lt_function_replace_fail=:
16006
16007
16008   sed -e '/^func_len ()$/,/^} # func_len /c\
16009 func_len ()\
16010 {\
16011     func_len_result=${#1}\
16012 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16013   && mv -f "$cfgfile.tmp" "$cfgfile" \
16014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16015 test 0 -eq $? || _lt_function_replace_fail=:
16016
16017 fi
16018
16019 if test x"$lt_shell_append" = xyes; then
16020   sed -e '/^func_append ()$/,/^} # func_append /c\
16021 func_append ()\
16022 {\
16023     eval "${1}+=\\${2}"\
16024 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16025   && mv -f "$cfgfile.tmp" "$cfgfile" \
16026     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16027 test 0 -eq $? || _lt_function_replace_fail=:
16028
16029
16030   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16031 func_append_quoted ()\
16032 {\
16033 \    func_quote_for_eval "${2}"\
16034 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16035 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16036   && mv -f "$cfgfile.tmp" "$cfgfile" \
16037     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16038 test 0 -eq $? || _lt_function_replace_fail=:
16039
16040
16041   # Save a `func_append' function call where possible by direct use of '+='
16042   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16043     && mv -f "$cfgfile.tmp" "$cfgfile" \
16044       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16045   test 0 -eq $? || _lt_function_replace_fail=:
16046 else
16047   # Save a `func_append' function call even when '+=' is not available
16048   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16049     && mv -f "$cfgfile.tmp" "$cfgfile" \
16050       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16051   test 0 -eq $? || _lt_function_replace_fail=:
16052 fi
16053
16054 if test x"$_lt_function_replace_fail" = x":"; then
16055   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16056 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16057 fi
16058
16059
16060    mv -f "$cfgfile" "$ofile" ||
16061     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16062   chmod +x "$ofile"
16063
16064  ;;
16065     "include":C) test -d include || mkdir include ;;
16066     "src":C)
16067 test -d src || mkdir src
16068 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
16069  ;;
16070
16071   esac
16072 done # for ac_tag
16073
16074
16075 as_fn_exit 0
16076 _ACEOF
16077 ac_clean_files=$ac_clean_files_save
16078
16079 test $ac_write_fail = 0 ||
16080   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16081
16082
16083 # configure is writing to config.log, and then calls config.status.
16084 # config.status does its own redirection, appending to config.log.
16085 # Unfortunately, on DOS this fails, as config.log is still kept open
16086 # by configure, so config.status won't be able to write to it; its
16087 # output is simply discarded.  So we exec the FD to /dev/null,
16088 # effectively closing config.log, so it can be properly (re)opened and
16089 # appended to by config.status.  When coming back to configure, we
16090 # need to make the FD available again.
16091 if test "$no_create" != yes; then
16092   ac_cs_success=:
16093   ac_config_status_args=
16094   test "$silent" = yes &&
16095     ac_config_status_args="$ac_config_status_args --quiet"
16096   exec 5>/dev/null
16097   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16098   exec 5>>config.log
16099   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16100   # would make configure fail if this is the last instruction.
16101   $ac_cs_success || as_fn_exit 1
16102 fi
16103 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16104   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16105 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16106 fi
16107