Add blackfin supprt from Alexandre Keunecke.
[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 PRTDIAG
694 CPP
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 LN_S
707 NM
708 ac_ct_DUMPBIN
709 DUMPBIN
710 LD
711 FGREP
712 EGREP
713 GREP
714 SED
715 LIBTOOL
716 am__fastdepCCAS_FALSE
717 am__fastdepCCAS_TRUE
718 CCASDEPMODE
719 CCASFLAGS
720 CCAS
721 am__fastdepCC_FALSE
722 am__fastdepCC_TRUE
723 CCDEPMODE
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 ax_enable_builddir_sed
761 target_os
762 target_vendor
763 target_cpu
764 target
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_builddir
815 enable_dependency_tracking
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_gnu_ld
821 with_sysroot
822 enable_libtool_lock
823 enable_portable_binary
824 with_gcc_arch
825 enable_maintainer_mode
826 enable_debug
827 enable_structs
828 enable_raw_api
829 enable_purify_safety
830 '
831       ac_precious_vars='build_alias
832 host_alias
833 target_alias
834 CCAS
835 CCASFLAGS
836 CPP
837 CPPFLAGS'
838
839
840 # Initialize some variables set by options.
841 ac_init_help=
842 ac_init_version=false
843 ac_unrecognized_opts=
844 ac_unrecognized_sep=
845 # The variables have the same names as the options, with
846 # dashes changed to underlines.
847 cache_file=/dev/null
848 exec_prefix=NONE
849 no_create=
850 no_recursion=
851 prefix=NONE
852 program_prefix=NONE
853 program_suffix=NONE
854 program_transform_name=s,x,x,
855 silent=
856 site=
857 srcdir=
858 verbose=
859 x_includes=NONE
860 x_libraries=NONE
861
862 # Installation directory options.
863 # These are left unexpanded so users can "make install exec_prefix=/foo"
864 # and all the variables that are supposed to be based on exec_prefix
865 # by default will actually change.
866 # Use braces instead of parens because sh, perl, etc. also accept them.
867 # (The list follows the same order as the GNU Coding Standards.)
868 bindir='${exec_prefix}/bin'
869 sbindir='${exec_prefix}/sbin'
870 libexecdir='${exec_prefix}/libexec'
871 datarootdir='${prefix}/share'
872 datadir='${datarootdir}'
873 sysconfdir='${prefix}/etc'
874 sharedstatedir='${prefix}/com'
875 localstatedir='${prefix}/var'
876 includedir='${prefix}/include'
877 oldincludedir='/usr/include'
878 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
879 infodir='${datarootdir}/info'
880 htmldir='${docdir}'
881 dvidir='${docdir}'
882 pdfdir='${docdir}'
883 psdir='${docdir}'
884 libdir='${exec_prefix}/lib'
885 localedir='${datarootdir}/locale'
886 mandir='${datarootdir}/man'
887
888 ac_prev=
889 ac_dashdash=
890 for ac_option
891 do
892   # If the previous option needs an argument, assign it.
893   if test -n "$ac_prev"; then
894     eval $ac_prev=\$ac_option
895     ac_prev=
896     continue
897   fi
898
899   case $ac_option in
900   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901   *=)   ac_optarg= ;;
902   *)    ac_optarg=yes ;;
903   esac
904
905   # Accept the important Cygnus configure options, so we can diagnose typos.
906
907   case $ac_dashdash$ac_option in
908   --)
909     ac_dashdash=yes ;;
910
911   -bindir | --bindir | --bindi | --bind | --bin | --bi)
912     ac_prev=bindir ;;
913   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
914     bindir=$ac_optarg ;;
915
916   -build | --build | --buil | --bui | --bu)
917     ac_prev=build_alias ;;
918   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
919     build_alias=$ac_optarg ;;
920
921   -cache-file | --cache-file | --cache-fil | --cache-fi \
922   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
923     ac_prev=cache_file ;;
924   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
925   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
926     cache_file=$ac_optarg ;;
927
928   --config-cache | -C)
929     cache_file=config.cache ;;
930
931   -datadir | --datadir | --datadi | --datad)
932     ac_prev=datadir ;;
933   -datadir=* | --datadir=* | --datadi=* | --datad=*)
934     datadir=$ac_optarg ;;
935
936   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
937   | --dataroo | --dataro | --datar)
938     ac_prev=datarootdir ;;
939   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
940   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
941     datarootdir=$ac_optarg ;;
942
943   -disable-* | --disable-*)
944     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
945     # Reject names that are not valid shell variable names.
946     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
947       as_fn_error $? "invalid feature name: $ac_useropt"
948     ac_useropt_orig=$ac_useropt
949     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
950     case $ac_user_opts in
951       *"
952 "enable_$ac_useropt"
953 "*) ;;
954       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
955          ac_unrecognized_sep=', ';;
956     esac
957     eval enable_$ac_useropt=no ;;
958
959   -docdir | --docdir | --docdi | --doc | --do)
960     ac_prev=docdir ;;
961   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
962     docdir=$ac_optarg ;;
963
964   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965     ac_prev=dvidir ;;
966   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
967     dvidir=$ac_optarg ;;
968
969   -enable-* | --enable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=\$ac_optarg ;;
984
985   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
986   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
987   | --exec | --exe | --ex)
988     ac_prev=exec_prefix ;;
989   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
990   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
991   | --exec=* | --exe=* | --ex=*)
992     exec_prefix=$ac_optarg ;;
993
994   -gas | --gas | --ga | --g)
995     # Obsolete; use --with-gas.
996     with_gas=yes ;;
997
998   -help | --help | --hel | --he | -h)
999     ac_init_help=long ;;
1000   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1001     ac_init_help=recursive ;;
1002   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1003     ac_init_help=short ;;
1004
1005   -host | --host | --hos | --ho)
1006     ac_prev=host_alias ;;
1007   -host=* | --host=* | --hos=* | --ho=*)
1008     host_alias=$ac_optarg ;;
1009
1010   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011     ac_prev=htmldir ;;
1012   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013   | --ht=*)
1014     htmldir=$ac_optarg ;;
1015
1016   -includedir | --includedir | --includedi | --included | --include \
1017   | --includ | --inclu | --incl | --inc)
1018     ac_prev=includedir ;;
1019   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1020   | --includ=* | --inclu=* | --incl=* | --inc=*)
1021     includedir=$ac_optarg ;;
1022
1023   -infodir | --infodir | --infodi | --infod | --info | --inf)
1024     ac_prev=infodir ;;
1025   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1026     infodir=$ac_optarg ;;
1027
1028   -libdir | --libdir | --libdi | --libd)
1029     ac_prev=libdir ;;
1030   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1031     libdir=$ac_optarg ;;
1032
1033   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1034   | --libexe | --libex | --libe)
1035     ac_prev=libexecdir ;;
1036   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1037   | --libexe=* | --libex=* | --libe=*)
1038     libexecdir=$ac_optarg ;;
1039
1040   -localedir | --localedir | --localedi | --localed | --locale)
1041     ac_prev=localedir ;;
1042   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1043     localedir=$ac_optarg ;;
1044
1045   -localstatedir | --localstatedir | --localstatedi | --localstated \
1046   | --localstate | --localstat | --localsta | --localst | --locals)
1047     ac_prev=localstatedir ;;
1048   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1049   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1050     localstatedir=$ac_optarg ;;
1051
1052   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053     ac_prev=mandir ;;
1054   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1055     mandir=$ac_optarg ;;
1056
1057   -nfp | --nfp | --nf)
1058     # Obsolete; use --without-fp.
1059     with_fp=no ;;
1060
1061   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1062   | --no-cr | --no-c | -n)
1063     no_create=yes ;;
1064
1065   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1066   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1067     no_recursion=yes ;;
1068
1069   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1070   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1071   | --oldin | --oldi | --old | --ol | --o)
1072     ac_prev=oldincludedir ;;
1073   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1074   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1075   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1076     oldincludedir=$ac_optarg ;;
1077
1078   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079     ac_prev=prefix ;;
1080   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1081     prefix=$ac_optarg ;;
1082
1083   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1084   | --program-pre | --program-pr | --program-p)
1085     ac_prev=program_prefix ;;
1086   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1087   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1088     program_prefix=$ac_optarg ;;
1089
1090   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1091   | --program-suf | --program-su | --program-s)
1092     ac_prev=program_suffix ;;
1093   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1094   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1095     program_suffix=$ac_optarg ;;
1096
1097   -program-transform-name | --program-transform-name \
1098   | --program-transform-nam | --program-transform-na \
1099   | --program-transform-n | --program-transform- \
1100   | --program-transform | --program-transfor \
1101   | --program-transfo | --program-transf \
1102   | --program-trans | --program-tran \
1103   | --progr-tra | --program-tr | --program-t)
1104     ac_prev=program_transform_name ;;
1105   -program-transform-name=* | --program-transform-name=* \
1106   | --program-transform-nam=* | --program-transform-na=* \
1107   | --program-transform-n=* | --program-transform-=* \
1108   | --program-transform=* | --program-transfor=* \
1109   | --program-transfo=* | --program-transf=* \
1110   | --program-trans=* | --program-tran=* \
1111   | --progr-tra=* | --program-tr=* | --program-t=*)
1112     program_transform_name=$ac_optarg ;;
1113
1114   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115     ac_prev=pdfdir ;;
1116   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1117     pdfdir=$ac_optarg ;;
1118
1119   -psdir | --psdir | --psdi | --psd | --ps)
1120     ac_prev=psdir ;;
1121   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1122     psdir=$ac_optarg ;;
1123
1124   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1125   | -silent | --silent | --silen | --sile | --sil)
1126     silent=yes ;;
1127
1128   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129     ac_prev=sbindir ;;
1130   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131   | --sbi=* | --sb=*)
1132     sbindir=$ac_optarg ;;
1133
1134   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136   | --sharedst | --shareds | --shared | --share | --shar \
1137   | --sha | --sh)
1138     ac_prev=sharedstatedir ;;
1139   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142   | --sha=* | --sh=*)
1143     sharedstatedir=$ac_optarg ;;
1144
1145   -site | --site | --sit)
1146     ac_prev=site ;;
1147   -site=* | --site=* | --sit=*)
1148     site=$ac_optarg ;;
1149
1150   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151     ac_prev=srcdir ;;
1152   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153     srcdir=$ac_optarg ;;
1154
1155   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156   | --syscon | --sysco | --sysc | --sys | --sy)
1157     ac_prev=sysconfdir ;;
1158   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160     sysconfdir=$ac_optarg ;;
1161
1162   -target | --target | --targe | --targ | --tar | --ta | --t)
1163     ac_prev=target_alias ;;
1164   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165     target_alias=$ac_optarg ;;
1166
1167   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168     verbose=yes ;;
1169
1170   -version | --version | --versio | --versi | --vers | -V)
1171     ac_init_version=: ;;
1172
1173   -with-* | --with-*)
1174     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175     # Reject names that are not valid shell variable names.
1176     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177       as_fn_error $? "invalid package name: $ac_useropt"
1178     ac_useropt_orig=$ac_useropt
1179     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180     case $ac_user_opts in
1181       *"
1182 "with_$ac_useropt"
1183 "*) ;;
1184       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185          ac_unrecognized_sep=', ';;
1186     esac
1187     eval with_$ac_useropt=\$ac_optarg ;;
1188
1189   -without-* | --without-*)
1190     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191     # Reject names that are not valid shell variable names.
1192     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193       as_fn_error $? "invalid package name: $ac_useropt"
1194     ac_useropt_orig=$ac_useropt
1195     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196     case $ac_user_opts in
1197       *"
1198 "with_$ac_useropt"
1199 "*) ;;
1200       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201          ac_unrecognized_sep=', ';;
1202     esac
1203     eval with_$ac_useropt=no ;;
1204
1205   --x)
1206     # Obsolete; use --with-x.
1207     with_x=yes ;;
1208
1209   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210   | --x-incl | --x-inc | --x-in | --x-i)
1211     ac_prev=x_includes ;;
1212   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214     x_includes=$ac_optarg ;;
1215
1216   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218     ac_prev=x_libraries ;;
1219   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221     x_libraries=$ac_optarg ;;
1222
1223   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1225     ;;
1226
1227   *=*)
1228     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229     # Reject names that are not valid shell variable names.
1230     case $ac_envvar in #(
1231       '' | [0-9]* | *[!_$as_cr_alnum]* )
1232       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233     esac
1234     eval $ac_envvar=\$ac_optarg
1235     export $ac_envvar ;;
1236
1237   *)
1238     # FIXME: should be removed in autoconf 3.0.
1239     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1243     ;;
1244
1245   esac
1246 done
1247
1248 if test -n "$ac_prev"; then
1249   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250   as_fn_error $? "missing argument to $ac_option"
1251 fi
1252
1253 if test -n "$ac_unrecognized_opts"; then
1254   case $enable_option_checking in
1255     no) ;;
1256     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258   esac
1259 fi
1260
1261 # Check all directory arguments for consistency.
1262 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263                 datadir sysconfdir sharedstatedir localstatedir includedir \
1264                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265                 libdir localedir mandir
1266 do
1267   eval ac_val=\$$ac_var
1268   # Remove trailing slashes.
1269   case $ac_val in
1270     */ )
1271       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272       eval $ac_var=\$ac_val;;
1273   esac
1274   # Be sure to have absolute directory names.
1275   case $ac_val in
1276     [\\/$]* | ?:[\\/]* )  continue;;
1277     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278   esac
1279   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1281
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1288
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291   if test "x$build_alias" = x; then
1292     cross_compiling=maybe
1293     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1294     If a cross compiler is detected then cross compile mode will be used" >&2
1295   elif test "x$build_alias" != "x$host_alias"; then
1296     cross_compiling=yes
1297   fi
1298 fi
1299
1300 ac_tool_prefix=
1301 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302
1303 test "$silent" = yes && exec 6>/dev/null
1304
1305
1306 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1307 ac_ls_di=`ls -di .` &&
1308 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1309   as_fn_error $? "working directory cannot be determined"
1310 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1311   as_fn_error $? "pwd does not report name of working directory"
1312
1313
1314 # Find the source files, if location was not specified.
1315 if test -z "$srcdir"; then
1316   ac_srcdir_defaulted=yes
1317   # Try the directory containing this script, then the parent directory.
1318   ac_confdir=`$as_dirname -- "$as_myself" ||
1319 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1320          X"$as_myself" : 'X\(//\)[^/]' \| \
1321          X"$as_myself" : 'X\(//\)$' \| \
1322          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1323 $as_echo X"$as_myself" |
1324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1325             s//\1/
1326             q
1327           }
1328           /^X\(\/\/\)[^/].*/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)$/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\).*/{
1337             s//\1/
1338             q
1339           }
1340           s/.*/./; q'`
1341   srcdir=$ac_confdir
1342   if test ! -r "$srcdir/$ac_unique_file"; then
1343     srcdir=..
1344   fi
1345 else
1346   ac_srcdir_defaulted=no
1347 fi
1348 if test ! -r "$srcdir/$ac_unique_file"; then
1349   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1350   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 fi
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 ac_abs_confdir=`(
1354         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355         pwd)`
1356 # When building in place, set srcdir=.
1357 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358   srcdir=.
1359 fi
1360 # Remove unnecessary trailing slashes from srcdir.
1361 # Double slashes in file names in object file debugging info
1362 # mess up M-x gdb in Emacs.
1363 case $srcdir in
1364 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 esac
1366 for ac_var in $ac_precious_vars; do
1367   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_env_${ac_var}_value=\$${ac_var}
1369   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1370   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1371 done
1372
1373 #
1374 # Report the --help message.
1375 #
1376 if test "$ac_init_help" = "long"; then
1377   # Omit some internal or obsolete options to make the list less imposing.
1378   # This message is too long to be a string in the A/UX 3.1 sh.
1379   cat <<_ACEOF
1380 \`configure' configures libffi 3.0.11 to adapt to many kinds of systems.
1381
1382 Usage: $0 [OPTION]... [VAR=VALUE]...
1383
1384 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1385 VAR=VALUE.  See below for descriptions of some of the useful variables.
1386
1387 Defaults for the options are specified in brackets.
1388
1389 Configuration:
1390   -h, --help              display this help and exit
1391       --help=short        display options specific to this package
1392       --help=recursive    display the short help of all the included packages
1393   -V, --version           display version information and exit
1394   -q, --quiet, --silent   do not print \`checking ...' messages
1395       --cache-file=FILE   cache test results in FILE [disabled]
1396   -C, --config-cache      alias for \`--cache-file=config.cache'
1397   -n, --no-create         do not create output files
1398       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1399
1400 Installation directories:
1401   --prefix=PREFIX         install architecture-independent files in PREFIX
1402                           [$ac_default_prefix]
1403   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1404                           [PREFIX]
1405
1406 By default, \`make install' will install all the files in
1407 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1408 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1409 for instance \`--prefix=\$HOME'.
1410
1411 For better control, use the options below.
1412
1413 Fine tuning of the installation directories:
1414   --bindir=DIR            user executables [EPREFIX/bin]
1415   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1416   --libexecdir=DIR        program executables [EPREFIX/libexec]
1417   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1418   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1419   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1420   --libdir=DIR            object code libraries [EPREFIX/lib]
1421   --includedir=DIR        C header files [PREFIX/include]
1422   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1423   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1424   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1425   --infodir=DIR           info documentation [DATAROOTDIR/info]
1426   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1427   --mandir=DIR            man documentation [DATAROOTDIR/man]
1428   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1429   --htmldir=DIR           html documentation [DOCDIR]
1430   --dvidir=DIR            dvi documentation [DOCDIR]
1431   --pdfdir=DIR            pdf documentation [DOCDIR]
1432   --psdir=DIR             ps documentation [DOCDIR]
1433 _ACEOF
1434
1435   cat <<\_ACEOF
1436
1437 Program names:
1438   --program-prefix=PREFIX            prepend PREFIX to installed program names
1439   --program-suffix=SUFFIX            append SUFFIX to installed program names
1440   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1441
1442 System types:
1443   --build=BUILD     configure for building on BUILD [guessed]
1444   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1445   --target=TARGET   configure for building compilers for TARGET [HOST]
1446 _ACEOF
1447 fi
1448
1449 if test -n "$ac_init_help"; then
1450   case $ac_init_help in
1451      short | recursive ) echo "Configuration of libffi 3.0.11:";;
1452    esac
1453   cat <<\_ACEOF
1454
1455 Optional Features:
1456   --disable-option-checking  ignore unrecognized --enable/--with options
1457   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1458   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1459   --disable-builddir      disable automatic build in subdir of sources
1460
1461   --disable-dependency-tracking  speeds up one-time build
1462   --enable-dependency-tracking   do not reject slow dependency extractors
1463   --enable-shared[=PKGS]  build shared libraries [default=yes]
1464   --enable-static[=PKGS]  build static libraries [default=yes]
1465   --enable-fast-install[=PKGS]
1466                           optimize for fast installation [default=yes]
1467   --disable-libtool-lock  avoid locking (might break parallel builds)
1468   --enable-portable-binary
1469                           disable compiler optimizations that would produce
1470                           unportable binaries
1471   --enable-maintainer-mode  enable make rules and dependencies not useful
1472                           (and sometimes confusing) to the casual installer
1473   --enable-debug          debugging mode
1474   --disable-structs       omit code for struct support
1475   --disable-raw-api       make the raw api unavailable
1476   --enable-purify-safety  purify-safe mode
1477
1478 Optional Packages:
1479   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1480   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1481   --with-pic              try to use only PIC/non-PIC objects [default=use
1482                           both]
1483   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1484   --with-sysroot=DIR Search for dependent libraries within DIR
1485                         (or the compiler's sysroot if not specified).
1486   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1487                           instead of guessing
1488
1489 Some influential environment variables:
1490   CC          C compiler command
1491   CFLAGS      C compiler flags
1492   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1493               nonstandard directory <lib dir>
1494   LIBS        libraries to pass to the linker, e.g. -l<library>
1495   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496               you have headers in a nonstandard directory <include dir>
1497   CCAS        assembler compiler command (defaults to CC)
1498   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1499   CPP         C preprocessor
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <http://github.com/atgreen/libffi/issues>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510   # If there are subdirs, report their specific --help.
1511   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512     test -d "$ac_dir" ||
1513       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514       continue
1515     ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521   # A ".." for each directory in $ac_dir_suffix.
1522   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523   case $ac_top_builddir_sub in
1524   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526   esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534   .)  # We are building in place.
1535     ac_srcdir=.
1536     ac_top_srcdir=$ac_top_builddir_sub
1537     ac_abs_top_srcdir=$ac_pwd ;;
1538   [\\/]* | ?:[\\/]* )  # Absolute name.
1539     ac_srcdir=$srcdir$ac_dir_suffix;
1540     ac_top_srcdir=$srcdir
1541     ac_abs_top_srcdir=$srcdir ;;
1542   *) # Relative name.
1543     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544     ac_top_srcdir=$ac_top_build_prefix$srcdir
1545     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549     cd "$ac_dir" || { ac_status=$?; continue; }
1550     # Check for guested configure.
1551     if test -f "$ac_srcdir/configure.gnu"; then
1552       echo &&
1553       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554     elif test -f "$ac_srcdir/configure"; then
1555       echo &&
1556       $SHELL "$ac_srcdir/configure" --help=recursive
1557     else
1558       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559     fi || ac_status=$?
1560     cd "$ac_pwd" || { ac_status=$?; break; }
1561   done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566   cat <<\_ACEOF
1567 libffi configure 3.0.11
1568 generated by GNU Autoconf 2.68
1569
1570 Copyright (C) 2010 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574   exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   rm -f conftest.$ac_objext
1588   if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_compile") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && {
1604          test -z "$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        } && test -s conftest.$ac_objext; then :
1607   ac_retval=0
1608 else
1609   $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612         ac_retval=1
1613 fi
1614   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615   as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   rm -f conftest.$ac_objext conftest$ac_exeext
1626   if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633   (eval "$ac_link") 2>conftest.err
1634   ac_status=$?
1635   if test -s conftest.err; then
1636     grep -v '^ *+' conftest.err >conftest.er1
1637     cat conftest.er1 >&5
1638     mv -f conftest.er1 conftest.err
1639   fi
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && {
1642          test -z "$ac_c_werror_flag" ||
1643          test ! -s conftest.err
1644        } && test -s conftest$ac_exeext && {
1645          test "$cross_compiling" = yes ||
1646          $as_test_x conftest$ac_exeext
1647        }; then :
1648   ac_retval=0
1649 else
1650   $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653         ac_retval=1
1654 fi
1655   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657   # interfere with the next link command; also delete a directory that is
1658   # left behind by Apple's compiler.  We do this before executing the actions.
1659   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661   as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_link
1664
1665 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists and can be compiled using the include files in
1668 # INCLUDES, setting the cache variable VAR accordingly.
1669 ac_fn_c_check_header_compile ()
1670 {
1671   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1673 $as_echo_n "checking for $2... " >&6; }
1674 if eval \${$3+:} false; then :
1675   $as_echo_n "(cached) " >&6
1676 else
1677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1678 /* end confdefs.h.  */
1679 $4
1680 #include <$2>
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"; then :
1683   eval "$3=yes"
1684 else
1685   eval "$3=no"
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1688 fi
1689 eval ac_res=\$$3
1690                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693
1694 } # ac_fn_c_check_header_compile
1695
1696 # ac_fn_c_try_cpp LINENO
1697 # ----------------------
1698 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_cpp ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { { ac_try="$ac_cpp conftest.$ac_ext"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1710   ac_status=$?
1711   if test -s conftest.err; then
1712     grep -v '^ *+' conftest.err >conftest.er1
1713     cat conftest.er1 >&5
1714     mv -f conftest.er1 conftest.err
1715   fi
1716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717   test $ac_status = 0; } > conftest.i && {
1718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1719          test ! -s conftest.err
1720        }; then :
1721   ac_retval=0
1722 else
1723   $as_echo "$as_me: failed program was:" >&5
1724 sed 's/^/| /' conftest.$ac_ext >&5
1725
1726     ac_retval=1
1727 fi
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729   as_fn_set_status $ac_retval
1730
1731 } # ac_fn_c_try_cpp
1732
1733 # ac_fn_c_try_run LINENO
1734 # ----------------------
1735 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1736 # that executables *can* be run.
1737 ac_fn_c_try_run ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   if { { ac_try="$ac_link"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_link") 2>&5
1748   ac_status=$?
1749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1750   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1751   { { case "(($ac_try" in
1752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753   *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757   (eval "$ac_try") 2>&5
1758   ac_status=$?
1759   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760   test $ac_status = 0; }; }; then :
1761   ac_retval=0
1762 else
1763   $as_echo "$as_me: program exited with status $ac_status" >&5
1764        $as_echo "$as_me: failed program was:" >&5
1765 sed 's/^/| /' conftest.$ac_ext >&5
1766
1767        ac_retval=$ac_status
1768 fi
1769   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1770   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1771   as_fn_set_status $ac_retval
1772
1773 } # ac_fn_c_try_run
1774
1775 # ac_fn_c_check_func LINENO FUNC VAR
1776 # ----------------------------------
1777 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1778 ac_fn_c_check_func ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1782 $as_echo_n "checking for $2... " >&6; }
1783 if eval \${$3+:} false; then :
1784   $as_echo_n "(cached) " >&6
1785 else
1786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787 /* end confdefs.h.  */
1788 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1789    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1790 #define $2 innocuous_$2
1791
1792 /* System header to define __stub macros and hopefully few prototypes,
1793     which can conflict with char $2 (); below.
1794     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1795     <limits.h> exists even on freestanding compilers.  */
1796
1797 #ifdef __STDC__
1798 # include <limits.h>
1799 #else
1800 # include <assert.h>
1801 #endif
1802
1803 #undef $2
1804
1805 /* Override any GCC internal prototype to avoid an error.
1806    Use char because int might match the return type of a GCC
1807    builtin and then its argument prototype would still apply.  */
1808 #ifdef __cplusplus
1809 extern "C"
1810 #endif
1811 char $2 ();
1812 /* The GNU C library defines this for functions which it implements
1813     to always fail with ENOSYS.  Some functions are actually named
1814     something starting with __ and the normal name is an alias.  */
1815 #if defined __stub_$2 || defined __stub___$2
1816 choke me
1817 #endif
1818
1819 int
1820 main ()
1821 {
1822 return $2 ();
1823   ;
1824   return 0;
1825 }
1826 _ACEOF
1827 if ac_fn_c_try_link "$LINENO"; then :
1828   eval "$3=yes"
1829 else
1830   eval "$3=no"
1831 fi
1832 rm -f core conftest.err conftest.$ac_objext \
1833     conftest$ac_exeext conftest.$ac_ext
1834 fi
1835 eval ac_res=\$$3
1836                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837 $as_echo "$ac_res" >&6; }
1838   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839
1840 } # ac_fn_c_check_func
1841
1842 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843 # -------------------------------------------------------
1844 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845 # the include files in INCLUDES and setting the cache variable VAR
1846 # accordingly.
1847 ac_fn_c_check_header_mongrel ()
1848 {
1849   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850   if eval \${$3+:} false; then :
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 fi
1856 eval ac_res=\$$3
1857                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 $as_echo "$ac_res" >&6; }
1859 else
1860   # Is the header compilable?
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862 $as_echo_n "checking $2 usability... " >&6; }
1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864 /* end confdefs.h.  */
1865 $4
1866 #include <$2>
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869   ac_header_compiler=yes
1870 else
1871   ac_header_compiler=no
1872 fi
1873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875 $as_echo "$ac_header_compiler" >&6; }
1876
1877 # Is the header present?
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879 $as_echo_n "checking $2 presence... " >&6; }
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881 /* end confdefs.h.  */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_cpp "$LINENO"; then :
1885   ac_header_preproc=yes
1886 else
1887   ac_header_preproc=no
1888 fi
1889 rm -f conftest.err conftest.i conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891 $as_echo "$ac_header_preproc" >&6; }
1892
1893 # So?  What about this header?
1894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1895   yes:no: )
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900     ;;
1901   no:yes:* )
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1905 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1909 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912 ( $as_echo "## ------------------------------------------------------ ##
1913 ## Report this to http://github.com/atgreen/libffi/issues ##
1914 ## ------------------------------------------------------ ##"
1915      ) | sed "s/^/$as_me: WARNING:     /" >&2
1916     ;;
1917 esac
1918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval \${$3+:} false; then :
1921   $as_echo_n "(cached) " >&6
1922 else
1923   eval "$3=\$ac_header_compiler"
1924 fi
1925 eval ac_res=\$$3
1926                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 fi
1929   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_header_mongrel
1932
1933 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934 # -------------------------------------------
1935 # Tests whether TYPE exists after having included INCLUDES, setting cache
1936 # variable VAR accordingly.
1937 ac_fn_c_check_type ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941 $as_echo_n "checking for $2... " >&6; }
1942 if eval \${$3+:} false; then :
1943   $as_echo_n "(cached) " >&6
1944 else
1945   eval "$3=no"
1946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h.  */
1948 $4
1949 int
1950 main ()
1951 {
1952 if (sizeof ($2))
1953          return 0;
1954   ;
1955   return 0;
1956 }
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 $4
1962 int
1963 main ()
1964 {
1965 if (sizeof (($2)))
1966             return 0;
1967   ;
1968   return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972
1973 else
1974   eval "$3=yes"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985 } # ac_fn_c_check_type
1986
1987 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1988 # --------------------------------------------
1989 # Tries to find the compile-time value of EXPR in a program that includes
1990 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1991 # computed
1992 ac_fn_c_compute_int ()
1993 {
1994   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995   if test "$cross_compiling" = yes; then
1996     # Depending upon the size, compute the lo and hi bounds.
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $4
2000 int
2001 main ()
2002 {
2003 static int test_array [1 - 2 * !(($2) >= 0)];
2004 test_array [0] = 0
2005
2006   ;
2007   return 0;
2008 }
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011   ac_lo=0 ac_mid=0
2012   while :; do
2013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 int
2017 main ()
2018 {
2019 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2020 test_array [0] = 0
2021
2022   ;
2023   return 0;
2024 }
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   ac_hi=$ac_mid; break
2028 else
2029   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2030                         if test $ac_lo -le $ac_mid; then
2031                           ac_lo= ac_hi=
2032                           break
2033                         fi
2034                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037   done
2038 else
2039   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h.  */
2041 $4
2042 int
2043 main ()
2044 {
2045 static int test_array [1 - 2 * !(($2) < 0)];
2046 test_array [0] = 0
2047
2048   ;
2049   return 0;
2050 }
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053   ac_hi=-1 ac_mid=-1
2054   while :; do
2055     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056 /* end confdefs.h.  */
2057 $4
2058 int
2059 main ()
2060 {
2061 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2062 test_array [0] = 0
2063
2064   ;
2065   return 0;
2066 }
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069   ac_lo=$ac_mid; break
2070 else
2071   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2072                         if test $ac_mid -le $ac_hi; then
2073                           ac_lo= ac_hi=
2074                           break
2075                         fi
2076                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2077 fi
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079   done
2080 else
2081   ac_lo= ac_hi=
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 fi
2085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 # Binary search between lo and hi bounds.
2087 while test "x$ac_lo" != "x$ac_hi"; do
2088   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h.  */
2091 $4
2092 int
2093 main ()
2094 {
2095 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2096 test_array [0] = 0
2097
2098   ;
2099   return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103   ac_hi=$ac_mid
2104 else
2105   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 done
2109 case $ac_lo in #((
2110 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2111 '') ac_retval=1 ;;
2112 esac
2113   else
2114     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h.  */
2116 $4
2117 static long int longval () { return $2; }
2118 static unsigned long int ulongval () { return $2; }
2119 #include <stdio.h>
2120 #include <stdlib.h>
2121 int
2122 main ()
2123 {
2124
2125   FILE *f = fopen ("conftest.val", "w");
2126   if (! f)
2127     return 1;
2128   if (($2) < 0)
2129     {
2130       long int i = longval ();
2131       if (i != ($2))
2132         return 1;
2133       fprintf (f, "%ld", i);
2134     }
2135   else
2136     {
2137       unsigned long int i = ulongval ();
2138       if (i != ($2))
2139         return 1;
2140       fprintf (f, "%lu", i);
2141     }
2142   /* Do not output a trailing newline, as this causes \r\n confusion
2143      on some platforms.  */
2144   return ferror (f) || fclose (f) != 0;
2145
2146   ;
2147   return 0;
2148 }
2149 _ACEOF
2150 if ac_fn_c_try_run "$LINENO"; then :
2151   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2152 else
2153   ac_retval=1
2154 fi
2155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2156   conftest.$ac_objext conftest.beam conftest.$ac_ext
2157 rm -f conftest.val
2158
2159   fi
2160   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161   as_fn_set_status $ac_retval
2162
2163 } # ac_fn_c_compute_int
2164 cat >config.log <<_ACEOF
2165 This file contains any messages produced by compilers while
2166 running configure, to aid debugging if configure makes a mistake.
2167
2168 It was created by libffi $as_me 3.0.11, which was
2169 generated by GNU Autoconf 2.68.  Invocation command line was
2170
2171   $ $0 $@
2172
2173 _ACEOF
2174 exec 5>>config.log
2175 {
2176 cat <<_ASUNAME
2177 ## --------- ##
2178 ## Platform. ##
2179 ## --------- ##
2180
2181 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2182 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2183 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2184 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2185 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2186
2187 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2188 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2189
2190 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2191 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2192 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2193 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2194 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2195 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2196 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2197
2198 _ASUNAME
2199
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201 for as_dir in $PATH
2202 do
2203   IFS=$as_save_IFS
2204   test -z "$as_dir" && as_dir=.
2205     $as_echo "PATH: $as_dir"
2206   done
2207 IFS=$as_save_IFS
2208
2209 } >&5
2210
2211 cat >&5 <<_ACEOF
2212
2213
2214 ## ----------- ##
2215 ## Core tests. ##
2216 ## ----------- ##
2217
2218 _ACEOF
2219
2220
2221 # Keep a trace of the command line.
2222 # Strip out --no-create and --no-recursion so they do not pile up.
2223 # Strip out --silent because we don't want to record it for future runs.
2224 # Also quote any args containing shell meta-characters.
2225 # Make two passes to allow for proper duplicate-argument suppression.
2226 ac_configure_args=
2227 ac_configure_args0=
2228 ac_configure_args1=
2229 ac_must_keep_next=false
2230 for ac_pass in 1 2
2231 do
2232   for ac_arg
2233   do
2234     case $ac_arg in
2235     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2236     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2237     | -silent | --silent | --silen | --sile | --sil)
2238       continue ;;
2239     *\'*)
2240       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2241     esac
2242     case $ac_pass in
2243     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2244     2)
2245       as_fn_append ac_configure_args1 " '$ac_arg'"
2246       if test $ac_must_keep_next = true; then
2247         ac_must_keep_next=false # Got value, back to normal.
2248       else
2249         case $ac_arg in
2250           *=* | --config-cache | -C | -disable-* | --disable-* \
2251           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2252           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2253           | -with-* | --with-* | -without-* | --without-* | --x)
2254             case "$ac_configure_args0 " in
2255               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256             esac
2257             ;;
2258           -* ) ac_must_keep_next=true ;;
2259         esac
2260       fi
2261       as_fn_append ac_configure_args " '$ac_arg'"
2262       ;;
2263     esac
2264   done
2265 done
2266 { ac_configure_args0=; unset ac_configure_args0;}
2267 { ac_configure_args1=; unset ac_configure_args1;}
2268
2269 # When interrupted or exit'd, cleanup temporary files, and complete
2270 # config.log.  We remove comments because anyway the quotes in there
2271 # would cause problems or look ugly.
2272 # WARNING: Use '\'' to represent an apostrophe within the trap.
2273 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2274 trap 'exit_status=$?
2275   # Save into config.log some information that might help in debugging.
2276   {
2277     echo
2278
2279     $as_echo "## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##"
2282     echo
2283     # The following way of writing the cache mishandles newlines in values,
2284 (
2285   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286     eval ac_val=\$$ac_var
2287     case $ac_val in #(
2288     *${as_nl}*)
2289       case $ac_var in #(
2290       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292       esac
2293       case $ac_var in #(
2294       _ | IFS | as_nl) ;; #(
2295       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296       *) { eval $ac_var=; unset $ac_var;} ;;
2297       esac ;;
2298     esac
2299   done
2300   (set) 2>&1 |
2301     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302     *${as_nl}ac_space=\ *)
2303       sed -n \
2304         "s/'\''/'\''\\\\'\'''\''/g;
2305           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306       ;; #(
2307     *)
2308       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309       ;;
2310     esac |
2311     sort
2312 )
2313     echo
2314
2315     $as_echo "## ----------------- ##
2316 ## Output variables. ##
2317 ## ----------------- ##"
2318     echo
2319     for ac_var in $ac_subst_vars
2320     do
2321       eval ac_val=\$$ac_var
2322       case $ac_val in
2323       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2324       esac
2325       $as_echo "$ac_var='\''$ac_val'\''"
2326     done | sort
2327     echo
2328
2329     if test -n "$ac_subst_files"; then
2330       $as_echo "## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##"
2333       echo
2334       for ac_var in $ac_subst_files
2335       do
2336         eval ac_val=\$$ac_var
2337         case $ac_val in
2338         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339         esac
2340         $as_echo "$ac_var='\''$ac_val'\''"
2341       done | sort
2342       echo
2343     fi
2344
2345     if test -s confdefs.h; then
2346       $as_echo "## ----------- ##
2347 ## confdefs.h. ##
2348 ## ----------- ##"
2349       echo
2350       cat confdefs.h
2351       echo
2352     fi
2353     test "$ac_signal" != 0 &&
2354       $as_echo "$as_me: caught signal $ac_signal"
2355     $as_echo "$as_me: exit $exit_status"
2356   } >&5
2357   rm -f core *.core core.conftest.* &&
2358     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359     exit $exit_status
2360 ' 0
2361 for ac_signal in 1 2 13 15; do
2362   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2363 done
2364 ac_signal=0
2365
2366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2367 rm -f -r conftest* confdefs.h
2368
2369 $as_echo "/* confdefs.h */" > confdefs.h
2370
2371 # Predefined preprocessor variables.
2372
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 _ACEOF
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_URL "$PACKAGE_URL"
2395 _ACEOF
2396
2397
2398 # Let the site file select an alternate cache file if it wants to.
2399 # Prefer an explicitly selected file to automatically selected ones.
2400 ac_site_file1=NONE
2401 ac_site_file2=NONE
2402 if test -n "$CONFIG_SITE"; then
2403   # We do not want a PATH search for config.site.
2404   case $CONFIG_SITE in #((
2405     -*)  ac_site_file1=./$CONFIG_SITE;;
2406     */*) ac_site_file1=$CONFIG_SITE;;
2407     *)   ac_site_file1=./$CONFIG_SITE;;
2408   esac
2409 elif test "x$prefix" != xNONE; then
2410   ac_site_file1=$prefix/share/config.site
2411   ac_site_file2=$prefix/etc/config.site
2412 else
2413   ac_site_file1=$ac_default_prefix/share/config.site
2414   ac_site_file2=$ac_default_prefix/etc/config.site
2415 fi
2416 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2417 do
2418   test "x$ac_site_file" = xNONE && continue
2419   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2421 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2422     sed 's/^/| /' "$ac_site_file" >&5
2423     . "$ac_site_file" \
2424       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 as_fn_error $? "failed to load site script $ac_site_file
2427 See \`config.log' for more details" "$LINENO" 5; }
2428   fi
2429 done
2430
2431 if test -r "$cache_file"; then
2432   # Some versions of bash will fail to source /dev/null (special files
2433   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2434   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2435     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2436 $as_echo "$as_me: loading cache $cache_file" >&6;}
2437     case $cache_file in
2438       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2439       *)                      . "./$cache_file";;
2440     esac
2441   fi
2442 else
2443   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2444 $as_echo "$as_me: creating cache $cache_file" >&6;}
2445   >$cache_file
2446 fi
2447
2448 # Check that the precious variables saved in the cache have kept the same
2449 # value.
2450 ac_cache_corrupted=false
2451 for ac_var in $ac_precious_vars; do
2452   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2453   eval ac_new_set=\$ac_env_${ac_var}_set
2454   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2455   eval ac_new_val=\$ac_env_${ac_var}_value
2456   case $ac_old_set,$ac_new_set in
2457     set,)
2458       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2459 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2460       ac_cache_corrupted=: ;;
2461     ,set)
2462       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2464       ac_cache_corrupted=: ;;
2465     ,);;
2466     *)
2467       if test "x$ac_old_val" != "x$ac_new_val"; then
2468         # differences in whitespace do not lead to failure.
2469         ac_old_val_w=`echo x $ac_old_val`
2470         ac_new_val_w=`echo x $ac_new_val`
2471         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2474           ac_cache_corrupted=:
2475         else
2476           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2477 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2478           eval $ac_var=\$ac_old_val
2479         fi
2480         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2481 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2482         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2483 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2484       fi;;
2485   esac
2486   # Pass precious variables to config.status.
2487   if test "$ac_new_set" = set; then
2488     case $ac_new_val in
2489     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2490     *) ac_arg=$ac_var=$ac_new_val ;;
2491     esac
2492     case " $ac_configure_args " in
2493       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2494       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2495     esac
2496   fi
2497 done
2498 if $ac_cache_corrupted; then
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2504 fi
2505 ## -------------------- ##
2506 ## Main body of script. ##
2507 ## -------------------- ##
2508
2509 ac_ext=c
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514
2515
2516 ac_config_headers="$ac_config_headers fficonfig.h"
2517
2518
2519 ac_aux_dir=
2520 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2521   if test -f "$ac_dir/install-sh"; then
2522     ac_aux_dir=$ac_dir
2523     ac_install_sh="$ac_aux_dir/install-sh -c"
2524     break
2525   elif test -f "$ac_dir/install.sh"; then
2526     ac_aux_dir=$ac_dir
2527     ac_install_sh="$ac_aux_dir/install.sh -c"
2528     break
2529   elif test -f "$ac_dir/shtool"; then
2530     ac_aux_dir=$ac_dir
2531     ac_install_sh="$ac_aux_dir/shtool install -c"
2532     break
2533   fi
2534 done
2535 if test -z "$ac_aux_dir"; then
2536   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2537 fi
2538
2539 # These three variables are undocumented and unsupported,
2540 # and are intended to be withdrawn in a future Autoconf release.
2541 # They can cause serious problems if a builder's source tree is in a directory
2542 # whose full name contains unusual characters.
2543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2545 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2546
2547
2548 # Make sure we can run config.sub.
2549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2550   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2551
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2553 $as_echo_n "checking build system type... " >&6; }
2554 if ${ac_cv_build+:} false; then :
2555   $as_echo_n "(cached) " >&6
2556 else
2557   ac_build_alias=$build_alias
2558 test "x$ac_build_alias" = x &&
2559   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2560 test "x$ac_build_alias" = x &&
2561   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2562 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2563   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2564
2565 fi
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2567 $as_echo "$ac_cv_build" >&6; }
2568 case $ac_cv_build in
2569 *-*-*) ;;
2570 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2571 esac
2572 build=$ac_cv_build
2573 ac_save_IFS=$IFS; IFS='-'
2574 set x $ac_cv_build
2575 shift
2576 build_cpu=$1
2577 build_vendor=$2
2578 shift; shift
2579 # Remember, the first character of IFS is used to create $*,
2580 # except with old shells:
2581 build_os=$*
2582 IFS=$ac_save_IFS
2583 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2584
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2587 $as_echo_n "checking host system type... " >&6; }
2588 if ${ac_cv_host+:} false; then :
2589   $as_echo_n "(cached) " >&6
2590 else
2591   if test "x$host_alias" = x; then
2592   ac_cv_host=$ac_cv_build
2593 else
2594   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2595     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2596 fi
2597
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2600 $as_echo "$ac_cv_host" >&6; }
2601 case $ac_cv_host in
2602 *-*-*) ;;
2603 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2604 esac
2605 host=$ac_cv_host
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_host
2608 shift
2609 host_cpu=$1
2610 host_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 host_os=$*
2615 IFS=$ac_save_IFS
2616 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2617
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2620 $as_echo_n "checking target system type... " >&6; }
2621 if ${ac_cv_target+:} false; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test "x$target_alias" = x; then
2625   ac_cv_target=$ac_cv_host
2626 else
2627   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2628     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2629 fi
2630
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2633 $as_echo "$ac_cv_target" >&6; }
2634 case $ac_cv_target in
2635 *-*-*) ;;
2636 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2637 esac
2638 target=$ac_cv_target
2639 ac_save_IFS=$IFS; IFS='-'
2640 set x $ac_cv_target
2641 shift
2642 target_cpu=$1
2643 target_vendor=$2
2644 shift; shift
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2647 target_os=$*
2648 IFS=$ac_save_IFS
2649 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2650
2651
2652 # The aliases save the names the user supplied, while $host etc.
2653 # will get canonicalized.
2654 test -n "$target_alias" &&
2655   test "$program_prefix$program_suffix$program_transform_name" = \
2656     NONENONEs,x,x, &&
2657   program_prefix=${target_alias}-
2658
2659 target_alias=${target_alias-$host_alias}
2660
2661 . ${srcdir}/configure.host
2662
2663
2664    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2665    if test "${ac_configure_args+set}" != "set" ; then
2666       ac_configure_args=
2667       for ac_arg in ${1+"$@"}; do
2668          ac_configure_args="$ac_configure_args '$ac_arg'"
2669       done
2670    fi
2671
2672 # expand $ac_aux_dir to an absolute path
2673 am_aux_dir=`cd $ac_aux_dir && pwd`
2674
2675
2676 ax_enable_builddir="."
2677 # Check whether --enable-builddir was given.
2678 if test "${enable_builddir+set}" = set; then :
2679   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2680 else
2681   ax_enable_builddir="auto"
2682 fi
2683
2684 if test ".$ac_srcdir_defaulted" != ".no" ; then
2685 if test ".$srcdir" = ".." ; then
2686   if test -f config.status ; then
2687     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2688 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2689   else
2690     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2691     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2692     test ".$TARGET" = "." && TARGET="$target"
2693     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2694     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2695       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2696       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2697       cd $ax_enable_builddir
2698       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2699         rm conftest.tmp
2700         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2701 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2702       else
2703         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2704       fi
2705       srcdir=`echo "$ax_enable_builddir" |
2706               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2707       # going to restart from subdirectory location
2708       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2709       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2710       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2711       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2712       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2713 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2714       case "$0" in # restart
2715        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2716        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2717       esac ; exit $?
2718     fi
2719   fi
2720 fi fi
2721 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2722 # Extract the first word of "gsed sed", so it can be a program name with args.
2723 set dummy gsed sed; ac_word=$2
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2725 $as_echo_n "checking for $ac_word... " >&6; }
2726 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2727   $as_echo_n "(cached) " >&6
2728 else
2729   case $ax_enable_builddir_sed in
2730   [\\/]* | ?:[\\/]*)
2731   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2732   ;;
2733   *)
2734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2736 do
2737   IFS=$as_save_IFS
2738   test -z "$as_dir" && as_dir=.
2739     for ac_exec_ext in '' $ac_executable_extensions; do
2740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2741     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743     break 2
2744   fi
2745 done
2746   done
2747 IFS=$as_save_IFS
2748
2749   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2750   ;;
2751 esac
2752 fi
2753 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2754 if test -n "$ax_enable_builddir_sed"; then
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2756 $as_echo "$ax_enable_builddir_sed" >&6; }
2757 else
2758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2760 fi
2761
2762
2763 ax_enable_builddir_auxdir="$am_aux_dir"
2764 ac_config_commands="$ac_config_commands buildir"
2765
2766
2767 am__api_version='1.11'
2768
2769 # Find a good install program.  We prefer a C program (faster),
2770 # so one script is as good as another.  But avoid the broken or
2771 # incompatible versions:
2772 # SysV /etc/install, /usr/sbin/install
2773 # SunOS /usr/etc/install
2774 # IRIX /sbin/install
2775 # AIX /bin/install
2776 # AmigaOS /C/install, which installs bootblocks on floppy discs
2777 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2778 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2779 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2780 # OS/2's system install, which has a completely different semantic
2781 # ./install, which can be erroneously created by make from ./install.sh.
2782 # Reject install programs that cannot install multiple files.
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2784 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2785 if test -z "$INSTALL"; then
2786 if ${ac_cv_path_install+:} false; then :
2787   $as_echo_n "(cached) " >&6
2788 else
2789   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   test -z "$as_dir" && as_dir=.
2794     # Account for people who put trailing slashes in PATH elements.
2795 case $as_dir/ in #((
2796   ./ | .// | /[cC]/* | \
2797   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2798   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2799   /usr/ucb/* ) ;;
2800   *)
2801     # OSF1 and SCO ODT 3.0 have their own names for install.
2802     # Don't use installbsd from OSF since it installs stuff as root
2803     # by default.
2804     for ac_prog in ginstall scoinst install; do
2805       for ac_exec_ext in '' $ac_executable_extensions; do
2806         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2807           if test $ac_prog = install &&
2808             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2809             # AIX install.  It has an incompatible calling convention.
2810             :
2811           elif test $ac_prog = install &&
2812             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2813             # program-specific install script used by HP pwplus--don't use.
2814             :
2815           else
2816             rm -rf conftest.one conftest.two conftest.dir
2817             echo one > conftest.one
2818             echo two > conftest.two
2819             mkdir conftest.dir
2820             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2821               test -s conftest.one && test -s conftest.two &&
2822               test -s conftest.dir/conftest.one &&
2823               test -s conftest.dir/conftest.two
2824             then
2825               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2826               break 3
2827             fi
2828           fi
2829         fi
2830       done
2831     done
2832     ;;
2833 esac
2834
2835   done
2836 IFS=$as_save_IFS
2837
2838 rm -rf conftest.one conftest.two conftest.dir
2839
2840 fi
2841   if test "${ac_cv_path_install+set}" = set; then
2842     INSTALL=$ac_cv_path_install
2843   else
2844     # As a last resort, use the slow shell script.  Don't cache a
2845     # value for INSTALL within a source directory, because that will
2846     # break other packages using the cache if that directory is
2847     # removed, or if the value is a relative name.
2848     INSTALL=$ac_install_sh
2849   fi
2850 fi
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2852 $as_echo "$INSTALL" >&6; }
2853
2854 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2855 # It thinks the first close brace ends the variable substitution.
2856 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2857
2858 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2859
2860 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2863 $as_echo_n "checking whether build environment is sane... " >&6; }
2864 # Just in case
2865 sleep 1
2866 echo timestamp > conftest.file
2867 # Reject unsafe characters in $srcdir or the absolute working directory
2868 # name.  Accept space and tab only in the latter.
2869 am_lf='
2870 '
2871 case `pwd` in
2872   *[\\\"\#\$\&\'\`$am_lf]*)
2873     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2874 esac
2875 case $srcdir in
2876   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2877     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2878 esac
2879
2880 # Do `set' in a subshell so we don't clobber the current shell's
2881 # arguments.  Must try -L first in case configure is actually a
2882 # symlink; some systems play weird games with the mod time of symlinks
2883 # (eg FreeBSD returns the mod time of the symlink's containing
2884 # directory).
2885 if (
2886    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2887    if test "$*" = "X"; then
2888       # -L didn't work.
2889       set X `ls -t "$srcdir/configure" conftest.file`
2890    fi
2891    rm -f conftest.file
2892    if test "$*" != "X $srcdir/configure conftest.file" \
2893       && test "$*" != "X conftest.file $srcdir/configure"; then
2894
2895       # If neither matched, then we have a broken ls.  This can happen
2896       # if, for instance, CONFIG_SHELL is bash and it inherits a
2897       # broken ls alias from the environment.  This has actually
2898       # happened.  Such a system could not be considered "sane".
2899       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2900 alias in your environment" "$LINENO" 5
2901    fi
2902
2903    test "$2" = conftest.file
2904    )
2905 then
2906    # Ok.
2907    :
2908 else
2909    as_fn_error $? "newly created file is older than distributed files!
2910 Check your system clock" "$LINENO" 5
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2913 $as_echo "yes" >&6; }
2914 test "$program_prefix" != NONE &&
2915   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2916 # Use a double $ so make ignores it.
2917 test "$program_suffix" != NONE &&
2918   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2919 # Double any \ or $.
2920 # By default was `s,x,x', remove it if useless.
2921 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2922 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2923
2924 if test x"${MISSING+set}" != xset; then
2925   case $am_aux_dir in
2926   *\ * | *\     *)
2927     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2928   *)
2929     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2930   esac
2931 fi
2932 # Use eval to expand $SHELL
2933 if eval "$MISSING --run true"; then
2934   am_missing_run="$MISSING --run "
2935 else
2936   am_missing_run=
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2938 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2939 fi
2940
2941 if test x"${install_sh}" != xset; then
2942   case $am_aux_dir in
2943   *\ * | *\     *)
2944     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2945   *)
2946     install_sh="\${SHELL} $am_aux_dir/install-sh"
2947   esac
2948 fi
2949
2950 # Installed binaries are usually stripped using `strip' when the user
2951 # run `make install-strip'.  However `strip' might not be the right
2952 # tool to use in cross-compilation environments, therefore Automake
2953 # will honor the `STRIP' environment variable to overrule this program.
2954 if test "$cross_compiling" != no; then
2955   if test -n "$ac_tool_prefix"; then
2956   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2957 set dummy ${ac_tool_prefix}strip; ac_word=$2
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2959 $as_echo_n "checking for $ac_word... " >&6; }
2960 if ${ac_cv_prog_STRIP+:} false; then :
2961   $as_echo_n "(cached) " >&6
2962 else
2963   if test -n "$STRIP"; then
2964   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969   IFS=$as_save_IFS
2970   test -z "$as_dir" && as_dir=.
2971     for ac_exec_ext in '' $ac_executable_extensions; do
2972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2973     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2974     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2975     break 2
2976   fi
2977 done
2978   done
2979 IFS=$as_save_IFS
2980
2981 fi
2982 fi
2983 STRIP=$ac_cv_prog_STRIP
2984 if test -n "$STRIP"; then
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2986 $as_echo "$STRIP" >&6; }
2987 else
2988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2989 $as_echo "no" >&6; }
2990 fi
2991
2992
2993 fi
2994 if test -z "$ac_cv_prog_STRIP"; then
2995   ac_ct_STRIP=$STRIP
2996   # Extract the first word of "strip", so it can be a program name with args.
2997 set dummy strip; ac_word=$2
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2999 $as_echo_n "checking for $ac_word... " >&6; }
3000 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3001   $as_echo_n "(cached) " >&6
3002 else
3003   if test -n "$ac_ct_STRIP"; then
3004   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3005 else
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011     for ac_exec_ext in '' $ac_executable_extensions; do
3012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3013     ac_cv_prog_ac_ct_STRIP="strip"
3014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3015     break 2
3016   fi
3017 done
3018   done
3019 IFS=$as_save_IFS
3020
3021 fi
3022 fi
3023 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3024 if test -n "$ac_ct_STRIP"; then
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3026 $as_echo "$ac_ct_STRIP" >&6; }
3027 else
3028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3029 $as_echo "no" >&6; }
3030 fi
3031
3032   if test "x$ac_ct_STRIP" = x; then
3033     STRIP=":"
3034   else
3035     case $cross_compiling:$ac_tool_warned in
3036 yes:)
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned=yes ;;
3040 esac
3041     STRIP=$ac_ct_STRIP
3042   fi
3043 else
3044   STRIP="$ac_cv_prog_STRIP"
3045 fi
3046
3047 fi
3048 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3049
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3052 if test -z "$MKDIR_P"; then
3053   if ${ac_cv_path_mkdir+:} false; then :
3054   $as_echo_n "(cached) " >&6
3055 else
3056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     for ac_prog in mkdir gmkdir; do
3062          for ac_exec_ext in '' $ac_executable_extensions; do
3063            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3064            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3065              'mkdir (GNU coreutils) '* | \
3066              'mkdir (coreutils) '* | \
3067              'mkdir (fileutils) '4.1*)
3068                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3069                break 3;;
3070            esac
3071          done
3072        done
3073   done
3074 IFS=$as_save_IFS
3075
3076 fi
3077
3078   test -d ./--version && rmdir ./--version
3079   if test "${ac_cv_path_mkdir+set}" = set; then
3080     MKDIR_P="$ac_cv_path_mkdir -p"
3081   else
3082     # As a last resort, use the slow shell script.  Don't cache a
3083     # value for MKDIR_P within a source directory, because that will
3084     # break other packages using the cache if that directory is
3085     # removed, or if the value is a relative name.
3086     MKDIR_P="$ac_install_sh -d"
3087   fi
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3090 $as_echo "$MKDIR_P" >&6; }
3091
3092 mkdir_p="$MKDIR_P"
3093 case $mkdir_p in
3094   [\\/$]* | ?:[\\/]*) ;;
3095   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3096 esac
3097
3098 for ac_prog in gawk mawk nawk awk
3099 do
3100   # Extract the first word of "$ac_prog", so it can be a program name with args.
3101 set dummy $ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_AWK+:} false; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test -n "$AWK"; then
3108   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115     for ac_exec_ext in '' $ac_executable_extensions; do
3116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3117     ac_cv_prog_AWK="$ac_prog"
3118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122   done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 AWK=$ac_cv_prog_AWK
3128 if test -n "$AWK"; then
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3130 $as_echo "$AWK" >&6; }
3131 else
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137   test -n "$AWK" && break
3138 done
3139
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3141 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3142 set x ${MAKE-make}
3143 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3144 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   cat >conftest.make <<\_ACEOF
3148 SHELL = /bin/sh
3149 all:
3150         @echo '@@@%%%=$(MAKE)=@@@%%%'
3151 _ACEOF
3152 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3153 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3154   *@@@%%%=?*=@@@%%%*)
3155     eval ac_cv_prog_make_${ac_make}_set=yes;;
3156   *)
3157     eval ac_cv_prog_make_${ac_make}_set=no;;
3158 esac
3159 rm -f conftest.make
3160 fi
3161 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3164   SET_MAKE=
3165 else
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167 $as_echo "no" >&6; }
3168   SET_MAKE="MAKE=${MAKE-make}"
3169 fi
3170
3171 rm -rf .tst 2>/dev/null
3172 mkdir .tst 2>/dev/null
3173 if test -d .tst; then
3174   am__leading_dot=.
3175 else
3176   am__leading_dot=_
3177 fi
3178 rmdir .tst 2>/dev/null
3179
3180 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3181   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3182   # is not polluted with repeated "-I."
3183   am__isrc=' -I$(srcdir)'
3184   # test to see if srcdir already configured
3185   if test -f $srcdir/config.status; then
3186     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3187   fi
3188 fi
3189
3190 # test whether we have cygpath
3191 if test -z "$CYGPATH_W"; then
3192   if (cygpath --version) >/dev/null 2>/dev/null; then
3193     CYGPATH_W='cygpath -w'
3194   else
3195     CYGPATH_W=echo
3196   fi
3197 fi
3198
3199
3200 # Define the identity of the package.
3201  PACKAGE='libffi'
3202  VERSION='3.0.11'
3203
3204
3205 cat >>confdefs.h <<_ACEOF
3206 #define PACKAGE "$PACKAGE"
3207 _ACEOF
3208
3209
3210 cat >>confdefs.h <<_ACEOF
3211 #define VERSION "$VERSION"
3212 _ACEOF
3213
3214 # Some tools Automake needs.
3215
3216 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3217
3218
3219 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3220
3221
3222 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3223
3224
3225 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3226
3227
3228 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3229
3230 # We need awk for the "check" target.  The system "awk" is bad on
3231 # some platforms.
3232 # Always define AMTAR for backward compatibility.
3233
3234 AMTAR=${AMTAR-"${am_missing_run}tar"}
3235
3236 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3237
3238
3239
3240
3241
3242
3243 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3244 # We must force CC to /not/ be precious variables; otherwise
3245 # the wrong, non-multilib-adjusted value will be used in multilibs.
3246 # As a side effect, we have to subst CFLAGS ourselves.
3247 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3248 # defaults of its own if none are provided.
3249
3250
3251
3252 save_CFLAGS=$CFLAGS
3253 ac_ext=c
3254 ac_cpp='$CPP $CPPFLAGS'
3255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3258 if test -n "$ac_tool_prefix"; then
3259   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3260 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3262 $as_echo_n "checking for $ac_word... " >&6; }
3263 if ${ac_cv_prog_CC+:} false; then :
3264   $as_echo_n "(cached) " >&6
3265 else
3266   if test -n "$CC"; then
3267   ac_cv_prog_CC="$CC" # Let the user override the test.
3268 else
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270 for as_dir in $PATH
3271 do
3272   IFS=$as_save_IFS
3273   test -z "$as_dir" && as_dir=.
3274     for ac_exec_ext in '' $ac_executable_extensions; do
3275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3276     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3278     break 2
3279   fi
3280 done
3281   done
3282 IFS=$as_save_IFS
3283
3284 fi
3285 fi
3286 CC=$ac_cv_prog_CC
3287 if test -n "$CC"; then
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3289 $as_echo "$CC" >&6; }
3290 else
3291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3292 $as_echo "no" >&6; }
3293 fi
3294
3295
3296 fi
3297 if test -z "$ac_cv_prog_CC"; then
3298   ac_ct_CC=$CC
3299   # Extract the first word of "gcc", so it can be a program name with args.
3300 set dummy gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$ac_ct_CC"; then
3307   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316     ac_cv_prog_ac_ct_CC="gcc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3327 if test -n "$ac_ct_CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3329 $as_echo "$ac_ct_CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335   if test "x$ac_ct_CC" = x; then
3336     CC=""
3337   else
3338     case $cross_compiling:$ac_tool_warned in
3339 yes:)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3342 ac_tool_warned=yes ;;
3343 esac
3344     CC=$ac_ct_CC
3345   fi
3346 else
3347   CC="$ac_cv_prog_CC"
3348 fi
3349
3350 if test -z "$CC"; then
3351           if test -n "$ac_tool_prefix"; then
3352     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3353 set dummy ${ac_tool_prefix}cc; ac_word=$2
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3355 $as_echo_n "checking for $ac_word... " >&6; }
3356 if ${ac_cv_prog_CC+:} false; then :
3357   $as_echo_n "(cached) " >&6
3358 else
3359   if test -n "$CC"; then
3360   ac_cv_prog_CC="$CC" # Let the user override the test.
3361 else
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3363 for as_dir in $PATH
3364 do
3365   IFS=$as_save_IFS
3366   test -z "$as_dir" && as_dir=.
3367     for ac_exec_ext in '' $ac_executable_extensions; do
3368   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3369     ac_cv_prog_CC="${ac_tool_prefix}cc"
3370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3371     break 2
3372   fi
3373 done
3374   done
3375 IFS=$as_save_IFS
3376
3377 fi
3378 fi
3379 CC=$ac_cv_prog_CC
3380 if test -n "$CC"; then
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3382 $as_echo "$CC" >&6; }
3383 else
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 fi
3387
3388
3389   fi
3390 fi
3391 if test -z "$CC"; then
3392   # Extract the first word of "cc", so it can be a program name with args.
3393 set dummy cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$CC"; then
3400   ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402   ac_prog_rejected=no
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406   IFS=$as_save_IFS
3407   test -z "$as_dir" && as_dir=.
3408     for ac_exec_ext in '' $ac_executable_extensions; do
3409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3411        ac_prog_rejected=yes
3412        continue
3413      fi
3414     ac_cv_prog_CC="cc"
3415     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416     break 2
3417   fi
3418 done
3419   done
3420 IFS=$as_save_IFS
3421
3422 if test $ac_prog_rejected = yes; then
3423   # We found a bogon in the path, so make sure we never use it.
3424   set dummy $ac_cv_prog_CC
3425   shift
3426   if test $# != 0; then
3427     # We chose a different compiler from the bogus one.
3428     # However, it has the same basename, so the bogon will be chosen
3429     # first if we set CC to just the basename; use the full file name.
3430     shift
3431     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3432   fi
3433 fi
3434 fi
3435 fi
3436 CC=$ac_cv_prog_CC
3437 if test -n "$CC"; then
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3439 $as_echo "$CC" >&6; }
3440 else
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3442 $as_echo "no" >&6; }
3443 fi
3444
3445
3446 fi
3447 if test -z "$CC"; then
3448   if test -n "$ac_tool_prefix"; then
3449   for ac_prog in cl.exe
3450   do
3451     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3452 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 $as_echo_n "checking for $ac_word... " >&6; }
3455 if ${ac_cv_prog_CC+:} false; then :
3456   $as_echo_n "(cached) " >&6
3457 else
3458   if test -n "$CC"; then
3459   ac_cv_prog_CC="$CC" # Let the user override the test.
3460 else
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 for as_dir in $PATH
3463 do
3464   IFS=$as_save_IFS
3465   test -z "$as_dir" && as_dir=.
3466     for ac_exec_ext in '' $ac_executable_extensions; do
3467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473   done
3474 IFS=$as_save_IFS
3475
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488     test -n "$CC" && break
3489   done
3490 fi
3491 if test -z "$CC"; then
3492   ac_ct_CC=$CC
3493   for ac_prog in cl.exe
3494 do
3495   # Extract the first word of "$ac_prog", so it can be a program name with args.
3496 set dummy $ac_prog; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3500   $as_echo_n "(cached) " >&6
3501 else
3502   if test -n "$ac_ct_CC"; then
3503   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3504 else
3505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 for as_dir in $PATH
3507 do
3508   IFS=$as_save_IFS
3509   test -z "$as_dir" && as_dir=.
3510     for ac_exec_ext in '' $ac_executable_extensions; do
3511   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3512     ac_cv_prog_ac_ct_CC="$ac_prog"
3513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3514     break 2
3515   fi
3516 done
3517   done
3518 IFS=$as_save_IFS
3519
3520 fi
3521 fi
3522 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3523 if test -n "$ac_ct_CC"; then
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3525 $as_echo "$ac_ct_CC" >&6; }
3526 else
3527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 fi
3530
3531
3532   test -n "$ac_ct_CC" && break
3533 done
3534
3535   if test "x$ac_ct_CC" = x; then
3536     CC=""
3537   else
3538     case $cross_compiling:$ac_tool_warned in
3539 yes:)
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3541 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3542 ac_tool_warned=yes ;;
3543 esac
3544     CC=$ac_ct_CC
3545   fi
3546 fi
3547
3548 fi
3549
3550
3551 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "no acceptable C compiler found in \$PATH
3554 See \`config.log' for more details" "$LINENO" 5; }
3555
3556 # Provide some information about the compiler.
3557 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3558 set X $ac_compile
3559 ac_compiler=$2
3560 for ac_option in --version -v -V -qversion; do
3561   { { ac_try="$ac_compiler $ac_option >&5"
3562 case "(($ac_try" in
3563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3564   *) ac_try_echo=$ac_try;;
3565 esac
3566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3567 $as_echo "$ac_try_echo"; } >&5
3568   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569   ac_status=$?
3570   if test -s conftest.err; then
3571     sed '10a\
3572 ... rest of stderr output deleted ...
3573          10q' conftest.err >conftest.er1
3574     cat conftest.er1 >&5
3575   fi
3576   rm -f conftest.er1 conftest.err
3577   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578   test $ac_status = 0; }
3579 done
3580
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h.  */
3583
3584 int
3585 main ()
3586 {
3587
3588   ;
3589   return 0;
3590 }
3591 _ACEOF
3592 ac_clean_files_save=$ac_clean_files
3593 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3594 # Try to create an executable without -o first, disregard a.out.
3595 # It will help us diagnose broken compilers, and finding out an intuition
3596 # of exeext.
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3598 $as_echo_n "checking whether the C compiler works... " >&6; }
3599 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600
3601 # The possible output files:
3602 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3603
3604 ac_rmfiles=
3605 for ac_file in $ac_files
3606 do
3607   case $ac_file in
3608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3609     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3610   esac
3611 done
3612 rm -f $ac_rmfiles
3613
3614 if { { ac_try="$ac_link_default"
3615 case "(($ac_try" in
3616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617   *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621   (eval "$ac_link_default") 2>&5
3622   ac_status=$?
3623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624   test $ac_status = 0; }; then :
3625   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3626 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3627 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3628 # so that the user can short-circuit this test for compilers unknown to
3629 # Autoconf.
3630 for ac_file in $ac_files ''
3631 do
3632   test -f "$ac_file" || continue
3633   case $ac_file in
3634     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3635         ;;
3636     [ab].out )
3637         # We found the default executable, but exeext='' is most
3638         # certainly right.
3639         break;;
3640     *.* )
3641         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642         then :; else
3643            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644         fi
3645         # We set ac_cv_exeext here because the later test for it is not
3646         # safe: cross compilers may not add the suffix if given an `-o'
3647         # argument, so we may need to know it at that point already.
3648         # Even if this section looks crufty: it has the advantage of
3649         # actually working.
3650         break;;
3651     * )
3652         break;;
3653   esac
3654 done
3655 test "$ac_cv_exeext" = no && ac_cv_exeext=
3656
3657 else
3658   ac_file=''
3659 fi
3660 if test -z "$ac_file"; then :
3661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3665
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error 77 "C compiler cannot create executables
3669 See \`config.log' for more details" "$LINENO" 5; }
3670 else
3671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3672 $as_echo "yes" >&6; }
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3675 $as_echo_n "checking for C compiler default output file name... " >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3677 $as_echo "$ac_file" >&6; }
3678 ac_exeext=$ac_cv_exeext
3679
3680 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3683 $as_echo_n "checking for suffix of executables... " >&6; }
3684 if { { ac_try="$ac_link"
3685 case "(($ac_try" in
3686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3687   *) ac_try_echo=$ac_try;;
3688 esac
3689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3690 $as_echo "$ac_try_echo"; } >&5
3691   (eval "$ac_link") 2>&5
3692   ac_status=$?
3693   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3694   test $ac_status = 0; }; then :
3695   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3696 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3697 # work properly (i.e., refer to `conftest.exe'), while it won't with
3698 # `rm'.
3699 for ac_file in conftest.exe conftest conftest.*; do
3700   test -f "$ac_file" || continue
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3703     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704           break;;
3705     * ) break;;
3706   esac
3707 done
3708 else
3709   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3711 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3712 See \`config.log' for more details" "$LINENO" 5; }
3713 fi
3714 rm -f conftest conftest$ac_cv_exeext
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3716 $as_echo "$ac_cv_exeext" >&6; }
3717
3718 rm -f conftest.$ac_ext
3719 EXEEXT=$ac_cv_exeext
3720 ac_exeext=$EXEEXT
3721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3722 /* end confdefs.h.  */
3723 #include <stdio.h>
3724 int
3725 main ()
3726 {
3727 FILE *f = fopen ("conftest.out", "w");
3728  return ferror (f) || fclose (f) != 0;
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 ac_clean_files="$ac_clean_files conftest.out"
3735 # Check that the compiler produces executables we can run.  If not, either
3736 # the compiler is broken, or we cross compile.
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738 $as_echo_n "checking whether we are cross compiling... " >&6; }
3739 if test "$cross_compiling" != yes; then
3740   { { ac_try="$ac_link"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_link") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }
3751   if { ac_try='./conftest$ac_cv_exeext'
3752   { { case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758   (eval "$ac_try") 2>&5
3759   ac_status=$?
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }; }; then
3762     cross_compiling=no
3763   else
3764     if test "$cross_compiling" = maybe; then
3765         cross_compiling=yes
3766     else
3767         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3769 as_fn_error $? "cannot run C compiled programs.
3770 If you meant to cross compile, use \`--host'.
3771 See \`config.log' for more details" "$LINENO" 5; }
3772     fi
3773   fi
3774 fi
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3776 $as_echo "$cross_compiling" >&6; }
3777
3778 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3779 ac_clean_files=$ac_clean_files_save
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3781 $as_echo_n "checking for suffix of object files... " >&6; }
3782 if ${ac_cv_objext+:} false; then :
3783   $as_echo_n "(cached) " >&6
3784 else
3785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 rm -f conftest.o conftest.obj
3797 if { { ac_try="$ac_compile"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_compile") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; then :
3808   for ac_file in conftest.o conftest.obj conftest.*; do
3809   test -f "$ac_file" || continue;
3810   case $ac_file in
3811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3812     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813        break;;
3814   esac
3815 done
3816 else
3817   $as_echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details" "$LINENO" 5; }
3824 fi
3825 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3828 $as_echo "$ac_cv_objext" >&6; }
3829 OBJEXT=$ac_cv_objext
3830 ac_objext=$OBJEXT
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3832 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3833 if ${ac_cv_c_compiler_gnu+:} false; then :
3834   $as_echo_n "(cached) " >&6
3835 else
3836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h.  */
3838
3839 int
3840 main ()
3841 {
3842 #ifndef __GNUC__
3843        choke me
3844 #endif
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_compiler_gnu=yes
3852 else
3853   ac_compiler_gnu=no
3854 fi
3855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3856 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3857
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3860 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3861 if test $ac_compiler_gnu = yes; then
3862   GCC=yes
3863 else
3864   GCC=
3865 fi
3866 ac_test_CFLAGS=${CFLAGS+set}
3867 ac_save_CFLAGS=$CFLAGS
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3869 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3870 if ${ac_cv_prog_cc_g+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   ac_save_c_werror_flag=$ac_c_werror_flag
3874    ac_c_werror_flag=yes
3875    ac_cv_prog_cc_g=no
3876    CFLAGS="-g"
3877    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3878 /* end confdefs.h.  */
3879
3880 int
3881 main ()
3882 {
3883
3884   ;
3885   return 0;
3886 }
3887 _ACEOF
3888 if ac_fn_c_try_compile "$LINENO"; then :
3889   ac_cv_prog_cc_g=yes
3890 else
3891   CFLAGS=""
3892       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898
3899   ;
3900   return 0;
3901 }
3902 _ACEOF
3903 if ac_fn_c_try_compile "$LINENO"; then :
3904
3905 else
3906   ac_c_werror_flag=$ac_save_c_werror_flag
3907          CFLAGS="-g"
3908          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909 /* end confdefs.h.  */
3910
3911 int
3912 main ()
3913 {
3914
3915   ;
3916   return 0;
3917 }
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920   ac_cv_prog_cc_g=yes
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 fi
3926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3927    ac_c_werror_flag=$ac_save_c_werror_flag
3928 fi
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3930 $as_echo "$ac_cv_prog_cc_g" >&6; }
3931 if test "$ac_test_CFLAGS" = set; then
3932   CFLAGS=$ac_save_CFLAGS
3933 elif test $ac_cv_prog_cc_g = yes; then
3934   if test "$GCC" = yes; then
3935     CFLAGS="-g -O2"
3936   else
3937     CFLAGS="-g"
3938   fi
3939 else
3940   if test "$GCC" = yes; then
3941     CFLAGS="-O2"
3942   else
3943     CFLAGS=
3944   fi
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3947 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3948 if ${ac_cv_prog_cc_c89+:} false; then :
3949   $as_echo_n "(cached) " >&6
3950 else
3951   ac_cv_prog_cc_c89=no
3952 ac_save_CC=$CC
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955 #include <stdarg.h>
3956 #include <stdio.h>
3957 #include <sys/types.h>
3958 #include <sys/stat.h>
3959 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3960 struct buf { int x; };
3961 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3962 static char *e (p, i)
3963      char **p;
3964      int i;
3965 {
3966   return p[i];
3967 }
3968 static char *f (char * (*g) (char **, int), char **p, ...)
3969 {
3970   char *s;
3971   va_list v;
3972   va_start (v,p);
3973   s = g (p, va_arg (v,int));
3974   va_end (v);
3975   return s;
3976 }
3977
3978 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3979    function prototypes and stuff, but not '\xHH' hex character constants.
3980    These don't provoke an error unfortunately, instead are silently treated
3981    as 'x'.  The following induces an error, until -std is added to get
3982    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3983    array size at least.  It's necessary to write '\x00'==0 to get something
3984    that's true only with -std.  */
3985 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986
3987 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3988    inside strings and character constants.  */
3989 #define FOO(x) 'x'
3990 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991
3992 int test (int i, double x);
3993 struct s1 {int (*f) (int a);};
3994 struct s2 {int (*f) (double a);};
3995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996 int argc;
3997 char **argv;
3998 int
3999 main ()
4000 {
4001 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4002   ;
4003   return 0;
4004 }
4005 _ACEOF
4006 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4007         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 do
4009   CC="$ac_save_CC $ac_arg"
4010   if ac_fn_c_try_compile "$LINENO"; then :
4011   ac_cv_prog_cc_c89=$ac_arg
4012 fi
4013 rm -f core conftest.err conftest.$ac_objext
4014   test "x$ac_cv_prog_cc_c89" != "xno" && break
4015 done
4016 rm -f conftest.$ac_ext
4017 CC=$ac_save_CC
4018
4019 fi
4020 # AC_CACHE_VAL
4021 case "x$ac_cv_prog_cc_c89" in
4022   x)
4023     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4024 $as_echo "none needed" >&6; } ;;
4025   xno)
4026     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4027 $as_echo "unsupported" >&6; } ;;
4028   *)
4029     CC="$CC $ac_cv_prog_cc_c89"
4030     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4031 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 esac
4033 if test "x$ac_cv_prog_cc_c89" != xno; then :
4034
4035 fi
4036
4037 ac_ext=c
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 DEPDIR="${am__leading_dot}deps"
4043
4044 ac_config_commands="$ac_config_commands depfiles"
4045
4046
4047 am_make=${MAKE-make}
4048 cat > confinc << 'END'
4049 am__doit:
4050         @echo this is the am__doit target
4051 .PHONY: am__doit
4052 END
4053 # If we don't find an include directive, just comment out the code.
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4055 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4056 am__include="#"
4057 am__quote=
4058 _am_result=none
4059 # First try GNU make style include.
4060 echo "include confinc" > confmf
4061 # Ignore all kinds of additional output from `make'.
4062 case `$am_make -s -f confmf 2> /dev/null` in #(
4063 *the\ am__doit\ target*)
4064   am__include=include
4065   am__quote=
4066   _am_result=GNU
4067   ;;
4068 esac
4069 # Now try BSD make style include.
4070 if test "$am__include" = "#"; then
4071    echo '.include "confinc"' > confmf
4072    case `$am_make -s -f confmf 2> /dev/null` in #(
4073    *the\ am__doit\ target*)
4074      am__include=.include
4075      am__quote="\""
4076      _am_result=BSD
4077      ;;
4078    esac
4079 fi
4080
4081
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4083 $as_echo "$_am_result" >&6; }
4084 rm -f confinc confmf
4085
4086 # Check whether --enable-dependency-tracking was given.
4087 if test "${enable_dependency_tracking+set}" = set; then :
4088   enableval=$enable_dependency_tracking;
4089 fi
4090
4091 if test "x$enable_dependency_tracking" != xno; then
4092   am_depcomp="$ac_aux_dir/depcomp"
4093   AMDEPBACKSLASH='\'
4094 fi
4095  if test "x$enable_dependency_tracking" != xno; then
4096   AMDEP_TRUE=
4097   AMDEP_FALSE='#'
4098 else
4099   AMDEP_TRUE='#'
4100   AMDEP_FALSE=
4101 fi
4102
4103
4104
4105 depcc="$CC"   am_compiler_list=
4106
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4108 $as_echo_n "checking dependency style of $depcc... " >&6; }
4109 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4110   $as_echo_n "(cached) " >&6
4111 else
4112   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4113   # We make a subdir and do the tests there.  Otherwise we can end up
4114   # making bogus files that we don't know about and never remove.  For
4115   # instance it was reported that on HP-UX the gcc test will end up
4116   # making a dummy file named `D' -- because `-MD' means `put the output
4117   # in D'.
4118   mkdir conftest.dir
4119   # Copy depcomp to subdir because otherwise we won't find it if we're
4120   # using a relative directory.
4121   cp "$am_depcomp" conftest.dir
4122   cd conftest.dir
4123   # We will build objects and dependencies in a subdirectory because
4124   # it helps to detect inapplicable dependency modes.  For instance
4125   # both Tru64's cc and ICC support -MD to output dependencies as a
4126   # side effect of compilation, but ICC will put the dependencies in
4127   # the current directory while Tru64 will put them in the object
4128   # directory.
4129   mkdir sub
4130
4131   am_cv_CC_dependencies_compiler_type=none
4132   if test "$am_compiler_list" = ""; then
4133      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4134   fi
4135   am__universal=false
4136   case " $depcc " in #(
4137      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4138      esac
4139
4140   for depmode in $am_compiler_list; do
4141     # Setup a source with many dependencies, because some compilers
4142     # like to wrap large dependency lists on column 80 (with \), and
4143     # we should not choose a depcomp mode which is confused by this.
4144     #
4145     # We need to recreate these files for each test, as the compiler may
4146     # overwrite some of them when testing with obscure command lines.
4147     # This happens at least with the AIX C compiler.
4148     : > sub/conftest.c
4149     for i in 1 2 3 4 5 6; do
4150       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4151       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4152       # Solaris 8's {/usr,}/bin/sh.
4153       touch sub/conftst$i.h
4154     done
4155     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4156
4157     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4158     # mode.  It turns out that the SunPro C++ compiler does not properly
4159     # handle `-M -o', and we need to detect this.  Also, some Intel
4160     # versions had trouble with output in subdirs
4161     am__obj=sub/conftest.${OBJEXT-o}
4162     am__minus_obj="-o $am__obj"
4163     case $depmode in
4164     gcc)
4165       # This depmode causes a compiler race in universal mode.
4166       test "$am__universal" = false || continue
4167       ;;
4168     nosideeffect)
4169       # after this tag, mechanisms are not by side-effect, so they'll
4170       # only be used when explicitly requested
4171       if test "x$enable_dependency_tracking" = xyes; then
4172         continue
4173       else
4174         break
4175       fi
4176       ;;
4177     msvisualcpp | msvcmsys)
4178       # This compiler won't grok `-c -o', but also, the minuso test has
4179       # not run yet.  These depmodes are late enough in the game, and
4180       # so weak that their functioning should not be impacted.
4181       am__obj=conftest.${OBJEXT-o}
4182       am__minus_obj=
4183       ;;
4184     none) break ;;
4185     esac
4186     if depmode=$depmode \
4187        source=sub/conftest.c object=$am__obj \
4188        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4189        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4190          >/dev/null 2>conftest.err &&
4191        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4192        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4193        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4194        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4195       # icc doesn't choke on unknown options, it will just issue warnings
4196       # or remarks (even with -Werror).  So we grep stderr for any message
4197       # that says an option was ignored or not supported.
4198       # When given -MP, icc 7.0 and 7.1 complain thusly:
4199       #   icc: Command line warning: ignoring option '-M'; no argument required
4200       # The diagnosis changed in icc 8.0:
4201       #   icc: Command line remark: option '-MP' not supported
4202       if (grep 'ignoring option' conftest.err ||
4203           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4204         am_cv_CC_dependencies_compiler_type=$depmode
4205         break
4206       fi
4207     fi
4208   done
4209
4210   cd ..
4211   rm -rf conftest.dir
4212 else
4213   am_cv_CC_dependencies_compiler_type=none
4214 fi
4215
4216 fi
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4218 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4219 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4220
4221  if
4222   test "x$enable_dependency_tracking" != xno \
4223   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4224   am__fastdepCC_TRUE=
4225   am__fastdepCC_FALSE='#'
4226 else
4227   am__fastdepCC_TRUE='#'
4228   am__fastdepCC_FALSE=
4229 fi
4230
4231
4232 CFLAGS=$save_CFLAGS
4233
4234
4235
4236
4237
4238 # By default we simply use the C compiler to build assembly code.
4239
4240 test "${CCAS+set}" = set || CCAS=$CC
4241 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4242
4243
4244
4245 depcc="$CCAS"   am_compiler_list=
4246
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4248 $as_echo_n "checking dependency style of $depcc... " >&6; }
4249 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4250   $as_echo_n "(cached) " >&6
4251 else
4252   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4253   # We make a subdir and do the tests there.  Otherwise we can end up
4254   # making bogus files that we don't know about and never remove.  For
4255   # instance it was reported that on HP-UX the gcc test will end up
4256   # making a dummy file named `D' -- because `-MD' means `put the output
4257   # in D'.
4258   mkdir conftest.dir
4259   # Copy depcomp to subdir because otherwise we won't find it if we're
4260   # using a relative directory.
4261   cp "$am_depcomp" conftest.dir
4262   cd conftest.dir
4263   # We will build objects and dependencies in a subdirectory because
4264   # it helps to detect inapplicable dependency modes.  For instance
4265   # both Tru64's cc and ICC support -MD to output dependencies as a
4266   # side effect of compilation, but ICC will put the dependencies in
4267   # the current directory while Tru64 will put them in the object
4268   # directory.
4269   mkdir sub
4270
4271   am_cv_CCAS_dependencies_compiler_type=none
4272   if test "$am_compiler_list" = ""; then
4273      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4274   fi
4275   am__universal=false
4276
4277
4278   for depmode in $am_compiler_list; do
4279     # Setup a source with many dependencies, because some compilers
4280     # like to wrap large dependency lists on column 80 (with \), and
4281     # we should not choose a depcomp mode which is confused by this.
4282     #
4283     # We need to recreate these files for each test, as the compiler may
4284     # overwrite some of them when testing with obscure command lines.
4285     # This happens at least with the AIX C compiler.
4286     : > sub/conftest.c
4287     for i in 1 2 3 4 5 6; do
4288       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4289       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4290       # Solaris 8's {/usr,}/bin/sh.
4291       touch sub/conftst$i.h
4292     done
4293     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4294
4295     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4296     # mode.  It turns out that the SunPro C++ compiler does not properly
4297     # handle `-M -o', and we need to detect this.  Also, some Intel
4298     # versions had trouble with output in subdirs
4299     am__obj=sub/conftest.${OBJEXT-o}
4300     am__minus_obj="-o $am__obj"
4301     case $depmode in
4302     gcc)
4303       # This depmode causes a compiler race in universal mode.
4304       test "$am__universal" = false || continue
4305       ;;
4306     nosideeffect)
4307       # after this tag, mechanisms are not by side-effect, so they'll
4308       # only be used when explicitly requested
4309       if test "x$enable_dependency_tracking" = xyes; then
4310         continue
4311       else
4312         break
4313       fi
4314       ;;
4315     msvisualcpp | msvcmsys)
4316       # This compiler won't grok `-c -o', but also, the minuso test has
4317       # not run yet.  These depmodes are late enough in the game, and
4318       # so weak that their functioning should not be impacted.
4319       am__obj=conftest.${OBJEXT-o}
4320       am__minus_obj=
4321       ;;
4322     none) break ;;
4323     esac
4324     if depmode=$depmode \
4325        source=sub/conftest.c object=$am__obj \
4326        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4327        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4328          >/dev/null 2>conftest.err &&
4329        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4330        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4331        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4332        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4333       # icc doesn't choke on unknown options, it will just issue warnings
4334       # or remarks (even with -Werror).  So we grep stderr for any message
4335       # that says an option was ignored or not supported.
4336       # When given -MP, icc 7.0 and 7.1 complain thusly:
4337       #   icc: Command line warning: ignoring option '-M'; no argument required
4338       # The diagnosis changed in icc 8.0:
4339       #   icc: Command line remark: option '-MP' not supported
4340       if (grep 'ignoring option' conftest.err ||
4341           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4342         am_cv_CCAS_dependencies_compiler_type=$depmode
4343         break
4344       fi
4345     fi
4346   done
4347
4348   cd ..
4349   rm -rf conftest.dir
4350 else
4351   am_cv_CCAS_dependencies_compiler_type=none
4352 fi
4353
4354 fi
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4356 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4357 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4358
4359  if
4360   test "x$enable_dependency_tracking" != xno \
4361   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4362   am__fastdepCCAS_TRUE=
4363   am__fastdepCCAS_FALSE='#'
4364 else
4365   am__fastdepCCAS_TRUE='#'
4366   am__fastdepCCAS_FALSE=
4367 fi
4368
4369
4370 if test "x$CC" != xcc; then
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4372 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4375 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4376 fi
4377 set dummy $CC; ac_cc=`$as_echo "$2" |
4378                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4379 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4380   $as_echo_n "(cached) " >&6
4381 else
4382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h.  */
4384
4385 int
4386 main ()
4387 {
4388
4389   ;
4390   return 0;
4391 }
4392 _ACEOF
4393 # Make sure it works both with $CC and with simple cc.
4394 # We do the test twice because some compilers refuse to overwrite an
4395 # existing .o file with -o, though they will create one.
4396 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4397 rm -f conftest2.*
4398 if { { case "(($ac_try" in
4399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4400   *) ac_try_echo=$ac_try;;
4401 esac
4402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4403 $as_echo "$ac_try_echo"; } >&5
4404   (eval "$ac_try") 2>&5
4405   ac_status=$?
4406   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4407   test $ac_status = 0; } &&
4408    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410   *) ac_try_echo=$ac_try;;
4411 esac
4412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4413 $as_echo "$ac_try_echo"; } >&5
4414   (eval "$ac_try") 2>&5
4415   ac_status=$?
4416   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417   test $ac_status = 0; };
4418 then
4419   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4420   if test "x$CC" != xcc; then
4421     # Test first that cc exists at all.
4422     if { ac_try='cc -c conftest.$ac_ext >&5'
4423   { { case "(($ac_try" in
4424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425   *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429   (eval "$ac_try") 2>&5
4430   ac_status=$?
4431   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432   test $ac_status = 0; }; }; then
4433       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4434       rm -f conftest2.*
4435       if { { case "(($ac_try" in
4436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4437   *) ac_try_echo=$ac_try;;
4438 esac
4439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4440 $as_echo "$ac_try_echo"; } >&5
4441   (eval "$ac_try") 2>&5
4442   ac_status=$?
4443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4444   test $ac_status = 0; } &&
4445          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4450 $as_echo "$ac_try_echo"; } >&5
4451   (eval "$ac_try") 2>&5
4452   ac_status=$?
4453   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4454   test $ac_status = 0; };
4455       then
4456         # cc works too.
4457         :
4458       else
4459         # cc exists but doesn't like -o.
4460         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4461       fi
4462     fi
4463   fi
4464 else
4465   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4466 fi
4467 rm -f core conftest*
4468
4469 fi
4470 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4472 $as_echo "yes" >&6; }
4473 else
4474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4475 $as_echo "no" >&6; }
4476
4477 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4478
4479 fi
4480
4481 # FIXME: we rely on the cache variable name because
4482 # there is no other way.
4483 set dummy $CC
4484 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4485 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4486 if test "$am_t" != yes; then
4487    # Losing compiler, so override with the script.
4488    # FIXME: It is wrong to rewrite CC.
4489    # But if we don't then we get into trouble of one sort or another.
4490    # A longer-term fix would be to have automake use am__CC in this case,
4491    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4492    CC="$am_aux_dir/compile $CC"
4493 fi
4494
4495
4496 case `pwd` in
4497   *\ * | *\     *)
4498     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4499 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4500 esac
4501
4502
4503
4504 macro_version='2.4'
4505 macro_revision='1.3293'
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519 ltmain="$ac_aux_dir/ltmain.sh"
4520
4521 # Backslashify metacharacters that are still active within
4522 # double-quoted strings.
4523 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4524
4525 # Same as above, but do not quote variable references.
4526 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4527
4528 # Sed substitution to delay expansion of an escaped shell variable in a
4529 # double_quote_subst'ed string.
4530 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4531
4532 # Sed substitution to delay expansion of an escaped single quote.
4533 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4534
4535 # Sed substitution to avoid accidental globbing in evaled expressions
4536 no_glob_subst='s/\*/\\\*/g'
4537
4538 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4539 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4540 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4543 $as_echo_n "checking how to print strings... " >&6; }
4544 # Test print first, because it will be a builtin if present.
4545 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4546    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4547   ECHO='print -r --'
4548 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4549   ECHO='printf %s\n'
4550 else
4551   # Use this function as a fallback that always works.
4552   func_fallback_echo ()
4553   {
4554     eval 'cat <<_LTECHO_EOF
4555 $1
4556 _LTECHO_EOF'
4557   }
4558   ECHO='func_fallback_echo'
4559 fi
4560
4561 # func_echo_all arg...
4562 # Invoke $ECHO with all args, space-separated.
4563 func_echo_all ()
4564 {
4565     $ECHO ""
4566 }
4567
4568 case "$ECHO" in
4569   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4570 $as_echo "printf" >&6; } ;;
4571   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4572 $as_echo "print -r" >&6; } ;;
4573   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4574 $as_echo "cat" >&6; } ;;
4575 esac
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4591 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4592 if ${ac_cv_path_SED+:} false; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4596      for ac_i in 1 2 3 4 5 6 7; do
4597        ac_script="$ac_script$as_nl$ac_script"
4598      done
4599      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4600      { ac_script=; unset ac_script;}
4601      if test -z "$SED"; then
4602   ac_path_SED_found=false
4603   # Loop through the user's path and test for each of PROGNAME-LIST
4604   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607   IFS=$as_save_IFS
4608   test -z "$as_dir" && as_dir=.
4609     for ac_prog in sed gsed; do
4610     for ac_exec_ext in '' $ac_executable_extensions; do
4611       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4612       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4613 # Check for GNU ac_path_SED and select it if it is found.
4614   # Check for GNU $ac_path_SED
4615 case `"$ac_path_SED" --version 2>&1` in
4616 *GNU*)
4617   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4618 *)
4619   ac_count=0
4620   $as_echo_n 0123456789 >"conftest.in"
4621   while :
4622   do
4623     cat "conftest.in" "conftest.in" >"conftest.tmp"
4624     mv "conftest.tmp" "conftest.in"
4625     cp "conftest.in" "conftest.nl"
4626     $as_echo '' >> "conftest.nl"
4627     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629     as_fn_arith $ac_count + 1 && ac_count=$as_val
4630     if test $ac_count -gt ${ac_path_SED_max-0}; then
4631       # Best one so far, save it but keep looking for a better one
4632       ac_cv_path_SED="$ac_path_SED"
4633       ac_path_SED_max=$ac_count
4634     fi
4635     # 10*(2^10) chars as input seems more than enough
4636     test $ac_count -gt 10 && break
4637   done
4638   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4640
4641       $ac_path_SED_found && break 3
4642     done
4643   done
4644   done
4645 IFS=$as_save_IFS
4646   if test -z "$ac_cv_path_SED"; then
4647     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4648   fi
4649 else
4650   ac_cv_path_SED=$SED
4651 fi
4652
4653 fi
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4655 $as_echo "$ac_cv_path_SED" >&6; }
4656  SED="$ac_cv_path_SED"
4657   rm -f conftest.sed
4658
4659 test -z "$SED" && SED=sed
4660 Xsed="$SED -e 1s/^X//"
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4673 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4674 if ${ac_cv_path_GREP+:} false; then :
4675   $as_echo_n "(cached) " >&6
4676 else
4677   if test -z "$GREP"; then
4678   ac_path_GREP_found=false
4679   # Loop through the user's path and test for each of PROGNAME-LIST
4680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685     for ac_prog in grep ggrep; do
4686     for ac_exec_ext in '' $ac_executable_extensions; do
4687       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4688       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4689 # Check for GNU ac_path_GREP and select it if it is found.
4690   # Check for GNU $ac_path_GREP
4691 case `"$ac_path_GREP" --version 2>&1` in
4692 *GNU*)
4693   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4694 *)
4695   ac_count=0
4696   $as_echo_n 0123456789 >"conftest.in"
4697   while :
4698   do
4699     cat "conftest.in" "conftest.in" >"conftest.tmp"
4700     mv "conftest.tmp" "conftest.in"
4701     cp "conftest.in" "conftest.nl"
4702     $as_echo 'GREP' >> "conftest.nl"
4703     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705     as_fn_arith $ac_count + 1 && ac_count=$as_val
4706     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4707       # Best one so far, save it but keep looking for a better one
4708       ac_cv_path_GREP="$ac_path_GREP"
4709       ac_path_GREP_max=$ac_count
4710     fi
4711     # 10*(2^10) chars as input seems more than enough
4712     test $ac_count -gt 10 && break
4713   done
4714   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4716
4717       $ac_path_GREP_found && break 3
4718     done
4719   done
4720   done
4721 IFS=$as_save_IFS
4722   if test -z "$ac_cv_path_GREP"; then
4723     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4724   fi
4725 else
4726   ac_cv_path_GREP=$GREP
4727 fi
4728
4729 fi
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4731 $as_echo "$ac_cv_path_GREP" >&6; }
4732  GREP="$ac_cv_path_GREP"
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4736 $as_echo_n "checking for egrep... " >&6; }
4737 if ${ac_cv_path_EGREP+:} false; then :
4738   $as_echo_n "(cached) " >&6
4739 else
4740   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4741    then ac_cv_path_EGREP="$GREP -E"
4742    else
4743      if test -z "$EGREP"; then
4744   ac_path_EGREP_found=false
4745   # Loop through the user's path and test for each of PROGNAME-LIST
4746   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4748 do
4749   IFS=$as_save_IFS
4750   test -z "$as_dir" && as_dir=.
4751     for ac_prog in egrep; do
4752     for ac_exec_ext in '' $ac_executable_extensions; do
4753       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4754       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4755 # Check for GNU ac_path_EGREP and select it if it is found.
4756   # Check for GNU $ac_path_EGREP
4757 case `"$ac_path_EGREP" --version 2>&1` in
4758 *GNU*)
4759   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4760 *)
4761   ac_count=0
4762   $as_echo_n 0123456789 >"conftest.in"
4763   while :
4764   do
4765     cat "conftest.in" "conftest.in" >"conftest.tmp"
4766     mv "conftest.tmp" "conftest.in"
4767     cp "conftest.in" "conftest.nl"
4768     $as_echo 'EGREP' >> "conftest.nl"
4769     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771     as_fn_arith $ac_count + 1 && ac_count=$as_val
4772     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4773       # Best one so far, save it but keep looking for a better one
4774       ac_cv_path_EGREP="$ac_path_EGREP"
4775       ac_path_EGREP_max=$ac_count
4776     fi
4777     # 10*(2^10) chars as input seems more than enough
4778     test $ac_count -gt 10 && break
4779   done
4780   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4781 esac
4782
4783       $ac_path_EGREP_found && break 3
4784     done
4785   done
4786   done
4787 IFS=$as_save_IFS
4788   if test -z "$ac_cv_path_EGREP"; then
4789     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4790   fi
4791 else
4792   ac_cv_path_EGREP=$EGREP
4793 fi
4794
4795    fi
4796 fi
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4798 $as_echo "$ac_cv_path_EGREP" >&6; }
4799  EGREP="$ac_cv_path_EGREP"
4800
4801
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4803 $as_echo_n "checking for fgrep... " >&6; }
4804 if ${ac_cv_path_FGREP+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4808    then ac_cv_path_FGREP="$GREP -F"
4809    else
4810      if test -z "$FGREP"; then
4811   ac_path_FGREP_found=false
4812   # Loop through the user's path and test for each of PROGNAME-LIST
4813   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4814 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4815 do
4816   IFS=$as_save_IFS
4817   test -z "$as_dir" && as_dir=.
4818     for ac_prog in fgrep; do
4819     for ac_exec_ext in '' $ac_executable_extensions; do
4820       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4821       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4822 # Check for GNU ac_path_FGREP and select it if it is found.
4823   # Check for GNU $ac_path_FGREP
4824 case `"$ac_path_FGREP" --version 2>&1` in
4825 *GNU*)
4826   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4827 *)
4828   ac_count=0
4829   $as_echo_n 0123456789 >"conftest.in"
4830   while :
4831   do
4832     cat "conftest.in" "conftest.in" >"conftest.tmp"
4833     mv "conftest.tmp" "conftest.in"
4834     cp "conftest.in" "conftest.nl"
4835     $as_echo 'FGREP' >> "conftest.nl"
4836     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4837     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4838     as_fn_arith $ac_count + 1 && ac_count=$as_val
4839     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4840       # Best one so far, save it but keep looking for a better one
4841       ac_cv_path_FGREP="$ac_path_FGREP"
4842       ac_path_FGREP_max=$ac_count
4843     fi
4844     # 10*(2^10) chars as input seems more than enough
4845     test $ac_count -gt 10 && break
4846   done
4847   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4848 esac
4849
4850       $ac_path_FGREP_found && break 3
4851     done
4852   done
4853   done
4854 IFS=$as_save_IFS
4855   if test -z "$ac_cv_path_FGREP"; then
4856     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4857   fi
4858 else
4859   ac_cv_path_FGREP=$FGREP
4860 fi
4861
4862    fi
4863 fi
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4865 $as_echo "$ac_cv_path_FGREP" >&6; }
4866  FGREP="$ac_cv_path_FGREP"
4867
4868
4869 test -z "$GREP" && GREP=grep
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889 # Check whether --with-gnu-ld was given.
4890 if test "${with_gnu_ld+set}" = set; then :
4891   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4892 else
4893   with_gnu_ld=no
4894 fi
4895
4896 ac_prog=ld
4897 if test "$GCC" = yes; then
4898   # Check if gcc -print-prog-name=ld gives a path.
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4900 $as_echo_n "checking for ld used by $CC... " >&6; }
4901   case $host in
4902   *-*-mingw*)
4903     # gcc leaves a trailing carriage return which upsets mingw
4904     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4905   *)
4906     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4907   esac
4908   case $ac_prog in
4909     # Accept absolute paths.
4910     [\\/]* | ?:[\\/]*)
4911       re_direlt='/[^/][^/]*/\.\./'
4912       # Canonicalize the pathname of ld
4913       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4914       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4915         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4916       done
4917       test -z "$LD" && LD="$ac_prog"
4918       ;;
4919   "")
4920     # If it fails, then pretend we aren't using GCC.
4921     ac_prog=ld
4922     ;;
4923   *)
4924     # If it is relative, then search for the first ld in PATH.
4925     with_gnu_ld=unknown
4926     ;;
4927   esac
4928 elif test "$with_gnu_ld" = yes; then
4929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4930 $as_echo_n "checking for GNU ld... " >&6; }
4931 else
4932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4933 $as_echo_n "checking for non-GNU ld... " >&6; }
4934 fi
4935 if ${lt_cv_path_LD+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   if test -z "$LD"; then
4939   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4940   for ac_dir in $PATH; do
4941     IFS="$lt_save_ifs"
4942     test -z "$ac_dir" && ac_dir=.
4943     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4944       lt_cv_path_LD="$ac_dir/$ac_prog"
4945       # Check to see if the program is GNU ld.  I'd rather use --version,
4946       # but apparently some variants of GNU ld only accept -v.
4947       # Break only if it was the GNU/non-GNU ld that we prefer.
4948       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4949       *GNU* | *'with BFD'*)
4950         test "$with_gnu_ld" != no && break
4951         ;;
4952       *)
4953         test "$with_gnu_ld" != yes && break
4954         ;;
4955       esac
4956     fi
4957   done
4958   IFS="$lt_save_ifs"
4959 else
4960   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4961 fi
4962 fi
4963
4964 LD="$lt_cv_path_LD"
4965 if test -n "$LD"; then
4966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4967 $as_echo "$LD" >&6; }
4968 else
4969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4970 $as_echo "no" >&6; }
4971 fi
4972 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4974 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4975 if ${lt_cv_prog_gnu_ld+:} false; then :
4976   $as_echo_n "(cached) " >&6
4977 else
4978   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4979 case `$LD -v 2>&1 </dev/null` in
4980 *GNU* | *'with BFD'*)
4981   lt_cv_prog_gnu_ld=yes
4982   ;;
4983 *)
4984   lt_cv_prog_gnu_ld=no
4985   ;;
4986 esac
4987 fi
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4989 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4990 with_gnu_ld=$lt_cv_prog_gnu_ld
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5001 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5002 if ${lt_cv_path_NM+:} false; then :
5003   $as_echo_n "(cached) " >&6
5004 else
5005   if test -n "$NM"; then
5006   # Let the user override the test.
5007   lt_cv_path_NM="$NM"
5008 else
5009   lt_nm_to_check="${ac_tool_prefix}nm"
5010   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5011     lt_nm_to_check="$lt_nm_to_check nm"
5012   fi
5013   for lt_tmp_nm in $lt_nm_to_check; do
5014     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5015     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5016       IFS="$lt_save_ifs"
5017       test -z "$ac_dir" && ac_dir=.
5018       tmp_nm="$ac_dir/$lt_tmp_nm"
5019       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5020         # Check to see if the nm accepts a BSD-compat flag.
5021         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5022         #   nm: unknown option "B" ignored
5023         # Tru64's nm complains that /dev/null is an invalid object file
5024         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5025         */dev/null* | *'Invalid file or object type'*)
5026           lt_cv_path_NM="$tmp_nm -B"
5027           break
5028           ;;
5029         *)
5030           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5031           */dev/null*)
5032             lt_cv_path_NM="$tmp_nm -p"
5033             break
5034             ;;
5035           *)
5036             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5037             continue # so that we can try to find one that supports BSD flags
5038             ;;
5039           esac
5040           ;;
5041         esac
5042       fi
5043     done
5044     IFS="$lt_save_ifs"
5045   done
5046   : ${lt_cv_path_NM=no}
5047 fi
5048 fi
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5050 $as_echo "$lt_cv_path_NM" >&6; }
5051 if test "$lt_cv_path_NM" != "no"; then
5052   NM="$lt_cv_path_NM"
5053 else
5054   # Didn't find any BSD compatible name lister, look for dumpbin.
5055   if test -n "$DUMPBIN"; then :
5056     # Let the user override the test.
5057   else
5058     if test -n "$ac_tool_prefix"; then
5059   for ac_prog in dumpbin "link -dump"
5060   do
5061     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5062 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5064 $as_echo_n "checking for $ac_word... " >&6; }
5065 if ${ac_cv_prog_DUMPBIN+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068   if test -n "$DUMPBIN"; then
5069   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5070 else
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5072 for as_dir in $PATH
5073 do
5074   IFS=$as_save_IFS
5075   test -z "$as_dir" && as_dir=.
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5080     break 2
5081   fi
5082 done
5083   done
5084 IFS=$as_save_IFS
5085
5086 fi
5087 fi
5088 DUMPBIN=$ac_cv_prog_DUMPBIN
5089 if test -n "$DUMPBIN"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5091 $as_echo "$DUMPBIN" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098     test -n "$DUMPBIN" && break
5099   done
5100 fi
5101 if test -z "$DUMPBIN"; then
5102   ac_ct_DUMPBIN=$DUMPBIN
5103   for ac_prog in dumpbin "link -dump"
5104 do
5105   # Extract the first word of "$ac_prog", so it can be a program name with args.
5106 set dummy $ac_prog; ac_word=$2
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5108 $as_echo_n "checking for $ac_word... " >&6; }
5109 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if test -n "$ac_ct_DUMPBIN"; then
5113   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5114 else
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120     for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127   done
5128 IFS=$as_save_IFS
5129
5130 fi
5131 fi
5132 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5133 if test -n "$ac_ct_DUMPBIN"; then
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5135 $as_echo "$ac_ct_DUMPBIN" >&6; }
5136 else
5137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5138 $as_echo "no" >&6; }
5139 fi
5140
5141
5142   test -n "$ac_ct_DUMPBIN" && break
5143 done
5144
5145   if test "x$ac_ct_DUMPBIN" = x; then
5146     DUMPBIN=":"
5147   else
5148     case $cross_compiling:$ac_tool_warned in
5149 yes:)
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5152 ac_tool_warned=yes ;;
5153 esac
5154     DUMPBIN=$ac_ct_DUMPBIN
5155   fi
5156 fi
5157
5158     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5159     *COFF*)
5160       DUMPBIN="$DUMPBIN -symbols"
5161       ;;
5162     *)
5163       DUMPBIN=:
5164       ;;
5165     esac
5166   fi
5167
5168   if test "$DUMPBIN" != ":"; then
5169     NM="$DUMPBIN"
5170   fi
5171 fi
5172 test -z "$NM" && NM=nm
5173
5174
5175
5176
5177
5178
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5180 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5181 if ${lt_cv_nm_interface+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   lt_cv_nm_interface="BSD nm"
5185   echo "int some_variable = 0;" > conftest.$ac_ext
5186   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5187   (eval "$ac_compile" 2>conftest.err)
5188   cat conftest.err >&5
5189   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5190   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5191   cat conftest.err >&5
5192   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5193   cat conftest.out >&5
5194   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5195     lt_cv_nm_interface="MS dumpbin"
5196   fi
5197   rm -f conftest*
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5200 $as_echo "$lt_cv_nm_interface" >&6; }
5201
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5203 $as_echo_n "checking whether ln -s works... " >&6; }
5204 LN_S=$as_ln_s
5205 if test "$LN_S" = "ln -s"; then
5206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5207 $as_echo "yes" >&6; }
5208 else
5209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5210 $as_echo "no, using $LN_S" >&6; }
5211 fi
5212
5213 # find the maximum length of command line arguments
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5215 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5216 if ${lt_cv_sys_max_cmd_len+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219     i=0
5220   teststring="ABCD"
5221
5222   case $build_os in
5223   msdosdjgpp*)
5224     # On DJGPP, this test can blow up pretty badly due to problems in libc
5225     # (any single argument exceeding 2000 bytes causes a buffer overrun
5226     # during glob expansion).  Even if it were fixed, the result of this
5227     # check would be larger than it should be.
5228     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5229     ;;
5230
5231   gnu*)
5232     # Under GNU Hurd, this test is not required because there is
5233     # no limit to the length of command line arguments.
5234     # Libtool will interpret -1 as no limit whatsoever
5235     lt_cv_sys_max_cmd_len=-1;
5236     ;;
5237
5238   cygwin* | mingw* | cegcc*)
5239     # On Win9x/ME, this test blows up -- it succeeds, but takes
5240     # about 5 minutes as the teststring grows exponentially.
5241     # Worse, since 9x/ME are not pre-emptively multitasking,
5242     # you end up with a "frozen" computer, even though with patience
5243     # the test eventually succeeds (with a max line length of 256k).
5244     # Instead, let's just punt: use the minimum linelength reported by
5245     # all of the supported platforms: 8192 (on NT/2K/XP).
5246     lt_cv_sys_max_cmd_len=8192;
5247     ;;
5248
5249   mint*)
5250     # On MiNT this can take a long time and run out of memory.
5251     lt_cv_sys_max_cmd_len=8192;
5252     ;;
5253
5254   amigaos*)
5255     # On AmigaOS with pdksh, this test takes hours, literally.
5256     # So we just punt and use a minimum line length of 8192.
5257     lt_cv_sys_max_cmd_len=8192;
5258     ;;
5259
5260   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5261     # This has been around since 386BSD, at least.  Likely further.
5262     if test -x /sbin/sysctl; then
5263       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5264     elif test -x /usr/sbin/sysctl; then
5265       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5266     else
5267       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5268     fi
5269     # And add a safety zone
5270     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5271     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5272     ;;
5273
5274   interix*)
5275     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5276     lt_cv_sys_max_cmd_len=196608
5277     ;;
5278
5279   osf*)
5280     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5281     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5282     # nice to cause kernel panics so lets avoid the loop below.
5283     # First set a reasonable default.
5284     lt_cv_sys_max_cmd_len=16384
5285     #
5286     if test -x /sbin/sysconfig; then
5287       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5288         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5289       esac
5290     fi
5291     ;;
5292   sco3.2v5*)
5293     lt_cv_sys_max_cmd_len=102400
5294     ;;
5295   sysv5* | sco5v6* | sysv4.2uw2*)
5296     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5297     if test -n "$kargmax"; then
5298       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5299     else
5300       lt_cv_sys_max_cmd_len=32768
5301     fi
5302     ;;
5303   *)
5304     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5305     if test -n "$lt_cv_sys_max_cmd_len"; then
5306       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5307       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5308     else
5309       # Make teststring a little bigger before we do anything with it.
5310       # a 1K string should be a reasonable start.
5311       for i in 1 2 3 4 5 6 7 8 ; do
5312         teststring=$teststring$teststring
5313       done
5314       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5315       # If test is not a shell built-in, we'll probably end up computing a
5316       # maximum length that is only half of the actual maximum length, but
5317       # we can't tell.
5318       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5319                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5320               test $i != 17 # 1/2 MB should be enough
5321       do
5322         i=`expr $i + 1`
5323         teststring=$teststring$teststring
5324       done
5325       # Only check the string length outside the loop.
5326       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5327       teststring=
5328       # Add a significant safety factor because C++ compilers can tack on
5329       # massive amounts of additional arguments before passing them to the
5330       # linker.  It appears as though 1/2 is a usable value.
5331       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5332     fi
5333     ;;
5334   esac
5335
5336 fi
5337
5338 if test -n $lt_cv_sys_max_cmd_len ; then
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5340 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5341 else
5342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5343 $as_echo "none" >&6; }
5344 fi
5345 max_cmd_len=$lt_cv_sys_max_cmd_len
5346
5347
5348
5349
5350
5351
5352 : ${CP="cp -f"}
5353 : ${MV="mv -f"}
5354 : ${RM="rm -f"}
5355
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5357 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5358 # Try some XSI features
5359 xsi_shell=no
5360 ( _lt_dummy="a/b/c"
5361   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5362       = c,a/b,b/c, \
5363     && eval 'test $(( 1 + 1 )) -eq 2 \
5364     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5365   && xsi_shell=yes
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5367 $as_echo "$xsi_shell" >&6; }
5368
5369
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5371 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5372 lt_shell_append=no
5373 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5374     >/dev/null 2>&1 \
5375   && lt_shell_append=yes
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5377 $as_echo "$lt_shell_append" >&6; }
5378
5379
5380 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5381   lt_unset=unset
5382 else
5383   lt_unset=false
5384 fi
5385
5386
5387
5388
5389
5390 # test EBCDIC or ASCII
5391 case `echo X|tr X '\101'` in
5392  A) # ASCII based system
5393     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5394   lt_SP2NL='tr \040 \012'
5395   lt_NL2SP='tr \015\012 \040\040'
5396   ;;
5397  *) # EBCDIC based system
5398   lt_SP2NL='tr \100 \n'
5399   lt_NL2SP='tr \r\n \100\100'
5400   ;;
5401 esac
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5412 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5413 if ${lt_cv_to_host_file_cmd+:} false; then :
5414   $as_echo_n "(cached) " >&6
5415 else
5416   case $host in
5417   *-*-mingw* )
5418     case $build in
5419       *-*-mingw* ) # actually msys
5420         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5421         ;;
5422       *-*-cygwin* )
5423         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5424         ;;
5425       * ) # otherwise, assume *nix
5426         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5427         ;;
5428     esac
5429     ;;
5430   *-*-cygwin* )
5431     case $build in
5432       *-*-mingw* ) # actually msys
5433         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5434         ;;
5435       *-*-cygwin* )
5436         lt_cv_to_host_file_cmd=func_convert_file_noop
5437         ;;
5438       * ) # otherwise, assume *nix
5439         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5440         ;;
5441     esac
5442     ;;
5443   * ) # unhandled hosts (and "normal" native builds)
5444     lt_cv_to_host_file_cmd=func_convert_file_noop
5445     ;;
5446 esac
5447
5448 fi
5449
5450 to_host_file_cmd=$lt_cv_to_host_file_cmd
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5452 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5453
5454
5455
5456
5457
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5459 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5460 if ${lt_cv_to_tool_file_cmd+:} false; then :
5461   $as_echo_n "(cached) " >&6
5462 else
5463   #assume ordinary cross tools, or native build.
5464 lt_cv_to_tool_file_cmd=func_convert_file_noop
5465 case $host in
5466   *-*-mingw* )
5467     case $build in
5468       *-*-mingw* ) # actually msys
5469         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5470         ;;
5471     esac
5472     ;;
5473 esac
5474
5475 fi
5476
5477 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5479 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5480
5481
5482
5483
5484
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5486 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5487 if ${lt_cv_ld_reload_flag+:} false; then :
5488   $as_echo_n "(cached) " >&6
5489 else
5490   lt_cv_ld_reload_flag='-r'
5491 fi
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5493 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5494 reload_flag=$lt_cv_ld_reload_flag
5495 case $reload_flag in
5496 "" | " "*) ;;
5497 *) reload_flag=" $reload_flag" ;;
5498 esac
5499 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5500 case $host_os in
5501   cygwin* | mingw* | pw32* | cegcc*)
5502     if test "$GCC" != yes; then
5503       reload_cmds=false
5504     fi
5505     ;;
5506   darwin*)
5507     if test "$GCC" = yes; then
5508       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5509     else
5510       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5511     fi
5512     ;;
5513 esac
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523 if test -n "$ac_tool_prefix"; then
5524   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5525 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_OBJDUMP+:} false; then :
5529   $as_echo_n "(cached) " >&6
5530 else
5531   if test -n "$OBJDUMP"; then
5532   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5533 else
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539     for ac_exec_ext in '' $ac_executable_extensions; do
5540   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5541     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546   done
5547 IFS=$as_save_IFS
5548
5549 fi
5550 fi
5551 OBJDUMP=$ac_cv_prog_OBJDUMP
5552 if test -n "$OBJDUMP"; then
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5554 $as_echo "$OBJDUMP" >&6; }
5555 else
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560
5561 fi
5562 if test -z "$ac_cv_prog_OBJDUMP"; then
5563   ac_ct_OBJDUMP=$OBJDUMP
5564   # Extract the first word of "objdump", so it can be a program name with args.
5565 set dummy objdump; ac_word=$2
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567 $as_echo_n "checking for $ac_word... " >&6; }
5568 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5569   $as_echo_n "(cached) " >&6
5570 else
5571   if test -n "$ac_ct_OBJDUMP"; then
5572   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5573 else
5574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579     for ac_exec_ext in '' $ac_executable_extensions; do
5580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586   done
5587 IFS=$as_save_IFS
5588
5589 fi
5590 fi
5591 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5592 if test -n "$ac_ct_OBJDUMP"; then
5593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5594 $as_echo "$ac_ct_OBJDUMP" >&6; }
5595 else
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5597 $as_echo "no" >&6; }
5598 fi
5599
5600   if test "x$ac_ct_OBJDUMP" = x; then
5601     OBJDUMP="false"
5602   else
5603     case $cross_compiling:$ac_tool_warned in
5604 yes:)
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5607 ac_tool_warned=yes ;;
5608 esac
5609     OBJDUMP=$ac_ct_OBJDUMP
5610   fi
5611 else
5612   OBJDUMP="$ac_cv_prog_OBJDUMP"
5613 fi
5614
5615 test -z "$OBJDUMP" && OBJDUMP=objdump
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5626 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5627 if ${lt_cv_deplibs_check_method+:} false; then :
5628   $as_echo_n "(cached) " >&6
5629 else
5630   lt_cv_file_magic_cmd='$MAGIC_CMD'
5631 lt_cv_file_magic_test_file=
5632 lt_cv_deplibs_check_method='unknown'
5633 # Need to set the preceding variable on all platforms that support
5634 # interlibrary dependencies.
5635 # 'none' -- dependencies not supported.
5636 # `unknown' -- same as none, but documents that we really don't know.
5637 # 'pass_all' -- all dependencies passed with no checks.
5638 # 'test_compile' -- check by making test program.
5639 # 'file_magic [[regex]]' -- check by looking for files in library path
5640 # which responds to the $file_magic_cmd with a given extended regex.
5641 # If you have `file' or equivalent on your system and you're not sure
5642 # whether `pass_all' will *always* work, you probably want this one.
5643
5644 case $host_os in
5645 aix[4-9]*)
5646   lt_cv_deplibs_check_method=pass_all
5647   ;;
5648
5649 beos*)
5650   lt_cv_deplibs_check_method=pass_all
5651   ;;
5652
5653 bsdi[45]*)
5654   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5655   lt_cv_file_magic_cmd='/usr/bin/file -L'
5656   lt_cv_file_magic_test_file=/shlib/libc.so
5657   ;;
5658
5659 cygwin*)
5660   # func_win32_libid is a shell function defined in ltmain.sh
5661   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5662   lt_cv_file_magic_cmd='func_win32_libid'
5663   ;;
5664
5665 mingw* | pw32*)
5666   # Base MSYS/MinGW do not provide the 'file' command needed by
5667   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5668   # unless we find 'file', for example because we are cross-compiling.
5669   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5670   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5671     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5672     lt_cv_file_magic_cmd='func_win32_libid'
5673   else
5674     # Keep this pattern in sync with the one in func_win32_libid.
5675     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5676     lt_cv_file_magic_cmd='$OBJDUMP -f'
5677   fi
5678   ;;
5679
5680 cegcc*)
5681   # use the weaker test based on 'objdump'. See mingw*.
5682   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5683   lt_cv_file_magic_cmd='$OBJDUMP -f'
5684   ;;
5685
5686 darwin* | rhapsody*)
5687   lt_cv_deplibs_check_method=pass_all
5688   ;;
5689
5690 freebsd* | dragonfly*)
5691   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5692     case $host_cpu in
5693     i*86 )
5694       # Not sure whether the presence of OpenBSD here was a mistake.
5695       # Let's accept both of them until this is cleared up.
5696       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5697       lt_cv_file_magic_cmd=/usr/bin/file
5698       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5699       ;;
5700     esac
5701   else
5702     lt_cv_deplibs_check_method=pass_all
5703   fi
5704   ;;
5705
5706 gnu*)
5707   lt_cv_deplibs_check_method=pass_all
5708   ;;
5709
5710 haiku*)
5711   lt_cv_deplibs_check_method=pass_all
5712   ;;
5713
5714 hpux10.20* | hpux11*)
5715   lt_cv_file_magic_cmd=/usr/bin/file
5716   case $host_cpu in
5717   ia64*)
5718     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5719     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5720     ;;
5721   hppa*64*)
5722     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]'
5723     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5724     ;;
5725   *)
5726     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5727     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5728     ;;
5729   esac
5730   ;;
5731
5732 interix[3-9]*)
5733   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5734   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5735   ;;
5736
5737 irix5* | irix6* | nonstopux*)
5738   case $LD in
5739   *-32|*"-32 ") libmagic=32-bit;;
5740   *-n32|*"-n32 ") libmagic=N32;;
5741   *-64|*"-64 ") libmagic=64-bit;;
5742   *) libmagic=never-match;;
5743   esac
5744   lt_cv_deplibs_check_method=pass_all
5745   ;;
5746
5747 # This must be Linux ELF.
5748 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5749   lt_cv_deplibs_check_method=pass_all
5750   ;;
5751
5752 netbsd*)
5753   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5754     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5755   else
5756     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5757   fi
5758   ;;
5759
5760 newos6*)
5761   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5762   lt_cv_file_magic_cmd=/usr/bin/file
5763   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5764   ;;
5765
5766 *nto* | *qnx*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 openbsd*)
5771   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5772     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5773   else
5774     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5775   fi
5776   ;;
5777
5778 osf3* | osf4* | osf5*)
5779   lt_cv_deplibs_check_method=pass_all
5780   ;;
5781
5782 rdos*)
5783   lt_cv_deplibs_check_method=pass_all
5784   ;;
5785
5786 solaris*)
5787   lt_cv_deplibs_check_method=pass_all
5788   ;;
5789
5790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5791   lt_cv_deplibs_check_method=pass_all
5792   ;;
5793
5794 sysv4 | sysv4.3*)
5795   case $host_vendor in
5796   motorola)
5797     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]'
5798     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5799     ;;
5800   ncr)
5801     lt_cv_deplibs_check_method=pass_all
5802     ;;
5803   sequent)
5804     lt_cv_file_magic_cmd='/bin/file'
5805     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5806     ;;
5807   sni)
5808     lt_cv_file_magic_cmd='/bin/file'
5809     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5810     lt_cv_file_magic_test_file=/lib/libc.so
5811     ;;
5812   siemens)
5813     lt_cv_deplibs_check_method=pass_all
5814     ;;
5815   pc)
5816     lt_cv_deplibs_check_method=pass_all
5817     ;;
5818   esac
5819   ;;
5820
5821 tpf*)
5822   lt_cv_deplibs_check_method=pass_all
5823   ;;
5824 esac
5825
5826 fi
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5828 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5829
5830 file_magic_glob=
5831 want_nocaseglob=no
5832 if test "$build" = "$host"; then
5833   case $host_os in
5834   mingw* | pw32*)
5835     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5836       want_nocaseglob=yes
5837     else
5838       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5839     fi
5840     ;;
5841   esac
5842 fi
5843
5844 file_magic_cmd=$lt_cv_file_magic_cmd
5845 deplibs_check_method=$lt_cv_deplibs_check_method
5846 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 if test -n "$ac_tool_prefix"; then
5870   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5871 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5873 $as_echo_n "checking for $ac_word... " >&6; }
5874 if ${ac_cv_prog_DLLTOOL+:} false; then :
5875   $as_echo_n "(cached) " >&6
5876 else
5877   if test -n "$DLLTOOL"; then
5878   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5879 else
5880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5881 for as_dir in $PATH
5882 do
5883   IFS=$as_save_IFS
5884   test -z "$as_dir" && as_dir=.
5885     for ac_exec_ext in '' $ac_executable_extensions; do
5886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5887     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5889     break 2
5890   fi
5891 done
5892   done
5893 IFS=$as_save_IFS
5894
5895 fi
5896 fi
5897 DLLTOOL=$ac_cv_prog_DLLTOOL
5898 if test -n "$DLLTOOL"; then
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5900 $as_echo "$DLLTOOL" >&6; }
5901 else
5902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5903 $as_echo "no" >&6; }
5904 fi
5905
5906
5907 fi
5908 if test -z "$ac_cv_prog_DLLTOOL"; then
5909   ac_ct_DLLTOOL=$DLLTOOL
5910   # Extract the first word of "dlltool", so it can be a program name with args.
5911 set dummy dlltool; ac_word=$2
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5913 $as_echo_n "checking for $ac_word... " >&6; }
5914 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5915   $as_echo_n "(cached) " >&6
5916 else
5917   if test -n "$ac_ct_DLLTOOL"; then
5918   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5922 do
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925     for ac_exec_ext in '' $ac_executable_extensions; do
5926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5927     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932   done
5933 IFS=$as_save_IFS
5934
5935 fi
5936 fi
5937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5938 if test -n "$ac_ct_DLLTOOL"; then
5939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5940 $as_echo "$ac_ct_DLLTOOL" >&6; }
5941 else
5942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5943 $as_echo "no" >&6; }
5944 fi
5945
5946   if test "x$ac_ct_DLLTOOL" = x; then
5947     DLLTOOL="false"
5948   else
5949     case $cross_compiling:$ac_tool_warned in
5950 yes:)
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5953 ac_tool_warned=yes ;;
5954 esac
5955     DLLTOOL=$ac_ct_DLLTOOL
5956   fi
5957 else
5958   DLLTOOL="$ac_cv_prog_DLLTOOL"
5959 fi
5960
5961 test -z "$DLLTOOL" && DLLTOOL=dlltool
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5973 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5974 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   lt_cv_sharedlib_from_linklib_cmd='unknown'
5978
5979 case $host_os in
5980 cygwin* | mingw* | pw32* | cegcc*)
5981   # two different shell functions defined in ltmain.sh
5982   # decide which to use based on capabilities of $DLLTOOL
5983   case `$DLLTOOL --help 2>&1` in
5984   *--identify-strict*)
5985     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5986     ;;
5987   *)
5988     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5989     ;;
5990   esac
5991   ;;
5992 *)
5993   # fallback: assume linklib IS sharedlib
5994   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5995   ;;
5996 esac
5997
5998 fi
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6000 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6001 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6002 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6003
6004
6005
6006
6007
6008
6009
6010
6011 if test -n "$ac_tool_prefix"; then
6012   for ac_prog in ar
6013   do
6014     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017 $as_echo_n "checking for $ac_word... " >&6; }
6018 if ${ac_cv_prog_AR+:} false; then :
6019   $as_echo_n "(cached) " >&6
6020 else
6021   if test -n "$AR"; then
6022   ac_cv_prog_AR="$AR" # Let the user override the test.
6023 else
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029     for ac_exec_ext in '' $ac_executable_extensions; do
6030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6031     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6033     break 2
6034   fi
6035 done
6036   done
6037 IFS=$as_save_IFS
6038
6039 fi
6040 fi
6041 AR=$ac_cv_prog_AR
6042 if test -n "$AR"; then
6043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6044 $as_echo "$AR" >&6; }
6045 else
6046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6047 $as_echo "no" >&6; }
6048 fi
6049
6050
6051     test -n "$AR" && break
6052   done
6053 fi
6054 if test -z "$AR"; then
6055   ac_ct_AR=$AR
6056   for ac_prog in ar
6057 do
6058   # Extract the first word of "$ac_prog", so it can be a program name with args.
6059 set dummy $ac_prog; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6061 $as_echo_n "checking for $ac_word... " >&6; }
6062 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6063   $as_echo_n "(cached) " >&6
6064 else
6065   if test -n "$ac_ct_AR"; then
6066   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6067 else
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6069 for as_dir in $PATH
6070 do
6071   IFS=$as_save_IFS
6072   test -z "$as_dir" && as_dir=.
6073     for ac_exec_ext in '' $ac_executable_extensions; do
6074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6075     ac_cv_prog_ac_ct_AR="$ac_prog"
6076     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6077     break 2
6078   fi
6079 done
6080   done
6081 IFS=$as_save_IFS
6082
6083 fi
6084 fi
6085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6086 if test -n "$ac_ct_AR"; then
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6088 $as_echo "$ac_ct_AR" >&6; }
6089 else
6090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6091 $as_echo "no" >&6; }
6092 fi
6093
6094
6095   test -n "$ac_ct_AR" && break
6096 done
6097
6098   if test "x$ac_ct_AR" = x; then
6099     AR="false"
6100   else
6101     case $cross_compiling:$ac_tool_warned in
6102 yes:)
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6104 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6105 ac_tool_warned=yes ;;
6106 esac
6107     AR=$ac_ct_AR
6108   fi
6109 fi
6110
6111 : ${AR=ar}
6112 : ${AR_FLAGS=cru}
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6125 $as_echo_n "checking for archiver @FILE support... " >&6; }
6126 if ${lt_cv_ar_at_file+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   lt_cv_ar_at_file=no
6130    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6131 /* end confdefs.h.  */
6132
6133 int
6134 main ()
6135 {
6136
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 if ac_fn_c_try_compile "$LINENO"; then :
6142   echo conftest.$ac_objext > conftest.lst
6143       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6144       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6145   (eval $lt_ar_try) 2>&5
6146   ac_status=$?
6147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6148   test $ac_status = 0; }
6149       if test "$ac_status" -eq 0; then
6150         # Ensure the archiver fails upon bogus file names.
6151         rm -f conftest.$ac_objext libconftest.a
6152         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6153   (eval $lt_ar_try) 2>&5
6154   ac_status=$?
6155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6156   test $ac_status = 0; }
6157         if test "$ac_status" -ne 0; then
6158           lt_cv_ar_at_file=@
6159         fi
6160       fi
6161       rm -f conftest.* libconftest.a
6162
6163 fi
6164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165
6166 fi
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6168 $as_echo "$lt_cv_ar_at_file" >&6; }
6169
6170 if test "x$lt_cv_ar_at_file" = xno; then
6171   archiver_list_spec=
6172 else
6173   archiver_list_spec=$lt_cv_ar_at_file
6174 fi
6175
6176
6177
6178
6179
6180
6181
6182 if test -n "$ac_tool_prefix"; then
6183   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6184 set dummy ${ac_tool_prefix}strip; ac_word=$2
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6186 $as_echo_n "checking for $ac_word... " >&6; }
6187 if ${ac_cv_prog_STRIP+:} false; then :
6188   $as_echo_n "(cached) " >&6
6189 else
6190   if test -n "$STRIP"; then
6191   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6192 else
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194 for as_dir in $PATH
6195 do
6196   IFS=$as_save_IFS
6197   test -z "$as_dir" && as_dir=.
6198     for ac_exec_ext in '' $ac_executable_extensions; do
6199   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6200     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6201     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6202     break 2
6203   fi
6204 done
6205   done
6206 IFS=$as_save_IFS
6207
6208 fi
6209 fi
6210 STRIP=$ac_cv_prog_STRIP
6211 if test -n "$STRIP"; then
6212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6213 $as_echo "$STRIP" >&6; }
6214 else
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6217 fi
6218
6219
6220 fi
6221 if test -z "$ac_cv_prog_STRIP"; then
6222   ac_ct_STRIP=$STRIP
6223   # Extract the first word of "strip", so it can be a program name with args.
6224 set dummy strip; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6228   $as_echo_n "(cached) " >&6
6229 else
6230   if test -n "$ac_ct_STRIP"; then
6231   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6232 else
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234 for as_dir in $PATH
6235 do
6236   IFS=$as_save_IFS
6237   test -z "$as_dir" && as_dir=.
6238     for ac_exec_ext in '' $ac_executable_extensions; do
6239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240     ac_cv_prog_ac_ct_STRIP="strip"
6241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6242     break 2
6243   fi
6244 done
6245   done
6246 IFS=$as_save_IFS
6247
6248 fi
6249 fi
6250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6251 if test -n "$ac_ct_STRIP"; then
6252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6253 $as_echo "$ac_ct_STRIP" >&6; }
6254 else
6255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6257 fi
6258
6259   if test "x$ac_ct_STRIP" = x; then
6260     STRIP=":"
6261   else
6262     case $cross_compiling:$ac_tool_warned in
6263 yes:)
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6266 ac_tool_warned=yes ;;
6267 esac
6268     STRIP=$ac_ct_STRIP
6269   fi
6270 else
6271   STRIP="$ac_cv_prog_STRIP"
6272 fi
6273
6274 test -z "$STRIP" && STRIP=:
6275
6276
6277
6278
6279
6280
6281 if test -n "$ac_tool_prefix"; then
6282   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if ${ac_cv_prog_RANLIB+:} false; then :
6287   $as_echo_n "(cached) " >&6
6288 else
6289   if test -n "$RANLIB"; then
6290   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295   IFS=$as_save_IFS
6296   test -z "$as_dir" && as_dir=.
6297     for ac_exec_ext in '' $ac_executable_extensions; do
6298   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6300     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6301     break 2
6302   fi
6303 done
6304   done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 RANLIB=$ac_cv_prog_RANLIB
6310 if test -n "$RANLIB"; then
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6312 $as_echo "$RANLIB" >&6; }
6313 else
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6316 fi
6317
6318
6319 fi
6320 if test -z "$ac_cv_prog_RANLIB"; then
6321   ac_ct_RANLIB=$RANLIB
6322   # Extract the first word of "ranlib", so it can be a program name with args.
6323 set dummy ranlib; ac_word=$2
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 $as_echo_n "checking for $ac_word... " >&6; }
6326 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6327   $as_echo_n "(cached) " >&6
6328 else
6329   if test -n "$ac_ct_RANLIB"; then
6330   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6331 else
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333 for as_dir in $PATH
6334 do
6335   IFS=$as_save_IFS
6336   test -z "$as_dir" && as_dir=.
6337     for ac_exec_ext in '' $ac_executable_extensions; do
6338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339     ac_cv_prog_ac_ct_RANLIB="ranlib"
6340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6341     break 2
6342   fi
6343 done
6344   done
6345 IFS=$as_save_IFS
6346
6347 fi
6348 fi
6349 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6350 if test -n "$ac_ct_RANLIB"; then
6351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6352 $as_echo "$ac_ct_RANLIB" >&6; }
6353 else
6354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6355 $as_echo "no" >&6; }
6356 fi
6357
6358   if test "x$ac_ct_RANLIB" = x; then
6359     RANLIB=":"
6360   else
6361     case $cross_compiling:$ac_tool_warned in
6362 yes:)
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6365 ac_tool_warned=yes ;;
6366 esac
6367     RANLIB=$ac_ct_RANLIB
6368   fi
6369 else
6370   RANLIB="$ac_cv_prog_RANLIB"
6371 fi
6372
6373 test -z "$RANLIB" && RANLIB=:
6374
6375
6376
6377
6378
6379
6380 # Determine commands to create old-style static archives.
6381 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6382 old_postinstall_cmds='chmod 644 $oldlib'
6383 old_postuninstall_cmds=
6384
6385 if test -n "$RANLIB"; then
6386   case $host_os in
6387   openbsd*)
6388     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6389     ;;
6390   *)
6391     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6392     ;;
6393   esac
6394   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6395 fi
6396
6397 case $host_os in
6398   darwin*)
6399     lock_old_archive_extraction=yes ;;
6400   *)
6401     lock_old_archive_extraction=no ;;
6402 esac
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442 # If no C compiler was specified, use CC.
6443 LTCC=${LTCC-"$CC"}
6444
6445 # If no C compiler flags were specified, use CFLAGS.
6446 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6447
6448 # Allow CC to be a program name with arguments.
6449 compiler=$CC
6450
6451
6452 # Check for command to grab the raw symbol name followed by C symbol from nm.
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6454 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6455 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6456   $as_echo_n "(cached) " >&6
6457 else
6458
6459 # These are sane defaults that work on at least a few old systems.
6460 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6461
6462 # Character class describing NM global symbol codes.
6463 symcode='[BCDEGRST]'
6464
6465 # Regexp to match symbols that can be accessed directly from C.
6466 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6467
6468 # Define system-specific variables.
6469 case $host_os in
6470 aix*)
6471   symcode='[BCDT]'
6472   ;;
6473 cygwin* | mingw* | pw32* | cegcc*)
6474   symcode='[ABCDGISTW]'
6475   ;;
6476 hpux*)
6477   if test "$host_cpu" = ia64; then
6478     symcode='[ABCDEGRST]'
6479   fi
6480   ;;
6481 irix* | nonstopux*)
6482   symcode='[BCDEGRST]'
6483   ;;
6484 osf*)
6485   symcode='[BCDEGQRST]'
6486   ;;
6487 solaris*)
6488   symcode='[BDRT]'
6489   ;;
6490 sco3.2v5*)
6491   symcode='[DT]'
6492   ;;
6493 sysv4.2uw2*)
6494   symcode='[DT]'
6495   ;;
6496 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6497   symcode='[ABDT]'
6498   ;;
6499 sysv4)
6500   symcode='[DFNSTU]'
6501   ;;
6502 esac
6503
6504 # If we're using GNU nm, then use its standard symbol codes.
6505 case `$NM -V 2>&1` in
6506 *GNU* | *'with BFD'*)
6507   symcode='[ABCDGIRSTW]' ;;
6508 esac
6509
6510 # Transform an extracted symbol line into a proper C declaration.
6511 # Some systems (esp. on ia64) link data and code symbols differently,
6512 # so use this general approach.
6513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6514
6515 # Transform an extracted symbol line into symbol name and symbol address
6516 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6517 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'"
6518
6519 # Handle CRLF in mingw tool chain
6520 opt_cr=
6521 case $build_os in
6522 mingw*)
6523   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6524   ;;
6525 esac
6526
6527 # Try without a prefix underscore, then with it.
6528 for ac_symprfx in "" "_"; do
6529
6530   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6531   symxfrm="\\1 $ac_symprfx\\2 \\2"
6532
6533   # Write the raw and C identifiers.
6534   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6535     # Fake it for dumpbin and say T for any non-static function
6536     # and D for any global variable.
6537     # Also find C++ and __fastcall symbols from MSVC++,
6538     # which start with @ or ?.
6539     lt_cv_sys_global_symbol_pipe="$AWK '"\
6540 "     {last_section=section; section=\$ 3};"\
6541 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6542 "     \$ 0!~/External *\|/{next};"\
6543 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6544 "     {if(hide[section]) next};"\
6545 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6546 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6547 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6548 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6549 "     ' prfx=^$ac_symprfx"
6550   else
6551     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6552   fi
6553   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6554
6555   # Check to see that the pipe works correctly.
6556   pipe_works=no
6557
6558   rm -f conftest*
6559   cat > conftest.$ac_ext <<_LT_EOF
6560 #ifdef __cplusplus
6561 extern "C" {
6562 #endif
6563 char nm_test_var;
6564 void nm_test_func(void);
6565 void nm_test_func(void){}
6566 #ifdef __cplusplus
6567 }
6568 #endif
6569 int main(){nm_test_var='a';nm_test_func();return(0);}
6570 _LT_EOF
6571
6572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6573   (eval $ac_compile) 2>&5
6574   ac_status=$?
6575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6576   test $ac_status = 0; }; then
6577     # Now try to grab the symbols.
6578     nlist=conftest.nm
6579     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6580   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6581   ac_status=$?
6582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583   test $ac_status = 0; } && test -s "$nlist"; then
6584       # Try sorting and uniquifying the output.
6585       if sort "$nlist" | uniq > "$nlist"T; then
6586         mv -f "$nlist"T "$nlist"
6587       else
6588         rm -f "$nlist"T
6589       fi
6590
6591       # Make sure that we snagged all the symbols we need.
6592       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6593         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6594           cat <<_LT_EOF > conftest.$ac_ext
6595 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6596 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6597 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6598    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6599 # define LT_DLSYM_CONST
6600 #elif defined(__osf__)
6601 /* This system does not cope well with relocations in const data.  */
6602 # define LT_DLSYM_CONST
6603 #else
6604 # define LT_DLSYM_CONST const
6605 #endif
6606
6607 #ifdef __cplusplus
6608 extern "C" {
6609 #endif
6610
6611 _LT_EOF
6612           # Now generate the symbol file.
6613           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6614
6615           cat <<_LT_EOF >> conftest.$ac_ext
6616
6617 /* The mapping between symbol names and symbols.  */
6618 LT_DLSYM_CONST struct {
6619   const char *name;
6620   void       *address;
6621 }
6622 lt__PROGRAM__LTX_preloaded_symbols[] =
6623 {
6624   { "@PROGRAM@", (void *) 0 },
6625 _LT_EOF
6626           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6627           cat <<\_LT_EOF >> conftest.$ac_ext
6628   {0, (void *) 0}
6629 };
6630
6631 /* This works around a problem in FreeBSD linker */
6632 #ifdef FREEBSD_WORKAROUND
6633 static const void *lt_preloaded_setup() {
6634   return lt__PROGRAM__LTX_preloaded_symbols;
6635 }
6636 #endif
6637
6638 #ifdef __cplusplus
6639 }
6640 #endif
6641 _LT_EOF
6642           # Now try linking the two files.
6643           mv conftest.$ac_objext conftstm.$ac_objext
6644           lt_globsym_save_LIBS=$LIBS
6645           lt_globsym_save_CFLAGS=$CFLAGS
6646           LIBS="conftstm.$ac_objext"
6647           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6648           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6649   (eval $ac_link) 2>&5
6650   ac_status=$?
6651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6652   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6653             pipe_works=yes
6654           fi
6655           LIBS=$lt_globsym_save_LIBS
6656           CFLAGS=$lt_globsym_save_CFLAGS
6657         else
6658           echo "cannot find nm_test_func in $nlist" >&5
6659         fi
6660       else
6661         echo "cannot find nm_test_var in $nlist" >&5
6662       fi
6663     else
6664       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6665     fi
6666   else
6667     echo "$progname: failed program was:" >&5
6668     cat conftest.$ac_ext >&5
6669   fi
6670   rm -rf conftest* conftst*
6671
6672   # Do not use the global_symbol_pipe unless it works.
6673   if test "$pipe_works" = yes; then
6674     break
6675   else
6676     lt_cv_sys_global_symbol_pipe=
6677   fi
6678 done
6679
6680 fi
6681
6682 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6683   lt_cv_sys_global_symbol_to_cdecl=
6684 fi
6685 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6687 $as_echo "failed" >&6; }
6688 else
6689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6690 $as_echo "ok" >&6; }
6691 fi
6692
6693 # Response file support.
6694 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6695   nm_file_list_spec='@'
6696 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6697   nm_file_list_spec='@'
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6727 $as_echo_n "checking for sysroot... " >&6; }
6728
6729 # Check whether --with-sysroot was given.
6730 if test "${with_sysroot+set}" = set; then :
6731   withval=$with_sysroot;
6732 else
6733   with_sysroot=no
6734 fi
6735
6736
6737 lt_sysroot=
6738 case ${with_sysroot} in #(
6739  yes)
6740    if test "$GCC" = yes; then
6741      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6742    fi
6743    ;; #(
6744  /*)
6745    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6746    ;; #(
6747  no|'')
6748    ;; #(
6749  *)
6750    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6751 $as_echo "${with_sysroot}" >&6; }
6752    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6753    ;;
6754 esac
6755
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6757 $as_echo "${lt_sysroot:-no}" >&6; }
6758
6759
6760
6761
6762
6763 # Check whether --enable-libtool-lock was given.
6764 if test "${enable_libtool_lock+set}" = set; then :
6765   enableval=$enable_libtool_lock;
6766 fi
6767
6768 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6769
6770 # Some flags need to be propagated to the compiler or linker for good
6771 # libtool support.
6772 case $host in
6773 ia64-*-hpux*)
6774   # Find out which ABI we are using.
6775   echo 'int i;' > conftest.$ac_ext
6776   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777   (eval $ac_compile) 2>&5
6778   ac_status=$?
6779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6780   test $ac_status = 0; }; then
6781     case `/usr/bin/file conftest.$ac_objext` in
6782       *ELF-32*)
6783         HPUX_IA64_MODE="32"
6784         ;;
6785       *ELF-64*)
6786         HPUX_IA64_MODE="64"
6787         ;;
6788     esac
6789   fi
6790   rm -rf conftest*
6791   ;;
6792 *-*-irix6*)
6793   # Find out which ABI we are using.
6794   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6795   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6796   (eval $ac_compile) 2>&5
6797   ac_status=$?
6798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799   test $ac_status = 0; }; then
6800     if test "$lt_cv_prog_gnu_ld" = yes; then
6801       case `/usr/bin/file conftest.$ac_objext` in
6802         *32-bit*)
6803           LD="${LD-ld} -melf32bsmip"
6804           ;;
6805         *N32*)
6806           LD="${LD-ld} -melf32bmipn32"
6807           ;;
6808         *64-bit*)
6809           LD="${LD-ld} -melf64bmip"
6810         ;;
6811       esac
6812     else
6813       case `/usr/bin/file conftest.$ac_objext` in
6814         *32-bit*)
6815           LD="${LD-ld} -32"
6816           ;;
6817         *N32*)
6818           LD="${LD-ld} -n32"
6819           ;;
6820         *64-bit*)
6821           LD="${LD-ld} -64"
6822           ;;
6823       esac
6824     fi
6825   fi
6826   rm -rf conftest*
6827   ;;
6828
6829 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6830 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6831   # Find out which ABI we are using.
6832   echo 'int i;' > conftest.$ac_ext
6833   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6834   (eval $ac_compile) 2>&5
6835   ac_status=$?
6836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6837   test $ac_status = 0; }; then
6838     case `/usr/bin/file conftest.o` in
6839       *32-bit*)
6840         case $host in
6841           x86_64-*kfreebsd*-gnu)
6842             LD="${LD-ld} -m elf_i386_fbsd"
6843             ;;
6844           x86_64-*linux*)
6845             LD="${LD-ld} -m elf_i386"
6846             ;;
6847           ppc64-*linux*|powerpc64-*linux*)
6848             LD="${LD-ld} -m elf32ppclinux"
6849             ;;
6850           s390x-*linux*)
6851             LD="${LD-ld} -m elf_s390"
6852             ;;
6853           sparc64-*linux*)
6854             LD="${LD-ld} -m elf32_sparc"
6855             ;;
6856         esac
6857         ;;
6858       *64-bit*)
6859         case $host in
6860           x86_64-*kfreebsd*-gnu)
6861             LD="${LD-ld} -m elf_x86_64_fbsd"
6862             ;;
6863           x86_64-*linux*)
6864             LD="${LD-ld} -m elf_x86_64"
6865             ;;
6866           ppc*-*linux*|powerpc*-*linux*)
6867             LD="${LD-ld} -m elf64ppc"
6868             ;;
6869           s390*-*linux*|s390*-*tpf*)
6870             LD="${LD-ld} -m elf64_s390"
6871             ;;
6872           sparc*-*linux*)
6873             LD="${LD-ld} -m elf64_sparc"
6874             ;;
6875         esac
6876         ;;
6877     esac
6878   fi
6879   rm -rf conftest*
6880   ;;
6881
6882 *-*-sco3.2v5*)
6883   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6884   SAVE_CFLAGS="$CFLAGS"
6885   CFLAGS="$CFLAGS -belf"
6886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6887 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6888 if ${lt_cv_cc_needs_belf+:} false; then :
6889   $as_echo_n "(cached) " >&6
6890 else
6891   ac_ext=c
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6896
6897      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h.  */
6899
6900 int
6901 main ()
6902 {
6903
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909   lt_cv_cc_needs_belf=yes
6910 else
6911   lt_cv_cc_needs_belf=no
6912 fi
6913 rm -f core conftest.err conftest.$ac_objext \
6914     conftest$ac_exeext conftest.$ac_ext
6915      ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6920
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6923 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6924   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6925     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6926     CFLAGS="$SAVE_CFLAGS"
6927   fi
6928   ;;
6929 sparc*-*solaris*)
6930   # Find out which ABI we are using.
6931   echo 'int i;' > conftest.$ac_ext
6932   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933   (eval $ac_compile) 2>&5
6934   ac_status=$?
6935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936   test $ac_status = 0; }; then
6937     case `/usr/bin/file conftest.o` in
6938     *64-bit*)
6939       case $lt_cv_prog_gnu_ld in
6940       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6941       *)
6942         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6943           LD="${LD-ld} -64"
6944         fi
6945         ;;
6946       esac
6947       ;;
6948     esac
6949   fi
6950   rm -rf conftest*
6951   ;;
6952 esac
6953
6954 need_locks="$enable_libtool_lock"
6955
6956 if test -n "$ac_tool_prefix"; then
6957   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6958 set dummy ${ac_tool_prefix}mt; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6962   $as_echo_n "(cached) " >&6
6963 else
6964   if test -n "$MANIFEST_TOOL"; then
6965   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970   IFS=$as_save_IFS
6971   test -z "$as_dir" && as_dir=.
6972     for ac_exec_ext in '' $ac_executable_extensions; do
6973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976     break 2
6977   fi
6978 done
6979   done
6980 IFS=$as_save_IFS
6981
6982 fi
6983 fi
6984 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6985 if test -n "$MANIFEST_TOOL"; then
6986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6987 $as_echo "$MANIFEST_TOOL" >&6; }
6988 else
6989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6992
6993
6994 fi
6995 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6996   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6997   # Extract the first word of "mt", so it can be a program name with args.
6998 set dummy mt; ac_word=$2
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7000 $as_echo_n "checking for $ac_word... " >&6; }
7001 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7002   $as_echo_n "(cached) " >&6
7003 else
7004   if test -n "$ac_ct_MANIFEST_TOOL"; then
7005   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7006 else
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH
7009 do
7010   IFS=$as_save_IFS
7011   test -z "$as_dir" && as_dir=.
7012     for ac_exec_ext in '' $ac_executable_extensions; do
7013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7014     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7016     break 2
7017   fi
7018 done
7019   done
7020 IFS=$as_save_IFS
7021
7022 fi
7023 fi
7024 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7025 if test -n "$ac_ct_MANIFEST_TOOL"; then
7026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7027 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7028 else
7029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7030 $as_echo "no" >&6; }
7031 fi
7032
7033   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7034     MANIFEST_TOOL=":"
7035   else
7036     case $cross_compiling:$ac_tool_warned in
7037 yes:)
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned=yes ;;
7041 esac
7042     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7043   fi
7044 else
7045   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7046 fi
7047
7048 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7050 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7051 if ${lt_cv_path_mainfest_tool+:} false; then :
7052   $as_echo_n "(cached) " >&6
7053 else
7054   lt_cv_path_mainfest_tool=no
7055   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7056   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7057   cat conftest.err >&5
7058   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7059     lt_cv_path_mainfest_tool=yes
7060   fi
7061   rm -f conftest*
7062 fi
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7064 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7065 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7066   MANIFEST_TOOL=:
7067 fi
7068
7069
7070
7071
7072
7073
7074   case $host_os in
7075     rhapsody* | darwin*)
7076     if test -n "$ac_tool_prefix"; then
7077   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7082   $as_echo_n "(cached) " >&6
7083 else
7084   if test -n "$DSYMUTIL"; then
7085   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090   IFS=$as_save_IFS
7091   test -z "$as_dir" && as_dir=.
7092     for ac_exec_ext in '' $ac_executable_extensions; do
7093   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7094     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7095     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096     break 2
7097   fi
7098 done
7099   done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7105 if test -n "$DSYMUTIL"; then
7106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7107 $as_echo "$DSYMUTIL" >&6; }
7108 else
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_DSYMUTIL"; then
7116   ac_ct_DSYMUTIL=$DSYMUTIL
7117   # Extract the first word of "dsymutil", so it can be a program name with args.
7118 set dummy dsymutil; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7122   $as_echo_n "(cached) " >&6
7123 else
7124   if test -n "$ac_ct_DSYMUTIL"; then
7125   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130   IFS=$as_save_IFS
7131   test -z "$as_dir" && as_dir=.
7132     for ac_exec_ext in '' $ac_executable_extensions; do
7133   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136     break 2
7137   fi
7138 done
7139   done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7145 if test -n "$ac_ct_DSYMUTIL"; then
7146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7147 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7148 else
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153   if test "x$ac_ct_DSYMUTIL" = x; then
7154     DSYMUTIL=":"
7155   else
7156     case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162     DSYMUTIL=$ac_ct_DSYMUTIL
7163   fi
7164 else
7165   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7166 fi
7167
7168     if test -n "$ac_tool_prefix"; then
7169   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7170 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_NMEDIT+:} false; then :
7174   $as_echo_n "(cached) " >&6
7175 else
7176   if test -n "$NMEDIT"; then
7177   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182   IFS=$as_save_IFS
7183   test -z "$as_dir" && as_dir=.
7184     for ac_exec_ext in '' $ac_executable_extensions; do
7185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188     break 2
7189   fi
7190 done
7191   done
7192 IFS=$as_save_IFS
7193
7194 fi
7195 fi
7196 NMEDIT=$ac_cv_prog_NMEDIT
7197 if test -n "$NMEDIT"; then
7198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7199 $as_echo "$NMEDIT" >&6; }
7200 else
7201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7204
7205
7206 fi
7207 if test -z "$ac_cv_prog_NMEDIT"; then
7208   ac_ct_NMEDIT=$NMEDIT
7209   # Extract the first word of "nmedit", so it can be a program name with args.
7210 set dummy nmedit; ac_word=$2
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7212 $as_echo_n "checking for $ac_word... " >&6; }
7213 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7214   $as_echo_n "(cached) " >&6
7215 else
7216   if test -n "$ac_ct_NMEDIT"; then
7217   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7218 else
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7221 do
7222   IFS=$as_save_IFS
7223   test -z "$as_dir" && as_dir=.
7224     for ac_exec_ext in '' $ac_executable_extensions; do
7225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228     break 2
7229   fi
7230 done
7231   done
7232 IFS=$as_save_IFS
7233
7234 fi
7235 fi
7236 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7237 if test -n "$ac_ct_NMEDIT"; then
7238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7239 $as_echo "$ac_ct_NMEDIT" >&6; }
7240 else
7241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7243 fi
7244
7245   if test "x$ac_ct_NMEDIT" = x; then
7246     NMEDIT=":"
7247   else
7248     case $cross_compiling:$ac_tool_warned in
7249 yes:)
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7252 ac_tool_warned=yes ;;
7253 esac
7254     NMEDIT=$ac_ct_NMEDIT
7255   fi
7256 else
7257   NMEDIT="$ac_cv_prog_NMEDIT"
7258 fi
7259
7260     if test -n "$ac_tool_prefix"; then
7261   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_LIPO+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   if test -n "$LIPO"; then
7269   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7278     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283   done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 LIPO=$ac_cv_prog_LIPO
7289 if test -n "$LIPO"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7291 $as_echo "$LIPO" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_LIPO"; then
7300   ac_ct_LIPO=$LIPO
7301   # Extract the first word of "lipo", so it can be a program name with args.
7302 set dummy lipo; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$ac_ct_LIPO"; then
7309   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7318     ac_cv_prog_ac_ct_LIPO="lipo"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7329 if test -n "$ac_ct_LIPO"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7331 $as_echo "$ac_ct_LIPO" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337   if test "x$ac_ct_LIPO" = x; then
7338     LIPO=":"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346     LIPO=$ac_ct_LIPO
7347   fi
7348 else
7349   LIPO="$ac_cv_prog_LIPO"
7350 fi
7351
7352     if test -n "$ac_tool_prefix"; then
7353   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}otool; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_OTOOL+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   if test -n "$OTOOL"; then
7361   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7370     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375   done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 OTOOL=$ac_cv_prog_OTOOL
7381 if test -n "$OTOOL"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7383 $as_echo "$OTOOL" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390 fi
7391 if test -z "$ac_cv_prog_OTOOL"; then
7392   ac_ct_OTOOL=$OTOOL
7393   # Extract the first word of "otool", so it can be a program name with args.
7394 set dummy otool; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$ac_ct_OTOOL"; then
7401   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7410     ac_cv_prog_ac_ct_OTOOL="otool"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7421 if test -n "$ac_ct_OTOOL"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7423 $as_echo "$ac_ct_OTOOL" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429   if test "x$ac_ct_OTOOL" = x; then
7430     OTOOL=":"
7431   else
7432     case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438     OTOOL=$ac_ct_OTOOL
7439   fi
7440 else
7441   OTOOL="$ac_cv_prog_OTOOL"
7442 fi
7443
7444     if test -n "$ac_tool_prefix"; then
7445   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_OTOOL64+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   if test -n "$OTOOL64"; then
7453   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7462     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 OTOOL64=$ac_cv_prog_OTOOL64
7473 if test -n "$OTOOL64"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7475 $as_echo "$OTOOL64" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_OTOOL64"; then
7484   ac_ct_OTOOL64=$OTOOL64
7485   # Extract the first word of "otool64", so it can be a program name with args.
7486 set dummy otool64; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$ac_ct_OTOOL64"; then
7493   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7502     ac_cv_prog_ac_ct_OTOOL64="otool64"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7513 if test -n "$ac_ct_OTOOL64"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7515 $as_echo "$ac_ct_OTOOL64" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521   if test "x$ac_ct_OTOOL64" = x; then
7522     OTOOL64=":"
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     OTOOL64=$ac_ct_OTOOL64
7531   fi
7532 else
7533   OTOOL64="$ac_cv_prog_OTOOL64"
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7563 $as_echo_n "checking for -single_module linker flag... " >&6; }
7564 if ${lt_cv_apple_cc_single_mod+:} false; then :
7565   $as_echo_n "(cached) " >&6
7566 else
7567   lt_cv_apple_cc_single_mod=no
7568       if test -z "${LT_MULTI_MODULE}"; then
7569         # By default we will add the -single_module flag. You can override
7570         # by either setting the environment variable LT_MULTI_MODULE
7571         # non-empty at configure time, or by adding -multi_module to the
7572         # link flags.
7573         rm -rf libconftest.dylib*
7574         echo "int foo(void){return 1;}" > conftest.c
7575         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7576 -dynamiclib -Wl,-single_module conftest.c" >&5
7577         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7578           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7579         _lt_result=$?
7580         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7581           lt_cv_apple_cc_single_mod=yes
7582         else
7583           cat conftest.err >&5
7584         fi
7585         rm -rf libconftest.dylib*
7586         rm -f conftest.*
7587       fi
7588 fi
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7590 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7591     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7592 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7593 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   lt_cv_ld_exported_symbols_list=no
7597       save_LDFLAGS=$LDFLAGS
7598       echo "_main" > conftest.sym
7599       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7600       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7601 /* end confdefs.h.  */
7602
7603 int
7604 main ()
7605 {
7606
7607   ;
7608   return 0;
7609 }
7610 _ACEOF
7611 if ac_fn_c_try_link "$LINENO"; then :
7612   lt_cv_ld_exported_symbols_list=yes
7613 else
7614   lt_cv_ld_exported_symbols_list=no
7615 fi
7616 rm -f core conftest.err conftest.$ac_objext \
7617     conftest$ac_exeext conftest.$ac_ext
7618         LDFLAGS="$save_LDFLAGS"
7619
7620 fi
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7622 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7623     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7624 $as_echo_n "checking for -force_load linker flag... " >&6; }
7625 if ${lt_cv_ld_force_load+:} false; then :
7626   $as_echo_n "(cached) " >&6
7627 else
7628   lt_cv_ld_force_load=no
7629       cat > conftest.c << _LT_EOF
7630 int forced_loaded() { return 2;}
7631 _LT_EOF
7632       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7633       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7634       echo "$AR cru libconftest.a conftest.o" >&5
7635       $AR cru libconftest.a conftest.o 2>&5
7636       echo "$RANLIB libconftest.a" >&5
7637       $RANLIB libconftest.a 2>&5
7638       cat > conftest.c << _LT_EOF
7639 int main() { return 0;}
7640 _LT_EOF
7641       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7642       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7643       _lt_result=$?
7644       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7645         lt_cv_ld_force_load=yes
7646       else
7647         cat conftest.err >&5
7648       fi
7649         rm -f conftest.err libconftest.a conftest conftest.c
7650         rm -rf conftest.dSYM
7651
7652 fi
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7654 $as_echo "$lt_cv_ld_force_load" >&6; }
7655     case $host_os in
7656     rhapsody* | darwin1.[012])
7657       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7658     darwin1.*)
7659       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7660     darwin*) # darwin 5.x on
7661       # if running on 10.5 or later, the deployment target defaults
7662       # to the OS version, if on x86, and 10.4, the deployment
7663       # target defaults to 10.4. Don't you love it?
7664       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7665         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7666           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7667         10.[012]*)
7668           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7669         10.*)
7670           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7671       esac
7672     ;;
7673   esac
7674     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7675       _lt_dar_single_mod='$single_module'
7676     fi
7677     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7678       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7679     else
7680       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7681     fi
7682     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7683       _lt_dsymutil='~$DSYMUTIL $lib || :'
7684     else
7685       _lt_dsymutil=
7686     fi
7687     ;;
7688   esac
7689
7690 ac_ext=c
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7696 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7697 # On Suns, sometimes $CPP names a directory.
7698 if test -n "$CPP" && test -d "$CPP"; then
7699   CPP=
7700 fi
7701 if test -z "$CPP"; then
7702   if ${ac_cv_prog_CPP+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705       # Double quotes because CPP needs to be expanded
7706     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7707     do
7708       ac_preproc_ok=false
7709 for ac_c_preproc_warn_flag in '' yes
7710 do
7711   # Use a header file that comes with gcc, so configuring glibc
7712   # with a fresh cross-compiler works.
7713   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7714   # <limits.h> exists even on freestanding compilers.
7715   # On the NeXT, cc -E runs the code through the compiler's parser,
7716   # not just through cpp. "Syntax error" is here to catch this case.
7717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h.  */
7719 #ifdef __STDC__
7720 # include <limits.h>
7721 #else
7722 # include <assert.h>
7723 #endif
7724                      Syntax error
7725 _ACEOF
7726 if ac_fn_c_try_cpp "$LINENO"; then :
7727
7728 else
7729   # Broken: fails on valid input.
7730 continue
7731 fi
7732 rm -f conftest.err conftest.i conftest.$ac_ext
7733
7734   # OK, works on sane cases.  Now check whether nonexistent headers
7735   # can be detected and how.
7736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738 #include <ac_nonexistent.h>
7739 _ACEOF
7740 if ac_fn_c_try_cpp "$LINENO"; then :
7741   # Broken: success on invalid input.
7742 continue
7743 else
7744   # Passes both tests.
7745 ac_preproc_ok=:
7746 break
7747 fi
7748 rm -f conftest.err conftest.i conftest.$ac_ext
7749
7750 done
7751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7752 rm -f conftest.i conftest.err conftest.$ac_ext
7753 if $ac_preproc_ok; then :
7754   break
7755 fi
7756
7757     done
7758     ac_cv_prog_CPP=$CPP
7759
7760 fi
7761   CPP=$ac_cv_prog_CPP
7762 else
7763   ac_cv_prog_CPP=$CPP
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7766 $as_echo "$CPP" >&6; }
7767 ac_preproc_ok=false
7768 for ac_c_preproc_warn_flag in '' yes
7769 do
7770   # Use a header file that comes with gcc, so configuring glibc
7771   # with a fresh cross-compiler works.
7772   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7773   # <limits.h> exists even on freestanding compilers.
7774   # On the NeXT, cc -E runs the code through the compiler's parser,
7775   # not just through cpp. "Syntax error" is here to catch this case.
7776   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h.  */
7778 #ifdef __STDC__
7779 # include <limits.h>
7780 #else
7781 # include <assert.h>
7782 #endif
7783                      Syntax error
7784 _ACEOF
7785 if ac_fn_c_try_cpp "$LINENO"; then :
7786
7787 else
7788   # Broken: fails on valid input.
7789 continue
7790 fi
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7792
7793   # OK, works on sane cases.  Now check whether nonexistent headers
7794   # can be detected and how.
7795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h.  */
7797 #include <ac_nonexistent.h>
7798 _ACEOF
7799 if ac_fn_c_try_cpp "$LINENO"; then :
7800   # Broken: success on invalid input.
7801 continue
7802 else
7803   # Passes both tests.
7804 ac_preproc_ok=:
7805 break
7806 fi
7807 rm -f conftest.err conftest.i conftest.$ac_ext
7808
7809 done
7810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7811 rm -f conftest.i conftest.err conftest.$ac_ext
7812 if $ac_preproc_ok; then :
7813
7814 else
7815   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7817 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7818 See \`config.log' for more details" "$LINENO" 5; }
7819 fi
7820
7821 ac_ext=c
7822 ac_cpp='$CPP $CPPFLAGS'
7823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7826
7827
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7829 $as_echo_n "checking for ANSI C header files... " >&6; }
7830 if ${ac_cv_header_stdc+:} false; then :
7831   $as_echo_n "(cached) " >&6
7832 else
7833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h.  */
7835 #include <stdlib.h>
7836 #include <stdarg.h>
7837 #include <string.h>
7838 #include <float.h>
7839
7840 int
7841 main ()
7842 {
7843
7844   ;
7845   return 0;
7846 }
7847 _ACEOF
7848 if ac_fn_c_try_compile "$LINENO"; then :
7849   ac_cv_header_stdc=yes
7850 else
7851   ac_cv_header_stdc=no
7852 fi
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7854
7855 if test $ac_cv_header_stdc = yes; then
7856   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7857   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h.  */
7859 #include <string.h>
7860
7861 _ACEOF
7862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7863   $EGREP "memchr" >/dev/null 2>&1; then :
7864
7865 else
7866   ac_cv_header_stdc=no
7867 fi
7868 rm -f conftest*
7869
7870 fi
7871
7872 if test $ac_cv_header_stdc = yes; then
7873   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h.  */
7876 #include <stdlib.h>
7877
7878 _ACEOF
7879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7880   $EGREP "free" >/dev/null 2>&1; then :
7881
7882 else
7883   ac_cv_header_stdc=no
7884 fi
7885 rm -f conftest*
7886
7887 fi
7888
7889 if test $ac_cv_header_stdc = yes; then
7890   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7891   if test "$cross_compiling" = yes; then :
7892   :
7893 else
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <ctype.h>
7897 #include <stdlib.h>
7898 #if ((' ' & 0x0FF) == 0x020)
7899 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7900 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7901 #else
7902 # define ISLOWER(c) \
7903                    (('a' <= (c) && (c) <= 'i') \
7904                      || ('j' <= (c) && (c) <= 'r') \
7905                      || ('s' <= (c) && (c) <= 'z'))
7906 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7907 #endif
7908
7909 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7910 int
7911 main ()
7912 {
7913   int i;
7914   for (i = 0; i < 256; i++)
7915     if (XOR (islower (i), ISLOWER (i))
7916         || toupper (i) != TOUPPER (i))
7917       return 2;
7918   return 0;
7919 }
7920 _ACEOF
7921 if ac_fn_c_try_run "$LINENO"; then :
7922
7923 else
7924   ac_cv_header_stdc=no
7925 fi
7926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7927   conftest.$ac_objext conftest.beam conftest.$ac_ext
7928 fi
7929
7930 fi
7931 fi
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7933 $as_echo "$ac_cv_header_stdc" >&6; }
7934 if test $ac_cv_header_stdc = yes; then
7935
7936 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7937
7938 fi
7939
7940 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7941 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7942                   inttypes.h stdint.h unistd.h
7943 do :
7944   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7945 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7946 "
7947 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7948   cat >>confdefs.h <<_ACEOF
7949 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7950 _ACEOF
7951
7952 fi
7953
7954 done
7955
7956
7957 for ac_header in dlfcn.h
7958 do :
7959   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7960 "
7961 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7962   cat >>confdefs.h <<_ACEOF
7963 #define HAVE_DLFCN_H 1
7964 _ACEOF
7965
7966 fi
7967
7968 done
7969
7970
7971
7972
7973
7974 # Set options
7975
7976
7977
7978         enable_dlopen=no
7979
7980
7981   enable_win32_dll=no
7982
7983
7984             # Check whether --enable-shared was given.
7985 if test "${enable_shared+set}" = set; then :
7986   enableval=$enable_shared; p=${PACKAGE-default}
7987     case $enableval in
7988     yes) enable_shared=yes ;;
7989     no) enable_shared=no ;;
7990     *)
7991       enable_shared=no
7992       # Look at the argument we got.  We use all the common list separators.
7993       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7994       for pkg in $enableval; do
7995         IFS="$lt_save_ifs"
7996         if test "X$pkg" = "X$p"; then
7997           enable_shared=yes
7998         fi
7999       done
8000       IFS="$lt_save_ifs"
8001       ;;
8002     esac
8003 else
8004   enable_shared=yes
8005 fi
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015   # Check whether --enable-static was given.
8016 if test "${enable_static+set}" = set; then :
8017   enableval=$enable_static; p=${PACKAGE-default}
8018     case $enableval in
8019     yes) enable_static=yes ;;
8020     no) enable_static=no ;;
8021     *)
8022      enable_static=no
8023       # Look at the argument we got.  We use all the common list separators.
8024       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8025       for pkg in $enableval; do
8026         IFS="$lt_save_ifs"
8027         if test "X$pkg" = "X$p"; then
8028           enable_static=yes
8029         fi
8030       done
8031       IFS="$lt_save_ifs"
8032       ;;
8033     esac
8034 else
8035   enable_static=yes
8036 fi
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047 # Check whether --with-pic was given.
8048 if test "${with_pic+set}" = set; then :
8049   withval=$with_pic; pic_mode="$withval"
8050 else
8051   pic_mode=default
8052 fi
8053
8054
8055 test -z "$pic_mode" && pic_mode=default
8056
8057
8058
8059
8060
8061
8062
8063   # Check whether --enable-fast-install was given.
8064 if test "${enable_fast_install+set}" = set; then :
8065   enableval=$enable_fast_install; p=${PACKAGE-default}
8066     case $enableval in
8067     yes) enable_fast_install=yes ;;
8068     no) enable_fast_install=no ;;
8069     *)
8070       enable_fast_install=no
8071       # Look at the argument we got.  We use all the common list separators.
8072       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8073       for pkg in $enableval; do
8074         IFS="$lt_save_ifs"
8075         if test "X$pkg" = "X$p"; then
8076           enable_fast_install=yes
8077         fi
8078       done
8079       IFS="$lt_save_ifs"
8080       ;;
8081     esac
8082 else
8083   enable_fast_install=yes
8084 fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096 # This can be used to rebuild libtool when needed
8097 LIBTOOL_DEPS="$ltmain"
8098
8099 # Always use our own libtool.
8100 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127 test -z "$LN_S" && LN_S="ln -s"
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 if test -n "${ZSH_VERSION+set}" ; then
8143    setopt NO_GLOB_SUBST
8144 fi
8145
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8147 $as_echo_n "checking for objdir... " >&6; }
8148 if ${lt_cv_objdir+:} false; then :
8149   $as_echo_n "(cached) " >&6
8150 else
8151   rm -f .libs 2>/dev/null
8152 mkdir .libs 2>/dev/null
8153 if test -d .libs; then
8154   lt_cv_objdir=.libs
8155 else
8156   # MS-DOS does not allow filenames that begin with a dot.
8157   lt_cv_objdir=_libs
8158 fi
8159 rmdir .libs 2>/dev/null
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8162 $as_echo "$lt_cv_objdir" >&6; }
8163 objdir=$lt_cv_objdir
8164
8165
8166
8167
8168
8169 cat >>confdefs.h <<_ACEOF
8170 #define LT_OBJDIR "$lt_cv_objdir/"
8171 _ACEOF
8172
8173
8174
8175
8176 case $host_os in
8177 aix3*)
8178   # AIX sometimes has problems with the GCC collect2 program.  For some
8179   # reason, if we set the COLLECT_NAMES environment variable, the problems
8180   # vanish in a puff of smoke.
8181   if test "X${COLLECT_NAMES+set}" != Xset; then
8182     COLLECT_NAMES=
8183     export COLLECT_NAMES
8184   fi
8185   ;;
8186 esac
8187
8188 # Global variables:
8189 ofile=libtool
8190 can_build_shared=yes
8191
8192 # All known linkers require a `.a' archive for static linking (except MSVC,
8193 # which needs '.lib').
8194 libext=a
8195
8196 with_gnu_ld="$lt_cv_prog_gnu_ld"
8197
8198 old_CC="$CC"
8199 old_CFLAGS="$CFLAGS"
8200
8201 # Set sane defaults for various variables
8202 test -z "$CC" && CC=cc
8203 test -z "$LTCC" && LTCC=$CC
8204 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8205 test -z "$LD" && LD=ld
8206 test -z "$ac_objext" && ac_objext=o
8207
8208 for cc_temp in $compiler""; do
8209   case $cc_temp in
8210     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8211     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8212     \-*) ;;
8213     *) break;;
8214   esac
8215 done
8216 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8217
8218
8219 # Only perform the check for file, if the check method requires it
8220 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8221 case $deplibs_check_method in
8222 file_magic*)
8223   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8224     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8225 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8226 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8227   $as_echo_n "(cached) " >&6
8228 else
8229   case $MAGIC_CMD in
8230 [\\/*] |  ?:[\\/]*)
8231   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8232   ;;
8233 *)
8234   lt_save_MAGIC_CMD="$MAGIC_CMD"
8235   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8236   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8237   for ac_dir in $ac_dummy; do
8238     IFS="$lt_save_ifs"
8239     test -z "$ac_dir" && ac_dir=.
8240     if test -f $ac_dir/${ac_tool_prefix}file; then
8241       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8242       if test -n "$file_magic_test_file"; then
8243         case $deplibs_check_method in
8244         "file_magic "*)
8245           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8246           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8247           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8248             $EGREP "$file_magic_regex" > /dev/null; then
8249             :
8250           else
8251             cat <<_LT_EOF 1>&2
8252
8253 *** Warning: the command libtool uses to detect shared libraries,
8254 *** $file_magic_cmd, produces output that libtool cannot recognize.
8255 *** The result is that libtool may fail to recognize shared libraries
8256 *** as such.  This will affect the creation of libtool libraries that
8257 *** depend on shared libraries, but programs linked with such libtool
8258 *** libraries will work regardless of this problem.  Nevertheless, you
8259 *** may want to report the problem to your system manager and/or to
8260 *** bug-libtool@gnu.org
8261
8262 _LT_EOF
8263           fi ;;
8264         esac
8265       fi
8266       break
8267     fi
8268   done
8269   IFS="$lt_save_ifs"
8270   MAGIC_CMD="$lt_save_MAGIC_CMD"
8271   ;;
8272 esac
8273 fi
8274
8275 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8276 if test -n "$MAGIC_CMD"; then
8277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8278 $as_echo "$MAGIC_CMD" >&6; }
8279 else
8280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8282 fi
8283
8284
8285
8286
8287
8288 if test -z "$lt_cv_path_MAGIC_CMD"; then
8289   if test -n "$ac_tool_prefix"; then
8290     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8291 $as_echo_n "checking for file... " >&6; }
8292 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8293   $as_echo_n "(cached) " >&6
8294 else
8295   case $MAGIC_CMD in
8296 [\\/*] |  ?:[\\/]*)
8297   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8298   ;;
8299 *)
8300   lt_save_MAGIC_CMD="$MAGIC_CMD"
8301   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8302   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8303   for ac_dir in $ac_dummy; do
8304     IFS="$lt_save_ifs"
8305     test -z "$ac_dir" && ac_dir=.
8306     if test -f $ac_dir/file; then
8307       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8308       if test -n "$file_magic_test_file"; then
8309         case $deplibs_check_method in
8310         "file_magic "*)
8311           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8312           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8314             $EGREP "$file_magic_regex" > /dev/null; then
8315             :
8316           else
8317             cat <<_LT_EOF 1>&2
8318
8319 *** Warning: the command libtool uses to detect shared libraries,
8320 *** $file_magic_cmd, produces output that libtool cannot recognize.
8321 *** The result is that libtool may fail to recognize shared libraries
8322 *** as such.  This will affect the creation of libtool libraries that
8323 *** depend on shared libraries, but programs linked with such libtool
8324 *** libraries will work regardless of this problem.  Nevertheless, you
8325 *** may want to report the problem to your system manager and/or to
8326 *** bug-libtool@gnu.org
8327
8328 _LT_EOF
8329           fi ;;
8330         esac
8331       fi
8332       break
8333     fi
8334   done
8335   IFS="$lt_save_ifs"
8336   MAGIC_CMD="$lt_save_MAGIC_CMD"
8337   ;;
8338 esac
8339 fi
8340
8341 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8342 if test -n "$MAGIC_CMD"; then
8343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8344 $as_echo "$MAGIC_CMD" >&6; }
8345 else
8346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8348 fi
8349
8350
8351   else
8352     MAGIC_CMD=:
8353   fi
8354 fi
8355
8356   fi
8357   ;;
8358 esac
8359
8360 # Use C for the default configuration in the libtool script
8361
8362 lt_save_CC="$CC"
8363 ac_ext=c
8364 ac_cpp='$CPP $CPPFLAGS'
8365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8368
8369
8370 # Source file extension for C test sources.
8371 ac_ext=c
8372
8373 # Object file extension for compiled C test sources.
8374 objext=o
8375 objext=$objext
8376
8377 # Code to be used in simple compile tests
8378 lt_simple_compile_test_code="int some_variable = 0;"
8379
8380 # Code to be used in simple link tests
8381 lt_simple_link_test_code='int main(){return(0);}'
8382
8383
8384
8385
8386
8387
8388
8389 # If no C compiler was specified, use CC.
8390 LTCC=${LTCC-"$CC"}
8391
8392 # If no C compiler flags were specified, use CFLAGS.
8393 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8394
8395 # Allow CC to be a program name with arguments.
8396 compiler=$CC
8397
8398 # Save the default compiler, since it gets overwritten when the other
8399 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8400 compiler_DEFAULT=$CC
8401
8402 # save warnings/boilerplate of simple test code
8403 ac_outfile=conftest.$ac_objext
8404 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8405 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8406 _lt_compiler_boilerplate=`cat conftest.err`
8407 $RM conftest*
8408
8409 ac_outfile=conftest.$ac_objext
8410 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8411 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8412 _lt_linker_boilerplate=`cat conftest.err`
8413 $RM -r conftest*
8414
8415
8416 if test -n "$compiler"; then
8417
8418 lt_prog_compiler_no_builtin_flag=
8419
8420 if test "$GCC" = yes; then
8421   case $cc_basename in
8422   nvcc*)
8423     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8424   *)
8425     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8426   esac
8427
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8429 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8430 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   lt_cv_prog_compiler_rtti_exceptions=no
8434    ac_outfile=conftest.$ac_objext
8435    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8436    lt_compiler_flag="-fno-rtti -fno-exceptions"
8437    # Insert the option either (1) after the last *FLAGS variable, or
8438    # (2) before a word containing "conftest.", or (3) at the end.
8439    # Note that $ac_compile itself does not contain backslashes and begins
8440    # with a dollar sign (not a hyphen), so the echo should work correctly.
8441    # The option is referenced via a variable to avoid confusing sed.
8442    lt_compile=`echo "$ac_compile" | $SED \
8443    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8444    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8445    -e 's:$: $lt_compiler_flag:'`
8446    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8447    (eval "$lt_compile" 2>conftest.err)
8448    ac_status=$?
8449    cat conftest.err >&5
8450    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451    if (exit $ac_status) && test -s "$ac_outfile"; then
8452      # The compiler can only warn and ignore the option if not recognized
8453      # So say no if there are warnings other than the usual output.
8454      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8455      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8456      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8457        lt_cv_prog_compiler_rtti_exceptions=yes
8458      fi
8459    fi
8460    $RM conftest*
8461
8462 fi
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8464 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8465
8466 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8467     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8468 else
8469     :
8470 fi
8471
8472 fi
8473
8474
8475
8476
8477
8478
8479   lt_prog_compiler_wl=
8480 lt_prog_compiler_pic=
8481 lt_prog_compiler_static=
8482
8483
8484   if test "$GCC" = yes; then
8485     lt_prog_compiler_wl='-Wl,'
8486     lt_prog_compiler_static='-static'
8487
8488     case $host_os in
8489       aix*)
8490       # All AIX code is PIC.
8491       if test "$host_cpu" = ia64; then
8492         # AIX 5 now supports IA64 processor
8493         lt_prog_compiler_static='-Bstatic'
8494       fi
8495       ;;
8496
8497     amigaos*)
8498       case $host_cpu in
8499       powerpc)
8500             # see comment about AmigaOS4 .so support
8501             lt_prog_compiler_pic='-fPIC'
8502         ;;
8503       m68k)
8504             # FIXME: we need at least 68020 code to build shared libraries, but
8505             # adding the `-m68020' flag to GCC prevents building anything better,
8506             # like `-m68040'.
8507             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8508         ;;
8509       esac
8510       ;;
8511
8512     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8513       # PIC is the default for these OSes.
8514       ;;
8515
8516     mingw* | cygwin* | pw32* | os2* | cegcc*)
8517       # This hack is so that the source file can tell whether it is being
8518       # built for inclusion in a dll (and should export symbols for example).
8519       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8520       # (--disable-auto-import) libraries
8521       lt_prog_compiler_pic='-DDLL_EXPORT'
8522       ;;
8523
8524     darwin* | rhapsody*)
8525       # PIC is the default on this platform
8526       # Common symbols not allowed in MH_DYLIB files
8527       lt_prog_compiler_pic='-fno-common'
8528       ;;
8529
8530     haiku*)
8531       # PIC is the default for Haiku.
8532       # The "-static" flag exists, but is broken.
8533       lt_prog_compiler_static=
8534       ;;
8535
8536     hpux*)
8537       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8538       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8539       # sets the default TLS model and affects inlining.
8540       case $host_cpu in
8541       hppa*64*)
8542         # +Z the default
8543         ;;
8544       *)
8545         lt_prog_compiler_pic='-fPIC'
8546         ;;
8547       esac
8548       ;;
8549
8550     interix[3-9]*)
8551       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8552       # Instead, we relocate shared libraries at runtime.
8553       ;;
8554
8555     msdosdjgpp*)
8556       # Just because we use GCC doesn't mean we suddenly get shared libraries
8557       # on systems that don't support them.
8558       lt_prog_compiler_can_build_shared=no
8559       enable_shared=no
8560       ;;
8561
8562     *nto* | *qnx*)
8563       # QNX uses GNU C++, but need to define -shared option too, otherwise
8564       # it will coredump.
8565       lt_prog_compiler_pic='-fPIC -shared'
8566       ;;
8567
8568     sysv4*MP*)
8569       if test -d /usr/nec; then
8570         lt_prog_compiler_pic=-Kconform_pic
8571       fi
8572       ;;
8573
8574     *)
8575       lt_prog_compiler_pic='-fPIC'
8576       ;;
8577     esac
8578
8579     case $cc_basename in
8580     nvcc*) # Cuda Compiler Driver 2.2
8581       lt_prog_compiler_wl='-Xlinker '
8582       lt_prog_compiler_pic='-Xcompiler -fPIC'
8583       ;;
8584     esac
8585   else
8586     # PORTME Check for flag to pass linker flags through the system compiler.
8587     case $host_os in
8588     aix*)
8589       lt_prog_compiler_wl='-Wl,'
8590       if test "$host_cpu" = ia64; then
8591         # AIX 5 now supports IA64 processor
8592         lt_prog_compiler_static='-Bstatic'
8593       else
8594         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8595       fi
8596       ;;
8597
8598     mingw* | cygwin* | pw32* | os2* | cegcc*)
8599       # This hack is so that the source file can tell whether it is being
8600       # built for inclusion in a dll (and should export symbols for example).
8601       lt_prog_compiler_pic='-DDLL_EXPORT'
8602       ;;
8603
8604     hpux9* | hpux10* | hpux11*)
8605       lt_prog_compiler_wl='-Wl,'
8606       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8607       # not for PA HP-UX.
8608       case $host_cpu in
8609       hppa*64*|ia64*)
8610         # +Z the default
8611         ;;
8612       *)
8613         lt_prog_compiler_pic='+Z'
8614         ;;
8615       esac
8616       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8617       lt_prog_compiler_static='${wl}-a ${wl}archive'
8618       ;;
8619
8620     irix5* | irix6* | nonstopux*)
8621       lt_prog_compiler_wl='-Wl,'
8622       # PIC (with -KPIC) is the default.
8623       lt_prog_compiler_static='-non_shared'
8624       ;;
8625
8626     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8627       case $cc_basename in
8628       # old Intel for x86_64 which still supported -KPIC.
8629       ecc*)
8630         lt_prog_compiler_wl='-Wl,'
8631         lt_prog_compiler_pic='-KPIC'
8632         lt_prog_compiler_static='-static'
8633         ;;
8634       # icc used to be incompatible with GCC.
8635       # ICC 10 doesn't accept -KPIC any more.
8636       icc* | ifort*)
8637         lt_prog_compiler_wl='-Wl,'
8638         lt_prog_compiler_pic='-fPIC'
8639         lt_prog_compiler_static='-static'
8640         ;;
8641       # Lahey Fortran 8.1.
8642       lf95*)
8643         lt_prog_compiler_wl='-Wl,'
8644         lt_prog_compiler_pic='--shared'
8645         lt_prog_compiler_static='--static'
8646         ;;
8647       nagfor*)
8648         # NAG Fortran compiler
8649         lt_prog_compiler_wl='-Wl,-Wl,,'
8650         lt_prog_compiler_pic='-PIC'
8651         lt_prog_compiler_static='-Bstatic'
8652         ;;
8653       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8654         # Portland Group compilers (*not* the Pentium gcc compiler,
8655         # which looks to be a dead project)
8656         lt_prog_compiler_wl='-Wl,'
8657         lt_prog_compiler_pic='-fpic'
8658         lt_prog_compiler_static='-Bstatic'
8659         ;;
8660       ccc*)
8661         lt_prog_compiler_wl='-Wl,'
8662         # All Alpha code is PIC.
8663         lt_prog_compiler_static='-non_shared'
8664         ;;
8665       xl* | bgxl* | bgf* | mpixl*)
8666         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8667         lt_prog_compiler_wl='-Wl,'
8668         lt_prog_compiler_pic='-qpic'
8669         lt_prog_compiler_static='-qstaticlink'
8670         ;;
8671       *)
8672         case `$CC -V 2>&1 | sed 5q` in
8673         *Sun\ F* | *Sun*Fortran*)
8674           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8675           lt_prog_compiler_pic='-KPIC'
8676           lt_prog_compiler_static='-Bstatic'
8677           lt_prog_compiler_wl=''
8678           ;;
8679         *Sun\ C*)
8680           # Sun C 5.9
8681           lt_prog_compiler_pic='-KPIC'
8682           lt_prog_compiler_static='-Bstatic'
8683           lt_prog_compiler_wl='-Wl,'
8684           ;;
8685         esac
8686         ;;
8687       esac
8688       ;;
8689
8690     newsos6)
8691       lt_prog_compiler_pic='-KPIC'
8692       lt_prog_compiler_static='-Bstatic'
8693       ;;
8694
8695     *nto* | *qnx*)
8696       # QNX uses GNU C++, but need to define -shared option too, otherwise
8697       # it will coredump.
8698       lt_prog_compiler_pic='-fPIC -shared'
8699       ;;
8700
8701     osf3* | osf4* | osf5*)
8702       lt_prog_compiler_wl='-Wl,'
8703       # All OSF/1 code is PIC.
8704       lt_prog_compiler_static='-non_shared'
8705       ;;
8706
8707     rdos*)
8708       lt_prog_compiler_static='-non_shared'
8709       ;;
8710
8711     solaris*)
8712       lt_prog_compiler_pic='-KPIC'
8713       lt_prog_compiler_static='-Bstatic'
8714       case $cc_basename in
8715       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8716         lt_prog_compiler_wl='-Qoption ld ';;
8717       *)
8718         lt_prog_compiler_wl='-Wl,';;
8719       esac
8720       ;;
8721
8722     sunos4*)
8723       lt_prog_compiler_wl='-Qoption ld '
8724       lt_prog_compiler_pic='-PIC'
8725       lt_prog_compiler_static='-Bstatic'
8726       ;;
8727
8728     sysv4 | sysv4.2uw2* | sysv4.3*)
8729       lt_prog_compiler_wl='-Wl,'
8730       lt_prog_compiler_pic='-KPIC'
8731       lt_prog_compiler_static='-Bstatic'
8732       ;;
8733
8734     sysv4*MP*)
8735       if test -d /usr/nec ;then
8736         lt_prog_compiler_pic='-Kconform_pic'
8737         lt_prog_compiler_static='-Bstatic'
8738       fi
8739       ;;
8740
8741     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8742       lt_prog_compiler_wl='-Wl,'
8743       lt_prog_compiler_pic='-KPIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       ;;
8746
8747     unicos*)
8748       lt_prog_compiler_wl='-Wl,'
8749       lt_prog_compiler_can_build_shared=no
8750       ;;
8751
8752     uts4*)
8753       lt_prog_compiler_pic='-pic'
8754       lt_prog_compiler_static='-Bstatic'
8755       ;;
8756
8757     *)
8758       lt_prog_compiler_can_build_shared=no
8759       ;;
8760     esac
8761   fi
8762
8763 case $host_os in
8764   # For platforms which do not support PIC, -DPIC is meaningless:
8765   *djgpp*)
8766     lt_prog_compiler_pic=
8767     ;;
8768   *)
8769     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8770     ;;
8771 esac
8772
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8774 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8775 if ${lt_cv_prog_compiler_pic+:} false; then :
8776   $as_echo_n "(cached) " >&6
8777 else
8778   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8779 fi
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8781 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8782 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8783
8784 #
8785 # Check to make sure the PIC flag actually works.
8786 #
8787 if test -n "$lt_prog_compiler_pic"; then
8788   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8789 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8790 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8791   $as_echo_n "(cached) " >&6
8792 else
8793   lt_cv_prog_compiler_pic_works=no
8794    ac_outfile=conftest.$ac_objext
8795    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8796    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8797    # Insert the option either (1) after the last *FLAGS variable, or
8798    # (2) before a word containing "conftest.", or (3) at the end.
8799    # Note that $ac_compile itself does not contain backslashes and begins
8800    # with a dollar sign (not a hyphen), so the echo should work correctly.
8801    # The option is referenced via a variable to avoid confusing sed.
8802    lt_compile=`echo "$ac_compile" | $SED \
8803    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805    -e 's:$: $lt_compiler_flag:'`
8806    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8807    (eval "$lt_compile" 2>conftest.err)
8808    ac_status=$?
8809    cat conftest.err >&5
8810    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811    if (exit $ac_status) && test -s "$ac_outfile"; then
8812      # The compiler can only warn and ignore the option if not recognized
8813      # So say no if there are warnings other than the usual output.
8814      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8815      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8816      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8817        lt_cv_prog_compiler_pic_works=yes
8818      fi
8819    fi
8820    $RM conftest*
8821
8822 fi
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8824 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8825
8826 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8827     case $lt_prog_compiler_pic in
8828      "" | " "*) ;;
8829      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8830      esac
8831 else
8832     lt_prog_compiler_pic=
8833      lt_prog_compiler_can_build_shared=no
8834 fi
8835
8836 fi
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848 #
8849 # Check to make sure the static flag actually works.
8850 #
8851 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8853 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8854 if ${lt_cv_prog_compiler_static_works+:} false; then :
8855   $as_echo_n "(cached) " >&6
8856 else
8857   lt_cv_prog_compiler_static_works=no
8858    save_LDFLAGS="$LDFLAGS"
8859    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8860    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8861    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8862      # The linker can only warn and ignore the option if not recognized
8863      # So say no if there are warnings
8864      if test -s conftest.err; then
8865        # Append any errors to the config.log.
8866        cat conftest.err 1>&5
8867        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8868        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8869        if diff conftest.exp conftest.er2 >/dev/null; then
8870          lt_cv_prog_compiler_static_works=yes
8871        fi
8872      else
8873        lt_cv_prog_compiler_static_works=yes
8874      fi
8875    fi
8876    $RM -r conftest*
8877    LDFLAGS="$save_LDFLAGS"
8878
8879 fi
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8881 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8882
8883 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8884     :
8885 else
8886     lt_prog_compiler_static=
8887 fi
8888
8889
8890
8891
8892
8893
8894
8895   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8897 if ${lt_cv_prog_compiler_c_o+:} false; then :
8898   $as_echo_n "(cached) " >&6
8899 else
8900   lt_cv_prog_compiler_c_o=no
8901    $RM -r conftest 2>/dev/null
8902    mkdir conftest
8903    cd conftest
8904    mkdir out
8905    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8906
8907    lt_compiler_flag="-o out/conftest2.$ac_objext"
8908    # Insert the option either (1) after the last *FLAGS variable, or
8909    # (2) before a word containing "conftest.", or (3) at the end.
8910    # Note that $ac_compile itself does not contain backslashes and begins
8911    # with a dollar sign (not a hyphen), so the echo should work correctly.
8912    lt_compile=`echo "$ac_compile" | $SED \
8913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915    -e 's:$: $lt_compiler_flag:'`
8916    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917    (eval "$lt_compile" 2>out/conftest.err)
8918    ac_status=$?
8919    cat out/conftest.err >&5
8920    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8922    then
8923      # The compiler can only warn and ignore the option if not recognized
8924      # So say no if there are warnings
8925      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928        lt_cv_prog_compiler_c_o=yes
8929      fi
8930    fi
8931    chmod u+w . 2>&5
8932    $RM conftest*
8933    # SGI C++ compiler will create directory out/ii_files/ for
8934    # template instantiation
8935    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936    $RM out/* && rmdir out
8937    cd ..
8938    $RM -r conftest
8939    $RM conftest*
8940
8941 fi
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8944
8945
8946
8947
8948
8949
8950   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8952 if ${lt_cv_prog_compiler_c_o+:} false; then :
8953   $as_echo_n "(cached) " >&6
8954 else
8955   lt_cv_prog_compiler_c_o=no
8956    $RM -r conftest 2>/dev/null
8957    mkdir conftest
8958    cd conftest
8959    mkdir out
8960    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8961
8962    lt_compiler_flag="-o out/conftest2.$ac_objext"
8963    # Insert the option either (1) after the last *FLAGS variable, or
8964    # (2) before a word containing "conftest.", or (3) at the end.
8965    # Note that $ac_compile itself does not contain backslashes and begins
8966    # with a dollar sign (not a hyphen), so the echo should work correctly.
8967    lt_compile=`echo "$ac_compile" | $SED \
8968    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8969    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8970    -e 's:$: $lt_compiler_flag:'`
8971    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8972    (eval "$lt_compile" 2>out/conftest.err)
8973    ac_status=$?
8974    cat out/conftest.err >&5
8975    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8977    then
8978      # The compiler can only warn and ignore the option if not recognized
8979      # So say no if there are warnings
8980      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8981      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8982      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8983        lt_cv_prog_compiler_c_o=yes
8984      fi
8985    fi
8986    chmod u+w . 2>&5
8987    $RM conftest*
8988    # SGI C++ compiler will create directory out/ii_files/ for
8989    # template instantiation
8990    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8991    $RM out/* && rmdir out
8992    cd ..
8993    $RM -r conftest
8994    $RM conftest*
8995
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8999
9000
9001
9002
9003 hard_links="nottested"
9004 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9005   # do not overwrite the value of need_locks provided by the user
9006   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9007 $as_echo_n "checking if we can lock with hard links... " >&6; }
9008   hard_links=yes
9009   $RM conftest*
9010   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9011   touch conftest.a
9012   ln conftest.a conftest.b 2>&5 || hard_links=no
9013   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9015 $as_echo "$hard_links" >&6; }
9016   if test "$hard_links" = no; then
9017     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9018 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9019     need_locks=warn
9020   fi
9021 else
9022   need_locks=no
9023 fi
9024
9025
9026
9027
9028
9029
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9031 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9032
9033   runpath_var=
9034   allow_undefined_flag=
9035   always_export_symbols=no
9036   archive_cmds=
9037   archive_expsym_cmds=
9038   compiler_needs_object=no
9039   enable_shared_with_static_runtimes=no
9040   export_dynamic_flag_spec=
9041   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9042   hardcode_automatic=no
9043   hardcode_direct=no
9044   hardcode_direct_absolute=no
9045   hardcode_libdir_flag_spec=
9046   hardcode_libdir_flag_spec_ld=
9047   hardcode_libdir_separator=
9048   hardcode_minus_L=no
9049   hardcode_shlibpath_var=unsupported
9050   inherit_rpath=no
9051   link_all_deplibs=unknown
9052   module_cmds=
9053   module_expsym_cmds=
9054   old_archive_from_new_cmds=
9055   old_archive_from_expsyms_cmds=
9056   thread_safe_flag_spec=
9057   whole_archive_flag_spec=
9058   # include_expsyms should be a list of space-separated symbols to be *always*
9059   # included in the symbol list
9060   include_expsyms=
9061   # exclude_expsyms can be an extended regexp of symbols to exclude
9062   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9063   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9064   # as well as any symbol that contains `d'.
9065   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9066   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9067   # platforms (ab)use it in PIC code, but their linkers get confused if
9068   # the symbol is explicitly referenced.  Since portable code cannot
9069   # rely on this symbol name, it's probably fine to never include it in
9070   # preloaded symbol tables.
9071   # Exclude shared library initialization/finalization symbols.
9072   extract_expsyms_cmds=
9073
9074   case $host_os in
9075   cygwin* | mingw* | pw32* | cegcc*)
9076     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9077     # When not using gcc, we currently assume that we are using
9078     # Microsoft Visual C++.
9079     if test "$GCC" != yes; then
9080       with_gnu_ld=no
9081     fi
9082     ;;
9083   interix*)
9084     # we just hope/assume this is gcc and not c89 (= MSVC++)
9085     with_gnu_ld=yes
9086     ;;
9087   openbsd*)
9088     with_gnu_ld=no
9089     ;;
9090   esac
9091
9092   ld_shlibs=yes
9093
9094   # On some targets, GNU ld is compatible enough with the native linker
9095   # that we're better off using the native interface for both.
9096   lt_use_gnu_ld_interface=no
9097   if test "$with_gnu_ld" = yes; then
9098     case $host_os in
9099       aix*)
9100         # The AIX port of GNU ld has always aspired to compatibility
9101         # with the native linker.  However, as the warning in the GNU ld
9102         # block says, versions before 2.19.5* couldn't really create working
9103         # shared libraries, regardless of the interface used.
9104         case `$LD -v 2>&1` in
9105           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9106           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9107           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9108           *)
9109             lt_use_gnu_ld_interface=yes
9110             ;;
9111         esac
9112         ;;
9113       *)
9114         lt_use_gnu_ld_interface=yes
9115         ;;
9116     esac
9117   fi
9118
9119   if test "$lt_use_gnu_ld_interface" = yes; then
9120     # If archive_cmds runs LD, not CC, wlarc should be empty
9121     wlarc='${wl}'
9122
9123     # Set some defaults for GNU ld with shared library support. These
9124     # are reset later if shared libraries are not supported. Putting them
9125     # here allows them to be overridden if necessary.
9126     runpath_var=LD_RUN_PATH
9127     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9128     export_dynamic_flag_spec='${wl}--export-dynamic'
9129     # ancient GNU ld didn't support --whole-archive et. al.
9130     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9131       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9132     else
9133       whole_archive_flag_spec=
9134     fi
9135     supports_anon_versioning=no
9136     case `$LD -v 2>&1` in
9137       *GNU\ gold*) supports_anon_versioning=yes ;;
9138       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9139       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9140       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9141       *\ 2.11.*) ;; # other 2.11 versions
9142       *) supports_anon_versioning=yes ;;
9143     esac
9144
9145     # See if GNU ld supports shared libraries.
9146     case $host_os in
9147     aix[3-9]*)
9148       # On AIX/PPC, the GNU linker is very broken
9149       if test "$host_cpu" != ia64; then
9150         ld_shlibs=no
9151         cat <<_LT_EOF 1>&2
9152
9153 *** Warning: the GNU linker, at least up to release 2.19, is reported
9154 *** to be unable to reliably create shared libraries on AIX.
9155 *** Therefore, libtool is disabling shared libraries support.  If you
9156 *** really care for shared libraries, you may want to install binutils
9157 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9158 *** You will then need to restart the configuration process.
9159
9160 _LT_EOF
9161       fi
9162       ;;
9163
9164     amigaos*)
9165       case $host_cpu in
9166       powerpc)
9167             # see comment about AmigaOS4 .so support
9168             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169             archive_expsym_cmds=''
9170         ;;
9171       m68k)
9172             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)'
9173             hardcode_libdir_flag_spec='-L$libdir'
9174             hardcode_minus_L=yes
9175         ;;
9176       esac
9177       ;;
9178
9179     beos*)
9180       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9181         allow_undefined_flag=unsupported
9182         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9183         # support --undefined.  This deserves some investigation.  FIXME
9184         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9185       else
9186         ld_shlibs=no
9187       fi
9188       ;;
9189
9190     cygwin* | mingw* | pw32* | cegcc*)
9191       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9192       # as there is no search path for DLLs.
9193       hardcode_libdir_flag_spec='-L$libdir'
9194       export_dynamic_flag_spec='${wl}--export-all-symbols'
9195       allow_undefined_flag=unsupported
9196       always_export_symbols=no
9197       enable_shared_with_static_runtimes=yes
9198       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'
9199       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9200
9201       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9202         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9203         # If the export-symbols file already is a .def file (1st line
9204         # is EXPORTS), use it as is; otherwise, prepend...
9205         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9206           cp $export_symbols $output_objdir/$soname.def;
9207         else
9208           echo EXPORTS > $output_objdir/$soname.def;
9209           cat $export_symbols >> $output_objdir/$soname.def;
9210         fi~
9211         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9212       else
9213         ld_shlibs=no
9214       fi
9215       ;;
9216
9217     haiku*)
9218       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9219       link_all_deplibs=yes
9220       ;;
9221
9222     interix[3-9]*)
9223       hardcode_direct=no
9224       hardcode_shlibpath_var=no
9225       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9226       export_dynamic_flag_spec='${wl}-E'
9227       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9228       # Instead, shared libraries are loaded at an image base (0x10000000 by
9229       # default) and relocated if they conflict, which is a slow very memory
9230       # consuming and fragmenting process.  To avoid this, we pick a random,
9231       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9232       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9233       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9234       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'
9235       ;;
9236
9237     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9238       tmp_diet=no
9239       if test "$host_os" = linux-dietlibc; then
9240         case $cc_basename in
9241           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9242         esac
9243       fi
9244       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9245          && test "$tmp_diet" = no
9246       then
9247         tmp_addflag=' $pic_flag'
9248         tmp_sharedflag='-shared'
9249         case $cc_basename,$host_cpu in
9250         pgcc*)                          # Portland Group C compiler
9251           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'
9252           tmp_addflag=' $pic_flag'
9253           ;;
9254         pgf77* | pgf90* | pgf95* | pgfortran*)
9255                                         # Portland Group f77 and f90 compilers
9256           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'
9257           tmp_addflag=' $pic_flag -Mnomain' ;;
9258         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9259           tmp_addflag=' -i_dynamic' ;;
9260         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9261           tmp_addflag=' -i_dynamic -nofor_main' ;;
9262         ifc* | ifort*)                  # Intel Fortran compiler
9263           tmp_addflag=' -nofor_main' ;;
9264         lf95*)                          # Lahey Fortran 8.1
9265           whole_archive_flag_spec=
9266           tmp_sharedflag='--shared' ;;
9267         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9268           tmp_sharedflag='-qmkshrobj'
9269           tmp_addflag= ;;
9270         nvcc*)  # Cuda Compiler Driver 2.2
9271           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'
9272           compiler_needs_object=yes
9273           ;;
9274         esac
9275         case `$CC -V 2>&1 | sed 5q` in
9276         *Sun\ C*)                       # Sun C 5.9
9277           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'
9278           compiler_needs_object=yes
9279           tmp_sharedflag='-G' ;;
9280         *Sun\ F*)                       # Sun Fortran 8.3
9281           tmp_sharedflag='-G' ;;
9282         esac
9283         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9284
9285         if test "x$supports_anon_versioning" = xyes; then
9286           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9287             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9288             echo "local: *; };" >> $output_objdir/$libname.ver~
9289             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9290         fi
9291
9292         case $cc_basename in
9293         xlf* | bgf* | bgxlf* | mpixlf*)
9294           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9295           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9296           hardcode_libdir_flag_spec=
9297           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9298           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9299           if test "x$supports_anon_versioning" = xyes; then
9300             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9301               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9302               echo "local: *; };" >> $output_objdir/$libname.ver~
9303               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9304           fi
9305           ;;
9306         esac
9307       else
9308         ld_shlibs=no
9309       fi
9310       ;;
9311
9312     netbsd*)
9313       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9314         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9315         wlarc=
9316       else
9317         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9318         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9319       fi
9320       ;;
9321
9322     solaris*)
9323       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9324         ld_shlibs=no
9325         cat <<_LT_EOF 1>&2
9326
9327 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9328 *** create shared libraries on Solaris systems.  Therefore, libtool
9329 *** is disabling shared libraries support.  We urge you to upgrade GNU
9330 *** binutils to release 2.9.1 or newer.  Another option is to modify
9331 *** your PATH or compiler configuration so that the native linker is
9332 *** used, and then restart.
9333
9334 _LT_EOF
9335       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9336         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9337         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9338       else
9339         ld_shlibs=no
9340       fi
9341       ;;
9342
9343     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9344       case `$LD -v 2>&1` in
9345         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9346         ld_shlibs=no
9347         cat <<_LT_EOF 1>&2
9348
9349 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9350 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9351 *** is disabling shared libraries support.  We urge you to upgrade GNU
9352 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9353 *** your PATH or compiler configuration so that the native linker is
9354 *** used, and then restart.
9355
9356 _LT_EOF
9357         ;;
9358         *)
9359           # For security reasons, it is highly recommended that you always
9360           # use absolute paths for naming shared libraries, and exclude the
9361           # DT_RUNPATH tag from executables and libraries.  But doing so
9362           # requires that you compile everything twice, which is a pain.
9363           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9364             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9365             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9366             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9367           else
9368             ld_shlibs=no
9369           fi
9370         ;;
9371       esac
9372       ;;
9373
9374     sunos4*)
9375       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9376       wlarc=
9377       hardcode_direct=yes
9378       hardcode_shlibpath_var=no
9379       ;;
9380
9381     *)
9382       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9383         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9385       else
9386         ld_shlibs=no
9387       fi
9388       ;;
9389     esac
9390
9391     if test "$ld_shlibs" = no; then
9392       runpath_var=
9393       hardcode_libdir_flag_spec=
9394       export_dynamic_flag_spec=
9395       whole_archive_flag_spec=
9396     fi
9397   else
9398     # PORTME fill in a description of your system's linker (not GNU ld)
9399     case $host_os in
9400     aix3*)
9401       allow_undefined_flag=unsupported
9402       always_export_symbols=yes
9403       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'
9404       # Note: this linker hardcodes the directories in LIBPATH if there
9405       # are no directories specified by -L.
9406       hardcode_minus_L=yes
9407       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9408         # Neither direct hardcoding nor static linking is supported with a
9409         # broken collect2.
9410         hardcode_direct=unsupported
9411       fi
9412       ;;
9413
9414     aix[4-9]*)
9415       if test "$host_cpu" = ia64; then
9416         # On IA64, the linker does run time linking by default, so we don't
9417         # have to do anything special.
9418         aix_use_runtimelinking=no
9419         exp_sym_flag='-Bexport'
9420         no_entry_flag=""
9421       else
9422         # If we're using GNU nm, then we don't want the "-C" option.
9423         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9424         # Also, AIX nm treats weak defined symbols like other global
9425         # defined symbols, whereas GNU nm marks them as "W".
9426         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9427           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'
9428         else
9429           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'
9430         fi
9431         aix_use_runtimelinking=no
9432
9433         # Test if we are trying to use run time linking or normal
9434         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9435         # need to do runtime linking.
9436         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9437           for ld_flag in $LDFLAGS; do
9438           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9439             aix_use_runtimelinking=yes
9440             break
9441           fi
9442           done
9443           ;;
9444         esac
9445
9446         exp_sym_flag='-bexport'
9447         no_entry_flag='-bnoentry'
9448       fi
9449
9450       # When large executables or shared objects are built, AIX ld can
9451       # have problems creating the table of contents.  If linking a library
9452       # or program results in "error TOC overflow" add -mminimal-toc to
9453       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9454       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9455
9456       archive_cmds=''
9457       hardcode_direct=yes
9458       hardcode_direct_absolute=yes
9459       hardcode_libdir_separator=':'
9460       link_all_deplibs=yes
9461       file_list_spec='${wl}-f,'
9462
9463       if test "$GCC" = yes; then
9464         case $host_os in aix4.[012]|aix4.[012].*)
9465         # We only want to do this on AIX 4.2 and lower, the check
9466         # below for broken collect2 doesn't work under 4.3+
9467           collect2name=`${CC} -print-prog-name=collect2`
9468           if test -f "$collect2name" &&
9469            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9470           then
9471           # We have reworked collect2
9472           :
9473           else
9474           # We have old collect2
9475           hardcode_direct=unsupported
9476           # It fails to find uninstalled libraries when the uninstalled
9477           # path is not listed in the libpath.  Setting hardcode_minus_L
9478           # to unsupported forces relinking
9479           hardcode_minus_L=yes
9480           hardcode_libdir_flag_spec='-L$libdir'
9481           hardcode_libdir_separator=
9482           fi
9483           ;;
9484         esac
9485         shared_flag='-shared'
9486         if test "$aix_use_runtimelinking" = yes; then
9487           shared_flag="$shared_flag "'${wl}-G'
9488         fi
9489       else
9490         # not using gcc
9491         if test "$host_cpu" = ia64; then
9492         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9493         # chokes on -Wl,-G. The following line is correct:
9494           shared_flag='-G'
9495         else
9496           if test "$aix_use_runtimelinking" = yes; then
9497             shared_flag='${wl}-G'
9498           else
9499             shared_flag='${wl}-bM:SRE'
9500           fi
9501         fi
9502       fi
9503
9504       export_dynamic_flag_spec='${wl}-bexpall'
9505       # It seems that -bexpall does not export symbols beginning with
9506       # underscore (_), so it is better to generate a list of symbols to export.
9507       always_export_symbols=yes
9508       if test "$aix_use_runtimelinking" = yes; then
9509         # Warning - without using the other runtime loading flags (-brtl),
9510         # -berok will link without error, but may produce a broken library.
9511         allow_undefined_flag='-berok'
9512         # Determine the default libpath from the value encoded in an
9513         # empty executable.
9514         if test "${lt_cv_aix_libpath+set}" = set; then
9515   aix_libpath=$lt_cv_aix_libpath
9516 else
9517   if ${lt_cv_aix_libpath_+:} false; then :
9518   $as_echo_n "(cached) " >&6
9519 else
9520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9521 /* end confdefs.h.  */
9522
9523 int
9524 main ()
9525 {
9526
9527   ;
9528   return 0;
9529 }
9530 _ACEOF
9531 if ac_fn_c_try_link "$LINENO"; then :
9532
9533   lt_aix_libpath_sed='
9534       /Import File Strings/,/^$/ {
9535           /^0/ {
9536               s/^0  *\([^ ]*\) *$/\1/
9537               p
9538           }
9539       }'
9540   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541   # Check for a 64-bit object if we didn't find anything.
9542   if test -z "$lt_cv_aix_libpath_"; then
9543     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544   fi
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547     conftest$ac_exeext conftest.$ac_ext
9548   if test -z "$lt_cv_aix_libpath_"; then
9549     lt_cv_aix_libpath_="/usr/lib:/lib"
9550   fi
9551
9552 fi
9553
9554   aix_libpath=$lt_cv_aix_libpath_
9555 fi
9556
9557         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9558         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"
9559       else
9560         if test "$host_cpu" = ia64; then
9561           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9562           allow_undefined_flag="-z nodefs"
9563           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"
9564         else
9565          # Determine the default libpath from the value encoded in an
9566          # empty executable.
9567          if test "${lt_cv_aix_libpath+set}" = set; then
9568   aix_libpath=$lt_cv_aix_libpath
9569 else
9570   if ${lt_cv_aix_libpath_+:} false; then :
9571   $as_echo_n "(cached) " >&6
9572 else
9573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h.  */
9575
9576 int
9577 main ()
9578 {
9579
9580   ;
9581   return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"; then :
9585
9586   lt_aix_libpath_sed='
9587       /Import File Strings/,/^$/ {
9588           /^0/ {
9589               s/^0  *\([^ ]*\) *$/\1/
9590               p
9591           }
9592       }'
9593   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594   # Check for a 64-bit object if we didn't find anything.
9595   if test -z "$lt_cv_aix_libpath_"; then
9596     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9597   fi
9598 fi
9599 rm -f core conftest.err conftest.$ac_objext \
9600     conftest$ac_exeext conftest.$ac_ext
9601   if test -z "$lt_cv_aix_libpath_"; then
9602     lt_cv_aix_libpath_="/usr/lib:/lib"
9603   fi
9604
9605 fi
9606
9607   aix_libpath=$lt_cv_aix_libpath_
9608 fi
9609
9610          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9611           # Warning - without using the other run time loading flags,
9612           # -berok will link without error, but may produce a broken library.
9613           no_undefined_flag=' ${wl}-bernotok'
9614           allow_undefined_flag=' ${wl}-berok'
9615           if test "$with_gnu_ld" = yes; then
9616             # We only use this code for GNU lds that support --whole-archive.
9617             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9618           else
9619             # Exported symbols can be pulled into shared objects from archives
9620             whole_archive_flag_spec='$convenience'
9621           fi
9622           archive_cmds_need_lc=yes
9623           # This is similar to how AIX traditionally builds its shared libraries.
9624           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'
9625         fi
9626       fi
9627       ;;
9628
9629     amigaos*)
9630       case $host_cpu in
9631       powerpc)
9632             # see comment about AmigaOS4 .so support
9633             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9634             archive_expsym_cmds=''
9635         ;;
9636       m68k)
9637             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)'
9638             hardcode_libdir_flag_spec='-L$libdir'
9639             hardcode_minus_L=yes
9640         ;;
9641       esac
9642       ;;
9643
9644     bsdi[45]*)
9645       export_dynamic_flag_spec=-rdynamic
9646       ;;
9647
9648     cygwin* | mingw* | pw32* | cegcc*)
9649       # When not using gcc, we currently assume that we are using
9650       # Microsoft Visual C++.
9651       # hardcode_libdir_flag_spec is actually meaningless, as there is
9652       # no search path for DLLs.
9653       case $cc_basename in
9654       cl*)
9655         # Native MSVC
9656         hardcode_libdir_flag_spec=' '
9657         allow_undefined_flag=unsupported
9658         always_export_symbols=yes
9659         file_list_spec='@'
9660         # Tell ltmain to make .lib files, not .a files.
9661         libext=lib
9662         # Tell ltmain to make .dll files, not .so files.
9663         shrext_cmds=".dll"
9664         # FIXME: Setting linknames here is a bad hack.
9665         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9666         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9667             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9668           else
9669             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9670           fi~
9671           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9672           linknames='
9673         # The linker will not automatically build a static lib if we build a DLL.
9674         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9675         enable_shared_with_static_runtimes=yes
9676         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9677         # Don't use ranlib
9678         old_postinstall_cmds='chmod 644 $oldlib'
9679         postlink_cmds='lt_outputfile="@OUTPUT@"~
9680           lt_tool_outputfile="@TOOL_OUTPUT@"~
9681           case $lt_outputfile in
9682             *.exe|*.EXE) ;;
9683             *)
9684               lt_outputfile="$lt_outputfile.exe"
9685               lt_tool_outputfile="$lt_tool_outputfile.exe"
9686               ;;
9687           esac~
9688           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9689             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9690             $RM "$lt_outputfile.manifest";
9691           fi'
9692         ;;
9693       *)
9694         # Assume MSVC wrapper
9695         hardcode_libdir_flag_spec=' '
9696         allow_undefined_flag=unsupported
9697         # Tell ltmain to make .lib files, not .a files.
9698         libext=lib
9699         # Tell ltmain to make .dll files, not .so files.
9700         shrext_cmds=".dll"
9701         # FIXME: Setting linknames here is a bad hack.
9702         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9703         # The linker will automatically build a .lib file if we build a DLL.
9704         old_archive_from_new_cmds='true'
9705         # FIXME: Should let the user specify the lib program.
9706         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9707         enable_shared_with_static_runtimes=yes
9708         ;;
9709       esac
9710       ;;
9711
9712     darwin* | rhapsody*)
9713
9714
9715   archive_cmds_need_lc=no
9716   hardcode_direct=no
9717   hardcode_automatic=yes
9718   hardcode_shlibpath_var=unsupported
9719   if test "$lt_cv_ld_force_load" = "yes"; then
9720     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\"`'
9721   else
9722     whole_archive_flag_spec=''
9723   fi
9724   link_all_deplibs=yes
9725   allow_undefined_flag="$_lt_dar_allow_undefined"
9726   case $cc_basename in
9727      ifort*) _lt_dar_can_shared=yes ;;
9728      *) _lt_dar_can_shared=$GCC ;;
9729   esac
9730   if test "$_lt_dar_can_shared" = "yes"; then
9731     output_verbose_link_cmd=func_echo_all
9732     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9733     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9734     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}"
9735     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}"
9736
9737   else
9738   ld_shlibs=no
9739   fi
9740
9741       ;;
9742
9743     dgux*)
9744       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9745       hardcode_libdir_flag_spec='-L$libdir'
9746       hardcode_shlibpath_var=no
9747       ;;
9748
9749     freebsd1*)
9750       ld_shlibs=no
9751       ;;
9752
9753     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9754     # support.  Future versions do this automatically, but an explicit c++rt0.o
9755     # does not break anything, and helps significantly (at the cost of a little
9756     # extra space).
9757     freebsd2.2*)
9758       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9759       hardcode_libdir_flag_spec='-R$libdir'
9760       hardcode_direct=yes
9761       hardcode_shlibpath_var=no
9762       ;;
9763
9764     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9765     freebsd2*)
9766       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9767       hardcode_direct=yes
9768       hardcode_minus_L=yes
9769       hardcode_shlibpath_var=no
9770       ;;
9771
9772     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9773     freebsd* | dragonfly*)
9774       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9775       hardcode_libdir_flag_spec='-R$libdir'
9776       hardcode_direct=yes
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     hpux9*)
9781       if test "$GCC" = yes; then
9782         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'
9783       else
9784         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'
9785       fi
9786       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9787       hardcode_libdir_separator=:
9788       hardcode_direct=yes
9789
9790       # hardcode_minus_L: Not really in the search PATH,
9791       # but as the default location of the library.
9792       hardcode_minus_L=yes
9793       export_dynamic_flag_spec='${wl}-E'
9794       ;;
9795
9796     hpux10*)
9797       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9798         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799       else
9800         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9801       fi
9802       if test "$with_gnu_ld" = no; then
9803         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9804         hardcode_libdir_flag_spec_ld='+b $libdir'
9805         hardcode_libdir_separator=:
9806         hardcode_direct=yes
9807         hardcode_direct_absolute=yes
9808         export_dynamic_flag_spec='${wl}-E'
9809         # hardcode_minus_L: Not really in the search PATH,
9810         # but as the default location of the library.
9811         hardcode_minus_L=yes
9812       fi
9813       ;;
9814
9815     hpux11*)
9816       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9817         case $host_cpu in
9818         hppa*64*)
9819           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9820           ;;
9821         ia64*)
9822           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9823           ;;
9824         *)
9825           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9826           ;;
9827         esac
9828       else
9829         case $host_cpu in
9830         hppa*64*)
9831           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9832           ;;
9833         ia64*)
9834           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9835           ;;
9836         *)
9837
9838           # Older versions of the 11.00 compiler do not understand -b yet
9839           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9840           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9841 $as_echo_n "checking if $CC understands -b... " >&6; }
9842 if ${lt_cv_prog_compiler__b+:} false; then :
9843   $as_echo_n "(cached) " >&6
9844 else
9845   lt_cv_prog_compiler__b=no
9846    save_LDFLAGS="$LDFLAGS"
9847    LDFLAGS="$LDFLAGS -b"
9848    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9849    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9850      # The linker can only warn and ignore the option if not recognized
9851      # So say no if there are warnings
9852      if test -s conftest.err; then
9853        # Append any errors to the config.log.
9854        cat conftest.err 1>&5
9855        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9856        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9857        if diff conftest.exp conftest.er2 >/dev/null; then
9858          lt_cv_prog_compiler__b=yes
9859        fi
9860      else
9861        lt_cv_prog_compiler__b=yes
9862      fi
9863    fi
9864    $RM -r conftest*
9865    LDFLAGS="$save_LDFLAGS"
9866
9867 fi
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9870
9871 if test x"$lt_cv_prog_compiler__b" = xyes; then
9872     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9873 else
9874     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9875 fi
9876
9877           ;;
9878         esac
9879       fi
9880       if test "$with_gnu_ld" = no; then
9881         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9882         hardcode_libdir_separator=:
9883
9884         case $host_cpu in
9885         hppa*64*|ia64*)
9886           hardcode_direct=no
9887           hardcode_shlibpath_var=no
9888           ;;
9889         *)
9890           hardcode_direct=yes
9891           hardcode_direct_absolute=yes
9892           export_dynamic_flag_spec='${wl}-E'
9893
9894           # hardcode_minus_L: Not really in the search PATH,
9895           # but as the default location of the library.
9896           hardcode_minus_L=yes
9897           ;;
9898         esac
9899       fi
9900       ;;
9901
9902     irix5* | irix6* | nonstopux*)
9903       if test "$GCC" = yes; then
9904         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'
9905         # Try to use the -exported_symbol ld option, if it does not
9906         # work, assume that -exports_file does not work either and
9907         # implicitly export all symbols.
9908         # This should be the same for all languages, so no per-tag cache variable.
9909         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9910 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9911 if ${lt_cv_irix_exported_symbol+:} false; then :
9912   $as_echo_n "(cached) " >&6
9913 else
9914   save_LDFLAGS="$LDFLAGS"
9915            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9916            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9917 /* end confdefs.h.  */
9918 int foo (void) { return 0; }
9919 _ACEOF
9920 if ac_fn_c_try_link "$LINENO"; then :
9921   lt_cv_irix_exported_symbol=yes
9922 else
9923   lt_cv_irix_exported_symbol=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext \
9926     conftest$ac_exeext conftest.$ac_ext
9927            LDFLAGS="$save_LDFLAGS"
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9930 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9931         if test "$lt_cv_irix_exported_symbol" = yes; then
9932           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'
9933         fi
9934       else
9935         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'
9936         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'
9937       fi
9938       archive_cmds_need_lc='no'
9939       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9940       hardcode_libdir_separator=:
9941       inherit_rpath=yes
9942       link_all_deplibs=yes
9943       ;;
9944
9945     netbsd*)
9946       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9947         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9948       else
9949         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9950       fi
9951       hardcode_libdir_flag_spec='-R$libdir'
9952       hardcode_direct=yes
9953       hardcode_shlibpath_var=no
9954       ;;
9955
9956     newsos6)
9957       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9958       hardcode_direct=yes
9959       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9960       hardcode_libdir_separator=:
9961       hardcode_shlibpath_var=no
9962       ;;
9963
9964     *nto* | *qnx*)
9965       ;;
9966
9967     openbsd*)
9968       if test -f /usr/libexec/ld.so; then
9969         hardcode_direct=yes
9970         hardcode_shlibpath_var=no
9971         hardcode_direct_absolute=yes
9972         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9973           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9974           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9975           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9976           export_dynamic_flag_spec='${wl}-E'
9977         else
9978           case $host_os in
9979            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9980              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9981              hardcode_libdir_flag_spec='-R$libdir'
9982              ;;
9983            *)
9984              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9985              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9986              ;;
9987           esac
9988         fi
9989       else
9990         ld_shlibs=no
9991       fi
9992       ;;
9993
9994     os2*)
9995       hardcode_libdir_flag_spec='-L$libdir'
9996       hardcode_minus_L=yes
9997       allow_undefined_flag=unsupported
9998       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'
9999       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10000       ;;
10001
10002     osf3*)
10003       if test "$GCC" = yes; then
10004         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10005         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'
10006       else
10007         allow_undefined_flag=' -expect_unresolved \*'
10008         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'
10009       fi
10010       archive_cmds_need_lc='no'
10011       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012       hardcode_libdir_separator=:
10013       ;;
10014
10015     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10016       if test "$GCC" = yes; then
10017         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10018         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'
10019         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10020       else
10021         allow_undefined_flag=' -expect_unresolved \*'
10022         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'
10023         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~
10024         $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'
10025
10026         # Both c and cxx compiler support -rpath directly
10027         hardcode_libdir_flag_spec='-rpath $libdir'
10028       fi
10029       archive_cmds_need_lc='no'
10030       hardcode_libdir_separator=:
10031       ;;
10032
10033     solaris*)
10034       no_undefined_flag=' -z defs'
10035       if test "$GCC" = yes; then
10036         wlarc='${wl}'
10037         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10038         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10039           $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'
10040       else
10041         case `$CC -V 2>&1` in
10042         *"Compilers 5.0"*)
10043           wlarc=''
10044           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10045           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10047           ;;
10048         *)
10049           wlarc='${wl}'
10050           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10051           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10052           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10053           ;;
10054         esac
10055       fi
10056       hardcode_libdir_flag_spec='-R$libdir'
10057       hardcode_shlibpath_var=no
10058       case $host_os in
10059       solaris2.[0-5] | solaris2.[0-5].*) ;;
10060       *)
10061         # The compiler driver will combine and reorder linker options,
10062         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10063         # but is careful enough not to reorder.
10064         # Supported since Solaris 2.6 (maybe 2.5.1?)
10065         if test "$GCC" = yes; then
10066           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10067         else
10068           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10069         fi
10070         ;;
10071       esac
10072       link_all_deplibs=yes
10073       ;;
10074
10075     sunos4*)
10076       if test "x$host_vendor" = xsequent; then
10077         # Use $CC to link under sequent, because it throws in some extra .o
10078         # files that make .init and .fini sections work.
10079         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10080       else
10081         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10082       fi
10083       hardcode_libdir_flag_spec='-L$libdir'
10084       hardcode_direct=yes
10085       hardcode_minus_L=yes
10086       hardcode_shlibpath_var=no
10087       ;;
10088
10089     sysv4)
10090       case $host_vendor in
10091         sni)
10092           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10093           hardcode_direct=yes # is this really true???
10094         ;;
10095         siemens)
10096           ## LD is ld it makes a PLAMLIB
10097           ## CC just makes a GrossModule.
10098           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10099           reload_cmds='$CC -r -o $output$reload_objs'
10100           hardcode_direct=no
10101         ;;
10102         motorola)
10103           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10105         ;;
10106       esac
10107       runpath_var='LD_RUN_PATH'
10108       hardcode_shlibpath_var=no
10109       ;;
10110
10111     sysv4.3*)
10112       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113       hardcode_shlibpath_var=no
10114       export_dynamic_flag_spec='-Bexport'
10115       ;;
10116
10117     sysv4*MP*)
10118       if test -d /usr/nec; then
10119         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120         hardcode_shlibpath_var=no
10121         runpath_var=LD_RUN_PATH
10122         hardcode_runpath_var=yes
10123         ld_shlibs=yes
10124       fi
10125       ;;
10126
10127     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10128       no_undefined_flag='${wl}-z,text'
10129       archive_cmds_need_lc=no
10130       hardcode_shlibpath_var=no
10131       runpath_var='LD_RUN_PATH'
10132
10133       if test "$GCC" = yes; then
10134         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10136       else
10137         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139       fi
10140       ;;
10141
10142     sysv5* | sco3.2v5* | sco5v6*)
10143       # Note: We can NOT use -z defs as we might desire, because we do not
10144       # link with -lc, and that would cause any symbols used from libc to
10145       # always be unresolved, which means just about no library would
10146       # ever link correctly.  If we're not using GNU ld we use -z text
10147       # though, which does catch some bad symbols but isn't as heavy-handed
10148       # as -z defs.
10149       no_undefined_flag='${wl}-z,text'
10150       allow_undefined_flag='${wl}-z,nodefs'
10151       archive_cmds_need_lc=no
10152       hardcode_shlibpath_var=no
10153       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10154       hardcode_libdir_separator=':'
10155       link_all_deplibs=yes
10156       export_dynamic_flag_spec='${wl}-Bexport'
10157       runpath_var='LD_RUN_PATH'
10158
10159       if test "$GCC" = yes; then
10160         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10162       else
10163         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165       fi
10166       ;;
10167
10168     uts4*)
10169       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10170       hardcode_libdir_flag_spec='-L$libdir'
10171       hardcode_shlibpath_var=no
10172       ;;
10173
10174     *)
10175       ld_shlibs=no
10176       ;;
10177     esac
10178
10179     if test x$host_vendor = xsni; then
10180       case $host in
10181       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10182         export_dynamic_flag_spec='${wl}-Blargedynsym'
10183         ;;
10184       esac
10185     fi
10186   fi
10187
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10189 $as_echo "$ld_shlibs" >&6; }
10190 test "$ld_shlibs" = no && can_build_shared=no
10191
10192 with_gnu_ld=$with_gnu_ld
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208 #
10209 # Do we need to explicitly link libc?
10210 #
10211 case "x$archive_cmds_need_lc" in
10212 x|xyes)
10213   # Assume -lc should be added
10214   archive_cmds_need_lc=yes
10215
10216   if test "$enable_shared" = yes && test "$GCC" = yes; then
10217     case $archive_cmds in
10218     *'~'*)
10219       # FIXME: we may have to deal with multi-command sequences.
10220       ;;
10221     '$CC '*)
10222       # Test whether the compiler implicitly links with -lc since on some
10223       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10224       # to ld, don't add -lc before -lgcc.
10225       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10227 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10228   $as_echo_n "(cached) " >&6
10229 else
10230   $RM conftest*
10231         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10232
10233         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10234   (eval $ac_compile) 2>&5
10235   ac_status=$?
10236   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10237   test $ac_status = 0; } 2>conftest.err; then
10238           soname=conftest
10239           lib=conftest
10240           libobjs=conftest.$ac_objext
10241           deplibs=
10242           wl=$lt_prog_compiler_wl
10243           pic_flag=$lt_prog_compiler_pic
10244           compiler_flags=-v
10245           linker_flags=-v
10246           verstring=
10247           output_objdir=.
10248           libname=conftest
10249           lt_save_allow_undefined_flag=$allow_undefined_flag
10250           allow_undefined_flag=
10251           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10252   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10253   ac_status=$?
10254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10255   test $ac_status = 0; }
10256           then
10257             lt_cv_archive_cmds_need_lc=no
10258           else
10259             lt_cv_archive_cmds_need_lc=yes
10260           fi
10261           allow_undefined_flag=$lt_save_allow_undefined_flag
10262         else
10263           cat conftest.err 1>&5
10264         fi
10265         $RM conftest*
10266
10267 fi
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10270       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10271       ;;
10272     esac
10273   fi
10274   ;;
10275 esac
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
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10434 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10435
10436 if test "$GCC" = yes; then
10437   case $host_os in
10438     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10439     *) lt_awk_arg="/^libraries:/" ;;
10440   esac
10441   case $host_os in
10442     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10443     *) lt_sed_strip_eq="s,=/,/,g" ;;
10444   esac
10445   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10446   case $lt_search_path_spec in
10447   *\;*)
10448     # if the path contains ";" then we assume it to be the separator
10449     # otherwise default to the standard path separator (i.e. ":") - it is
10450     # assumed that no part of a normal pathname contains ";" but that should
10451     # okay in the real world where ";" in dirpaths is itself problematic.
10452     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10453     ;;
10454   *)
10455     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10456     ;;
10457   esac
10458   # Ok, now we have the path, separated by spaces, we can step through it
10459   # and add multilib dir if necessary.
10460   lt_tmp_lt_search_path_spec=
10461   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10462   for lt_sys_path in $lt_search_path_spec; do
10463     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10464       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10465     else
10466       test -d "$lt_sys_path" && \
10467         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10468     fi
10469   done
10470   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10471 BEGIN {RS=" "; FS="/|\n";} {
10472   lt_foo="";
10473   lt_count=0;
10474   for (lt_i = NF; lt_i > 0; lt_i--) {
10475     if ($lt_i != "" && $lt_i != ".") {
10476       if ($lt_i == "..") {
10477         lt_count++;
10478       } else {
10479         if (lt_count == 0) {
10480           lt_foo="/" $lt_i lt_foo;
10481         } else {
10482           lt_count--;
10483         }
10484       }
10485     }
10486   }
10487   if (lt_foo != "") { lt_freq[lt_foo]++; }
10488   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10489 }'`
10490   # AWK program above erroneously prepends '/' to C:/dos/paths
10491   # for these hosts.
10492   case $host_os in
10493     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10494       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10495   esac
10496   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10497 else
10498   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10499 fi
10500 library_names_spec=
10501 libname_spec='lib$name'
10502 soname_spec=
10503 shrext_cmds=".so"
10504 postinstall_cmds=
10505 postuninstall_cmds=
10506 finish_cmds=
10507 finish_eval=
10508 shlibpath_var=
10509 shlibpath_overrides_runpath=unknown
10510 version_type=none
10511 dynamic_linker="$host_os ld.so"
10512 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10513 need_lib_prefix=unknown
10514 hardcode_into_libs=no
10515
10516 # when you set need_version to no, make sure it does not cause -set_version
10517 # flags to be left without arguments
10518 need_version=unknown
10519
10520 case $host_os in
10521 aix3*)
10522   version_type=linux
10523   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10524   shlibpath_var=LIBPATH
10525
10526   # AIX 3 has no versioning support, so we append a major version to the name.
10527   soname_spec='${libname}${release}${shared_ext}$major'
10528   ;;
10529
10530 aix[4-9]*)
10531   version_type=linux
10532   need_lib_prefix=no
10533   need_version=no
10534   hardcode_into_libs=yes
10535   if test "$host_cpu" = ia64; then
10536     # AIX 5 supports IA64
10537     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10538     shlibpath_var=LD_LIBRARY_PATH
10539   else
10540     # With GCC up to 2.95.x, collect2 would create an import file
10541     # for dependence libraries.  The import file would start with
10542     # the line `#! .'.  This would cause the generated library to
10543     # depend on `.', always an invalid library.  This was fixed in
10544     # development snapshots of GCC prior to 3.0.
10545     case $host_os in
10546       aix4 | aix4.[01] | aix4.[01].*)
10547       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10548            echo ' yes '
10549            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10550         :
10551       else
10552         can_build_shared=no
10553       fi
10554       ;;
10555     esac
10556     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10557     # soname into executable. Probably we can add versioning support to
10558     # collect2, so additional links can be useful in future.
10559     if test "$aix_use_runtimelinking" = yes; then
10560       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10561       # instead of lib<name>.a to let people know that these are not
10562       # typical AIX shared libraries.
10563       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10564     else
10565       # We preserve .a as extension for shared libraries through AIX4.2
10566       # and later when we are not doing run time linking.
10567       library_names_spec='${libname}${release}.a $libname.a'
10568       soname_spec='${libname}${release}${shared_ext}$major'
10569     fi
10570     shlibpath_var=LIBPATH
10571   fi
10572   ;;
10573
10574 amigaos*)
10575   case $host_cpu in
10576   powerpc)
10577     # Since July 2007 AmigaOS4 officially supports .so libraries.
10578     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10579     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580     ;;
10581   m68k)
10582     library_names_spec='$libname.ixlibrary $libname.a'
10583     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10584     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'
10585     ;;
10586   esac
10587   ;;
10588
10589 beos*)
10590   library_names_spec='${libname}${shared_ext}'
10591   dynamic_linker="$host_os ld.so"
10592   shlibpath_var=LIBRARY_PATH
10593   ;;
10594
10595 bsdi[45]*)
10596   version_type=linux
10597   need_version=no
10598   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599   soname_spec='${libname}${release}${shared_ext}$major'
10600   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10601   shlibpath_var=LD_LIBRARY_PATH
10602   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10603   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10604   # the default ld.so.conf also contains /usr/contrib/lib and
10605   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10606   # libtool to hard-code these into programs
10607   ;;
10608
10609 cygwin* | mingw* | pw32* | cegcc*)
10610   version_type=windows
10611   shrext_cmds=".dll"
10612   need_version=no
10613   need_lib_prefix=no
10614
10615   case $GCC,$cc_basename in
10616   yes,*)
10617     # gcc
10618     library_names_spec='$libname.dll.a'
10619     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10620     postinstall_cmds='base_file=`basename \${file}`~
10621       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10622       dldir=$destdir/`dirname \$dlpath`~
10623       test -d \$dldir || mkdir -p \$dldir~
10624       $install_prog $dir/$dlname \$dldir/$dlname~
10625       chmod a+x \$dldir/$dlname~
10626       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10627         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10628       fi'
10629     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10630       dlpath=$dir/\$dldll~
10631        $RM \$dlpath'
10632     shlibpath_overrides_runpath=yes
10633
10634     case $host_os in
10635     cygwin*)
10636       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10637       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10638
10639       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10640       ;;
10641     mingw* | cegcc*)
10642       # MinGW DLLs use traditional 'lib' prefix
10643       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10644       ;;
10645     pw32*)
10646       # pw32 DLLs use 'pw' prefix rather than 'lib'
10647       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10648       ;;
10649     esac
10650     dynamic_linker='Win32 ld.exe'
10651     ;;
10652
10653   *,cl*)
10654     # Native MSVC
10655     libname_spec='$name'
10656     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657     library_names_spec='${libname}.dll.lib'
10658
10659     case $build_os in
10660     mingw*)
10661       sys_lib_search_path_spec=
10662       lt_save_ifs=$IFS
10663       IFS=';'
10664       for lt_path in $LIB
10665       do
10666         IFS=$lt_save_ifs
10667         # Let DOS variable expansion print the short 8.3 style file name.
10668         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10669         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10670       done
10671       IFS=$lt_save_ifs
10672       # Convert to MSYS style.
10673       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10674       ;;
10675     cygwin*)
10676       # Convert to unix form, then to dos form, then back to unix form
10677       # but this time dos style (no spaces!) so that the unix form looks
10678       # like /cygdrive/c/PROGRA~1:/cygdr...
10679       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10680       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10681       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10682       ;;
10683     *)
10684       sys_lib_search_path_spec="$LIB"
10685       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10686         # It is most probably a Windows format PATH.
10687         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10688       else
10689         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10690       fi
10691       # FIXME: find the short name or the path components, as spaces are
10692       # common. (e.g. "Program Files" -> "PROGRA~1")
10693       ;;
10694     esac
10695
10696     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10697     postinstall_cmds='base_file=`basename \${file}`~
10698       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10699       dldir=$destdir/`dirname \$dlpath`~
10700       test -d \$dldir || mkdir -p \$dldir~
10701       $install_prog $dir/$dlname \$dldir/$dlname'
10702     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10703       dlpath=$dir/\$dldll~
10704        $RM \$dlpath'
10705     shlibpath_overrides_runpath=yes
10706     dynamic_linker='Win32 link.exe'
10707     ;;
10708
10709   *)
10710     # Assume MSVC wrapper
10711     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10712     dynamic_linker='Win32 ld.exe'
10713     ;;
10714   esac
10715   # FIXME: first we should search . and the directory the executable is in
10716   shlibpath_var=PATH
10717   ;;
10718
10719 darwin* | rhapsody*)
10720   dynamic_linker="$host_os dyld"
10721   version_type=darwin
10722   need_lib_prefix=no
10723   need_version=no
10724   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10725   soname_spec='${libname}${release}${major}$shared_ext'
10726   shlibpath_overrides_runpath=yes
10727   shlibpath_var=DYLD_LIBRARY_PATH
10728   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10729
10730   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10731   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10732   ;;
10733
10734 dgux*)
10735   version_type=linux
10736   need_lib_prefix=no
10737   need_version=no
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   shlibpath_var=LD_LIBRARY_PATH
10741   ;;
10742
10743 freebsd1*)
10744   dynamic_linker=no
10745   ;;
10746
10747 freebsd* | dragonfly*)
10748   # DragonFly does not have aout.  When/if they implement a new
10749   # versioning mechanism, adjust this.
10750   if test -x /usr/bin/objformat; then
10751     objformat=`/usr/bin/objformat`
10752   else
10753     case $host_os in
10754     freebsd[123]*) objformat=aout ;;
10755     *) objformat=elf ;;
10756     esac
10757   fi
10758   version_type=freebsd-$objformat
10759   case $version_type in
10760     freebsd-elf*)
10761       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10762       need_version=no
10763       need_lib_prefix=no
10764       ;;
10765     freebsd-*)
10766       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10767       need_version=yes
10768       ;;
10769   esac
10770   shlibpath_var=LD_LIBRARY_PATH
10771   case $host_os in
10772   freebsd2*)
10773     shlibpath_overrides_runpath=yes
10774     ;;
10775   freebsd3.[01]* | freebsdelf3.[01]*)
10776     shlibpath_overrides_runpath=yes
10777     hardcode_into_libs=yes
10778     ;;
10779   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10780   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10781     shlibpath_overrides_runpath=no
10782     hardcode_into_libs=yes
10783     ;;
10784   *) # from 4.6 on, and DragonFly
10785     shlibpath_overrides_runpath=yes
10786     hardcode_into_libs=yes
10787     ;;
10788   esac
10789   ;;
10790
10791 gnu*)
10792   version_type=linux
10793   need_lib_prefix=no
10794   need_version=no
10795   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10796   soname_spec='${libname}${release}${shared_ext}$major'
10797   shlibpath_var=LD_LIBRARY_PATH
10798   hardcode_into_libs=yes
10799   ;;
10800
10801 haiku*)
10802   version_type=linux
10803   need_lib_prefix=no
10804   need_version=no
10805   dynamic_linker="$host_os runtime_loader"
10806   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10807   soname_spec='${libname}${release}${shared_ext}$major'
10808   shlibpath_var=LIBRARY_PATH
10809   shlibpath_overrides_runpath=yes
10810   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10811   hardcode_into_libs=yes
10812   ;;
10813
10814 hpux9* | hpux10* | hpux11*)
10815   # Give a soname corresponding to the major version so that dld.sl refuses to
10816   # link against other versions.
10817   version_type=sunos
10818   need_lib_prefix=no
10819   need_version=no
10820   case $host_cpu in
10821   ia64*)
10822     shrext_cmds='.so'
10823     hardcode_into_libs=yes
10824     dynamic_linker="$host_os dld.so"
10825     shlibpath_var=LD_LIBRARY_PATH
10826     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10827     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828     soname_spec='${libname}${release}${shared_ext}$major'
10829     if test "X$HPUX_IA64_MODE" = X32; then
10830       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10831     else
10832       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10833     fi
10834     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10835     ;;
10836   hppa*64*)
10837     shrext_cmds='.sl'
10838     hardcode_into_libs=yes
10839     dynamic_linker="$host_os dld.sl"
10840     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10841     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10842     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843     soname_spec='${libname}${release}${shared_ext}$major'
10844     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10845     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10846     ;;
10847   *)
10848     shrext_cmds='.sl'
10849     dynamic_linker="$host_os dld.sl"
10850     shlibpath_var=SHLIB_PATH
10851     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10852     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853     soname_spec='${libname}${release}${shared_ext}$major'
10854     ;;
10855   esac
10856   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10857   postinstall_cmds='chmod 555 $lib'
10858   # or fails outright, so override atomically:
10859   install_override_mode=555
10860   ;;
10861
10862 interix[3-9]*)
10863   version_type=linux
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10869   shlibpath_var=LD_LIBRARY_PATH
10870   shlibpath_overrides_runpath=no
10871   hardcode_into_libs=yes
10872   ;;
10873
10874 irix5* | irix6* | nonstopux*)
10875   case $host_os in
10876     nonstopux*) version_type=nonstopux ;;
10877     *)
10878         if test "$lt_cv_prog_gnu_ld" = yes; then
10879                 version_type=linux
10880         else
10881                 version_type=irix
10882         fi ;;
10883   esac
10884   need_lib_prefix=no
10885   need_version=no
10886   soname_spec='${libname}${release}${shared_ext}$major'
10887   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10888   case $host_os in
10889   irix5* | nonstopux*)
10890     libsuff= shlibsuff=
10891     ;;
10892   *)
10893     case $LD in # libtool.m4 will add one of these switches to LD
10894     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10895       libsuff= shlibsuff= libmagic=32-bit;;
10896     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10897       libsuff=32 shlibsuff=N32 libmagic=N32;;
10898     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10899       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10900     *) libsuff= shlibsuff= libmagic=never-match;;
10901     esac
10902     ;;
10903   esac
10904   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10905   shlibpath_overrides_runpath=no
10906   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10907   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10908   hardcode_into_libs=yes
10909   ;;
10910
10911 # No shared lib support for Linux oldld, aout, or coff.
10912 linux*oldld* | linux*aout* | linux*coff*)
10913   dynamic_linker=no
10914   ;;
10915
10916 # This must be Linux ELF.
10917 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10918   version_type=linux
10919   need_lib_prefix=no
10920   need_version=no
10921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10922   soname_spec='${libname}${release}${shared_ext}$major'
10923   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10924   shlibpath_var=LD_LIBRARY_PATH
10925   shlibpath_overrides_runpath=no
10926
10927   # Some binutils ld are patched to set DT_RUNPATH
10928   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10929   $as_echo_n "(cached) " >&6
10930 else
10931   lt_cv_shlibpath_overrides_runpath=no
10932     save_LDFLAGS=$LDFLAGS
10933     save_libdir=$libdir
10934     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10935          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10936     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937 /* end confdefs.h.  */
10938
10939 int
10940 main ()
10941 {
10942
10943   ;
10944   return 0;
10945 }
10946 _ACEOF
10947 if ac_fn_c_try_link "$LINENO"; then :
10948   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10949   lt_cv_shlibpath_overrides_runpath=yes
10950 fi
10951 fi
10952 rm -f core conftest.err conftest.$ac_objext \
10953     conftest$ac_exeext conftest.$ac_ext
10954     LDFLAGS=$save_LDFLAGS
10955     libdir=$save_libdir
10956
10957 fi
10958
10959   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10960
10961   # This implies no fast_install, which is unacceptable.
10962   # Some rework will be needed to allow for fast_install
10963   # before this can be enabled.
10964   hardcode_into_libs=yes
10965
10966   # Add ABI-specific directories to the system library path.
10967   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10968
10969   # Append ld.so.conf contents to the search path
10970   if test -f /etc/ld.so.conf; then
10971     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' ' '`
10972     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10973
10974   fi
10975
10976   # We used to test for /lib/ld.so.1 and disable shared libraries on
10977   # powerpc, because MkLinux only supported shared libraries with the
10978   # GNU dynamic linker.  Since this was broken with cross compilers,
10979   # most powerpc-linux boxes support dynamic linking these days and
10980   # people can always --disable-shared, the test was removed, and we
10981   # assume the GNU/Linux dynamic linker is in use.
10982   dynamic_linker='GNU/Linux ld.so'
10983   ;;
10984
10985 netbsd*)
10986   version_type=sunos
10987   need_lib_prefix=no
10988   need_version=no
10989   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10990     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10991     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10992     dynamic_linker='NetBSD (a.out) ld.so'
10993   else
10994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10995     soname_spec='${libname}${release}${shared_ext}$major'
10996     dynamic_linker='NetBSD ld.elf_so'
10997   fi
10998   shlibpath_var=LD_LIBRARY_PATH
10999   shlibpath_overrides_runpath=yes
11000   hardcode_into_libs=yes
11001   ;;
11002
11003 newsos6)
11004   version_type=linux
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006   shlibpath_var=LD_LIBRARY_PATH
11007   shlibpath_overrides_runpath=yes
11008   ;;
11009
11010 *nto* | *qnx*)
11011   version_type=qnx
11012   need_lib_prefix=no
11013   need_version=no
11014   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015   soname_spec='${libname}${release}${shared_ext}$major'
11016   shlibpath_var=LD_LIBRARY_PATH
11017   shlibpath_overrides_runpath=no
11018   hardcode_into_libs=yes
11019   dynamic_linker='ldqnx.so'
11020   ;;
11021
11022 openbsd*)
11023   version_type=sunos
11024   sys_lib_dlsearch_path_spec="/usr/lib"
11025   need_lib_prefix=no
11026   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11027   case $host_os in
11028     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11029     *)                          need_version=no  ;;
11030   esac
11031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11032   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11033   shlibpath_var=LD_LIBRARY_PATH
11034   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11035     case $host_os in
11036       openbsd2.[89] | openbsd2.[89].*)
11037         shlibpath_overrides_runpath=no
11038         ;;
11039       *)
11040         shlibpath_overrides_runpath=yes
11041         ;;
11042       esac
11043   else
11044     shlibpath_overrides_runpath=yes
11045   fi
11046   ;;
11047
11048 os2*)
11049   libname_spec='$name'
11050   shrext_cmds=".dll"
11051   need_lib_prefix=no
11052   library_names_spec='$libname${shared_ext} $libname.a'
11053   dynamic_linker='OS/2 ld.exe'
11054   shlibpath_var=LIBPATH
11055   ;;
11056
11057 osf3* | osf4* | osf5*)
11058   version_type=osf
11059   need_lib_prefix=no
11060   need_version=no
11061   soname_spec='${libname}${release}${shared_ext}$major'
11062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11063   shlibpath_var=LD_LIBRARY_PATH
11064   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11065   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11066   ;;
11067
11068 rdos*)
11069   dynamic_linker=no
11070   ;;
11071
11072 solaris*)
11073   version_type=linux
11074   need_lib_prefix=no
11075   need_version=no
11076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077   soname_spec='${libname}${release}${shared_ext}$major'
11078   shlibpath_var=LD_LIBRARY_PATH
11079   shlibpath_overrides_runpath=yes
11080   hardcode_into_libs=yes
11081   # ldd complains unless libraries are executable
11082   postinstall_cmds='chmod +x $lib'
11083   ;;
11084
11085 sunos4*)
11086   version_type=sunos
11087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11088   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11089   shlibpath_var=LD_LIBRARY_PATH
11090   shlibpath_overrides_runpath=yes
11091   if test "$with_gnu_ld" = yes; then
11092     need_lib_prefix=no
11093   fi
11094   need_version=yes
11095   ;;
11096
11097 sysv4 | sysv4.3*)
11098   version_type=linux
11099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11100   soname_spec='${libname}${release}${shared_ext}$major'
11101   shlibpath_var=LD_LIBRARY_PATH
11102   case $host_vendor in
11103     sni)
11104       shlibpath_overrides_runpath=no
11105       need_lib_prefix=no
11106       runpath_var=LD_RUN_PATH
11107       ;;
11108     siemens)
11109       need_lib_prefix=no
11110       ;;
11111     motorola)
11112       need_lib_prefix=no
11113       need_version=no
11114       shlibpath_overrides_runpath=no
11115       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11116       ;;
11117   esac
11118   ;;
11119
11120 sysv4*MP*)
11121   if test -d /usr/nec ;then
11122     version_type=linux
11123     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11124     soname_spec='$libname${shared_ext}.$major'
11125     shlibpath_var=LD_LIBRARY_PATH
11126   fi
11127   ;;
11128
11129 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11130   version_type=freebsd-elf
11131   need_lib_prefix=no
11132   need_version=no
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11134   soname_spec='${libname}${release}${shared_ext}$major'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   shlibpath_overrides_runpath=yes
11137   hardcode_into_libs=yes
11138   if test "$with_gnu_ld" = yes; then
11139     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11140   else
11141     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11142     case $host_os in
11143       sco3.2v5*)
11144         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11145         ;;
11146     esac
11147   fi
11148   sys_lib_dlsearch_path_spec='/usr/lib'
11149   ;;
11150
11151 tpf*)
11152   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11153   version_type=linux
11154   need_lib_prefix=no
11155   need_version=no
11156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157   shlibpath_var=LD_LIBRARY_PATH
11158   shlibpath_overrides_runpath=no
11159   hardcode_into_libs=yes
11160   ;;
11161
11162 uts4*)
11163   version_type=linux
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165   soname_spec='${libname}${release}${shared_ext}$major'
11166   shlibpath_var=LD_LIBRARY_PATH
11167   ;;
11168
11169 *)
11170   dynamic_linker=no
11171   ;;
11172 esac
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11174 $as_echo "$dynamic_linker" >&6; }
11175 test "$dynamic_linker" = no && can_build_shared=no
11176
11177 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11178 if test "$GCC" = yes; then
11179   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11180 fi
11181
11182 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11183   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11184 fi
11185 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11186   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11187 fi
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
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11281 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11282 hardcode_action=
11283 if test -n "$hardcode_libdir_flag_spec" ||
11284    test -n "$runpath_var" ||
11285    test "X$hardcode_automatic" = "Xyes" ; then
11286
11287   # We can hardcode non-existent directories.
11288   if test "$hardcode_direct" != no &&
11289      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11290      # have to relink, otherwise we might link with an installed library
11291      # when we should be linking with a yet-to-be-installed one
11292      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11293      test "$hardcode_minus_L" != no; then
11294     # Linking always hardcodes the temporary library directory.
11295     hardcode_action=relink
11296   else
11297     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11298     hardcode_action=immediate
11299   fi
11300 else
11301   # We cannot hardcode anything, or else we can only hardcode existing
11302   # directories.
11303   hardcode_action=unsupported
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11306 $as_echo "$hardcode_action" >&6; }
11307
11308 if test "$hardcode_action" = relink ||
11309    test "$inherit_rpath" = yes; then
11310   # Fast installation is not supported
11311   enable_fast_install=no
11312 elif test "$shlibpath_overrides_runpath" = yes ||
11313      test "$enable_shared" = no; then
11314   # Fast installation is not necessary
11315   enable_fast_install=needless
11316 fi
11317
11318
11319
11320
11321
11322
11323   if test "x$enable_dlopen" != xyes; then
11324   enable_dlopen=unknown
11325   enable_dlopen_self=unknown
11326   enable_dlopen_self_static=unknown
11327 else
11328   lt_cv_dlopen=no
11329   lt_cv_dlopen_libs=
11330
11331   case $host_os in
11332   beos*)
11333     lt_cv_dlopen="load_add_on"
11334     lt_cv_dlopen_libs=
11335     lt_cv_dlopen_self=yes
11336     ;;
11337
11338   mingw* | pw32* | cegcc*)
11339     lt_cv_dlopen="LoadLibrary"
11340     lt_cv_dlopen_libs=
11341     ;;
11342
11343   cygwin*)
11344     lt_cv_dlopen="dlopen"
11345     lt_cv_dlopen_libs=
11346     ;;
11347
11348   darwin*)
11349   # if libdl is installed we need to link against it
11350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11351 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11352 if ${ac_cv_lib_dl_dlopen+:} false; then :
11353   $as_echo_n "(cached) " >&6
11354 else
11355   ac_check_lib_save_LIBS=$LIBS
11356 LIBS="-ldl  $LIBS"
11357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11358 /* end confdefs.h.  */
11359
11360 /* Override any GCC internal prototype to avoid an error.
11361    Use char because int might match the return type of a GCC
11362    builtin and then its argument prototype would still apply.  */
11363 #ifdef __cplusplus
11364 extern "C"
11365 #endif
11366 char dlopen ();
11367 int
11368 main ()
11369 {
11370 return dlopen ();
11371   ;
11372   return 0;
11373 }
11374 _ACEOF
11375 if ac_fn_c_try_link "$LINENO"; then :
11376   ac_cv_lib_dl_dlopen=yes
11377 else
11378   ac_cv_lib_dl_dlopen=no
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext \
11381     conftest$ac_exeext conftest.$ac_ext
11382 LIBS=$ac_check_lib_save_LIBS
11383 fi
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11385 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11386 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11387   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11388 else
11389
11390     lt_cv_dlopen="dyld"
11391     lt_cv_dlopen_libs=
11392     lt_cv_dlopen_self=yes
11393
11394 fi
11395
11396     ;;
11397
11398   *)
11399     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11400 if test "x$ac_cv_func_shl_load" = xyes; then :
11401   lt_cv_dlopen="shl_load"
11402 else
11403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11404 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11405 if ${ac_cv_lib_dld_shl_load+:} false; then :
11406   $as_echo_n "(cached) " >&6
11407 else
11408   ac_check_lib_save_LIBS=$LIBS
11409 LIBS="-ldld  $LIBS"
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h.  */
11412
11413 /* Override any GCC internal prototype to avoid an error.
11414    Use char because int might match the return type of a GCC
11415    builtin and then its argument prototype would still apply.  */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char shl_load ();
11420 int
11421 main ()
11422 {
11423 return shl_load ();
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_link "$LINENO"; then :
11429   ac_cv_lib_dld_shl_load=yes
11430 else
11431   ac_cv_lib_dld_shl_load=no
11432 fi
11433 rm -f core conftest.err conftest.$ac_objext \
11434     conftest$ac_exeext conftest.$ac_ext
11435 LIBS=$ac_check_lib_save_LIBS
11436 fi
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11438 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11439 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11440   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11441 else
11442   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11443 if test "x$ac_cv_func_dlopen" = xyes; then :
11444   lt_cv_dlopen="dlopen"
11445 else
11446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11448 if ${ac_cv_lib_dl_dlopen+:} false; then :
11449   $as_echo_n "(cached) " >&6
11450 else
11451   ac_check_lib_save_LIBS=$LIBS
11452 LIBS="-ldl  $LIBS"
11453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11454 /* end confdefs.h.  */
11455
11456 /* Override any GCC internal prototype to avoid an error.
11457    Use char because int might match the return type of a GCC
11458    builtin and then its argument prototype would still apply.  */
11459 #ifdef __cplusplus
11460 extern "C"
11461 #endif
11462 char dlopen ();
11463 int
11464 main ()
11465 {
11466 return dlopen ();
11467   ;
11468   return 0;
11469 }
11470 _ACEOF
11471 if ac_fn_c_try_link "$LINENO"; then :
11472   ac_cv_lib_dl_dlopen=yes
11473 else
11474   ac_cv_lib_dl_dlopen=no
11475 fi
11476 rm -f core conftest.err conftest.$ac_objext \
11477     conftest$ac_exeext conftest.$ac_ext
11478 LIBS=$ac_check_lib_save_LIBS
11479 fi
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11482 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11483   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11484 else
11485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11487 if ${ac_cv_lib_svld_dlopen+:} false; then :
11488   $as_echo_n "(cached) " >&6
11489 else
11490   ac_check_lib_save_LIBS=$LIBS
11491 LIBS="-lsvld  $LIBS"
11492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11493 /* end confdefs.h.  */
11494
11495 /* Override any GCC internal prototype to avoid an error.
11496    Use char because int might match the return type of a GCC
11497    builtin and then its argument prototype would still apply.  */
11498 #ifdef __cplusplus
11499 extern "C"
11500 #endif
11501 char dlopen ();
11502 int
11503 main ()
11504 {
11505 return dlopen ();
11506   ;
11507   return 0;
11508 }
11509 _ACEOF
11510 if ac_fn_c_try_link "$LINENO"; then :
11511   ac_cv_lib_svld_dlopen=yes
11512 else
11513   ac_cv_lib_svld_dlopen=no
11514 fi
11515 rm -f core conftest.err conftest.$ac_objext \
11516     conftest$ac_exeext conftest.$ac_ext
11517 LIBS=$ac_check_lib_save_LIBS
11518 fi
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11520 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11521 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11522   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11523 else
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11525 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11526 if ${ac_cv_lib_dld_dld_link+:} false; then :
11527   $as_echo_n "(cached) " >&6
11528 else
11529   ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-ldld  $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532 /* end confdefs.h.  */
11533
11534 /* Override any GCC internal prototype to avoid an error.
11535    Use char because int might match the return type of a GCC
11536    builtin and then its argument prototype would still apply.  */
11537 #ifdef __cplusplus
11538 extern "C"
11539 #endif
11540 char dld_link ();
11541 int
11542 main ()
11543 {
11544 return dld_link ();
11545   ;
11546   return 0;
11547 }
11548 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then :
11550   ac_cv_lib_dld_dld_link=yes
11551 else
11552   ac_cv_lib_dld_dld_link=no
11553 fi
11554 rm -f core conftest.err conftest.$ac_objext \
11555     conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS
11557 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11559 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11560 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11561   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11562 fi
11563
11564
11565 fi
11566
11567
11568 fi
11569
11570
11571 fi
11572
11573
11574 fi
11575
11576
11577 fi
11578
11579     ;;
11580   esac
11581
11582   if test "x$lt_cv_dlopen" != xno; then
11583     enable_dlopen=yes
11584   else
11585     enable_dlopen=no
11586   fi
11587
11588   case $lt_cv_dlopen in
11589   dlopen)
11590     save_CPPFLAGS="$CPPFLAGS"
11591     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11592
11593     save_LDFLAGS="$LDFLAGS"
11594     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11595
11596     save_LIBS="$LIBS"
11597     LIBS="$lt_cv_dlopen_libs $LIBS"
11598
11599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11600 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11601 if ${lt_cv_dlopen_self+:} false; then :
11602   $as_echo_n "(cached) " >&6
11603 else
11604           if test "$cross_compiling" = yes; then :
11605   lt_cv_dlopen_self=cross
11606 else
11607   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11608   lt_status=$lt_dlunknown
11609   cat > conftest.$ac_ext <<_LT_EOF
11610 #line $LINENO "configure"
11611 #include "confdefs.h"
11612
11613 #if HAVE_DLFCN_H
11614 #include <dlfcn.h>
11615 #endif
11616
11617 #include <stdio.h>
11618
11619 #ifdef RTLD_GLOBAL
11620 #  define LT_DLGLOBAL           RTLD_GLOBAL
11621 #else
11622 #  ifdef DL_GLOBAL
11623 #    define LT_DLGLOBAL         DL_GLOBAL
11624 #  else
11625 #    define LT_DLGLOBAL         0
11626 #  endif
11627 #endif
11628
11629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11630    find out it does not work in some platform. */
11631 #ifndef LT_DLLAZY_OR_NOW
11632 #  ifdef RTLD_LAZY
11633 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11634 #  else
11635 #    ifdef DL_LAZY
11636 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11637 #    else
11638 #      ifdef RTLD_NOW
11639 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11640 #      else
11641 #        ifdef DL_NOW
11642 #          define LT_DLLAZY_OR_NOW      DL_NOW
11643 #        else
11644 #          define LT_DLLAZY_OR_NOW      0
11645 #        endif
11646 #      endif
11647 #    endif
11648 #  endif
11649 #endif
11650
11651 /* When -fvisbility=hidden is used, assume the code has been annotated
11652    correspondingly for the symbols needed.  */
11653 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11654 int fnord () __attribute__((visibility("default")));
11655 #endif
11656
11657 int fnord () { return 42; }
11658 int main ()
11659 {
11660   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11661   int status = $lt_dlunknown;
11662
11663   if (self)
11664     {
11665       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11666       else
11667         {
11668           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11669           else puts (dlerror ());
11670         }
11671       /* dlclose (self); */
11672     }
11673   else
11674     puts (dlerror ());
11675
11676   return status;
11677 }
11678 _LT_EOF
11679   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11680   (eval $ac_link) 2>&5
11681   ac_status=$?
11682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11683   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11684     (./conftest; exit; ) >&5 2>/dev/null
11685     lt_status=$?
11686     case x$lt_status in
11687       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11688       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11689       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11690     esac
11691   else :
11692     # compilation failed
11693     lt_cv_dlopen_self=no
11694   fi
11695 fi
11696 rm -fr conftest*
11697
11698
11699 fi
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11701 $as_echo "$lt_cv_dlopen_self" >&6; }
11702
11703     if test "x$lt_cv_dlopen_self" = xyes; then
11704       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11705       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11706 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11707 if ${lt_cv_dlopen_self_static+:} false; then :
11708   $as_echo_n "(cached) " >&6
11709 else
11710           if test "$cross_compiling" = yes; then :
11711   lt_cv_dlopen_self_static=cross
11712 else
11713   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11714   lt_status=$lt_dlunknown
11715   cat > conftest.$ac_ext <<_LT_EOF
11716 #line $LINENO "configure"
11717 #include "confdefs.h"
11718
11719 #if HAVE_DLFCN_H
11720 #include <dlfcn.h>
11721 #endif
11722
11723 #include <stdio.h>
11724
11725 #ifdef RTLD_GLOBAL
11726 #  define LT_DLGLOBAL           RTLD_GLOBAL
11727 #else
11728 #  ifdef DL_GLOBAL
11729 #    define LT_DLGLOBAL         DL_GLOBAL
11730 #  else
11731 #    define LT_DLGLOBAL         0
11732 #  endif
11733 #endif
11734
11735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11736    find out it does not work in some platform. */
11737 #ifndef LT_DLLAZY_OR_NOW
11738 #  ifdef RTLD_LAZY
11739 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11740 #  else
11741 #    ifdef DL_LAZY
11742 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11743 #    else
11744 #      ifdef RTLD_NOW
11745 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11746 #      else
11747 #        ifdef DL_NOW
11748 #          define LT_DLLAZY_OR_NOW      DL_NOW
11749 #        else
11750 #          define LT_DLLAZY_OR_NOW      0
11751 #        endif
11752 #      endif
11753 #    endif
11754 #  endif
11755 #endif
11756
11757 /* When -fvisbility=hidden is used, assume the code has been annotated
11758    correspondingly for the symbols needed.  */
11759 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11760 int fnord () __attribute__((visibility("default")));
11761 #endif
11762
11763 int fnord () { return 42; }
11764 int main ()
11765 {
11766   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11767   int status = $lt_dlunknown;
11768
11769   if (self)
11770     {
11771       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11772       else
11773         {
11774           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11775           else puts (dlerror ());
11776         }
11777       /* dlclose (self); */
11778     }
11779   else
11780     puts (dlerror ());
11781
11782   return status;
11783 }
11784 _LT_EOF
11785   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11786   (eval $ac_link) 2>&5
11787   ac_status=$?
11788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11789   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11790     (./conftest; exit; ) >&5 2>/dev/null
11791     lt_status=$?
11792     case x$lt_status in
11793       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11794       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11795       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11796     esac
11797   else :
11798     # compilation failed
11799     lt_cv_dlopen_self_static=no
11800   fi
11801 fi
11802 rm -fr conftest*
11803
11804
11805 fi
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11807 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11808     fi
11809
11810     CPPFLAGS="$save_CPPFLAGS"
11811     LDFLAGS="$save_LDFLAGS"
11812     LIBS="$save_LIBS"
11813     ;;
11814   esac
11815
11816   case $lt_cv_dlopen_self in
11817   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11818   *) enable_dlopen_self=unknown ;;
11819   esac
11820
11821   case $lt_cv_dlopen_self_static in
11822   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11823   *) enable_dlopen_self_static=unknown ;;
11824   esac
11825 fi
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843 striplib=
11844 old_striplib=
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11846 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11847 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11848   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11849   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11851 $as_echo "yes" >&6; }
11852 else
11853 # FIXME - insert some real tests, host_os isn't really good enough
11854   case $host_os in
11855   darwin*)
11856     if test -n "$STRIP" ; then
11857       striplib="$STRIP -x"
11858       old_striplib="$STRIP -S"
11859       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11860 $as_echo "yes" >&6; }
11861     else
11862       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864     fi
11865     ;;
11866   *)
11867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11868 $as_echo "no" >&6; }
11869     ;;
11870   esac
11871 fi
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884   # Report which library types will actually be built
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11886 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11888 $as_echo "$can_build_shared" >&6; }
11889
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11891 $as_echo_n "checking whether to build shared libraries... " >&6; }
11892   test "$can_build_shared" = "no" && enable_shared=no
11893
11894   # On AIX, shared libraries and static libraries use the same namespace, and
11895   # are all built from PIC.
11896   case $host_os in
11897   aix3*)
11898     test "$enable_shared" = yes && enable_static=no
11899     if test -n "$RANLIB"; then
11900       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11901       postinstall_cmds='$RANLIB $lib'
11902     fi
11903     ;;
11904
11905   aix[4-9]*)
11906     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11907       test "$enable_shared" = yes && enable_static=no
11908     fi
11909     ;;
11910   esac
11911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11912 $as_echo "$enable_shared" >&6; }
11913
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11915 $as_echo_n "checking whether to build static libraries... " >&6; }
11916   # Make sure either enable_shared or enable_static is yes.
11917   test "$enable_shared" = yes || enable_static=yes
11918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11919 $as_echo "$enable_static" >&6; }
11920
11921
11922
11923
11924 fi
11925 ac_ext=c
11926 ac_cpp='$CPP $CPPFLAGS'
11927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11930
11931 CC="$lt_save_CC"
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945         ac_config_commands="$ac_config_commands libtool"
11946
11947
11948
11949
11950 # Only expand once:
11951
11952
11953
11954
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11956 $as_echo_n "checking for C compiler vendor... " >&6; }
11957 if ${ax_cv_c_compiler_vendor+:} false; then :
11958   $as_echo_n "(cached) " >&6
11959 else
11960   # note: don't check for gcc first since some other compilers define __GNUC__
11961   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
11962            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
11963            pathscale: __PATHCC__,__PATHSCALE__
11964            clang:     __clang__
11965            gnu:       __GNUC__
11966            sun:       __SUNPRO_C,__SUNPRO_CC
11967            hp:        __HP_cc,__HP_aCC
11968            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11969            borland:   __BORLANDC__,__TURBOC__
11970            comeau:    __COMO__
11971            cray:      _CRAYC
11972            kai:       __KCC
11973            lcc:       __LCC__
11974            sgi:       __sgi,sgi
11975            microsoft: _MSC_VER
11976            metrowerks: __MWERKS__
11977            watcom:    __WATCOMC__
11978            portland:  __PGI
11979            unknown:   UNKNOWN"
11980   for ventest in $vendors; do
11981     case $ventest in
11982       *:) vendor=$ventest; continue ;;
11983       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
11984     esac
11985     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11986 /* end confdefs.h.  */
11987
11988 int
11989 main ()
11990 {
11991
11992       #if !($vencpp)
11993         thisisanerror;
11994       #endif
11995
11996   ;
11997   return 0;
11998 }
11999 _ACEOF
12000 if ac_fn_c_try_compile "$LINENO"; then :
12001   break
12002 fi
12003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12004   done
12005   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12006
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12009 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12010
12011
12012
12013
12014
12015
12016 # Check whether --enable-portable-binary was given.
12017 if test "${enable_portable_binary+set}" = set; then :
12018   enableval=$enable_portable_binary; acx_maxopt_portable=$withval
12019 else
12020   acx_maxopt_portable=no
12021 fi
12022
12023
12024 # Try to determine "good" native compiler flags if none specified via CFLAGS
12025 if test "$ac_test_CFLAGS" != "set"; then
12026   CFLAGS=""
12027   case $ax_cv_c_compiler_vendor in
12028     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12029          if test "x$acx_maxopt_portable" = xno; then
12030            CFLAGS="$CFLAGS -arch host"
12031          fi;;
12032
12033     sun) CFLAGS="-native -fast -xO5 -dalign"
12034          if test "x$acx_maxopt_portable" = xyes; then
12035            CFLAGS="$CFLAGS -xarch=generic"
12036          fi;;
12037
12038     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12039          if test "x$acx_maxopt_portable" = xyes; then
12040            CFLAGS="$CFLAGS +DAportable"
12041          fi;;
12042
12043     ibm) if test "x$acx_maxopt_portable" = xno; then
12044            xlc_opt="-qarch=auto -qtune=auto"
12045          else
12046            xlc_opt="-qtune=auto"
12047          fi
12048          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12050 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12051 if eval \${$as_CACHEVAR+:} false; then :
12052   $as_echo_n "(cached) " >&6
12053 else
12054
12055   ax_check_save_flags=$CFLAGS
12056   CFLAGS="$CFLAGS  $xlc_opt"
12057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h.  */
12059
12060 int
12061 main ()
12062 {
12063
12064   ;
12065   return 0;
12066 }
12067 _ACEOF
12068 if ac_fn_c_try_compile "$LINENO"; then :
12069   eval "$as_CACHEVAR=yes"
12070 else
12071   eval "$as_CACHEVAR=no"
12072 fi
12073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12074   CFLAGS=$ax_check_save_flags
12075 fi
12076 eval ac_res=\$$as_CACHEVAR
12077                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12078 $as_echo "$ac_res" >&6; }
12079 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12080   CFLAGS="-O3 -qansialias -w $xlc_opt"
12081 else
12082   CFLAGS="-O3 -qansialias -w"
12083                 echo "******************************************************"
12084                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12085                 echo "*  recommended for best performance that you use:    *"
12086                 echo "*                                                    *"
12087                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12088                 echo "*                      ^^^        ^^^                *"
12089                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12090                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12091                 echo "*  and re-run configure.)  For more info, man cc.    *"
12092                 echo "******************************************************"
12093 fi
12094
12095          ;;
12096
12097     intel) CFLAGS="-O3 -ansi_alias"
12098         if test "x$acx_maxopt_portable" = xno; then
12099           icc_archflag=unknown
12100           icc_flags=""
12101           case $host_cpu in
12102             i686*|x86_64*)
12103               # icc accepts gcc assembly syntax, so these should work:
12104
12105 ac_ext=c
12106 ac_cpp='$CPP $CPPFLAGS'
12107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12110
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12112 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12113 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12114   $as_echo_n "(cached) " >&6
12115 else
12116   if test "$cross_compiling" = yes; then :
12117   ax_cv_gcc_x86_cpuid_0=unknown
12118 else
12119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h.  */
12121 #include <stdio.h>
12122 int
12123 main ()
12124 {
12125
12126      int op = 0, eax, ebx, ecx, edx;
12127      FILE *f;
12128       __asm__("cpuid"
12129         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12130         : "a" (op));
12131      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12132      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12133      fclose(f);
12134      return 0;
12135
12136   ;
12137   return 0;
12138 }
12139 _ACEOF
12140 if ac_fn_c_try_run "$LINENO"; then :
12141   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12142 else
12143   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12144 fi
12145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12146   conftest.$ac_objext conftest.beam conftest.$ac_ext
12147 fi
12148
12149 fi
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12151 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12152 ac_ext=c
12153 ac_cpp='$CPP $CPPFLAGS'
12154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12157
12158
12159
12160 ac_ext=c
12161 ac_cpp='$CPP $CPPFLAGS'
12162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12165
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12167 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12168 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12169   $as_echo_n "(cached) " >&6
12170 else
12171   if test "$cross_compiling" = yes; then :
12172   ax_cv_gcc_x86_cpuid_1=unknown
12173 else
12174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h.  */
12176 #include <stdio.h>
12177 int
12178 main ()
12179 {
12180
12181      int op = 1, eax, ebx, ecx, edx;
12182      FILE *f;
12183       __asm__("cpuid"
12184         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12185         : "a" (op));
12186      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12187      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12188      fclose(f);
12189      return 0;
12190
12191   ;
12192   return 0;
12193 }
12194 _ACEOF
12195 if ac_fn_c_try_run "$LINENO"; then :
12196   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12197 else
12198   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12199 fi
12200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12201   conftest.$ac_objext conftest.beam conftest.$ac_ext
12202 fi
12203
12204 fi
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12206 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12207 ac_ext=c
12208 ac_cpp='$CPP $CPPFLAGS'
12209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12212
12213
12214               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12215                 *:756e6547:*:*) # Intel
12216                   case $ax_cv_gcc_x86_cpuid_1 in
12217                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12218                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12219                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12220                   esac ;;
12221               esac ;;
12222           esac
12223           if test "x$icc_flags" != x; then
12224             for flag in $icc_flags; do
12225               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12227 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12228 if eval \${$as_CACHEVAR+:} false; then :
12229   $as_echo_n "(cached) " >&6
12230 else
12231
12232   ax_check_save_flags=$CFLAGS
12233   CFLAGS="$CFLAGS  $flag"
12234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h.  */
12236
12237 int
12238 main ()
12239 {
12240
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 if ac_fn_c_try_compile "$LINENO"; then :
12246   eval "$as_CACHEVAR=yes"
12247 else
12248   eval "$as_CACHEVAR=no"
12249 fi
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251   CFLAGS=$ax_check_save_flags
12252 fi
12253 eval ac_res=\$$as_CACHEVAR
12254                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12255 $as_echo "$ac_res" >&6; }
12256 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12257   icc_archflag=$flag; break
12258 else
12259   :
12260 fi
12261
12262             done
12263           fi
12264           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12265 $as_echo_n "checking for icc architecture flag... " >&6; }
12266           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12267 $as_echo "$icc_archflag" >&6; }
12268           if test "x$icc_archflag" != xunknown; then
12269             CFLAGS="$CFLAGS $icc_archflag"
12270           fi
12271         fi
12272         ;;
12273
12274     gnu)
12275      # default optimization flags for gcc on all systems
12276      CFLAGS="-O3 -fomit-frame-pointer"
12277
12278      # -malign-double for x86 systems
12279      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12280 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12281 if ${ax_cv_check_cflags___malign_double+:} false; then :
12282   $as_echo_n "(cached) " >&6
12283 else
12284
12285   ax_check_save_flags=$CFLAGS
12286   CFLAGS="$CFLAGS  -malign-double"
12287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h.  */
12289
12290 int
12291 main ()
12292 {
12293
12294   ;
12295   return 0;
12296 }
12297 _ACEOF
12298 if ac_fn_c_try_compile "$LINENO"; then :
12299   ax_cv_check_cflags___malign_double=yes
12300 else
12301   ax_cv_check_cflags___malign_double=no
12302 fi
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304   CFLAGS=$ax_check_save_flags
12305 fi
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12307 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12308 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12309   CFLAGS="$CFLAGS -malign-double"
12310 else
12311   :
12312 fi
12313
12314
12315      #  -fstrict-aliasing for gcc-2.95+
12316      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12317 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12318 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12319   $as_echo_n "(cached) " >&6
12320 else
12321
12322   ax_check_save_flags=$CFLAGS
12323   CFLAGS="$CFLAGS  -fstrict-aliasing"
12324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h.  */
12326
12327 int
12328 main ()
12329 {
12330
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 if ac_fn_c_try_compile "$LINENO"; then :
12336   ax_cv_check_cflags___fstrict_aliasing=yes
12337 else
12338   ax_cv_check_cflags___fstrict_aliasing=no
12339 fi
12340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12341   CFLAGS=$ax_check_save_flags
12342 fi
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12344 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12345 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12346   CFLAGS="$CFLAGS -fstrict-aliasing"
12347 else
12348   :
12349 fi
12350
12351
12352      # note that we enable "unsafe" fp optimization with other compilers, too
12353      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12354 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12355 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12356   $as_echo_n "(cached) " >&6
12357 else
12358
12359   ax_check_save_flags=$CFLAGS
12360   CFLAGS="$CFLAGS  -ffast-math"
12361   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 /* end confdefs.h.  */
12363
12364 int
12365 main ()
12366 {
12367
12368   ;
12369   return 0;
12370 }
12371 _ACEOF
12372 if ac_fn_c_try_compile "$LINENO"; then :
12373   ax_cv_check_cflags___ffast_math=yes
12374 else
12375   ax_cv_check_cflags___ffast_math=no
12376 fi
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12378   CFLAGS=$ax_check_save_flags
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12381 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12382 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12383   CFLAGS="$CFLAGS -ffast-math"
12384 else
12385   :
12386 fi
12387
12388
12389
12390
12391
12392
12393 # Check whether --with-gcc-arch was given.
12394 if test "${with_gcc_arch+set}" = set; then :
12395   withval=$with_gcc_arch; ax_gcc_arch=$withval
12396 else
12397   ax_gcc_arch=yes
12398 fi
12399
12400
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12402 $as_echo_n "checking for gcc architecture flag... " >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12404 $as_echo "" >&6; }
12405 if ${ax_cv_gcc_archflag+:} false; then :
12406   $as_echo_n "(cached) " >&6
12407 else
12408
12409 ax_cv_gcc_archflag="unknown"
12410
12411 if test "$GCC" = yes; then
12412
12413 if test "x$ax_gcc_arch" = xyes; then
12414 ax_gcc_arch=""
12415 if test "$cross_compiling" = no; then
12416 case $host_cpu in
12417   i[3456]86*|x86_64*) # use cpuid codes
12418
12419 ac_ext=c
12420 ac_cpp='$CPP $CPPFLAGS'
12421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12424
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12426 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12427 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12428   $as_echo_n "(cached) " >&6
12429 else
12430   if test "$cross_compiling" = yes; then :
12431   ax_cv_gcc_x86_cpuid_0=unknown
12432 else
12433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12434 /* end confdefs.h.  */
12435 #include <stdio.h>
12436 int
12437 main ()
12438 {
12439
12440      int op = 0, eax, ebx, ecx, edx;
12441      FILE *f;
12442       __asm__("cpuid"
12443         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12444         : "a" (op));
12445      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12446      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12447      fclose(f);
12448      return 0;
12449
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_run "$LINENO"; then :
12455   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12456 else
12457   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12458 fi
12459 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12460   conftest.$ac_objext conftest.beam conftest.$ac_ext
12461 fi
12462
12463 fi
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12465 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12466 ac_ext=c
12467 ac_cpp='$CPP $CPPFLAGS'
12468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12471
12472
12473
12474 ac_ext=c
12475 ac_cpp='$CPP $CPPFLAGS'
12476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12479
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12481 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12482 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12483   $as_echo_n "(cached) " >&6
12484 else
12485   if test "$cross_compiling" = yes; then :
12486   ax_cv_gcc_x86_cpuid_1=unknown
12487 else
12488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h.  */
12490 #include <stdio.h>
12491 int
12492 main ()
12493 {
12494
12495      int op = 1, eax, ebx, ecx, edx;
12496      FILE *f;
12497       __asm__("cpuid"
12498         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12499         : "a" (op));
12500      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12501      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12502      fclose(f);
12503      return 0;
12504
12505   ;
12506   return 0;
12507 }
12508 _ACEOF
12509 if ac_fn_c_try_run "$LINENO"; then :
12510   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12511 else
12512   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12513 fi
12514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12515   conftest.$ac_objext conftest.beam conftest.$ac_ext
12516 fi
12517
12518 fi
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12520 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12521 ac_ext=c
12522 ac_cpp='$CPP $CPPFLAGS'
12523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12526
12527
12528      case $ax_cv_gcc_x86_cpuid_0 in
12529        *:756e6547:*:*) # Intel
12530           case $ax_cv_gcc_x86_cpuid_1 in
12531             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12532             *5??:*:*:*) ax_gcc_arch=pentium ;;
12533             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12534             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12535             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12536             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12537             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12538             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12539             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12540             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12541             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12542             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12543             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12544             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12545             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12546                 case $host_cpu in
12547                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12548                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12549                 esac ;;
12550             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12551           esac ;;
12552        *:68747541:*:*) # AMD
12553           case $ax_cv_gcc_x86_cpuid_1 in
12554             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12555             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12556             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12557             *60?:*:*:*) ax_gcc_arch=k7 ;;
12558             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12559             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12560             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12561             *6[68a]?:*:*:*)
12562
12563 ac_ext=c
12564 ac_cpp='$CPP $CPPFLAGS'
12565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12568
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12570 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12571 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12572   $as_echo_n "(cached) " >&6
12573 else
12574   if test "$cross_compiling" = yes; then :
12575   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12576 else
12577   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12578 /* end confdefs.h.  */
12579 #include <stdio.h>
12580 int
12581 main ()
12582 {
12583
12584      int op = 0x80000006, eax, ebx, ecx, edx;
12585      FILE *f;
12586       __asm__("cpuid"
12587         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12588         : "a" (op));
12589      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12590      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12591      fclose(f);
12592      return 0;
12593
12594   ;
12595   return 0;
12596 }
12597 _ACEOF
12598 if ac_fn_c_try_run "$LINENO"; then :
12599   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12600 else
12601   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12602 fi
12603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12604   conftest.$ac_objext conftest.beam conftest.$ac_ext
12605 fi
12606
12607 fi
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12609 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12610 ac_ext=c
12611 ac_cpp='$CPP $CPPFLAGS'
12612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12615
12616  # L2 cache size
12617                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12618                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12619                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12620                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12621                esac ;;
12622             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12623             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12624             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12625             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12626             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12627             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12628             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12629           esac ;;
12630         *:746e6543:*:*) # IDT
12631            case $ax_cv_gcc_x86_cpuid_1 in
12632              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12633              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12634              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12635              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12636            esac ;;
12637      esac
12638      if test x"$ax_gcc_arch" = x; then # fallback
12639         case $host_cpu in
12640           i586*) ax_gcc_arch=pentium ;;
12641           i686*) ax_gcc_arch=pentiumpro ;;
12642         esac
12643      fi
12644      ;;
12645
12646   sparc*)
12647      # Extract the first word of "prtdiag", so it can be a program name with args.
12648 set dummy prtdiag; ac_word=$2
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12650 $as_echo_n "checking for $ac_word... " >&6; }
12651 if ${ac_cv_path_PRTDIAG+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   case $PRTDIAG in
12655   [\\/]* | ?:[\\/]*)
12656   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12657   ;;
12658   *)
12659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12660 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12661 for as_dir in $as_dummy
12662 do
12663   IFS=$as_save_IFS
12664   test -z "$as_dir" && as_dir=.
12665     for ac_exec_ext in '' $ac_executable_extensions; do
12666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12667     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12669     break 2
12670   fi
12671 done
12672   done
12673 IFS=$as_save_IFS
12674
12675   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12676   ;;
12677 esac
12678 fi
12679 PRTDIAG=$ac_cv_path_PRTDIAG
12680 if test -n "$PRTDIAG"; then
12681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12682 $as_echo "$PRTDIAG" >&6; }
12683 else
12684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685 $as_echo "no" >&6; }
12686 fi
12687
12688
12689      cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
12690      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12691      case $cputype in
12692          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12693          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12694          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12695          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12696          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12697          *cypress*) ax_gcc_arch=cypress ;;
12698      esac ;;
12699
12700   alphaev5) ax_gcc_arch=ev5 ;;
12701   alphaev56) ax_gcc_arch=ev56 ;;
12702   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12703   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12704   alphaev6) ax_gcc_arch=ev6 ;;
12705   alphaev67) ax_gcc_arch=ev67 ;;
12706   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12707   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12708   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12709   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12710
12711   powerpc*)
12712      cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
12713      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12714      case $cputype in
12715        *750*) ax_gcc_arch="750 G3" ;;
12716        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12717        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12718        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12719        *970*) ax_gcc_arch="970 G5 power4";;
12720        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12721        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12722        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12723        *) ax_gcc_arch=$cputype ;;
12724      esac
12725      ax_gcc_arch="$ax_gcc_arch powerpc"
12726      ;;
12727 esac
12728 fi # not cross-compiling
12729 fi # guess arch
12730
12731 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12732 for arch in $ax_gcc_arch; do
12733   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12734     flags="-mtune=$arch"
12735     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12736     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12737     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12738   else
12739     flags="-march=$arch -mcpu=$arch -m$arch"
12740   fi
12741   for flag in $flags; do
12742     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12744 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12745 if eval \${$as_CACHEVAR+:} false; then :
12746   $as_echo_n "(cached) " >&6
12747 else
12748
12749   ax_check_save_flags=$CFLAGS
12750   CFLAGS="$CFLAGS  $flag"
12751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h.  */
12753
12754 int
12755 main ()
12756 {
12757
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 if ac_fn_c_try_compile "$LINENO"; then :
12763   eval "$as_CACHEVAR=yes"
12764 else
12765   eval "$as_CACHEVAR=no"
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768   CFLAGS=$ax_check_save_flags
12769 fi
12770 eval ac_res=\$$as_CACHEVAR
12771                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12772 $as_echo "$ac_res" >&6; }
12773 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12774   ax_cv_gcc_archflag=$flag; break
12775 else
12776   :
12777 fi
12778
12779   done
12780   test "x$ax_cv_gcc_archflag" = xunknown || break
12781 done
12782 fi
12783
12784 fi # $GCC=yes
12785
12786 fi
12787
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12789 $as_echo_n "checking for gcc architecture flag... " >&6; }
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12791 $as_echo "$ax_cv_gcc_archflag" >&6; }
12792 if test "x$ax_cv_gcc_archflag" = xunknown; then
12793   :
12794 else
12795   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12796 fi
12797
12798      ;;
12799   esac
12800
12801   if test -z "$CFLAGS"; then
12802         echo ""
12803         echo "********************************************************"
12804         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12805         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12806         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12807         echo "********************************************************"
12808         echo ""
12809         CFLAGS="-O3"
12810   fi
12811
12812   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12814 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12815 if eval \${$as_CACHEVAR+:} false; then :
12816   $as_echo_n "(cached) " >&6
12817 else
12818
12819   ax_check_save_flags=$CFLAGS
12820   CFLAGS="$CFLAGS  $CFLAGS"
12821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822 /* end confdefs.h.  */
12823
12824 int
12825 main ()
12826 {
12827
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 if ac_fn_c_try_compile "$LINENO"; then :
12833   eval "$as_CACHEVAR=yes"
12834 else
12835   eval "$as_CACHEVAR=no"
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838   CFLAGS=$ax_check_save_flags
12839 fi
12840 eval ac_res=\$$as_CACHEVAR
12841                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12842 $as_echo "$ac_res" >&6; }
12843 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12844   :
12845 else
12846
12847         echo ""
12848         echo "********************************************************"
12849         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12850         echo "* your compiler.                                       *"
12851         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12852         echo "********************************************************"
12853         echo ""
12854         CFLAGS=""
12855
12856 fi
12857
12858
12859 fi
12860
12861 ac_ext=c
12862 ac_cpp='$CPP $CPPFLAGS'
12863 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12864 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12865 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12866
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12868 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12869 if ${ac_cv_cflags_warn_all+:} false; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872   ac_cv_cflags_warn_all="no, unknown"
12873 ac_save_CFLAGS="$CFLAGS"
12874 for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
12875 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12876    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h.  */
12878
12879 int
12880 main ()
12881 {
12882
12883   ;
12884   return 0;
12885 }
12886 _ACEOF
12887 if ac_fn_c_try_compile "$LINENO"; then :
12888   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12889 fi
12890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12891 done
12892 CFLAGS="$ac_save_CFLAGS"
12893
12894 fi
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12896 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12897 case ".$ac_cv_cflags_warn_all" in
12898      .ok|.ok,*)  ;;
12899    .|.no|.no,*)  ;;
12900    *) if ${CFLAGS+:} false; then :
12901   case " $CFLAGS " in
12902     *" $ac_cv_cflags_warn_all "*)
12903       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12904   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12905   ac_status=$?
12906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12907   test $ac_status = 0; }
12908       ;;
12909     *)
12910       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12911   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12912   ac_status=$?
12913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12914   test $ac_status = 0; }
12915       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
12916       ;;
12917    esac
12918 else
12919   CFLAGS="$ac_cv_cflags_warn_all"
12920 fi
12921  ;;
12922 esac
12923
12924 ac_ext=c
12925 ac_cpp='$CPP $CPPFLAGS'
12926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12929
12930
12931 if test "x$GCC" = "xyes"; then
12932   CFLAGS="$CFLAGS -fexceptions"
12933 fi
12934
12935
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12937 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12938     # Check whether --enable-maintainer-mode was given.
12939 if test "${enable_maintainer_mode+set}" = set; then :
12940   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12941 else
12942   USE_MAINTAINER_MODE=no
12943 fi
12944
12945   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12946 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12947    if test $USE_MAINTAINER_MODE = yes; then
12948   MAINTAINER_MODE_TRUE=
12949   MAINTAINER_MODE_FALSE='#'
12950 else
12951   MAINTAINER_MODE_TRUE='#'
12952   MAINTAINER_MODE_FALSE=
12953 fi
12954
12955   MAINT=$MAINTAINER_MODE_TRUE
12956
12957
12958
12959 for ac_header in sys/mman.h
12960 do :
12961   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12962 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12963   cat >>confdefs.h <<_ACEOF
12964 #define HAVE_SYS_MMAN_H 1
12965 _ACEOF
12966
12967 fi
12968
12969 done
12970
12971 for ac_func in mmap
12972 do :
12973   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12974 if test "x$ac_cv_func_mmap" = xyes; then :
12975   cat >>confdefs.h <<_ACEOF
12976 #define HAVE_MMAP 1
12977 _ACEOF
12978
12979 fi
12980 done
12981
12982
12983 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12984 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12985   libffi_header_sys_mman_h=yes
12986 else
12987   libffi_header_sys_mman_h=no
12988 fi
12989
12990
12991 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12992 if test "x$ac_cv_func_mmap" = xyes; then :
12993   libffi_func_mmap=yes
12994 else
12995   libffi_func_mmap=no
12996 fi
12997
12998 if test "$libffi_header_sys_mman_h" != yes \
12999  || test "$libffi_func_mmap" != yes; then
13000    ac_cv_func_mmap_file=no
13001    ac_cv_func_mmap_dev_zero=no
13002    ac_cv_func_mmap_anon=no
13003 else
13004    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13005 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13006 if ${ac_cv_func_mmap_file+:} false; then :
13007   $as_echo_n "(cached) " >&6
13008 else
13009   # Add a system to this blacklist if
13010    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13011    # memory area containing the same data that you'd get if you applied
13012    # read() to the same fd.  The only system known to have a problem here
13013    # is VMS, where text files have record structure.
13014    case "$host_os" in
13015      vms* | ultrix*)
13016         ac_cv_func_mmap_file=no ;;
13017      *)
13018         ac_cv_func_mmap_file=yes;;
13019    esac
13020 fi
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13022 $as_echo "$ac_cv_func_mmap_file" >&6; }
13023    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13024 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13025 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13026   $as_echo_n "(cached) " >&6
13027 else
13028   # Add a system to this blacklist if it has mmap() but /dev/zero
13029    # does not exist, or if mmapping /dev/zero does not give anonymous
13030    # zeroed pages with both the following properties:
13031    # 1. If you map N consecutive pages in with one call, and then
13032    #    unmap any subset of those pages, the pages that were not
13033    #    explicitly unmapped remain accessible.
13034    # 2. If you map two adjacent blocks of memory and then unmap them
13035    #    both at once, they must both go away.
13036    # Systems known to be in this category are Windows (all variants),
13037    # VMS, and Darwin.
13038    case "$host_os" in
13039      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13040         ac_cv_func_mmap_dev_zero=no ;;
13041      *)
13042         ac_cv_func_mmap_dev_zero=yes;;
13043    esac
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13046 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13047
13048    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13050 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13051 if ${ac_cv_decl_map_anon+:} false; then :
13052   $as_echo_n "(cached) " >&6
13053 else
13054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h.  */
13056 #include <sys/types.h>
13057 #include <sys/mman.h>
13058 #include <unistd.h>
13059
13060 #ifndef MAP_ANONYMOUS
13061 #define MAP_ANONYMOUS MAP_ANON
13062 #endif
13063
13064 int
13065 main ()
13066 {
13067 int n = MAP_ANONYMOUS;
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 if ac_fn_c_try_compile "$LINENO"; then :
13073   ac_cv_decl_map_anon=yes
13074 else
13075   ac_cv_decl_map_anon=no
13076 fi
13077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13078 fi
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13080 $as_echo "$ac_cv_decl_map_anon" >&6; }
13081
13082    if test $ac_cv_decl_map_anon = no; then
13083      ac_cv_func_mmap_anon=no
13084    else
13085      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13086 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13087 if ${ac_cv_func_mmap_anon+:} false; then :
13088   $as_echo_n "(cached) " >&6
13089 else
13090   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13091    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13092    # doesn't give anonymous zeroed pages with the same properties listed
13093    # above for use of /dev/zero.
13094    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13095    case "$host_os" in
13096      vms* | cygwin* | pe | mingw* | sco* | udk* )
13097         ac_cv_func_mmap_anon=no ;;
13098      *)
13099         ac_cv_func_mmap_anon=yes;;
13100    esac
13101 fi
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13103 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13104    fi
13105 fi
13106
13107 if test $ac_cv_func_mmap_file = yes; then
13108
13109 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13110
13111 fi
13112 if test $ac_cv_func_mmap_dev_zero = yes; then
13113
13114 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13115
13116 fi
13117 if test $ac_cv_func_mmap_anon = yes; then
13118
13119 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13120
13121 fi
13122
13123
13124  if test -d $srcdir/testsuite; then
13125   TESTSUBDIR_TRUE=
13126   TESTSUBDIR_FALSE='#'
13127 else
13128   TESTSUBDIR_TRUE='#'
13129   TESTSUBDIR_FALSE=
13130 fi
13131
13132
13133 TARGETDIR="unknown"
13134 case "$host" in
13135   alpha*-*-*)
13136         TARGET=ALPHA; TARGETDIR=alpha;
13137         # Support 128-bit long double, changeable via command-line switch.
13138         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13139         ;;
13140
13141   arm*-*-*)
13142         TARGET=ARM; TARGETDIR=arm
13143         ;;
13144
13145   amd64-*-freebsd* | amd64-*-openbsd*)
13146         TARGET=X86_64; TARGETDIR=x86
13147         ;;
13148
13149   amd64-*-freebsd*)
13150         TARGET=X86_64; TARGETDIR=x86
13151         ;;
13152
13153   avr32*-*-*)
13154         TARGET=AVR32; TARGETDIR=avr32
13155         ;;
13156
13157   bfin*)
13158         TARGET=BFIN; TARGETDIR=bfin
13159         ;;
13160
13161   cris-*-*)
13162         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13163         ;;
13164
13165   frv-*-*)
13166         TARGET=FRV; TARGETDIR=frv
13167         ;;
13168
13169   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13170         TARGET=PA_LINUX; TARGETDIR=pa
13171         ;;
13172   hppa*64-*-hpux*)
13173         TARGET=PA64_HPUX; TARGETDIR=pa
13174         ;;
13175   hppa*-*-hpux*)
13176         TARGET=PA_HPUX; TARGETDIR=pa
13177         ;;
13178
13179   i?86-*-freebsd* | i?86-*-openbsd*)
13180         TARGET=X86_FREEBSD; TARGETDIR=x86
13181         ;;
13182   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13183         TARGET=X86_WIN32; TARGETDIR=x86
13184         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13185         # We must also check with_cross_host to decide if this is a native
13186         # or cross-build and select where to install dlls appropriately.
13187         if test -n "$with_cross_host" &&
13188            test x"$with_cross_host" != x"no"; then
13189           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13190         else
13191           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13192         fi
13193         ;;
13194   i?86-*-darwin*)
13195         TARGET=X86_DARWIN; TARGETDIR=x86
13196         ;;
13197   i?86-*-solaris2.1[0-9]*)
13198         TARGET=X86_64; TARGETDIR=x86
13199         ;;
13200   i?86-*-*)
13201         TARGET=X86_64; TARGETDIR=x86
13202         ;;
13203
13204   ia64*-*-*)
13205         TARGET=IA64; TARGETDIR=ia64
13206         ;;
13207
13208   m32r*-*-*)
13209         TARGET=M32R; TARGETDIR=m32r
13210         ;;
13211
13212   m68k-*-*)
13213         TARGET=M68K; TARGETDIR=m68k
13214         ;;
13215
13216   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13217         TARGET=MIPS; TARGETDIR=mips
13218         ;;
13219   mips*-*-linux* | mips*-*-openbsd*)
13220         # Support 128-bit long double for NewABI.
13221         HAVE_LONG_DOUBLE='defined(__mips64)'
13222         TARGET=MIPS; TARGETDIR=mips
13223         ;;
13224
13225   moxie-*-*)
13226         TARGET=MOXIE; TARGETDIR=moxie
13227         ;;
13228
13229   powerpc*-*-linux* | powerpc-*-sysv*)
13230         TARGET=POWERPC; TARGETDIR=powerpc
13231         ;;
13232   powerpc-*-amigaos*)
13233         TARGET=POWERPC; TARGETDIR=powerpc
13234         ;;
13235   powerpc-*-beos*)
13236         TARGET=POWERPC; TARGETDIR=powerpc
13237         ;;
13238   powerpc-*-darwin* | powerpc64-*-darwin*)
13239         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13240         ;;
13241   powerpc-*-aix* | rs6000-*-aix*)
13242         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13243         ;;
13244   powerpc-*-freebsd* | powerpc-*-openbsd*)
13245         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13246         ;;
13247   powerpc64-*-freebsd*)
13248         TARGET=POWERPC; TARGETDIR=powerpc
13249         ;;
13250   powerpc*-*-rtems*)
13251         TARGET=POWERPC; TARGETDIR=powerpc
13252         ;;
13253
13254   s390-*-* | s390x-*-*)
13255         TARGET=S390; TARGETDIR=s390
13256         ;;
13257
13258   sh-*-* | sh[34]*-*-*)
13259         TARGET=SH; TARGETDIR=sh
13260         ;;
13261   sh64-*-* | sh5*-*-*)
13262         TARGET=SH64; TARGETDIR=sh64
13263         ;;
13264
13265   sparc*-*-*)
13266         TARGET=SPARC; TARGETDIR=sparc
13267         ;;
13268
13269   x86_64-*-darwin*)
13270         TARGET=X86_DARWIN; TARGETDIR=x86
13271         ;;
13272
13273   x86_64-*-cygwin* | x86_64-*-mingw*)
13274         TARGET=X86_WIN64; TARGETDIR=x86
13275         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13276         # We must also check with_cross_host to decide if this is a native
13277         # or cross-build and select where to install dlls appropriately.
13278         if test -n "$with_cross_host" &&
13279            test x"$with_cross_host" != x"no"; then
13280           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13281         else
13282           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13283         fi
13284         ;;
13285
13286   x86_64-*-*)
13287         TARGET=X86_64; TARGETDIR=x86
13288         ;;
13289 esac
13290
13291
13292
13293
13294 if test $TARGETDIR = unknown; then
13295   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13296 fi
13297
13298  if test x$TARGET = xMIPS; then
13299   MIPS_TRUE=
13300   MIPS_FALSE='#'
13301 else
13302   MIPS_TRUE='#'
13303   MIPS_FALSE=
13304 fi
13305
13306  if test x$TARGET = xBFIN; then
13307   BFIN_TRUE=
13308   BFIN_FALSE='#'
13309 else
13310   BFIN_TRUE='#'
13311   BFIN_FALSE=
13312 fi
13313
13314  if test x$TARGET = xSPARC; then
13315   SPARC_TRUE=
13316   SPARC_FALSE='#'
13317 else
13318   SPARC_TRUE='#'
13319   SPARC_FALSE=
13320 fi
13321
13322  if test x$TARGET = xX86; then
13323   X86_TRUE=
13324   X86_FALSE='#'
13325 else
13326   X86_TRUE='#'
13327   X86_FALSE=
13328 fi
13329
13330  if test x$TARGET = xX86_FREEBSD; then
13331   X86_FREEBSD_TRUE=
13332   X86_FREEBSD_FALSE='#'
13333 else
13334   X86_FREEBSD_TRUE='#'
13335   X86_FREEBSD_FALSE=
13336 fi
13337
13338  if test x$TARGET = xX86_WIN32; then
13339   X86_WIN32_TRUE=
13340   X86_WIN32_FALSE='#'
13341 else
13342   X86_WIN32_TRUE='#'
13343   X86_WIN32_FALSE=
13344 fi
13345
13346  if test x$TARGET = xX86_WIN64; then
13347   X86_WIN64_TRUE=
13348   X86_WIN64_FALSE='#'
13349 else
13350   X86_WIN64_TRUE='#'
13351   X86_WIN64_FALSE=
13352 fi
13353
13354  if test x$TARGET = xX86_DARWIN; then
13355   X86_DARWIN_TRUE=
13356   X86_DARWIN_FALSE='#'
13357 else
13358   X86_DARWIN_TRUE='#'
13359   X86_DARWIN_FALSE=
13360 fi
13361
13362  if test x$TARGET = xALPHA; then
13363   ALPHA_TRUE=
13364   ALPHA_FALSE='#'
13365 else
13366   ALPHA_TRUE='#'
13367   ALPHA_FALSE=
13368 fi
13369
13370  if test x$TARGET = xIA64; then
13371   IA64_TRUE=
13372   IA64_FALSE='#'
13373 else
13374   IA64_TRUE='#'
13375   IA64_FALSE=
13376 fi
13377
13378  if test x$TARGET = xM32R; then
13379   M32R_TRUE=
13380   M32R_FALSE='#'
13381 else
13382   M32R_TRUE='#'
13383   M32R_FALSE=
13384 fi
13385
13386  if test x$TARGET = xM68K; then
13387   M68K_TRUE=
13388   M68K_FALSE='#'
13389 else
13390   M68K_TRUE='#'
13391   M68K_FALSE=
13392 fi
13393
13394  if test x$TARGET = xMOXIE; then
13395   MOXIE_TRUE=
13396   MOXIE_FALSE='#'
13397 else
13398   MOXIE_TRUE='#'
13399   MOXIE_FALSE=
13400 fi
13401
13402  if test x$TARGET = xPOWERPC; then
13403   POWERPC_TRUE=
13404   POWERPC_FALSE='#'
13405 else
13406   POWERPC_TRUE='#'
13407   POWERPC_FALSE=
13408 fi
13409
13410  if test x$TARGET = xPOWERPC_AIX; then
13411   POWERPC_AIX_TRUE=
13412   POWERPC_AIX_FALSE='#'
13413 else
13414   POWERPC_AIX_TRUE='#'
13415   POWERPC_AIX_FALSE=
13416 fi
13417
13418  if test x$TARGET = xPOWERPC_DARWIN; then
13419   POWERPC_DARWIN_TRUE=
13420   POWERPC_DARWIN_FALSE='#'
13421 else
13422   POWERPC_DARWIN_TRUE='#'
13423   POWERPC_DARWIN_FALSE=
13424 fi
13425
13426  if test x$TARGET = xPOWERPC_FREEBSD; then
13427   POWERPC_FREEBSD_TRUE=
13428   POWERPC_FREEBSD_FALSE='#'
13429 else
13430   POWERPC_FREEBSD_TRUE='#'
13431   POWERPC_FREEBSD_FALSE=
13432 fi
13433
13434  if test x$TARGET = xARM; then
13435   ARM_TRUE=
13436   ARM_FALSE='#'
13437 else
13438   ARM_TRUE='#'
13439   ARM_FALSE=
13440 fi
13441
13442  if test x$TARGET = xAVR32; then
13443   AVR32_TRUE=
13444   AVR32_FALSE='#'
13445 else
13446   AVR32_TRUE='#'
13447   AVR32_FALSE=
13448 fi
13449
13450  if test x$TARGET = xLIBFFI_CRIS; then
13451   LIBFFI_CRIS_TRUE=
13452   LIBFFI_CRIS_FALSE='#'
13453 else
13454   LIBFFI_CRIS_TRUE='#'
13455   LIBFFI_CRIS_FALSE=
13456 fi
13457
13458  if test x$TARGET = xFRV; then
13459   FRV_TRUE=
13460   FRV_FALSE='#'
13461 else
13462   FRV_TRUE='#'
13463   FRV_FALSE=
13464 fi
13465
13466  if test x$TARGET = xS390; then
13467   S390_TRUE=
13468   S390_FALSE='#'
13469 else
13470   S390_TRUE='#'
13471   S390_FALSE=
13472 fi
13473
13474  if test x$TARGET = xX86_64; then
13475   X86_64_TRUE=
13476   X86_64_FALSE='#'
13477 else
13478   X86_64_TRUE='#'
13479   X86_64_FALSE=
13480 fi
13481
13482  if test x$TARGET = xSH; then
13483   SH_TRUE=
13484   SH_FALSE='#'
13485 else
13486   SH_TRUE='#'
13487   SH_FALSE=
13488 fi
13489
13490  if test x$TARGET = xSH64; then
13491   SH64_TRUE=
13492   SH64_FALSE='#'
13493 else
13494   SH64_TRUE='#'
13495   SH64_FALSE=
13496 fi
13497
13498  if test x$TARGET = xPA_LINUX; then
13499   PA_LINUX_TRUE=
13500   PA_LINUX_FALSE='#'
13501 else
13502   PA_LINUX_TRUE='#'
13503   PA_LINUX_FALSE=
13504 fi
13505
13506  if test x$TARGET = xPA_HPUX; then
13507   PA_HPUX_TRUE=
13508   PA_HPUX_FALSE='#'
13509 else
13510   PA_HPUX_TRUE='#'
13511   PA_HPUX_FALSE=
13512 fi
13513
13514  if test x$TARGET = xPA64_HPUX; then
13515   PA64_HPUX_TRUE=
13516   PA64_HPUX_FALSE='#'
13517 else
13518   PA64_HPUX_TRUE='#'
13519   PA64_HPUX_FALSE=
13520 fi
13521
13522
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13524 $as_echo_n "checking for ANSI C header files... " >&6; }
13525 if ${ac_cv_header_stdc+:} false; then :
13526   $as_echo_n "(cached) " >&6
13527 else
13528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h.  */
13530 #include <stdlib.h>
13531 #include <stdarg.h>
13532 #include <string.h>
13533 #include <float.h>
13534
13535 int
13536 main ()
13537 {
13538
13539   ;
13540   return 0;
13541 }
13542 _ACEOF
13543 if ac_fn_c_try_compile "$LINENO"; then :
13544   ac_cv_header_stdc=yes
13545 else
13546   ac_cv_header_stdc=no
13547 fi
13548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13549
13550 if test $ac_cv_header_stdc = yes; then
13551   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h.  */
13554 #include <string.h>
13555
13556 _ACEOF
13557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13558   $EGREP "memchr" >/dev/null 2>&1; then :
13559
13560 else
13561   ac_cv_header_stdc=no
13562 fi
13563 rm -f conftest*
13564
13565 fi
13566
13567 if test $ac_cv_header_stdc = yes; then
13568   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h.  */
13571 #include <stdlib.h>
13572
13573 _ACEOF
13574 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13575   $EGREP "free" >/dev/null 2>&1; then :
13576
13577 else
13578   ac_cv_header_stdc=no
13579 fi
13580 rm -f conftest*
13581
13582 fi
13583
13584 if test $ac_cv_header_stdc = yes; then
13585   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13586   if test "$cross_compiling" = yes; then :
13587   :
13588 else
13589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h.  */
13591 #include <ctype.h>
13592 #include <stdlib.h>
13593 #if ((' ' & 0x0FF) == 0x020)
13594 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13595 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13596 #else
13597 # define ISLOWER(c) \
13598                    (('a' <= (c) && (c) <= 'i') \
13599                      || ('j' <= (c) && (c) <= 'r') \
13600                      || ('s' <= (c) && (c) <= 'z'))
13601 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13602 #endif
13603
13604 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13605 int
13606 main ()
13607 {
13608   int i;
13609   for (i = 0; i < 256; i++)
13610     if (XOR (islower (i), ISLOWER (i))
13611         || toupper (i) != TOUPPER (i))
13612       return 2;
13613   return 0;
13614 }
13615 _ACEOF
13616 if ac_fn_c_try_run "$LINENO"; then :
13617
13618 else
13619   ac_cv_header_stdc=no
13620 fi
13621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13622   conftest.$ac_objext conftest.beam conftest.$ac_ext
13623 fi
13624
13625 fi
13626 fi
13627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13628 $as_echo "$ac_cv_header_stdc" >&6; }
13629 if test $ac_cv_header_stdc = yes; then
13630
13631 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13632
13633 fi
13634
13635 for ac_func in memcpy
13636 do :
13637   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13638 if test "x$ac_cv_func_memcpy" = xyes; then :
13639   cat >>confdefs.h <<_ACEOF
13640 #define HAVE_MEMCPY 1
13641 _ACEOF
13642
13643 fi
13644 done
13645
13646 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13647 if test "x$ac_cv_type_size_t" = xyes; then :
13648
13649 else
13650
13651 cat >>confdefs.h <<_ACEOF
13652 #define size_t unsigned int
13653 _ACEOF
13654
13655 fi
13656
13657 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13658 # for constant arguments.  Useless!
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13660 $as_echo_n "checking for working alloca.h... " >&6; }
13661 if ${ac_cv_working_alloca_h+:} false; then :
13662   $as_echo_n "(cached) " >&6
13663 else
13664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13665 /* end confdefs.h.  */
13666 #include <alloca.h>
13667 int
13668 main ()
13669 {
13670 char *p = (char *) alloca (2 * sizeof (int));
13671                           if (p) return 0;
13672   ;
13673   return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_link "$LINENO"; then :
13677   ac_cv_working_alloca_h=yes
13678 else
13679   ac_cv_working_alloca_h=no
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext \
13682     conftest$ac_exeext conftest.$ac_ext
13683 fi
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13685 $as_echo "$ac_cv_working_alloca_h" >&6; }
13686 if test $ac_cv_working_alloca_h = yes; then
13687
13688 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13689
13690 fi
13691
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13693 $as_echo_n "checking for alloca... " >&6; }
13694 if ${ac_cv_func_alloca_works+:} false; then :
13695   $as_echo_n "(cached) " >&6
13696 else
13697   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h.  */
13699 #ifdef __GNUC__
13700 # define alloca __builtin_alloca
13701 #else
13702 # ifdef _MSC_VER
13703 #  include <malloc.h>
13704 #  define alloca _alloca
13705 # else
13706 #  ifdef HAVE_ALLOCA_H
13707 #   include <alloca.h>
13708 #  else
13709 #   ifdef _AIX
13710  #pragma alloca
13711 #   else
13712 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13713 void *alloca (size_t);
13714 #    endif
13715 #   endif
13716 #  endif
13717 # endif
13718 #endif
13719
13720 int
13721 main ()
13722 {
13723 char *p = (char *) alloca (1);
13724                                     if (p) return 0;
13725   ;
13726   return 0;
13727 }
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730   ac_cv_func_alloca_works=yes
13731 else
13732   ac_cv_func_alloca_works=no
13733 fi
13734 rm -f core conftest.err conftest.$ac_objext \
13735     conftest$ac_exeext conftest.$ac_ext
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13738 $as_echo "$ac_cv_func_alloca_works" >&6; }
13739
13740 if test $ac_cv_func_alloca_works = yes; then
13741
13742 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13743
13744 else
13745   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13746 # that cause trouble.  Some versions do not even contain alloca or
13747 # contain a buggy version.  If you still want to use their alloca,
13748 # use ar to extract alloca.o from them instead of compiling alloca.c.
13749
13750 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13751
13752 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13753
13754
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13756 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13757 if ${ac_cv_os_cray+:} false; then :
13758   $as_echo_n "(cached) " >&6
13759 else
13760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h.  */
13762 #if defined CRAY && ! defined CRAY2
13763 webecray
13764 #else
13765 wenotbecray
13766 #endif
13767
13768 _ACEOF
13769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13770   $EGREP "webecray" >/dev/null 2>&1; then :
13771   ac_cv_os_cray=yes
13772 else
13773   ac_cv_os_cray=no
13774 fi
13775 rm -f conftest*
13776
13777 fi
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13779 $as_echo "$ac_cv_os_cray" >&6; }
13780 if test $ac_cv_os_cray = yes; then
13781   for ac_func in _getb67 GETB67 getb67; do
13782     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13784 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13785
13786 cat >>confdefs.h <<_ACEOF
13787 #define CRAY_STACKSEG_END $ac_func
13788 _ACEOF
13789
13790     break
13791 fi
13792
13793   done
13794 fi
13795
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13797 $as_echo_n "checking stack direction for C alloca... " >&6; }
13798 if ${ac_cv_c_stack_direction+:} false; then :
13799   $as_echo_n "(cached) " >&6
13800 else
13801   if test "$cross_compiling" = yes; then :
13802   ac_cv_c_stack_direction=0
13803 else
13804   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h.  */
13806 $ac_includes_default
13807 int
13808 find_stack_direction ()
13809 {
13810   static char *addr = 0;
13811   auto char dummy;
13812   if (addr == 0)
13813     {
13814       addr = &dummy;
13815       return find_stack_direction ();
13816     }
13817   else
13818     return (&dummy > addr) ? 1 : -1;
13819 }
13820
13821 int
13822 main ()
13823 {
13824   return find_stack_direction () < 0;
13825 }
13826 _ACEOF
13827 if ac_fn_c_try_run "$LINENO"; then :
13828   ac_cv_c_stack_direction=1
13829 else
13830   ac_cv_c_stack_direction=-1
13831 fi
13832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13833   conftest.$ac_objext conftest.beam conftest.$ac_ext
13834 fi
13835
13836 fi
13837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13838 $as_echo "$ac_cv_c_stack_direction" >&6; }
13839 cat >>confdefs.h <<_ACEOF
13840 #define STACK_DIRECTION $ac_cv_c_stack_direction
13841 _ACEOF
13842
13843
13844 fi
13845
13846
13847 # The cast to long int works around a bug in the HP C Compiler
13848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13850 # This bug is HP SR number 8606223364.
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13852 $as_echo_n "checking size of double... " >&6; }
13853 if ${ac_cv_sizeof_double+:} false; then :
13854   $as_echo_n "(cached) " >&6
13855 else
13856   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
13857
13858 else
13859   if test "$ac_cv_type_double" = yes; then
13860      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13862 as_fn_error 77 "cannot compute sizeof (double)
13863 See \`config.log' for more details" "$LINENO" 5; }
13864    else
13865      ac_cv_sizeof_double=0
13866    fi
13867 fi
13868
13869 fi
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13871 $as_echo "$ac_cv_sizeof_double" >&6; }
13872
13873
13874
13875 cat >>confdefs.h <<_ACEOF
13876 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13877 _ACEOF
13878
13879
13880 # The cast to long int works around a bug in the HP C Compiler
13881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13883 # This bug is HP SR number 8606223364.
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13885 $as_echo_n "checking size of long double... " >&6; }
13886 if ${ac_cv_sizeof_long_double+:} false; then :
13887   $as_echo_n "(cached) " >&6
13888 else
13889   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
13890
13891 else
13892   if test "$ac_cv_type_long_double" = yes; then
13893      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13895 as_fn_error 77 "cannot compute sizeof (long double)
13896 See \`config.log' for more details" "$LINENO" 5; }
13897    else
13898      ac_cv_sizeof_long_double=0
13899    fi
13900 fi
13901
13902 fi
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13904 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13905
13906
13907
13908 cat >>confdefs.h <<_ACEOF
13909 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13910 _ACEOF
13911
13912
13913
13914 # Also AC_SUBST this variable for ffi.h.
13915 if test -z "$HAVE_LONG_DOUBLE"; then
13916   HAVE_LONG_DOUBLE=0
13917   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13918     if test $ac_cv_sizeof_long_double != 0; then
13919       HAVE_LONG_DOUBLE=1
13920
13921 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13922
13923     fi
13924   fi
13925 fi
13926
13927
13928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13929 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13930 if ${ac_cv_c_bigendian+:} false; then :
13931   $as_echo_n "(cached) " >&6
13932 else
13933   ac_cv_c_bigendian=unknown
13934     # See if we're dealing with a universal compiler.
13935     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13936 /* end confdefs.h.  */
13937 #ifndef __APPLE_CC__
13938                not a universal capable compiler
13939              #endif
13940              typedef int dummy;
13941
13942 _ACEOF
13943 if ac_fn_c_try_compile "$LINENO"; then :
13944
13945         # Check for potential -arch flags.  It is not universal unless
13946         # there are at least two -arch flags with different values.
13947         ac_arch=
13948         ac_prev=
13949         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13950          if test -n "$ac_prev"; then
13951            case $ac_word in
13952              i?86 | x86_64 | ppc | ppc64)
13953                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13954                  ac_arch=$ac_word
13955                else
13956                  ac_cv_c_bigendian=universal
13957                  break
13958                fi
13959                ;;
13960            esac
13961            ac_prev=
13962          elif test "x$ac_word" = "x-arch"; then
13963            ac_prev=arch
13964          fi
13965        done
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968     if test $ac_cv_c_bigendian = unknown; then
13969       # See if sys/param.h defines the BYTE_ORDER macro.
13970       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h.  */
13972 #include <sys/types.h>
13973              #include <sys/param.h>
13974
13975 int
13976 main ()
13977 {
13978 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13979                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13980                      && LITTLE_ENDIAN)
13981               bogus endian macros
13982              #endif
13983
13984   ;
13985   return 0;
13986 }
13987 _ACEOF
13988 if ac_fn_c_try_compile "$LINENO"; then :
13989   # It does; now see whether it defined to BIG_ENDIAN or not.
13990          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13991 /* end confdefs.h.  */
13992 #include <sys/types.h>
13993                 #include <sys/param.h>
13994
13995 int
13996 main ()
13997 {
13998 #if BYTE_ORDER != BIG_ENDIAN
13999                  not big endian
14000                 #endif
14001
14002   ;
14003   return 0;
14004 }
14005 _ACEOF
14006 if ac_fn_c_try_compile "$LINENO"; then :
14007   ac_cv_c_bigendian=yes
14008 else
14009   ac_cv_c_bigendian=no
14010 fi
14011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14012 fi
14013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14014     fi
14015     if test $ac_cv_c_bigendian = unknown; then
14016       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14017       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14018 /* end confdefs.h.  */
14019 #include <limits.h>
14020
14021 int
14022 main ()
14023 {
14024 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14025               bogus endian macros
14026              #endif
14027
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_compile "$LINENO"; then :
14033   # It does; now see whether it defined to _BIG_ENDIAN or not.
14034          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14035 /* end confdefs.h.  */
14036 #include <limits.h>
14037
14038 int
14039 main ()
14040 {
14041 #ifndef _BIG_ENDIAN
14042                  not big endian
14043                 #endif
14044
14045   ;
14046   return 0;
14047 }
14048 _ACEOF
14049 if ac_fn_c_try_compile "$LINENO"; then :
14050   ac_cv_c_bigendian=yes
14051 else
14052   ac_cv_c_bigendian=no
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14055 fi
14056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057     fi
14058     if test $ac_cv_c_bigendian = unknown; then
14059       # Compile a test program.
14060       if test "$cross_compiling" = yes; then :
14061   # Try to guess by grepping values from an object file.
14062          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14063 /* end confdefs.h.  */
14064 short int ascii_mm[] =
14065                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14066                 short int ascii_ii[] =
14067                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14068                 int use_ascii (int i) {
14069                   return ascii_mm[i] + ascii_ii[i];
14070                 }
14071                 short int ebcdic_ii[] =
14072                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14073                 short int ebcdic_mm[] =
14074                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14075                 int use_ebcdic (int i) {
14076                   return ebcdic_mm[i] + ebcdic_ii[i];
14077                 }
14078                 extern int foo;
14079
14080 int
14081 main ()
14082 {
14083 return use_ascii (foo) == use_ebcdic (foo);
14084   ;
14085   return 0;
14086 }
14087 _ACEOF
14088 if ac_fn_c_try_compile "$LINENO"; then :
14089   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14090               ac_cv_c_bigendian=yes
14091             fi
14092             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14093               if test "$ac_cv_c_bigendian" = unknown; then
14094                 ac_cv_c_bigendian=no
14095               else
14096                 # finding both strings is unlikely to happen, but who knows?
14097                 ac_cv_c_bigendian=unknown
14098               fi
14099             fi
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14102 else
14103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h.  */
14105 $ac_includes_default
14106 int
14107 main ()
14108 {
14109
14110              /* Are we little or big endian?  From Harbison&Steele.  */
14111              union
14112              {
14113                long int l;
14114                char c[sizeof (long int)];
14115              } u;
14116              u.l = 1;
14117              return u.c[sizeof (long int) - 1] == 1;
14118
14119   ;
14120   return 0;
14121 }
14122 _ACEOF
14123 if ac_fn_c_try_run "$LINENO"; then :
14124   ac_cv_c_bigendian=no
14125 else
14126   ac_cv_c_bigendian=yes
14127 fi
14128 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14129   conftest.$ac_objext conftest.beam conftest.$ac_ext
14130 fi
14131
14132     fi
14133 fi
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14135 $as_echo "$ac_cv_c_bigendian" >&6; }
14136  case $ac_cv_c_bigendian in #(
14137    yes)
14138      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14139 ;; #(
14140    no)
14141       ;; #(
14142    universal)
14143
14144 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14145
14146      ;; #(
14147    *)
14148      as_fn_error $? "unknown endianness
14149  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14150  esac
14151
14152
14153 GCC_AS_CFI_PSEUDO_OP
14154
14155 if test x$TARGET = xSPARC; then
14156     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14157 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14158 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14159   $as_echo_n "(cached) " >&6
14160 else
14161
14162         save_CFLAGS="$CFLAGS"
14163         save_LDFLAGS="$LDFLAGS"
14164         CFLAGS="$CFLAGS -fpic"
14165         LDFLAGS="$LDFLAGS -shared"
14166         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14167 /* end confdefs.h.  */
14168 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14169 int
14170 main ()
14171 {
14172
14173   ;
14174   return 0;
14175 }
14176 _ACEOF
14177 if ac_fn_c_try_link "$LINENO"; then :
14178   libffi_cv_as_sparc_ua_pcrel=yes
14179 else
14180   libffi_cv_as_sparc_ua_pcrel=no
14181 fi
14182 rm -f core conftest.err conftest.$ac_objext \
14183     conftest$ac_exeext conftest.$ac_ext
14184         CFLAGS="$save_CFLAGS"
14185         LDFLAGS="$save_LDFLAGS"
14186 fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14188 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14189     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14190
14191 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14192
14193     fi
14194
14195     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14196 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14197 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14198   $as_echo_n "(cached) " >&6
14199 else
14200
14201        libffi_cv_as_register_pseudo_op=unknown
14202        # Check if we have .register
14203        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205 asm (".register %g2, #scratch");
14206 int
14207 main ()
14208 {
14209
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_c_try_compile "$LINENO"; then :
14215   libffi_cv_as_register_pseudo_op=yes
14216 else
14217   libffi_cv_as_register_pseudo_op=no
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14220
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14223 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14224     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14225
14226 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14227
14228     fi
14229 fi
14230
14231 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14232     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14233 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14234 if ${libffi_cv_as_x86_pcrel+:} false; then :
14235   $as_echo_n "(cached) " >&6
14236 else
14237
14238         libffi_cv_as_x86_pcrel=yes
14239         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14240         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14241             libffi_cv_as_x86_pcrel=no
14242         fi
14243
14244 fi
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14246 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14247     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14248
14249 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14250
14251     fi
14252
14253     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14254 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14255 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14256   $as_echo_n "(cached) " >&6
14257 else
14258
14259        libffi_cv_as_ascii_pseudo_op=unknown
14260        # Check if we have .ascii
14261        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h.  */
14263 asm (".ascii \\"string\\"");
14264 int
14265 main ()
14266 {
14267
14268   ;
14269   return 0;
14270 }
14271 _ACEOF
14272 if ac_fn_c_try_compile "$LINENO"; then :
14273   libffi_cv_as_ascii_pseudo_op=yes
14274 else
14275   libffi_cv_as_ascii_pseudo_op=no
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14278
14279 fi
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14281 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14282     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14283
14284 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14285
14286     fi
14287
14288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14289 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14290 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14291   $as_echo_n "(cached) " >&6
14292 else
14293
14294        libffi_cv_as_string_pseudo_op=unknown
14295        # Check if we have .string
14296        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h.  */
14298 asm (".string \\"string\\"");
14299 int
14300 main ()
14301 {
14302
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308   libffi_cv_as_string_pseudo_op=yes
14309 else
14310   libffi_cv_as_string_pseudo_op=no
14311 fi
14312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14313
14314 fi
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14316 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14317     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14318
14319 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14320
14321     fi
14322 fi
14323
14324 if test x$TARGET = xX86_WIN64; then
14325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14326 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14327 if ${lt_cv_sys_symbol_underscore+:} false; then :
14328   $as_echo_n "(cached) " >&6
14329 else
14330   lt_cv_sys_symbol_underscore=no
14331   cat > conftest.$ac_ext <<_LT_EOF
14332 void nm_test_func(){}
14333 int main(){nm_test_func;return 0;}
14334 _LT_EOF
14335   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14336   (eval $ac_compile) 2>&5
14337   ac_status=$?
14338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14339   test $ac_status = 0; }; then
14340     # Now try to grab the symbols.
14341     ac_nlist=conftest.nm
14342     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14343   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14344   ac_status=$?
14345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14346   test $ac_status = 0; } && test -s "$ac_nlist"; then
14347       # See whether the symbols have a leading underscore.
14348       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14349         lt_cv_sys_symbol_underscore=yes
14350       else
14351         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14352           :
14353         else
14354           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14355         fi
14356       fi
14357     else
14358       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14359     fi
14360   else
14361     echo "configure: failed program was:" >&5
14362     cat conftest.c >&5
14363   fi
14364   rm -rf conftest*
14365
14366 fi
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14368 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14369   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14370
14371
14372     if test "x$sys_symbol_underscore" = xyes; then
14373
14374 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14375
14376     fi
14377 fi
14378
14379
14380 FFI_EXEC_TRAMPOLINE_TABLE=0
14381 case "$target" in
14382      *arm*-apple-darwin*)
14383        FFI_EXEC_TRAMPOLINE_TABLE=1
14384
14385 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14386
14387      ;;
14388      *-apple-darwin1[10]* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14389
14390 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14391
14392      ;;
14393 esac
14394  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14395   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14396   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14397 else
14398   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14399   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14400 fi
14401
14402
14403
14404 if test x$TARGET = xX86_64; then
14405     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14406 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14407 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14408   $as_echo_n "(cached) " >&6
14409 else
14410
14411         libffi_cv_as_x86_64_unwind_section_type=yes
14412         echo '.section .eh_frame,"a",@unwind' > conftest.s
14413         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14414             libffi_cv_as_x86_64_unwind_section_type=no
14415         fi
14416
14417 fi
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14419 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14420     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14421
14422 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14423
14424     fi
14425 fi
14426
14427 if test "x$GCC" = "xyes"; then
14428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14429 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14430 if ${libffi_cv_ro_eh_frame+:} false; then :
14431   $as_echo_n "(cached) " >&6
14432 else
14433
14434         libffi_cv_ro_eh_frame=no
14435         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14436         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14437             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14438                 libffi_cv_ro_eh_frame=yes
14439             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14440                  | grep -v '#write' > /dev/null; then
14441                 libffi_cv_ro_eh_frame=yes
14442             fi
14443         fi
14444         rm -f conftest.*
14445
14446 fi
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14448 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14449   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14450
14451 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14452
14453
14454 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14455
14456   else
14457
14458 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14459
14460   fi
14461
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14463 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14464 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14465   $as_echo_n "(cached) " >&6
14466 else
14467
14468         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14469         libffi_cv_hidden_visibility_attribute=no
14470         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14471   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14472   (eval $ac_try) 2>&5
14473   ac_status=$?
14474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14475   test $ac_status = 0; }; }; then
14476             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14477                 libffi_cv_hidden_visibility_attribute=yes
14478             fi
14479         fi
14480         rm -f conftest.*
14481
14482 fi
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14484 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14485   if test $libffi_cv_hidden_visibility_attribute = yes; then
14486
14487 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14488
14489   fi
14490 fi
14491
14492
14493
14494
14495
14496
14497
14498
14499 # Check whether --enable-debug was given.
14500 if test "${enable_debug+set}" = set; then :
14501   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14502
14503 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14504
14505   fi
14506 fi
14507
14508  if test "$enable_debug" = "yes"; then
14509   FFI_DEBUG_TRUE=
14510   FFI_DEBUG_FALSE='#'
14511 else
14512   FFI_DEBUG_TRUE='#'
14513   FFI_DEBUG_FALSE=
14514 fi
14515
14516
14517 # Check whether --enable-structs was given.
14518 if test "${enable_structs+set}" = set; then :
14519   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14520
14521 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14522
14523   fi
14524 fi
14525
14526
14527 # Check whether --enable-raw-api was given.
14528 if test "${enable_raw_api+set}" = set; then :
14529   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14530
14531 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14532
14533   fi
14534 fi
14535
14536
14537 # Check whether --enable-purify-safety was given.
14538 if test "${enable_purify_safety+set}" = set; then :
14539   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14540
14541 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14542
14543   fi
14544 fi
14545
14546
14547 # These variables are only ever used when we cross-build to X86_WIN32.
14548 # And we only support this with GCC, so...
14549 if test x"$GCC" != x"no"; then
14550   if test -n "$with_cross_host" &&
14551      test x"$with_cross_host" != x"no"; then
14552     toolexecdir='$(exec_prefix)/$(target_alias)'
14553     toolexeclibdir='$(toolexecdir)/lib'
14554   else
14555     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14556     toolexeclibdir='$(libdir)'
14557   fi
14558   multi_os_directory=`$CC -print-multi-os-directory`
14559   case $multi_os_directory in
14560     .) ;; # Avoid trailing /.
14561     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14562   esac
14563
14564
14565 fi
14566
14567 if test "${multilib}" = "yes"; then
14568   multilib_arg="--enable-multilib"
14569 else
14570   multilib_arg=
14571 fi
14572
14573 ac_config_commands="$ac_config_commands include"
14574
14575 ac_config_commands="$ac_config_commands src"
14576
14577
14578 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14579
14580
14581 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14582
14583
14584 cat >confcache <<\_ACEOF
14585 # This file is a shell script that caches the results of configure
14586 # tests run on this system so they can be shared between configure
14587 # scripts and configure runs, see configure's option --config-cache.
14588 # It is not useful on other systems.  If it contains results you don't
14589 # want to keep, you may remove or edit it.
14590 #
14591 # config.status only pays attention to the cache file if you give it
14592 # the --recheck option to rerun configure.
14593 #
14594 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14595 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14596 # following values.
14597
14598 _ACEOF
14599
14600 # The following way of writing the cache mishandles newlines in values,
14601 # but we know of no workaround that is simple, portable, and efficient.
14602 # So, we kill variables containing newlines.
14603 # Ultrix sh set writes to stderr and can't be redirected directly,
14604 # and sets the high bit in the cache file unless we assign to the vars.
14605 (
14606   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14607     eval ac_val=\$$ac_var
14608     case $ac_val in #(
14609     *${as_nl}*)
14610       case $ac_var in #(
14611       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14612 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14613       esac
14614       case $ac_var in #(
14615       _ | IFS | as_nl) ;; #(
14616       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14617       *) { eval $ac_var=; unset $ac_var;} ;;
14618       esac ;;
14619     esac
14620   done
14621
14622   (set) 2>&1 |
14623     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14624     *${as_nl}ac_space=\ *)
14625       # `set' does not quote correctly, so add quotes: double-quote
14626       # substitution turns \\\\ into \\, and sed turns \\ into \.
14627       sed -n \
14628         "s/'/'\\\\''/g;
14629           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14630       ;; #(
14631     *)
14632       # `set' quotes correctly as required by POSIX, so do not add quotes.
14633       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14634       ;;
14635     esac |
14636     sort
14637 ) |
14638   sed '
14639      /^ac_cv_env_/b end
14640      t clear
14641      :clear
14642      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14643      t end
14644      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14645      :end' >>confcache
14646 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14647   if test -w "$cache_file"; then
14648     if test "x$cache_file" != "x/dev/null"; then
14649       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14650 $as_echo "$as_me: updating cache $cache_file" >&6;}
14651       if test ! -f "$cache_file" || test -h "$cache_file"; then
14652         cat confcache >"$cache_file"
14653       else
14654         case $cache_file in #(
14655         */* | ?:*)
14656           mv -f confcache "$cache_file"$$ &&
14657           mv -f "$cache_file"$$ "$cache_file" ;; #(
14658         *)
14659           mv -f confcache "$cache_file" ;;
14660         esac
14661       fi
14662     fi
14663   else
14664     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14665 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14666   fi
14667 fi
14668 rm -f confcache
14669
14670 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14671 # Let make expand exec_prefix.
14672 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14673
14674 DEFS=-DHAVE_CONFIG_H
14675
14676 ac_libobjs=
14677 ac_ltlibobjs=
14678 U=
14679 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14680   # 1. Remove the extension, and $U if already installed.
14681   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14682   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14683   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14684   #    will be set to the directory where LIBOBJS objects are built.
14685   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14686   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14687 done
14688 LIBOBJS=$ac_libobjs
14689
14690 LTLIBOBJS=$ac_ltlibobjs
14691
14692
14693  if test -n "$EXEEXT"; then
14694   am__EXEEXT_TRUE=
14695   am__EXEEXT_FALSE='#'
14696 else
14697   am__EXEEXT_TRUE='#'
14698   am__EXEEXT_FALSE=
14699 fi
14700
14701 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14702   as_fn_error $? "conditional \"AMDEP\" was never defined.
14703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14704 fi
14705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14706   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14708 fi
14709 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14710   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14712 fi
14713 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14714   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14716 fi
14717 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14718   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14720 fi
14721 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14722   as_fn_error $? "conditional \"MIPS\" was never defined.
14723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14724 fi
14725 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14726   as_fn_error $? "conditional \"BFIN\" was never defined.
14727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14728 fi
14729 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14730   as_fn_error $? "conditional \"SPARC\" was never defined.
14731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14732 fi
14733 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14734   as_fn_error $? "conditional \"X86\" was never defined.
14735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14736 fi
14737 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14738   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14740 fi
14741 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14742   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14744 fi
14745 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14746   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14748 fi
14749 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14750   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14752 fi
14753 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14754   as_fn_error $? "conditional \"ALPHA\" was never defined.
14755 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14756 fi
14757 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14758   as_fn_error $? "conditional \"IA64\" was never defined.
14759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14760 fi
14761 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14762   as_fn_error $? "conditional \"M32R\" was never defined.
14763 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14764 fi
14765 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14766   as_fn_error $? "conditional \"M68K\" was never defined.
14767 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14768 fi
14769 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14770   as_fn_error $? "conditional \"MOXIE\" was never defined.
14771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14772 fi
14773 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14774   as_fn_error $? "conditional \"POWERPC\" was never defined.
14775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14776 fi
14777 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14778   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14780 fi
14781 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14782   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14784 fi
14785 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14786   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14788 fi
14789 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14790   as_fn_error $? "conditional \"ARM\" was never defined.
14791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14792 fi
14793 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14794   as_fn_error $? "conditional \"AVR32\" was never defined.
14795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14796 fi
14797 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14798   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14800 fi
14801 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14802   as_fn_error $? "conditional \"FRV\" was never defined.
14803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14804 fi
14805 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14806   as_fn_error $? "conditional \"S390\" was never defined.
14807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14808 fi
14809 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14810   as_fn_error $? "conditional \"X86_64\" was never defined.
14811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14812 fi
14813 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14814   as_fn_error $? "conditional \"SH\" was never defined.
14815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14816 fi
14817 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14818   as_fn_error $? "conditional \"SH64\" was never defined.
14819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14820 fi
14821 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14822   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14824 fi
14825 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14826   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14828 fi
14829 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14830   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14832 fi
14833
14834 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14835   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14837 fi
14838 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14839   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14841 fi
14842
14843 : "${CONFIG_STATUS=./config.status}"
14844 ac_write_fail=0
14845 ac_clean_files_save=$ac_clean_files
14846 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14848 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14849 as_write_fail=0
14850 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14851 #! $SHELL
14852 # Generated by $as_me.
14853 # Run this file to recreate the current configuration.
14854 # Compiler output produced by configure, useful for debugging
14855 # configure, is in config.log if it exists.
14856
14857 debug=false
14858 ac_cs_recheck=false
14859 ac_cs_silent=false
14860
14861 SHELL=\${CONFIG_SHELL-$SHELL}
14862 export SHELL
14863 _ASEOF
14864 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14865 ## -------------------- ##
14866 ## M4sh Initialization. ##
14867 ## -------------------- ##
14868
14869 # Be more Bourne compatible
14870 DUALCASE=1; export DUALCASE # for MKS sh
14871 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14872   emulate sh
14873   NULLCMD=:
14874   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14875   # is contrary to our usage.  Disable this feature.
14876   alias -g '${1+"$@"}'='"$@"'
14877   setopt NO_GLOB_SUBST
14878 else
14879   case `(set -o) 2>/dev/null` in #(
14880   *posix*) :
14881     set -o posix ;; #(
14882   *) :
14883      ;;
14884 esac
14885 fi
14886
14887
14888 as_nl='
14889 '
14890 export as_nl
14891 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14892 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14893 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14894 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14895 # Prefer a ksh shell builtin over an external printf program on Solaris,
14896 # but without wasting forks for bash or zsh.
14897 if test -z "$BASH_VERSION$ZSH_VERSION" \
14898     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14899   as_echo='print -r --'
14900   as_echo_n='print -rn --'
14901 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14902   as_echo='printf %s\n'
14903   as_echo_n='printf %s'
14904 else
14905   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14906     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14907     as_echo_n='/usr/ucb/echo -n'
14908   else
14909     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14910     as_echo_n_body='eval
14911       arg=$1;
14912       case $arg in #(
14913       *"$as_nl"*)
14914         expr "X$arg" : "X\\(.*\\)$as_nl";
14915         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14916       esac;
14917       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14918     '
14919     export as_echo_n_body
14920     as_echo_n='sh -c $as_echo_n_body as_echo'
14921   fi
14922   export as_echo_body
14923   as_echo='sh -c $as_echo_body as_echo'
14924 fi
14925
14926 # The user is always right.
14927 if test "${PATH_SEPARATOR+set}" != set; then
14928   PATH_SEPARATOR=:
14929   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14930     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14931       PATH_SEPARATOR=';'
14932   }
14933 fi
14934
14935
14936 # IFS
14937 # We need space, tab and new line, in precisely that order.  Quoting is
14938 # there to prevent editors from complaining about space-tab.
14939 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14940 # splitting by setting IFS to empty value.)
14941 IFS=" ""        $as_nl"
14942
14943 # Find who we are.  Look in the path if we contain no directory separator.
14944 as_myself=
14945 case $0 in #((
14946   *[\\/]* ) as_myself=$0 ;;
14947   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14948 for as_dir in $PATH
14949 do
14950   IFS=$as_save_IFS
14951   test -z "$as_dir" && as_dir=.
14952     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14953   done
14954 IFS=$as_save_IFS
14955
14956      ;;
14957 esac
14958 # We did not find ourselves, most probably we were run as `sh COMMAND'
14959 # in which case we are not to be found in the path.
14960 if test "x$as_myself" = x; then
14961   as_myself=$0
14962 fi
14963 if test ! -f "$as_myself"; then
14964   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14965   exit 1
14966 fi
14967
14968 # Unset variables that we do not need and which cause bugs (e.g. in
14969 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14970 # suppresses any "Segmentation fault" message there.  '((' could
14971 # trigger a bug in pdksh 5.2.14.
14972 for as_var in BASH_ENV ENV MAIL MAILPATH
14973 do eval test x\${$as_var+set} = xset \
14974   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14975 done
14976 PS1='$ '
14977 PS2='> '
14978 PS4='+ '
14979
14980 # NLS nuisances.
14981 LC_ALL=C
14982 export LC_ALL
14983 LANGUAGE=C
14984 export LANGUAGE
14985
14986 # CDPATH.
14987 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14988
14989
14990 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14991 # ----------------------------------------
14992 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14993 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14994 # script with STATUS, using 1 if that was 0.
14995 as_fn_error ()
14996 {
14997   as_status=$1; test $as_status -eq 0 && as_status=1
14998   if test "$4"; then
14999     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15000     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15001   fi
15002   $as_echo "$as_me: error: $2" >&2
15003   as_fn_exit $as_status
15004 } # as_fn_error
15005
15006
15007 # as_fn_set_status STATUS
15008 # -----------------------
15009 # Set $? to STATUS, without forking.
15010 as_fn_set_status ()
15011 {
15012   return $1
15013 } # as_fn_set_status
15014
15015 # as_fn_exit STATUS
15016 # -----------------
15017 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15018 as_fn_exit ()
15019 {
15020   set +e
15021   as_fn_set_status $1
15022   exit $1
15023 } # as_fn_exit
15024
15025 # as_fn_unset VAR
15026 # ---------------
15027 # Portably unset VAR.
15028 as_fn_unset ()
15029 {
15030   { eval $1=; unset $1;}
15031 }
15032 as_unset=as_fn_unset
15033 # as_fn_append VAR VALUE
15034 # ----------------------
15035 # Append the text in VALUE to the end of the definition contained in VAR. Take
15036 # advantage of any shell optimizations that allow amortized linear growth over
15037 # repeated appends, instead of the typical quadratic growth present in naive
15038 # implementations.
15039 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15040   eval 'as_fn_append ()
15041   {
15042     eval $1+=\$2
15043   }'
15044 else
15045   as_fn_append ()
15046   {
15047     eval $1=\$$1\$2
15048   }
15049 fi # as_fn_append
15050
15051 # as_fn_arith ARG...
15052 # ------------------
15053 # Perform arithmetic evaluation on the ARGs, and store the result in the
15054 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15055 # must be portable across $(()) and expr.
15056 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15057   eval 'as_fn_arith ()
15058   {
15059     as_val=$(( $* ))
15060   }'
15061 else
15062   as_fn_arith ()
15063   {
15064     as_val=`expr "$@" || test $? -eq 1`
15065   }
15066 fi # as_fn_arith
15067
15068
15069 if expr a : '\(a\)' >/dev/null 2>&1 &&
15070    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15071   as_expr=expr
15072 else
15073   as_expr=false
15074 fi
15075
15076 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15077   as_basename=basename
15078 else
15079   as_basename=false
15080 fi
15081
15082 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15083   as_dirname=dirname
15084 else
15085   as_dirname=false
15086 fi
15087
15088 as_me=`$as_basename -- "$0" ||
15089 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15090          X"$0" : 'X\(//\)$' \| \
15091          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15092 $as_echo X/"$0" |
15093     sed '/^.*\/\([^/][^/]*\)\/*$/{
15094             s//\1/
15095             q
15096           }
15097           /^X\/\(\/\/\)$/{
15098             s//\1/
15099             q
15100           }
15101           /^X\/\(\/\).*/{
15102             s//\1/
15103             q
15104           }
15105           s/.*/./; q'`
15106
15107 # Avoid depending upon Character Ranges.
15108 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15109 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15110 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15111 as_cr_digits='0123456789'
15112 as_cr_alnum=$as_cr_Letters$as_cr_digits
15113
15114 ECHO_C= ECHO_N= ECHO_T=
15115 case `echo -n x` in #(((((
15116 -n*)
15117   case `echo 'xy\c'` in
15118   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15119   xy)  ECHO_C='\c';;
15120   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15121        ECHO_T=' ';;
15122   esac;;
15123 *)
15124   ECHO_N='-n';;
15125 esac
15126
15127 rm -f conf$$ conf$$.exe conf$$.file
15128 if test -d conf$$.dir; then
15129   rm -f conf$$.dir/conf$$.file
15130 else
15131   rm -f conf$$.dir
15132   mkdir conf$$.dir 2>/dev/null
15133 fi
15134 if (echo >conf$$.file) 2>/dev/null; then
15135   if ln -s conf$$.file conf$$ 2>/dev/null; then
15136     as_ln_s='ln -s'
15137     # ... but there are two gotchas:
15138     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15139     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15140     # In both cases, we have to default to `cp -p'.
15141     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15142       as_ln_s='cp -p'
15143   elif ln conf$$.file conf$$ 2>/dev/null; then
15144     as_ln_s=ln
15145   else
15146     as_ln_s='cp -p'
15147   fi
15148 else
15149   as_ln_s='cp -p'
15150 fi
15151 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15152 rmdir conf$$.dir 2>/dev/null
15153
15154
15155 # as_fn_mkdir_p
15156 # -------------
15157 # Create "$as_dir" as a directory, including parents if necessary.
15158 as_fn_mkdir_p ()
15159 {
15160
15161   case $as_dir in #(
15162   -*) as_dir=./$as_dir;;
15163   esac
15164   test -d "$as_dir" || eval $as_mkdir_p || {
15165     as_dirs=
15166     while :; do
15167       case $as_dir in #(
15168       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15169       *) as_qdir=$as_dir;;
15170       esac
15171       as_dirs="'$as_qdir' $as_dirs"
15172       as_dir=`$as_dirname -- "$as_dir" ||
15173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15174          X"$as_dir" : 'X\(//\)[^/]' \| \
15175          X"$as_dir" : 'X\(//\)$' \| \
15176          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15177 $as_echo X"$as_dir" |
15178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15179             s//\1/
15180             q
15181           }
15182           /^X\(\/\/\)[^/].*/{
15183             s//\1/
15184             q
15185           }
15186           /^X\(\/\/\)$/{
15187             s//\1/
15188             q
15189           }
15190           /^X\(\/\).*/{
15191             s//\1/
15192             q
15193           }
15194           s/.*/./; q'`
15195       test -d "$as_dir" && break
15196     done
15197     test -z "$as_dirs" || eval "mkdir $as_dirs"
15198   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15199
15200
15201 } # as_fn_mkdir_p
15202 if mkdir -p . 2>/dev/null; then
15203   as_mkdir_p='mkdir -p "$as_dir"'
15204 else
15205   test -d ./-p && rmdir ./-p
15206   as_mkdir_p=false
15207 fi
15208
15209 if test -x / >/dev/null 2>&1; then
15210   as_test_x='test -x'
15211 else
15212   if ls -dL / >/dev/null 2>&1; then
15213     as_ls_L_option=L
15214   else
15215     as_ls_L_option=
15216   fi
15217   as_test_x='
15218     eval sh -c '\''
15219       if test -d "$1"; then
15220         test -d "$1/.";
15221       else
15222         case $1 in #(
15223         -*)set "./$1";;
15224         esac;
15225         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15226         ???[sx]*):;;*)false;;esac;fi
15227     '\'' sh
15228   '
15229 fi
15230 as_executable_p=$as_test_x
15231
15232 # Sed expression to map a string onto a valid CPP name.
15233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15234
15235 # Sed expression to map a string onto a valid variable name.
15236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15237
15238
15239 exec 6>&1
15240 ## ----------------------------------- ##
15241 ## Main body of $CONFIG_STATUS script. ##
15242 ## ----------------------------------- ##
15243 _ASEOF
15244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15245
15246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15247 # Save the log message, to keep $0 and so on meaningful, and to
15248 # report actual input values of CONFIG_FILES etc. instead of their
15249 # values after options handling.
15250 ac_log="
15251 This file was extended by libffi $as_me 3.0.11, which was
15252 generated by GNU Autoconf 2.68.  Invocation command line was
15253
15254   CONFIG_FILES    = $CONFIG_FILES
15255   CONFIG_HEADERS  = $CONFIG_HEADERS
15256   CONFIG_LINKS    = $CONFIG_LINKS
15257   CONFIG_COMMANDS = $CONFIG_COMMANDS
15258   $ $0 $@
15259
15260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15261 "
15262
15263 _ACEOF
15264
15265 case $ac_config_files in *"
15266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15267 esac
15268
15269 case $ac_config_headers in *"
15270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15271 esac
15272
15273
15274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15275 # Files that config.status was made for.
15276 config_files="$ac_config_files"
15277 config_headers="$ac_config_headers"
15278 config_links="$ac_config_links"
15279 config_commands="$ac_config_commands"
15280
15281 _ACEOF
15282
15283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15284 ac_cs_usage="\
15285 \`$as_me' instantiates files and other configuration actions
15286 from templates according to the current configuration.  Unless the files
15287 and actions are specified as TAGs, all are instantiated by default.
15288
15289 Usage: $0 [OPTION]... [TAG]...
15290
15291   -h, --help       print this help, then exit
15292   -V, --version    print version number and configuration settings, then exit
15293       --config     print configuration, then exit
15294   -q, --quiet, --silent
15295                    do not print progress messages
15296   -d, --debug      don't remove temporary files
15297       --recheck    update $as_me by reconfiguring in the same conditions
15298       --file=FILE[:TEMPLATE]
15299                    instantiate the configuration file FILE
15300       --header=FILE[:TEMPLATE]
15301                    instantiate the configuration header FILE
15302
15303 Configuration files:
15304 $config_files
15305
15306 Configuration headers:
15307 $config_headers
15308
15309 Configuration links:
15310 $config_links
15311
15312 Configuration commands:
15313 $config_commands
15314
15315 Report bugs to <http://github.com/atgreen/libffi/issues>."
15316
15317 _ACEOF
15318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15320 ac_cs_version="\\
15321 libffi config.status 3.0.11
15322 configured by $0, generated by GNU Autoconf 2.68,
15323   with options \\"\$ac_cs_config\\"
15324
15325 Copyright (C) 2010 Free Software Foundation, Inc.
15326 This config.status script is free software; the Free Software Foundation
15327 gives unlimited permission to copy, distribute and modify it."
15328
15329 ac_pwd='$ac_pwd'
15330 srcdir='$srcdir'
15331 INSTALL='$INSTALL'
15332 MKDIR_P='$MKDIR_P'
15333 AWK='$AWK'
15334 test -n "\$AWK" || AWK=awk
15335 _ACEOF
15336
15337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15338 # The default lists apply if the user does not specify any file.
15339 ac_need_defaults=:
15340 while test $# != 0
15341 do
15342   case $1 in
15343   --*=?*)
15344     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15345     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15346     ac_shift=:
15347     ;;
15348   --*=)
15349     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15350     ac_optarg=
15351     ac_shift=:
15352     ;;
15353   *)
15354     ac_option=$1
15355     ac_optarg=$2
15356     ac_shift=shift
15357     ;;
15358   esac
15359
15360   case $ac_option in
15361   # Handling of the options.
15362   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15363     ac_cs_recheck=: ;;
15364   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15365     $as_echo "$ac_cs_version"; exit ;;
15366   --config | --confi | --conf | --con | --co | --c )
15367     $as_echo "$ac_cs_config"; exit ;;
15368   --debug | --debu | --deb | --de | --d | -d )
15369     debug=: ;;
15370   --file | --fil | --fi | --f )
15371     $ac_shift
15372     case $ac_optarg in
15373     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15374     '') as_fn_error $? "missing file argument" ;;
15375     esac
15376     as_fn_append CONFIG_FILES " '$ac_optarg'"
15377     ac_need_defaults=false;;
15378   --header | --heade | --head | --hea )
15379     $ac_shift
15380     case $ac_optarg in
15381     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15382     esac
15383     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15384     ac_need_defaults=false;;
15385   --he | --h)
15386     # Conflict between --help and --header
15387     as_fn_error $? "ambiguous option: \`$1'
15388 Try \`$0 --help' for more information.";;
15389   --help | --hel | -h )
15390     $as_echo "$ac_cs_usage"; exit ;;
15391   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15392   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15393     ac_cs_silent=: ;;
15394
15395   # This is an error.
15396   -*) as_fn_error $? "unrecognized option: \`$1'
15397 Try \`$0 --help' for more information." ;;
15398
15399   *) as_fn_append ac_config_targets " $1"
15400      ac_need_defaults=false ;;
15401
15402   esac
15403   shift
15404 done
15405
15406 ac_configure_extra_args=
15407
15408 if $ac_cs_silent; then
15409   exec 6>/dev/null
15410   ac_configure_extra_args="$ac_configure_extra_args --silent"
15411 fi
15412
15413 _ACEOF
15414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15415 if \$ac_cs_recheck; then
15416   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15417   shift
15418   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15419   CONFIG_SHELL='$SHELL'
15420   export CONFIG_SHELL
15421   exec "\$@"
15422 fi
15423
15424 _ACEOF
15425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15426 exec 5>>config.log
15427 {
15428   echo
15429   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15430 ## Running $as_me. ##
15431 _ASBOX
15432   $as_echo "$ac_log"
15433 } >&5
15434
15435 _ACEOF
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437 #
15438 # INIT-COMMANDS
15439 #
15440 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15441 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15442 ax_enable_builddir_version="$VERSION"                  # $VERSION
15443 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15444 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15445 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15446 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15447
15448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15449
15450
15451 # The HP-UX ksh and POSIX shell print the target directory to stdout
15452 # if CDPATH is set.
15453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15454
15455 sed_quote_subst='$sed_quote_subst'
15456 double_quote_subst='$double_quote_subst'
15457 delay_variable_subst='$delay_variable_subst'
15458 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15459 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15460 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15461 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15462 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15463 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15464 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15465 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15466 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15467 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15468 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15469 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15470 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15471 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15472 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15473 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15474 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15475 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15476 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15477 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15478 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15479 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15480 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15481 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15482 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15483 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15484 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15485 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15486 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15487 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15488 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15489 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15493 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15494 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15495 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15496 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15497 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15498 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15499 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15500 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15501 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15502 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15503 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15504 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15505 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15506 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15507 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15508 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15509 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15510 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15511 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15512 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15513 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"`'
15514 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15515 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15516 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15517 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15518 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15519 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15520 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15521 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15522 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15523 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15524 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15525 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15526 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15527 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15528 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15529 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15530 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15531 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15532 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15533 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15534 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15535 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15536 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15537 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15538 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15539 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15540 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15541 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15542 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15543 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15544 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15545 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15546 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15547 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15548 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15549 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15550 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15551 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15552 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15553 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15554 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15555 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15556 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15557 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15558 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15559 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15560 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15561 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15562 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15563 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15564 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15565 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15566 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15567 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15568 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15569 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15570 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15571 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15572 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15573 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15574 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15575 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15576 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15577 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15578 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15579 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15580 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15581 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15582 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15583 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15584 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15585 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15586 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15587 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15588
15589 LTCC='$LTCC'
15590 LTCFLAGS='$LTCFLAGS'
15591 compiler='$compiler_DEFAULT'
15592
15593 # A function that is used when there is no print builtin or printf.
15594 func_fallback_echo ()
15595 {
15596   eval 'cat <<_LTECHO_EOF
15597 \$1
15598 _LTECHO_EOF'
15599 }
15600
15601 # Quote evaled strings.
15602 for var in SHELL \
15603 ECHO \
15604 SED \
15605 GREP \
15606 EGREP \
15607 FGREP \
15608 LD \
15609 NM \
15610 LN_S \
15611 lt_SP2NL \
15612 lt_NL2SP \
15613 reload_flag \
15614 OBJDUMP \
15615 deplibs_check_method \
15616 file_magic_cmd \
15617 file_magic_glob \
15618 want_nocaseglob \
15619 DLLTOOL \
15620 sharedlib_from_linklib_cmd \
15621 AR \
15622 AR_FLAGS \
15623 archiver_list_spec \
15624 STRIP \
15625 RANLIB \
15626 CC \
15627 CFLAGS \
15628 compiler \
15629 lt_cv_sys_global_symbol_pipe \
15630 lt_cv_sys_global_symbol_to_cdecl \
15631 lt_cv_sys_global_symbol_to_c_name_address \
15632 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15633 nm_file_list_spec \
15634 lt_prog_compiler_no_builtin_flag \
15635 lt_prog_compiler_pic \
15636 lt_prog_compiler_wl \
15637 lt_prog_compiler_static \
15638 lt_cv_prog_compiler_c_o \
15639 need_locks \
15640 MANIFEST_TOOL \
15641 DSYMUTIL \
15642 NMEDIT \
15643 LIPO \
15644 OTOOL \
15645 OTOOL64 \
15646 shrext_cmds \
15647 export_dynamic_flag_spec \
15648 whole_archive_flag_spec \
15649 compiler_needs_object \
15650 with_gnu_ld \
15651 allow_undefined_flag \
15652 no_undefined_flag \
15653 hardcode_libdir_flag_spec \
15654 hardcode_libdir_flag_spec_ld \
15655 hardcode_libdir_separator \
15656 exclude_expsyms \
15657 include_expsyms \
15658 file_list_spec \
15659 variables_saved_for_relink \
15660 libname_spec \
15661 library_names_spec \
15662 soname_spec \
15663 install_override_mode \
15664 finish_eval \
15665 old_striplib \
15666 striplib; do
15667     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15668     *[\\\\\\\`\\"\\\$]*)
15669       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15670       ;;
15671     *)
15672       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15673       ;;
15674     esac
15675 done
15676
15677 # Double-quote double-evaled strings.
15678 for var in reload_cmds \
15679 old_postinstall_cmds \
15680 old_postuninstall_cmds \
15681 old_archive_cmds \
15682 extract_expsyms_cmds \
15683 old_archive_from_new_cmds \
15684 old_archive_from_expsyms_cmds \
15685 archive_cmds \
15686 archive_expsym_cmds \
15687 module_cmds \
15688 module_expsym_cmds \
15689 export_symbols_cmds \
15690 prelink_cmds \
15691 postlink_cmds \
15692 postinstall_cmds \
15693 postuninstall_cmds \
15694 finish_cmds \
15695 sys_lib_search_path_spec \
15696 sys_lib_dlsearch_path_spec; do
15697     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15698     *[\\\\\\\`\\"\\\$]*)
15699       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15700       ;;
15701     *)
15702       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15703       ;;
15704     esac
15705 done
15706
15707 ac_aux_dir='$ac_aux_dir'
15708 xsi_shell='$xsi_shell'
15709 lt_shell_append='$lt_shell_append'
15710
15711 # See if we are running on zsh, and set the options which allow our
15712 # commands through without removal of \ escapes INIT.
15713 if test -n "\${ZSH_VERSION+set}" ; then
15714    setopt NO_GLOB_SUBST
15715 fi
15716
15717
15718     PACKAGE='$PACKAGE'
15719     VERSION='$VERSION'
15720     TIMESTAMP='$TIMESTAMP'
15721     RM='$RM'
15722     ofile='$ofile'
15723
15724
15725
15726 TARGETDIR="$TARGETDIR"
15727
15728 _ACEOF
15729
15730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15731
15732 # Handling of arguments.
15733 for ac_config_target in $ac_config_targets
15734 do
15735   case $ac_config_target in
15736     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15737     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15738     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15739     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15740     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15741     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15742     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15743     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15744     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15745     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15746     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15747     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15748     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15749
15750   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15751   esac
15752 done
15753
15754
15755 # If the user did not use the arguments to specify the items to instantiate,
15756 # then the envvar interface is used.  Set only those that are not.
15757 # We use the long form for the default assignment because of an extremely
15758 # bizarre bug on SunOS 4.1.3.
15759 if $ac_need_defaults; then
15760   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15761   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15762   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15763   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15764 fi
15765
15766 # Have a temporary directory for convenience.  Make it in the build tree
15767 # simply because there is no reason against having it here, and in addition,
15768 # creating and moving files from /tmp can sometimes cause problems.
15769 # Hook for its removal unless debugging.
15770 # Note that there is a small window in which the directory will not be cleaned:
15771 # after its creation but before its name has been assigned to `$tmp'.
15772 $debug ||
15773 {
15774   tmp= ac_tmp=
15775   trap 'exit_status=$?
15776   : "${ac_tmp:=$tmp}"
15777   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15778 ' 0
15779   trap 'as_fn_exit 1' 1 2 13 15
15780 }
15781 # Create a (secure) tmp directory for tmp files.
15782
15783 {
15784   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15785   test -d "$tmp"
15786 }  ||
15787 {
15788   tmp=./conf$$-$RANDOM
15789   (umask 077 && mkdir "$tmp")
15790 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15791 ac_tmp=$tmp
15792
15793 # Set up the scripts for CONFIG_FILES section.
15794 # No need to generate them if there are no CONFIG_FILES.
15795 # This happens for instance with `./config.status config.h'.
15796 if test -n "$CONFIG_FILES"; then
15797
15798
15799 ac_cr=`echo X | tr X '\015'`
15800 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15801 # But we know of no other shell where ac_cr would be empty at this
15802 # point, so we can use a bashism as a fallback.
15803 if test "x$ac_cr" = x; then
15804   eval ac_cr=\$\'\\r\'
15805 fi
15806 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15807 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15808   ac_cs_awk_cr='\\r'
15809 else
15810   ac_cs_awk_cr=$ac_cr
15811 fi
15812
15813 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15814 _ACEOF
15815
15816
15817 {
15818   echo "cat >conf$$subs.awk <<_ACEOF" &&
15819   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15820   echo "_ACEOF"
15821 } >conf$$subs.sh ||
15822   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15823 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15824 ac_delim='%!_!# '
15825 for ac_last_try in false false false false false :; do
15826   . ./conf$$subs.sh ||
15827     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15828
15829   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15830   if test $ac_delim_n = $ac_delim_num; then
15831     break
15832   elif $ac_last_try; then
15833     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15834   else
15835     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15836   fi
15837 done
15838 rm -f conf$$subs.sh
15839
15840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15841 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15842 _ACEOF
15843 sed -n '
15844 h
15845 s/^/S["/; s/!.*/"]=/
15846 p
15847 g
15848 s/^[^!]*!//
15849 :repl
15850 t repl
15851 s/'"$ac_delim"'$//
15852 t delim
15853 :nl
15854 h
15855 s/\(.\{148\}\)..*/\1/
15856 t more1
15857 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15858 p
15859 n
15860 b repl
15861 :more1
15862 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15863 p
15864 g
15865 s/.\{148\}//
15866 t nl
15867 :delim
15868 h
15869 s/\(.\{148\}\)..*/\1/
15870 t more2
15871 s/["\\]/\\&/g; s/^/"/; s/$/"/
15872 p
15873 b
15874 :more2
15875 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15876 p
15877 g
15878 s/.\{148\}//
15879 t delim
15880 ' <conf$$subs.awk | sed '
15881 /^[^""]/{
15882   N
15883   s/\n//
15884 }
15885 ' >>$CONFIG_STATUS || ac_write_fail=1
15886 rm -f conf$$subs.awk
15887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15888 _ACAWK
15889 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15890   for (key in S) S_is_set[key] = 1
15891   FS = "\a"
15892
15893 }
15894 {
15895   line = $ 0
15896   nfields = split(line, field, "@")
15897   substed = 0
15898   len = length(field[1])
15899   for (i = 2; i < nfields; i++) {
15900     key = field[i]
15901     keylen = length(key)
15902     if (S_is_set[key]) {
15903       value = S[key]
15904       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15905       len += length(value) + length(field[++i])
15906       substed = 1
15907     } else
15908       len += 1 + keylen
15909   }
15910
15911   print line
15912 }
15913
15914 _ACAWK
15915 _ACEOF
15916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15918   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15919 else
15920   cat
15921 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15922   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15923 _ACEOF
15924
15925 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15926 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15927 # trailing colons and then remove the whole line if VPATH becomes empty
15928 # (actually we leave an empty line to preserve line numbers).
15929 if test "x$srcdir" = x.; then
15930   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15931 h
15932 s///
15933 s/^/:/
15934 s/[      ]*$/:/
15935 s/:\$(srcdir):/:/g
15936 s/:\${srcdir}:/:/g
15937 s/:@srcdir@:/:/g
15938 s/^:*//
15939 s/:*$//
15940 x
15941 s/\(=[   ]*\).*/\1/
15942 G
15943 s/\n//
15944 s/^[^=]*=[       ]*$//
15945 }'
15946 fi
15947
15948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15949 fi # test -n "$CONFIG_FILES"
15950
15951 # Set up the scripts for CONFIG_HEADERS section.
15952 # No need to generate them if there are no CONFIG_HEADERS.
15953 # This happens for instance with `./config.status Makefile'.
15954 if test -n "$CONFIG_HEADERS"; then
15955 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15956 BEGIN {
15957 _ACEOF
15958
15959 # Transform confdefs.h into an awk script `defines.awk', embedded as
15960 # here-document in config.status, that substitutes the proper values into
15961 # config.h.in to produce config.h.
15962
15963 # Create a delimiter string that does not exist in confdefs.h, to ease
15964 # handling of long lines.
15965 ac_delim='%!_!# '
15966 for ac_last_try in false false :; do
15967   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15968   if test -z "$ac_tt"; then
15969     break
15970   elif $ac_last_try; then
15971     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15972   else
15973     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15974   fi
15975 done
15976
15977 # For the awk script, D is an array of macro values keyed by name,
15978 # likewise P contains macro parameters if any.  Preserve backslash
15979 # newline sequences.
15980
15981 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15982 sed -n '
15983 s/.\{148\}/&'"$ac_delim"'/g
15984 t rset
15985 :rset
15986 s/^[     ]*#[    ]*define[       ][      ]*/ /
15987 t def
15988 d
15989 :def
15990 s/\\$//
15991 t bsnl
15992 s/["\\]/\\&/g
15993 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15994 D["\1"]=" \3"/p
15995 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15996 d
15997 :bsnl
15998 s/["\\]/\\&/g
15999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16000 D["\1"]=" \3\\\\\\n"\\/p
16001 t cont
16002 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16003 t cont
16004 d
16005 :cont
16006 n
16007 s/.\{148\}/&'"$ac_delim"'/g
16008 t clear
16009 :clear
16010 s/\\$//
16011 t bsnlc
16012 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16013 d
16014 :bsnlc
16015 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16016 b cont
16017 ' <confdefs.h | sed '
16018 s/'"$ac_delim"'/"\\\
16019 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16020
16021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16022   for (key in D) D_is_set[key] = 1
16023   FS = "\a"
16024 }
16025 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16026   line = \$ 0
16027   split(line, arg, " ")
16028   if (arg[1] == "#") {
16029     defundef = arg[2]
16030     mac1 = arg[3]
16031   } else {
16032     defundef = substr(arg[1], 2)
16033     mac1 = arg[2]
16034   }
16035   split(mac1, mac2, "(") #)
16036   macro = mac2[1]
16037   prefix = substr(line, 1, index(line, defundef) - 1)
16038   if (D_is_set[macro]) {
16039     # Preserve the white space surrounding the "#".
16040     print prefix "define", macro P[macro] D[macro]
16041     next
16042   } else {
16043     # Replace #undef with comments.  This is necessary, for example,
16044     # in the case of _POSIX_SOURCE, which is predefined and required
16045     # on some systems where configure will not decide to define it.
16046     if (defundef == "undef") {
16047       print "/*", prefix defundef, macro, "*/"
16048       next
16049     }
16050   }
16051 }
16052 { print }
16053 _ACAWK
16054 _ACEOF
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16057 fi # test -n "$CONFIG_HEADERS"
16058
16059
16060 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16061 shift
16062 for ac_tag
16063 do
16064   case $ac_tag in
16065   :[FHLC]) ac_mode=$ac_tag; continue;;
16066   esac
16067   case $ac_mode$ac_tag in
16068   :[FHL]*:*);;
16069   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16070   :[FH]-) ac_tag=-:-;;
16071   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16072   esac
16073   ac_save_IFS=$IFS
16074   IFS=:
16075   set x $ac_tag
16076   IFS=$ac_save_IFS
16077   shift
16078   ac_file=$1
16079   shift
16080
16081   case $ac_mode in
16082   :L) ac_source=$1;;
16083   :[FH])
16084     ac_file_inputs=
16085     for ac_f
16086     do
16087       case $ac_f in
16088       -) ac_f="$ac_tmp/stdin";;
16089       *) # Look for the file first in the build tree, then in the source tree
16090          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16091          # because $ac_f cannot contain `:'.
16092          test -f "$ac_f" ||
16093            case $ac_f in
16094            [\\/$]*) false;;
16095            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16096            esac ||
16097            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16098       esac
16099       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16100       as_fn_append ac_file_inputs " '$ac_f'"
16101     done
16102
16103     # Let's still pretend it is `configure' which instantiates (i.e., don't
16104     # use $as_me), people would be surprised to read:
16105     #    /* config.h.  Generated by config.status.  */
16106     configure_input='Generated from '`
16107           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16108         `' by configure.'
16109     if test x"$ac_file" != x-; then
16110       configure_input="$ac_file.  $configure_input"
16111       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16112 $as_echo "$as_me: creating $ac_file" >&6;}
16113     fi
16114     # Neutralize special characters interpreted by sed in replacement strings.
16115     case $configure_input in #(
16116     *\&* | *\|* | *\\* )
16117        ac_sed_conf_input=`$as_echo "$configure_input" |
16118        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16119     *) ac_sed_conf_input=$configure_input;;
16120     esac
16121
16122     case $ac_tag in
16123     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16124       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16125     esac
16126     ;;
16127   esac
16128
16129   ac_dir=`$as_dirname -- "$ac_file" ||
16130 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16131          X"$ac_file" : 'X\(//\)[^/]' \| \
16132          X"$ac_file" : 'X\(//\)$' \| \
16133          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16134 $as_echo X"$ac_file" |
16135     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16136             s//\1/
16137             q
16138           }
16139           /^X\(\/\/\)[^/].*/{
16140             s//\1/
16141             q
16142           }
16143           /^X\(\/\/\)$/{
16144             s//\1/
16145             q
16146           }
16147           /^X\(\/\).*/{
16148             s//\1/
16149             q
16150           }
16151           s/.*/./; q'`
16152   as_dir="$ac_dir"; as_fn_mkdir_p
16153   ac_builddir=.
16154
16155 case "$ac_dir" in
16156 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16157 *)
16158   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16159   # A ".." for each directory in $ac_dir_suffix.
16160   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16161   case $ac_top_builddir_sub in
16162   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16163   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16164   esac ;;
16165 esac
16166 ac_abs_top_builddir=$ac_pwd
16167 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16168 # for backward compatibility:
16169 ac_top_builddir=$ac_top_build_prefix
16170
16171 case $srcdir in
16172   .)  # We are building in place.
16173     ac_srcdir=.
16174     ac_top_srcdir=$ac_top_builddir_sub
16175     ac_abs_top_srcdir=$ac_pwd ;;
16176   [\\/]* | ?:[\\/]* )  # Absolute name.
16177     ac_srcdir=$srcdir$ac_dir_suffix;
16178     ac_top_srcdir=$srcdir
16179     ac_abs_top_srcdir=$srcdir ;;
16180   *) # Relative name.
16181     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16182     ac_top_srcdir=$ac_top_build_prefix$srcdir
16183     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16184 esac
16185 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16186
16187
16188   case $ac_mode in
16189   :F)
16190   #
16191   # CONFIG_FILE
16192   #
16193
16194   case $INSTALL in
16195   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16196   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16197   esac
16198   ac_MKDIR_P=$MKDIR_P
16199   case $MKDIR_P in
16200   [\\/$]* | ?:[\\/]* ) ;;
16201   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16202   esac
16203 _ACEOF
16204
16205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16206 # If the template does not know about datarootdir, expand it.
16207 # FIXME: This hack should be removed a few years after 2.60.
16208 ac_datarootdir_hack=; ac_datarootdir_seen=
16209 ac_sed_dataroot='
16210 /datarootdir/ {
16211   p
16212   q
16213 }
16214 /@datadir@/p
16215 /@docdir@/p
16216 /@infodir@/p
16217 /@localedir@/p
16218 /@mandir@/p'
16219 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16220 *datarootdir*) ac_datarootdir_seen=yes;;
16221 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16222   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16223 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16224 _ACEOF
16225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16226   ac_datarootdir_hack='
16227   s&@datadir@&$datadir&g
16228   s&@docdir@&$docdir&g
16229   s&@infodir@&$infodir&g
16230   s&@localedir@&$localedir&g
16231   s&@mandir@&$mandir&g
16232   s&\\\${datarootdir}&$datarootdir&g' ;;
16233 esac
16234 _ACEOF
16235
16236 # Neutralize VPATH when `$srcdir' = `.'.
16237 # Shell code in configure.ac might set extrasub.
16238 # FIXME: do we really want to maintain this feature?
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 ac_sed_extra="$ac_vpsub
16241 $extrasub
16242 _ACEOF
16243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16244 :t
16245 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16246 s|@configure_input@|$ac_sed_conf_input|;t t
16247 s&@top_builddir@&$ac_top_builddir_sub&;t t
16248 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16249 s&@srcdir@&$ac_srcdir&;t t
16250 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16251 s&@top_srcdir@&$ac_top_srcdir&;t t
16252 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16253 s&@builddir@&$ac_builddir&;t t
16254 s&@abs_builddir@&$ac_abs_builddir&;t t
16255 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16256 s&@INSTALL@&$ac_INSTALL&;t t
16257 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16258 $ac_datarootdir_hack
16259 "
16260 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16261   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16262
16263 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16264   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16265   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16266       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16267   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16268 which seems to be undefined.  Please make sure it is defined" >&5
16269 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16270 which seems to be undefined.  Please make sure it is defined" >&2;}
16271
16272   rm -f "$ac_tmp/stdin"
16273   case $ac_file in
16274   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16275   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16276   esac \
16277   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16278  ;;
16279   :H)
16280   #
16281   # CONFIG_HEADER
16282   #
16283   if test x"$ac_file" != x-; then
16284     {
16285       $as_echo "/* $configure_input  */" \
16286       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16287     } >"$ac_tmp/config.h" \
16288       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16289     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16290       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16291 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16292     else
16293       rm -f "$ac_file"
16294       mv "$ac_tmp/config.h" "$ac_file" \
16295         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16296     fi
16297   else
16298     $as_echo "/* $configure_input  */" \
16299       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16300       || as_fn_error $? "could not create -" "$LINENO" 5
16301   fi
16302 # Compute "$ac_file"'s index in $config_headers.
16303 _am_arg="$ac_file"
16304 _am_stamp_count=1
16305 for _am_header in $config_headers :; do
16306   case $_am_header in
16307     $_am_arg | $_am_arg:* )
16308       break ;;
16309     * )
16310       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16311   esac
16312 done
16313 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16314 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16315          X"$_am_arg" : 'X\(//\)[^/]' \| \
16316          X"$_am_arg" : 'X\(//\)$' \| \
16317          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16318 $as_echo X"$_am_arg" |
16319     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16320             s//\1/
16321             q
16322           }
16323           /^X\(\/\/\)[^/].*/{
16324             s//\1/
16325             q
16326           }
16327           /^X\(\/\/\)$/{
16328             s//\1/
16329             q
16330           }
16331           /^X\(\/\).*/{
16332             s//\1/
16333             q
16334           }
16335           s/.*/./; q'`/stamp-h$_am_stamp_count
16336  ;;
16337   :L)
16338   #
16339   # CONFIG_LINK
16340   #
16341
16342   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16343     :
16344   else
16345     # Prefer the file from the source tree if names are identical.
16346     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16347       ac_source=$srcdir/$ac_source
16348     fi
16349
16350     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16351 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16352
16353     if test ! -r "$ac_source"; then
16354       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16355     fi
16356     rm -f "$ac_file"
16357
16358     # Try a relative symlink, then a hard link, then a copy.
16359     case $ac_source in
16360     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16361         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16362     esac
16363     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16364       ln "$ac_source" "$ac_file" 2>/dev/null ||
16365       cp -p "$ac_source" "$ac_file" ||
16366       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16367   fi
16368  ;;
16369   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16370 $as_echo "$as_me: executing $ac_file commands" >&6;}
16371  ;;
16372   esac
16373
16374
16375   case $ac_file$ac_mode in
16376     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16377   if test ".$ax_enable_builddir" = ".." ; then
16378     if test -f "$top_srcdir/Makefile" ; then
16379       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16380 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16381     else
16382       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16383 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16384     fi
16385   else
16386     if test -f "$ac_top_srcdir/Makefile" ; then
16387       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16388       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16389     fi
16390     if test -f "$ac_top_srcdir/Makefile" ; then
16391         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16392         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16393       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16394       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16395       then rm $ac_top_srcdir/Makefile ; fi
16396       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16397     fi
16398     if test ! -f "$ac_top_srcdir/Makefile" ; then
16399       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16400 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16401       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16402 /^\$/n
16403 x
16404 /^\$/bS
16405 x
16406 /\\\\\$/{H;d;}
16407 {H;s/.*//;x;}
16408 bM
16409 :S
16410 x
16411 /\\\\\$/{h;d;}
16412 {h;s/.*//;x;}
16413 :M
16414 s/\\(\\n\\)     /\\1 /g
16415 /^      /d
16416 /^[      ]*[\\#]/d
16417 /^VPATH *=/d
16418 s/^srcdir *=.*/srcdir = ./
16419 s/^top_srcdir *=.*/top_srcdir = ./
16420 /[:=]/!d
16421 /^\\./d
16422 / = /b
16423 / .= /b
16424 /:/!b
16425 s/:.*/:/
16426 s/ /  /g
16427 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16428 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16429 s/  / /g
16430 /^all all-all[ :]/i\\
16431 all-configured : all-all
16432 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16433 /-all-all/d
16434 a\\
16435         @ HOST="\$(HOST)\" \\\\\\
16436         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16437         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16438         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16439         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16440         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16441         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16442         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16443         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16444         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16445 /dist-all *:/a\\
16446         @ HOST="\$(HOST)\" \\\\\\
16447         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16448         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16449         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16450         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16451         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16452         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16453         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16454         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16455         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16456 /dist-[a-zA-Z0-9]*-all *:/a\\
16457         @ HOST="\$(HOST)\" \\\\\\
16458         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16459         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16460         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16461         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16462         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16463         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16464         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16465         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16466         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16467 /distclean-all *:/a\\
16468         @ HOST="\$(HOST)\" \\\\\\
16469         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16470         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16471         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16472         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16473         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16474         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16475         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16476         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16477         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16478         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16479         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16480 _EOF
16481       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16482       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16483       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16484         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16485 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16486         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16487       fi ; xxxx="####"
16488       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16489       # sanity check
16490       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16491         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16492 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16493         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16494           >$ac_top_srcdir/Makefile~
16495         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16496       fi
16497     else
16498       xxxx="\\#\\#\\#\\#"
16499       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16500       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16501       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16502         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16503         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16504       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16505         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16506 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16507         rm "$tmp/mkfile.tmp"
16508       else
16509         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16510 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16511         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16512       fi
16513     fi
16514     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16515 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16516     xxxx="####"
16517     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16518   fi
16519  ;;
16520     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16521   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16522   # are listed without --file.  Let's play safe and only enable the eval
16523   # if we detect the quoting.
16524   case $CONFIG_FILES in
16525   *\'*) eval set x "$CONFIG_FILES" ;;
16526   *)   set x $CONFIG_FILES ;;
16527   esac
16528   shift
16529   for mf
16530   do
16531     # Strip MF so we end up with the name of the file.
16532     mf=`echo "$mf" | sed -e 's/:.*$//'`
16533     # Check whether this is an Automake generated Makefile or not.
16534     # We used to match only the files named `Makefile.in', but
16535     # some people rename them; so instead we look at the file content.
16536     # Grep'ing the first line is not enough: some people post-process
16537     # each Makefile.in and add a new line on top of each file to say so.
16538     # Grep'ing the whole file is not good either: AIX grep has a line
16539     # limit of 2048, but all sed's we know have understand at least 4000.
16540     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16541       dirpart=`$as_dirname -- "$mf" ||
16542 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16543          X"$mf" : 'X\(//\)[^/]' \| \
16544          X"$mf" : 'X\(//\)$' \| \
16545          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16546 $as_echo X"$mf" |
16547     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16548             s//\1/
16549             q
16550           }
16551           /^X\(\/\/\)[^/].*/{
16552             s//\1/
16553             q
16554           }
16555           /^X\(\/\/\)$/{
16556             s//\1/
16557             q
16558           }
16559           /^X\(\/\).*/{
16560             s//\1/
16561             q
16562           }
16563           s/.*/./; q'`
16564     else
16565       continue
16566     fi
16567     # Extract the definition of DEPDIR, am__include, and am__quote
16568     # from the Makefile without running `make'.
16569     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16570     test -z "$DEPDIR" && continue
16571     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16572     test -z "am__include" && continue
16573     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16574     # When using ansi2knr, U may be empty or an underscore; expand it
16575     U=`sed -n 's/^U = //p' < "$mf"`
16576     # Find all dependency output files, they are included files with
16577     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16578     # simplest approach to changing $(DEPDIR) to its actual value in the
16579     # expansion.
16580     for file in `sed -n "
16581       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16582          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16583       # Make sure the directory exists.
16584       test -f "$dirpart/$file" && continue
16585       fdir=`$as_dirname -- "$file" ||
16586 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16587          X"$file" : 'X\(//\)[^/]' \| \
16588          X"$file" : 'X\(//\)$' \| \
16589          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16590 $as_echo X"$file" |
16591     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16592             s//\1/
16593             q
16594           }
16595           /^X\(\/\/\)[^/].*/{
16596             s//\1/
16597             q
16598           }
16599           /^X\(\/\/\)$/{
16600             s//\1/
16601             q
16602           }
16603           /^X\(\/\).*/{
16604             s//\1/
16605             q
16606           }
16607           s/.*/./; q'`
16608       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16609       # echo "creating $dirpart/$file"
16610       echo '# dummy' > "$dirpart/$file"
16611     done
16612   done
16613 }
16614  ;;
16615     "libtool":C)
16616
16617     # See if we are running on zsh, and set the options which allow our
16618     # commands through without removal of \ escapes.
16619     if test -n "${ZSH_VERSION+set}" ; then
16620       setopt NO_GLOB_SUBST
16621     fi
16622
16623     cfgfile="${ofile}T"
16624     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16625     $RM "$cfgfile"
16626
16627     cat <<_LT_EOF >> "$cfgfile"
16628 #! $SHELL
16629
16630 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16631 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16632 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16633 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16634 #
16635 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16636 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16637 #                 Inc.
16638 #   Written by Gordon Matzigkeit, 1996
16639 #
16640 #   This file is part of GNU Libtool.
16641 #
16642 # GNU Libtool is free software; you can redistribute it and/or
16643 # modify it under the terms of the GNU General Public License as
16644 # published by the Free Software Foundation; either version 2 of
16645 # the License, or (at your option) any later version.
16646 #
16647 # As a special exception to the GNU General Public License,
16648 # if you distribute this file as part of a program or library that
16649 # is built using GNU Libtool, you may include this file under the
16650 # same distribution terms that you use for the rest of that program.
16651 #
16652 # GNU Libtool is distributed in the hope that it will be useful,
16653 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16654 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16655 # GNU General Public License for more details.
16656 #
16657 # You should have received a copy of the GNU General Public License
16658 # along with GNU Libtool; see the file COPYING.  If not, a copy
16659 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16660 # obtained by writing to the Free Software Foundation, Inc.,
16661 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16662
16663
16664 # The names of the tagged configurations supported by this script.
16665 available_tags=""
16666
16667 # ### BEGIN LIBTOOL CONFIG
16668
16669 # Which release of libtool.m4 was used?
16670 macro_version=$macro_version
16671 macro_revision=$macro_revision
16672
16673 # Whether or not to build shared libraries.
16674 build_libtool_libs=$enable_shared
16675
16676 # Whether or not to build static libraries.
16677 build_old_libs=$enable_static
16678
16679 # What type of objects to build.
16680 pic_mode=$pic_mode
16681
16682 # Whether or not to optimize for fast installation.
16683 fast_install=$enable_fast_install
16684
16685 # Shell to use when invoking shell scripts.
16686 SHELL=$lt_SHELL
16687
16688 # An echo program that protects backslashes.
16689 ECHO=$lt_ECHO
16690
16691 # The host system.
16692 host_alias=$host_alias
16693 host=$host
16694 host_os=$host_os
16695
16696 # The build system.
16697 build_alias=$build_alias
16698 build=$build
16699 build_os=$build_os
16700
16701 # A sed program that does not truncate output.
16702 SED=$lt_SED
16703
16704 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16705 Xsed="\$SED -e 1s/^X//"
16706
16707 # A grep program that handles long lines.
16708 GREP=$lt_GREP
16709
16710 # An ERE matcher.
16711 EGREP=$lt_EGREP
16712
16713 # A literal string matcher.
16714 FGREP=$lt_FGREP
16715
16716 # A BSD- or MS-compatible name lister.
16717 NM=$lt_NM
16718
16719 # Whether we need soft or hard links.
16720 LN_S=$lt_LN_S
16721
16722 # What is the maximum length of a command?
16723 max_cmd_len=$max_cmd_len
16724
16725 # Object file suffix (normally "o").
16726 objext=$ac_objext
16727
16728 # Executable file suffix (normally "").
16729 exeext=$exeext
16730
16731 # whether the shell understands "unset".
16732 lt_unset=$lt_unset
16733
16734 # turn spaces into newlines.
16735 SP2NL=$lt_lt_SP2NL
16736
16737 # turn newlines into spaces.
16738 NL2SP=$lt_lt_NL2SP
16739
16740 # convert \$build file names to \$host format.
16741 to_host_file_cmd=$lt_cv_to_host_file_cmd
16742
16743 # convert \$build files to toolchain format.
16744 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16745
16746 # An object symbol dumper.
16747 OBJDUMP=$lt_OBJDUMP
16748
16749 # Method to check whether dependent libraries are shared objects.
16750 deplibs_check_method=$lt_deplibs_check_method
16751
16752 # Command to use when deplibs_check_method = "file_magic".
16753 file_magic_cmd=$lt_file_magic_cmd
16754
16755 # How to find potential files when deplibs_check_method = "file_magic".
16756 file_magic_glob=$lt_file_magic_glob
16757
16758 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16759 want_nocaseglob=$lt_want_nocaseglob
16760
16761 # DLL creation program.
16762 DLLTOOL=$lt_DLLTOOL
16763
16764 # Command to associate shared and link libraries.
16765 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16766
16767 # The archiver.
16768 AR=$lt_AR
16769
16770 # Flags to create an archive.
16771 AR_FLAGS=$lt_AR_FLAGS
16772
16773 # How to feed a file listing to the archiver.
16774 archiver_list_spec=$lt_archiver_list_spec
16775
16776 # A symbol stripping program.
16777 STRIP=$lt_STRIP
16778
16779 # Commands used to install an old-style archive.
16780 RANLIB=$lt_RANLIB
16781 old_postinstall_cmds=$lt_old_postinstall_cmds
16782 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16783
16784 # Whether to use a lock for old archive extraction.
16785 lock_old_archive_extraction=$lock_old_archive_extraction
16786
16787 # A C compiler.
16788 LTCC=$lt_CC
16789
16790 # LTCC compiler flags.
16791 LTCFLAGS=$lt_CFLAGS
16792
16793 # Take the output of nm and produce a listing of raw symbols and C names.
16794 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16795
16796 # Transform the output of nm in a proper C declaration.
16797 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16798
16799 # Transform the output of nm in a C name address pair.
16800 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16801
16802 # Transform the output of nm in a C name address pair when lib prefix is needed.
16803 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16804
16805 # Specify filename containing input files for \$NM.
16806 nm_file_list_spec=$lt_nm_file_list_spec
16807
16808 # The root where to search for dependent libraries,and in which our libraries should be installed.
16809 lt_sysroot=$lt_sysroot
16810
16811 # The name of the directory that contains temporary libtool files.
16812 objdir=$objdir
16813
16814 # Used to examine libraries when file_magic_cmd begins with "file".
16815 MAGIC_CMD=$MAGIC_CMD
16816
16817 # Must we lock files when doing compilation?
16818 need_locks=$lt_need_locks
16819
16820 # Manifest tool.
16821 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16822
16823 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16824 DSYMUTIL=$lt_DSYMUTIL
16825
16826 # Tool to change global to local symbols on Mac OS X.
16827 NMEDIT=$lt_NMEDIT
16828
16829 # Tool to manipulate fat objects and archives on Mac OS X.
16830 LIPO=$lt_LIPO
16831
16832 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16833 OTOOL=$lt_OTOOL
16834
16835 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16836 OTOOL64=$lt_OTOOL64
16837
16838 # Old archive suffix (normally "a").
16839 libext=$libext
16840
16841 # Shared library suffix (normally ".so").
16842 shrext_cmds=$lt_shrext_cmds
16843
16844 # The commands to extract the exported symbol list from a shared archive.
16845 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16846
16847 # Variables whose values should be saved in libtool wrapper scripts and
16848 # restored at link time.
16849 variables_saved_for_relink=$lt_variables_saved_for_relink
16850
16851 # Do we need the "lib" prefix for modules?
16852 need_lib_prefix=$need_lib_prefix
16853
16854 # Do we need a version for libraries?
16855 need_version=$need_version
16856
16857 # Library versioning type.
16858 version_type=$version_type
16859
16860 # Shared library runtime path variable.
16861 runpath_var=$runpath_var
16862
16863 # Shared library path variable.
16864 shlibpath_var=$shlibpath_var
16865
16866 # Is shlibpath searched before the hard-coded library search path?
16867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16868
16869 # Format of library name prefix.
16870 libname_spec=$lt_libname_spec
16871
16872 # List of archive names.  First name is the real one, the rest are links.
16873 # The last name is the one that the linker finds with -lNAME
16874 library_names_spec=$lt_library_names_spec
16875
16876 # The coded name of the library, if different from the real name.
16877 soname_spec=$lt_soname_spec
16878
16879 # Permission mode override for installation of shared libraries.
16880 install_override_mode=$lt_install_override_mode
16881
16882 # Command to use after installation of a shared archive.
16883 postinstall_cmds=$lt_postinstall_cmds
16884
16885 # Command to use after uninstallation of a shared archive.
16886 postuninstall_cmds=$lt_postuninstall_cmds
16887
16888 # Commands used to finish a libtool library installation in a directory.
16889 finish_cmds=$lt_finish_cmds
16890
16891 # As "finish_cmds", except a single script fragment to be evaled but
16892 # not shown.
16893 finish_eval=$lt_finish_eval
16894
16895 # Whether we should hardcode library paths into libraries.
16896 hardcode_into_libs=$hardcode_into_libs
16897
16898 # Compile-time system search path for libraries.
16899 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16900
16901 # Run-time system search path for libraries.
16902 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16903
16904 # Whether dlopen is supported.
16905 dlopen_support=$enable_dlopen
16906
16907 # Whether dlopen of programs is supported.
16908 dlopen_self=$enable_dlopen_self
16909
16910 # Whether dlopen of statically linked programs is supported.
16911 dlopen_self_static=$enable_dlopen_self_static
16912
16913 # Commands to strip libraries.
16914 old_striplib=$lt_old_striplib
16915 striplib=$lt_striplib
16916
16917
16918 # The linker used to build libraries.
16919 LD=$lt_LD
16920
16921 # How to create reloadable object files.
16922 reload_flag=$lt_reload_flag
16923 reload_cmds=$lt_reload_cmds
16924
16925 # Commands used to build an old-style archive.
16926 old_archive_cmds=$lt_old_archive_cmds
16927
16928 # A language specific compiler.
16929 CC=$lt_compiler
16930
16931 # Is the compiler the GNU compiler?
16932 with_gcc=$GCC
16933
16934 # Compiler flag to turn off builtin functions.
16935 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16936
16937 # Additional compiler flags for building library objects.
16938 pic_flag=$lt_lt_prog_compiler_pic
16939
16940 # How to pass a linker flag through the compiler.
16941 wl=$lt_lt_prog_compiler_wl
16942
16943 # Compiler flag to prevent dynamic linking.
16944 link_static_flag=$lt_lt_prog_compiler_static
16945
16946 # Does compiler simultaneously support -c and -o options?
16947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16948
16949 # Whether or not to add -lc for building shared libraries.
16950 build_libtool_need_lc=$archive_cmds_need_lc
16951
16952 # Whether or not to disallow shared libs when runtime libs are static.
16953 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16954
16955 # Compiler flag to allow reflexive dlopens.
16956 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16957
16958 # Compiler flag to generate shared objects directly from archives.
16959 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16960
16961 # Whether the compiler copes with passing no objects directly.
16962 compiler_needs_object=$lt_compiler_needs_object
16963
16964 # Create an old-style archive from a shared archive.
16965 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16966
16967 # Create a temporary old-style archive to link instead of a shared archive.
16968 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16969
16970 # Commands used to build a shared archive.
16971 archive_cmds=$lt_archive_cmds
16972 archive_expsym_cmds=$lt_archive_expsym_cmds
16973
16974 # Commands used to build a loadable module if different from building
16975 # a shared archive.
16976 module_cmds=$lt_module_cmds
16977 module_expsym_cmds=$lt_module_expsym_cmds
16978
16979 # Whether we are building with GNU ld or not.
16980 with_gnu_ld=$lt_with_gnu_ld
16981
16982 # Flag that allows shared libraries with undefined symbols to be built.
16983 allow_undefined_flag=$lt_allow_undefined_flag
16984
16985 # Flag that enforces no undefined symbols.
16986 no_undefined_flag=$lt_no_undefined_flag
16987
16988 # Flag to hardcode \$libdir into a binary during linking.
16989 # This must work even if \$libdir does not exist
16990 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16991
16992 # If ld is used when linking, flag to hardcode \$libdir into a binary
16993 # during linking.  This must work even if \$libdir does not exist.
16994 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16995
16996 # Whether we need a single "-rpath" flag with a separated argument.
16997 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16998
16999 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17000 # DIR into the resulting binary.
17001 hardcode_direct=$hardcode_direct
17002
17003 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17004 # DIR into the resulting binary and the resulting library dependency is
17005 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17006 # library is relocated.
17007 hardcode_direct_absolute=$hardcode_direct_absolute
17008
17009 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17010 # into the resulting binary.
17011 hardcode_minus_L=$hardcode_minus_L
17012
17013 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17014 # into the resulting binary.
17015 hardcode_shlibpath_var=$hardcode_shlibpath_var
17016
17017 # Set to "yes" if building a shared library automatically hardcodes DIR
17018 # into the library and all subsequent libraries and executables linked
17019 # against it.
17020 hardcode_automatic=$hardcode_automatic
17021
17022 # Set to yes if linker adds runtime paths of dependent libraries
17023 # to runtime path list.
17024 inherit_rpath=$inherit_rpath
17025
17026 # Whether libtool must link a program against all its dependency libraries.
17027 link_all_deplibs=$link_all_deplibs
17028
17029 # Set to "yes" if exported symbols are required.
17030 always_export_symbols=$always_export_symbols
17031
17032 # The commands to list exported symbols.
17033 export_symbols_cmds=$lt_export_symbols_cmds
17034
17035 # Symbols that should not be listed in the preloaded symbols.
17036 exclude_expsyms=$lt_exclude_expsyms
17037
17038 # Symbols that must always be exported.
17039 include_expsyms=$lt_include_expsyms
17040
17041 # Commands necessary for linking programs (against libraries) with templates.
17042 prelink_cmds=$lt_prelink_cmds
17043
17044 # Commands necessary for finishing linking programs.
17045 postlink_cmds=$lt_postlink_cmds
17046
17047 # Specify filename containing input files.
17048 file_list_spec=$lt_file_list_spec
17049
17050 # How to hardcode a shared library path into an executable.
17051 hardcode_action=$hardcode_action
17052
17053 # ### END LIBTOOL CONFIG
17054
17055 _LT_EOF
17056
17057   case $host_os in
17058   aix3*)
17059     cat <<\_LT_EOF >> "$cfgfile"
17060 # AIX sometimes has problems with the GCC collect2 program.  For some
17061 # reason, if we set the COLLECT_NAMES environment variable, the problems
17062 # vanish in a puff of smoke.
17063 if test "X${COLLECT_NAMES+set}" != Xset; then
17064   COLLECT_NAMES=
17065   export COLLECT_NAMES
17066 fi
17067 _LT_EOF
17068     ;;
17069   esac
17070
17071
17072 ltmain="$ac_aux_dir/ltmain.sh"
17073
17074
17075   # We use sed instead of cat because bash on DJGPP gets confused if
17076   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17077   # text mode, it properly converts lines to CR/LF.  This bash problem
17078   # is reportedly fixed, but why not run on old versions too?
17079   sed '$q' "$ltmain" >> "$cfgfile" \
17080      || (rm -f "$cfgfile"; exit 1)
17081
17082   if test x"$xsi_shell" = xyes; then
17083   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17084 func_dirname ()\
17085 {\
17086 \    case ${1} in\
17087 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17088 \      *  ) func_dirname_result="${3}" ;;\
17089 \    esac\
17090 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17091   && mv -f "$cfgfile.tmp" "$cfgfile" \
17092     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17093 test 0 -eq $? || _lt_function_replace_fail=:
17094
17095
17096   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17097 func_basename ()\
17098 {\
17099 \    func_basename_result="${1##*/}"\
17100 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17101   && mv -f "$cfgfile.tmp" "$cfgfile" \
17102     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17103 test 0 -eq $? || _lt_function_replace_fail=:
17104
17105
17106   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17107 func_dirname_and_basename ()\
17108 {\
17109 \    case ${1} in\
17110 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17111 \      *  ) func_dirname_result="${3}" ;;\
17112 \    esac\
17113 \    func_basename_result="${1##*/}"\
17114 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17115   && mv -f "$cfgfile.tmp" "$cfgfile" \
17116     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17117 test 0 -eq $? || _lt_function_replace_fail=:
17118
17119
17120   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17121 func_stripname ()\
17122 {\
17123 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17124 \    # positional parameters, so assign one to ordinary parameter first.\
17125 \    func_stripname_result=${3}\
17126 \    func_stripname_result=${func_stripname_result#"${1}"}\
17127 \    func_stripname_result=${func_stripname_result%"${2}"}\
17128 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17129   && mv -f "$cfgfile.tmp" "$cfgfile" \
17130     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17131 test 0 -eq $? || _lt_function_replace_fail=:
17132
17133
17134   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17135 func_split_long_opt ()\
17136 {\
17137 \    func_split_long_opt_name=${1%%=*}\
17138 \    func_split_long_opt_arg=${1#*=}\
17139 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17140   && mv -f "$cfgfile.tmp" "$cfgfile" \
17141     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17142 test 0 -eq $? || _lt_function_replace_fail=:
17143
17144
17145   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17146 func_split_short_opt ()\
17147 {\
17148 \    func_split_short_opt_arg=${1#??}\
17149 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17150 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17151   && mv -f "$cfgfile.tmp" "$cfgfile" \
17152     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17153 test 0 -eq $? || _lt_function_replace_fail=:
17154
17155
17156   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17157 func_lo2o ()\
17158 {\
17159 \    case ${1} in\
17160 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17161 \      *)    func_lo2o_result=${1} ;;\
17162 \    esac\
17163 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17164   && mv -f "$cfgfile.tmp" "$cfgfile" \
17165     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17166 test 0 -eq $? || _lt_function_replace_fail=:
17167
17168
17169   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17170 func_xform ()\
17171 {\
17172     func_xform_result=${1%.*}.lo\
17173 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17174   && mv -f "$cfgfile.tmp" "$cfgfile" \
17175     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17176 test 0 -eq $? || _lt_function_replace_fail=:
17177
17178
17179   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17180 func_arith ()\
17181 {\
17182     func_arith_result=$(( $* ))\
17183 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17184   && mv -f "$cfgfile.tmp" "$cfgfile" \
17185     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17186 test 0 -eq $? || _lt_function_replace_fail=:
17187
17188
17189   sed -e '/^func_len ()$/,/^} # func_len /c\
17190 func_len ()\
17191 {\
17192     func_len_result=${#1}\
17193 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17194   && mv -f "$cfgfile.tmp" "$cfgfile" \
17195     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17196 test 0 -eq $? || _lt_function_replace_fail=:
17197
17198 fi
17199
17200 if test x"$lt_shell_append" = xyes; then
17201   sed -e '/^func_append ()$/,/^} # func_append /c\
17202 func_append ()\
17203 {\
17204     eval "${1}+=\\${2}"\
17205 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17206   && mv -f "$cfgfile.tmp" "$cfgfile" \
17207     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17208 test 0 -eq $? || _lt_function_replace_fail=:
17209
17210
17211   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17212 func_append_quoted ()\
17213 {\
17214 \    func_quote_for_eval "${2}"\
17215 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17216 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17217   && mv -f "$cfgfile.tmp" "$cfgfile" \
17218     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17219 test 0 -eq $? || _lt_function_replace_fail=:
17220
17221
17222   # Save a `func_append' function call where possible by direct use of '+='
17223   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17224     && mv -f "$cfgfile.tmp" "$cfgfile" \
17225       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17226   test 0 -eq $? || _lt_function_replace_fail=:
17227 else
17228   # Save a `func_append' function call even when '+=' is not available
17229   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17230     && mv -f "$cfgfile.tmp" "$cfgfile" \
17231       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17232   test 0 -eq $? || _lt_function_replace_fail=:
17233 fi
17234
17235 if test x"$_lt_function_replace_fail" = x":"; then
17236   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17237 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17238 fi
17239
17240
17241    mv -f "$cfgfile" "$ofile" ||
17242     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17243   chmod +x "$ofile"
17244
17245  ;;
17246     "include":C) test -d include || mkdir include ;;
17247     "src":C)
17248 test -d src || mkdir src
17249 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17250  ;;
17251
17252   esac
17253 done # for ac_tag
17254
17255
17256 as_fn_exit 0
17257 _ACEOF
17258 ac_clean_files=$ac_clean_files_save
17259
17260 test $ac_write_fail = 0 ||
17261   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17262
17263
17264 # configure is writing to config.log, and then calls config.status.
17265 # config.status does its own redirection, appending to config.log.
17266 # Unfortunately, on DOS this fails, as config.log is still kept open
17267 # by configure, so config.status won't be able to write to it; its
17268 # output is simply discarded.  So we exec the FD to /dev/null,
17269 # effectively closing config.log, so it can be properly (re)opened and
17270 # appended to by config.status.  When coming back to configure, we
17271 # need to make the FD available again.
17272 if test "$no_create" != yes; then
17273   ac_cs_success=:
17274   ac_config_status_args=
17275   test "$silent" = yes &&
17276     ac_config_status_args="$ac_config_status_args --quiet"
17277   exec 5>/dev/null
17278   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17279   exec 5>>config.log
17280   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17281   # would make configure fail if this is the last instruction.
17282   $ac_cs_success || as_fn_exit 1
17283 fi
17284 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17285   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17286 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17287 fi
17288