Fix ABI check regression
[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-rc2.
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-rc2'
574 PACKAGE_STRING='libffi 3.0.11-rc2'
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 MIPS_FALSE
683 MIPS_TRUE
684 AM_LTLDFLAGS
685 AM_RUNTESTFLAGS
686 TESTSUBDIR_FALSE
687 TESTSUBDIR_TRUE
688 MAINT
689 MAINTAINER_MODE_FALSE
690 MAINTAINER_MODE_TRUE
691 PRTDIAG
692 CPP
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 DLLTOOL
703 OBJDUMP
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 SED
713 LIBTOOL
714 am__fastdepCCAS_FALSE
715 am__fastdepCCAS_TRUE
716 CCASDEPMODE
717 CCASFLAGS
718 CCAS
719 am__fastdepCC_FALSE
720 am__fastdepCC_TRUE
721 CCDEPMODE
722 AMDEPBACKSLASH
723 AMDEP_FALSE
724 AMDEP_TRUE
725 am__quote
726 am__include
727 DEPDIR
728 OBJEXT
729 EXEEXT
730 ac_ct_CC
731 CPPFLAGS
732 LDFLAGS
733 CFLAGS
734 CC
735 am__untar
736 am__tar
737 AMTAR
738 am__leading_dot
739 SET_MAKE
740 AWK
741 mkdir_p
742 MKDIR_P
743 INSTALL_STRIP_PROGRAM
744 STRIP
745 install_sh
746 MAKEINFO
747 AUTOHEADER
748 AUTOMAKE
749 AUTOCONF
750 ACLOCAL
751 VERSION
752 PACKAGE
753 CYGPATH_W
754 am__isrc
755 INSTALL_DATA
756 INSTALL_SCRIPT
757 INSTALL_PROGRAM
758 ax_enable_builddir_sed
759 target_os
760 target_vendor
761 target_cpu
762 target
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_builddir
813 enable_dependency_tracking
814 enable_shared
815 enable_static
816 with_pic
817 enable_fast_install
818 with_gnu_ld
819 with_sysroot
820 enable_libtool_lock
821 enable_portable_binary
822 with_gcc_arch
823 enable_maintainer_mode
824 enable_debug
825 enable_structs
826 enable_raw_api
827 enable_purify_safety
828 '
829       ac_precious_vars='build_alias
830 host_alias
831 target_alias
832 CCAS
833 CCASFLAGS
834 CPP
835 CPPFLAGS'
836
837
838 # Initialize some variables set by options.
839 ac_init_help=
840 ac_init_version=false
841 ac_unrecognized_opts=
842 ac_unrecognized_sep=
843 # The variables have the same names as the options, with
844 # dashes changed to underlines.
845 cache_file=/dev/null
846 exec_prefix=NONE
847 no_create=
848 no_recursion=
849 prefix=NONE
850 program_prefix=NONE
851 program_suffix=NONE
852 program_transform_name=s,x,x,
853 silent=
854 site=
855 srcdir=
856 verbose=
857 x_includes=NONE
858 x_libraries=NONE
859
860 # Installation directory options.
861 # These are left unexpanded so users can "make install exec_prefix=/foo"
862 # and all the variables that are supposed to be based on exec_prefix
863 # by default will actually change.
864 # Use braces instead of parens because sh, perl, etc. also accept them.
865 # (The list follows the same order as the GNU Coding Standards.)
866 bindir='${exec_prefix}/bin'
867 sbindir='${exec_prefix}/sbin'
868 libexecdir='${exec_prefix}/libexec'
869 datarootdir='${prefix}/share'
870 datadir='${datarootdir}'
871 sysconfdir='${prefix}/etc'
872 sharedstatedir='${prefix}/com'
873 localstatedir='${prefix}/var'
874 includedir='${prefix}/include'
875 oldincludedir='/usr/include'
876 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877 infodir='${datarootdir}/info'
878 htmldir='${docdir}'
879 dvidir='${docdir}'
880 pdfdir='${docdir}'
881 psdir='${docdir}'
882 libdir='${exec_prefix}/lib'
883 localedir='${datarootdir}/locale'
884 mandir='${datarootdir}/man'
885
886 ac_prev=
887 ac_dashdash=
888 for ac_option
889 do
890   # If the previous option needs an argument, assign it.
891   if test -n "$ac_prev"; then
892     eval $ac_prev=\$ac_option
893     ac_prev=
894     continue
895   fi
896
897   case $ac_option in
898   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899   *=)   ac_optarg= ;;
900   *)    ac_optarg=yes ;;
901   esac
902
903   # Accept the important Cygnus configure options, so we can diagnose typos.
904
905   case $ac_dashdash$ac_option in
906   --)
907     ac_dashdash=yes ;;
908
909   -bindir | --bindir | --bindi | --bind | --bin | --bi)
910     ac_prev=bindir ;;
911   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
912     bindir=$ac_optarg ;;
913
914   -build | --build | --buil | --bui | --bu)
915     ac_prev=build_alias ;;
916   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
917     build_alias=$ac_optarg ;;
918
919   -cache-file | --cache-file | --cache-fil | --cache-fi \
920   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921     ac_prev=cache_file ;;
922   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
924     cache_file=$ac_optarg ;;
925
926   --config-cache | -C)
927     cache_file=config.cache ;;
928
929   -datadir | --datadir | --datadi | --datad)
930     ac_prev=datadir ;;
931   -datadir=* | --datadir=* | --datadi=* | --datad=*)
932     datadir=$ac_optarg ;;
933
934   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935   | --dataroo | --dataro | --datar)
936     ac_prev=datarootdir ;;
937   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939     datarootdir=$ac_optarg ;;
940
941   -disable-* | --disable-*)
942     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
945       as_fn_error $? "invalid feature name: $ac_useropt"
946     ac_useropt_orig=$ac_useropt
947     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948     case $ac_user_opts in
949       *"
950 "enable_$ac_useropt"
951 "*) ;;
952       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953          ac_unrecognized_sep=', ';;
954     esac
955     eval enable_$ac_useropt=no ;;
956
957   -docdir | --docdir | --docdi | --doc | --do)
958     ac_prev=docdir ;;
959   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960     docdir=$ac_optarg ;;
961
962   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963     ac_prev=dvidir ;;
964   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965     dvidir=$ac_optarg ;;
966
967   -enable-* | --enable-*)
968     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969     # Reject names that are not valid shell variable names.
970     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
971       as_fn_error $? "invalid feature name: $ac_useropt"
972     ac_useropt_orig=$ac_useropt
973     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974     case $ac_user_opts in
975       *"
976 "enable_$ac_useropt"
977 "*) ;;
978       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979          ac_unrecognized_sep=', ';;
980     esac
981     eval enable_$ac_useropt=\$ac_optarg ;;
982
983   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985   | --exec | --exe | --ex)
986     ac_prev=exec_prefix ;;
987   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989   | --exec=* | --exe=* | --ex=*)
990     exec_prefix=$ac_optarg ;;
991
992   -gas | --gas | --ga | --g)
993     # Obsolete; use --with-gas.
994     with_gas=yes ;;
995
996   -help | --help | --hel | --he | -h)
997     ac_init_help=long ;;
998   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999     ac_init_help=recursive ;;
1000   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001     ac_init_help=short ;;
1002
1003   -host | --host | --hos | --ho)
1004     ac_prev=host_alias ;;
1005   -host=* | --host=* | --hos=* | --ho=*)
1006     host_alias=$ac_optarg ;;
1007
1008   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009     ac_prev=htmldir ;;
1010   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011   | --ht=*)
1012     htmldir=$ac_optarg ;;
1013
1014   -includedir | --includedir | --includedi | --included | --include \
1015   | --includ | --inclu | --incl | --inc)
1016     ac_prev=includedir ;;
1017   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018   | --includ=* | --inclu=* | --incl=* | --inc=*)
1019     includedir=$ac_optarg ;;
1020
1021   -infodir | --infodir | --infodi | --infod | --info | --inf)
1022     ac_prev=infodir ;;
1023   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1024     infodir=$ac_optarg ;;
1025
1026   -libdir | --libdir | --libdi | --libd)
1027     ac_prev=libdir ;;
1028   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1029     libdir=$ac_optarg ;;
1030
1031   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032   | --libexe | --libex | --libe)
1033     ac_prev=libexecdir ;;
1034   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035   | --libexe=* | --libex=* | --libe=*)
1036     libexecdir=$ac_optarg ;;
1037
1038   -localedir | --localedir | --localedi | --localed | --locale)
1039     ac_prev=localedir ;;
1040   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041     localedir=$ac_optarg ;;
1042
1043   -localstatedir | --localstatedir | --localstatedi | --localstated \
1044   | --localstate | --localstat | --localsta | --localst | --locals)
1045     ac_prev=localstatedir ;;
1046   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1047   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1048     localstatedir=$ac_optarg ;;
1049
1050   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051     ac_prev=mandir ;;
1052   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1053     mandir=$ac_optarg ;;
1054
1055   -nfp | --nfp | --nf)
1056     # Obsolete; use --without-fp.
1057     with_fp=no ;;
1058
1059   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1060   | --no-cr | --no-c | -n)
1061     no_create=yes ;;
1062
1063   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065     no_recursion=yes ;;
1066
1067   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069   | --oldin | --oldi | --old | --ol | --o)
1070     ac_prev=oldincludedir ;;
1071   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1074     oldincludedir=$ac_optarg ;;
1075
1076   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077     ac_prev=prefix ;;
1078   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1079     prefix=$ac_optarg ;;
1080
1081   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082   | --program-pre | --program-pr | --program-p)
1083     ac_prev=program_prefix ;;
1084   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1086     program_prefix=$ac_optarg ;;
1087
1088   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089   | --program-suf | --program-su | --program-s)
1090     ac_prev=program_suffix ;;
1091   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1093     program_suffix=$ac_optarg ;;
1094
1095   -program-transform-name | --program-transform-name \
1096   | --program-transform-nam | --program-transform-na \
1097   | --program-transform-n | --program-transform- \
1098   | --program-transform | --program-transfor \
1099   | --program-transfo | --program-transf \
1100   | --program-trans | --program-tran \
1101   | --progr-tra | --program-tr | --program-t)
1102     ac_prev=program_transform_name ;;
1103   -program-transform-name=* | --program-transform-name=* \
1104   | --program-transform-nam=* | --program-transform-na=* \
1105   | --program-transform-n=* | --program-transform-=* \
1106   | --program-transform=* | --program-transfor=* \
1107   | --program-transfo=* | --program-transf=* \
1108   | --program-trans=* | --program-tran=* \
1109   | --progr-tra=* | --program-tr=* | --program-t=*)
1110     program_transform_name=$ac_optarg ;;
1111
1112   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113     ac_prev=pdfdir ;;
1114   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115     pdfdir=$ac_optarg ;;
1116
1117   -psdir | --psdir | --psdi | --psd | --ps)
1118     ac_prev=psdir ;;
1119   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120     psdir=$ac_optarg ;;
1121
1122   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123   | -silent | --silent | --silen | --sile | --sil)
1124     silent=yes ;;
1125
1126   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127     ac_prev=sbindir ;;
1128   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129   | --sbi=* | --sb=*)
1130     sbindir=$ac_optarg ;;
1131
1132   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134   | --sharedst | --shareds | --shared | --share | --shar \
1135   | --sha | --sh)
1136     ac_prev=sharedstatedir ;;
1137   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140   | --sha=* | --sh=*)
1141     sharedstatedir=$ac_optarg ;;
1142
1143   -site | --site | --sit)
1144     ac_prev=site ;;
1145   -site=* | --site=* | --sit=*)
1146     site=$ac_optarg ;;
1147
1148   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149     ac_prev=srcdir ;;
1150   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1151     srcdir=$ac_optarg ;;
1152
1153   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154   | --syscon | --sysco | --sysc | --sys | --sy)
1155     ac_prev=sysconfdir ;;
1156   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1158     sysconfdir=$ac_optarg ;;
1159
1160   -target | --target | --targe | --targ | --tar | --ta | --t)
1161     ac_prev=target_alias ;;
1162   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1163     target_alias=$ac_optarg ;;
1164
1165   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166     verbose=yes ;;
1167
1168   -version | --version | --versio | --versi | --vers | -V)
1169     ac_init_version=: ;;
1170
1171   -with-* | --with-*)
1172     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1173     # Reject names that are not valid shell variable names.
1174     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175       as_fn_error $? "invalid package name: $ac_useropt"
1176     ac_useropt_orig=$ac_useropt
1177     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178     case $ac_user_opts in
1179       *"
1180 "with_$ac_useropt"
1181 "*) ;;
1182       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183          ac_unrecognized_sep=', ';;
1184     esac
1185     eval with_$ac_useropt=\$ac_optarg ;;
1186
1187   -without-* | --without-*)
1188     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1189     # Reject names that are not valid shell variable names.
1190     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1191       as_fn_error $? "invalid package name: $ac_useropt"
1192     ac_useropt_orig=$ac_useropt
1193     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194     case $ac_user_opts in
1195       *"
1196 "with_$ac_useropt"
1197 "*) ;;
1198       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199          ac_unrecognized_sep=', ';;
1200     esac
1201     eval with_$ac_useropt=no ;;
1202
1203   --x)
1204     # Obsolete; use --with-x.
1205     with_x=yes ;;
1206
1207   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208   | --x-incl | --x-inc | --x-in | --x-i)
1209     ac_prev=x_includes ;;
1210   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1212     x_includes=$ac_optarg ;;
1213
1214   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216     ac_prev=x_libraries ;;
1217   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1219     x_libraries=$ac_optarg ;;
1220
1221   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222 Try \`$0 --help' for more information"
1223     ;;
1224
1225   *=*)
1226     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227     # Reject names that are not valid shell variable names.
1228     case $ac_envvar in #(
1229       '' | [0-9]* | *[!_$as_cr_alnum]* )
1230       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1231     esac
1232     eval $ac_envvar=\$ac_optarg
1233     export $ac_envvar ;;
1234
1235   *)
1236     # FIXME: should be removed in autoconf 3.0.
1237     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1238     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1240     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1241     ;;
1242
1243   esac
1244 done
1245
1246 if test -n "$ac_prev"; then
1247   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1248   as_fn_error $? "missing argument to $ac_option"
1249 fi
1250
1251 if test -n "$ac_unrecognized_opts"; then
1252   case $enable_option_checking in
1253     no) ;;
1254     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1255     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256   esac
1257 fi
1258
1259 # Check all directory arguments for consistency.
1260 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261                 datadir sysconfdir sharedstatedir localstatedir includedir \
1262                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263                 libdir localedir mandir
1264 do
1265   eval ac_val=\$$ac_var
1266   # Remove trailing slashes.
1267   case $ac_val in
1268     */ )
1269       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270       eval $ac_var=\$ac_val;;
1271   esac
1272   # Be sure to have absolute directory names.
1273   case $ac_val in
1274     [\\/$]* | ?:[\\/]* )  continue;;
1275     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1276   esac
1277   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1278 done
1279
1280 # There might be people who depend on the old broken behavior: `$host'
1281 # used to hold the argument of --host etc.
1282 # FIXME: To remove some day.
1283 build=$build_alias
1284 host=$host_alias
1285 target=$target_alias
1286
1287 # FIXME: To remove some day.
1288 if test "x$host_alias" != x; then
1289   if test "x$build_alias" = x; then
1290     cross_compiling=maybe
1291     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292     If a cross compiler is detected then cross compile mode will be used" >&2
1293   elif test "x$build_alias" != "x$host_alias"; then
1294     cross_compiling=yes
1295   fi
1296 fi
1297
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301 test "$silent" = yes && exec 6>/dev/null
1302
1303
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307   as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309   as_fn_error $? "pwd does not report name of working directory"
1310
1311
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314   ac_srcdir_defaulted=yes
1315   # Try the directory containing this script, then the parent directory.
1316   ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318          X"$as_myself" : 'X\(//\)[^/]' \| \
1319          X"$as_myself" : 'X\(//\)$' \| \
1320          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323             s//\1/
1324             q
1325           }
1326           /^X\(\/\/\)[^/].*/{
1327             s//\1/
1328             q
1329           }
1330           /^X\(\/\/\)$/{
1331             s//\1/
1332             q
1333           }
1334           /^X\(\/\).*/{
1335             s//\1/
1336             q
1337           }
1338           s/.*/./; q'`
1339   srcdir=$ac_confdir
1340   if test ! -r "$srcdir/$ac_unique_file"; then
1341     srcdir=..
1342   fi
1343 else
1344   ac_srcdir_defaulted=no
1345 fi
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1349 fi
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353         pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356   srcdir=.
1357 fi
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366   eval ac_env_${ac_var}_value=\$${ac_var}
1367   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1370
1371 #
1372 # Report the --help message.
1373 #
1374 if test "$ac_init_help" = "long"; then
1375   # Omit some internal or obsolete options to make the list less imposing.
1376   # This message is too long to be a string in the A/UX 3.1 sh.
1377   cat <<_ACEOF
1378 \`configure' configures libffi 3.0.11-rc2 to adapt to many kinds of systems.
1379
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE.  See below for descriptions of some of the useful variables.
1384
1385 Defaults for the options are specified in brackets.
1386
1387 Configuration:
1388   -h, --help              display this help and exit
1389       --help=short        display options specific to this package
1390       --help=recursive    display the short help of all the included packages
1391   -V, --version           display version information and exit
1392   -q, --quiet, --silent   do not print \`checking ...' messages
1393       --cache-file=FILE   cache test results in FILE [disabled]
1394   -C, --config-cache      alias for \`--cache-file=config.cache'
1395   -n, --no-create         do not create output files
1396       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1397
1398 Installation directories:
1399   --prefix=PREFIX         install architecture-independent files in PREFIX
1400                           [$ac_default_prefix]
1401   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1402                           [PREFIX]
1403
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1408
1409 For better control, use the options below.
1410
1411 Fine tuning of the installation directories:
1412   --bindir=DIR            user executables [EPREFIX/bin]
1413   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1414   --libexecdir=DIR        program executables [EPREFIX/libexec]
1415   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1416   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1417   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1418   --libdir=DIR            object code libraries [EPREFIX/lib]
1419   --includedir=DIR        C header files [PREFIX/include]
1420   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1421   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1422   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1423   --infodir=DIR           info documentation [DATAROOTDIR/info]
1424   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1425   --mandir=DIR            man documentation [DATAROOTDIR/man]
1426   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1427   --htmldir=DIR           html documentation [DOCDIR]
1428   --dvidir=DIR            dvi documentation [DOCDIR]
1429   --pdfdir=DIR            pdf documentation [DOCDIR]
1430   --psdir=DIR             ps documentation [DOCDIR]
1431 _ACEOF
1432
1433   cat <<\_ACEOF
1434
1435 Program names:
1436   --program-prefix=PREFIX            prepend PREFIX to installed program names
1437   --program-suffix=SUFFIX            append SUFFIX to installed program names
1438   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1439
1440 System types:
1441   --build=BUILD     configure for building on BUILD [guessed]
1442   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1443   --target=TARGET   configure for building compilers for TARGET [HOST]
1444 _ACEOF
1445 fi
1446
1447 if test -n "$ac_init_help"; then
1448   case $ac_init_help in
1449      short | recursive ) echo "Configuration of libffi 3.0.11-rc2:";;
1450    esac
1451   cat <<\_ACEOF
1452
1453 Optional Features:
1454   --disable-option-checking  ignore unrecognized --enable/--with options
1455   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1456   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1457   --disable-builddir      disable automatic build in subdir of sources
1458
1459   --disable-dependency-tracking  speeds up one-time build
1460   --enable-dependency-tracking   do not reject slow dependency extractors
1461   --enable-shared[=PKGS]  build shared libraries [default=yes]
1462   --enable-static[=PKGS]  build static libraries [default=yes]
1463   --enable-fast-install[=PKGS]
1464                           optimize for fast installation [default=yes]
1465   --disable-libtool-lock  avoid locking (might break parallel builds)
1466   --enable-portable-binary
1467                           disable compiler optimizations that would produce
1468                           unportable binaries
1469   --enable-maintainer-mode  enable make rules and dependencies not useful
1470                           (and sometimes confusing) to the casual installer
1471   --enable-debug          debugging mode
1472   --disable-structs       omit code for struct support
1473   --disable-raw-api       make the raw api unavailable
1474   --enable-purify-safety  purify-safe mode
1475
1476 Optional Packages:
1477   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1478   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1479   --with-pic              try to use only PIC/non-PIC objects [default=use
1480                           both]
1481   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1482   --with-sysroot=DIR Search for dependent libraries within DIR
1483                         (or the compiler's sysroot if not specified).
1484   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1485                           instead of guessing
1486
1487 Some influential environment variables:
1488   CC          C compiler command
1489   CFLAGS      C compiler flags
1490   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1491               nonstandard directory <lib dir>
1492   LIBS        libraries to pass to the linker, e.g. -l<library>
1493   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1494               you have headers in a nonstandard directory <include dir>
1495   CCAS        assembler compiler command (defaults to CC)
1496   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1497   CPP         C preprocessor
1498
1499 Use these variables to override the choices made by `configure' or to help
1500 it to find libraries and programs with nonstandard names/locations.
1501
1502 Report bugs to <http://github.com/atgreen/libffi/issues>.
1503 _ACEOF
1504 ac_status=$?
1505 fi
1506
1507 if test "$ac_init_help" = "recursive"; then
1508   # If there are subdirs, report their specific --help.
1509   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1510     test -d "$ac_dir" ||
1511       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1512       continue
1513     ac_builddir=.
1514
1515 case "$ac_dir" in
1516 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *)
1518   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1519   # A ".." for each directory in $ac_dir_suffix.
1520   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1521   case $ac_top_builddir_sub in
1522   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1524   esac ;;
1525 esac
1526 ac_abs_top_builddir=$ac_pwd
1527 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1528 # for backward compatibility:
1529 ac_top_builddir=$ac_top_build_prefix
1530
1531 case $srcdir in
1532   .)  # We are building in place.
1533     ac_srcdir=.
1534     ac_top_srcdir=$ac_top_builddir_sub
1535     ac_abs_top_srcdir=$ac_pwd ;;
1536   [\\/]* | ?:[\\/]* )  # Absolute name.
1537     ac_srcdir=$srcdir$ac_dir_suffix;
1538     ac_top_srcdir=$srcdir
1539     ac_abs_top_srcdir=$srcdir ;;
1540   *) # Relative name.
1541     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1542     ac_top_srcdir=$ac_top_build_prefix$srcdir
1543     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1544 esac
1545 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1546
1547     cd "$ac_dir" || { ac_status=$?; continue; }
1548     # Check for guested configure.
1549     if test -f "$ac_srcdir/configure.gnu"; then
1550       echo &&
1551       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1552     elif test -f "$ac_srcdir/configure"; then
1553       echo &&
1554       $SHELL "$ac_srcdir/configure" --help=recursive
1555     else
1556       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1557     fi || ac_status=$?
1558     cd "$ac_pwd" || { ac_status=$?; break; }
1559   done
1560 fi
1561
1562 test -n "$ac_init_help" && exit $ac_status
1563 if $ac_init_version; then
1564   cat <<\_ACEOF
1565 libffi configure 3.0.11-rc2
1566 generated by GNU Autoconf 2.68
1567
1568 Copyright (C) 2010 Free Software Foundation, Inc.
1569 This configure script is free software; the Free Software Foundation
1570 gives unlimited permission to copy, distribute and modify it.
1571 _ACEOF
1572   exit
1573 fi
1574
1575 ## ------------------------ ##
1576 ## Autoconf initialization. ##
1577 ## ------------------------ ##
1578
1579 # ac_fn_c_try_compile LINENO
1580 # --------------------------
1581 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1582 ac_fn_c_try_compile ()
1583 {
1584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1585   rm -f conftest.$ac_objext
1586   if { { ac_try="$ac_compile"
1587 case "(($ac_try" in
1588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1589   *) ac_try_echo=$ac_try;;
1590 esac
1591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1592 $as_echo "$ac_try_echo"; } >&5
1593   (eval "$ac_compile") 2>conftest.err
1594   ac_status=$?
1595   if test -s conftest.err; then
1596     grep -v '^ *+' conftest.err >conftest.er1
1597     cat conftest.er1 >&5
1598     mv -f conftest.er1 conftest.err
1599   fi
1600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1601   test $ac_status = 0; } && {
1602          test -z "$ac_c_werror_flag" ||
1603          test ! -s conftest.err
1604        } && test -s conftest.$ac_objext; then :
1605   ac_retval=0
1606 else
1607   $as_echo "$as_me: failed program was:" >&5
1608 sed 's/^/| /' conftest.$ac_ext >&5
1609
1610         ac_retval=1
1611 fi
1612   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613   as_fn_set_status $ac_retval
1614
1615 } # ac_fn_c_try_compile
1616
1617 # ac_fn_c_try_link LINENO
1618 # -----------------------
1619 # Try to link conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_link ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext conftest$ac_exeext
1624   if { { ac_try="$ac_link"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_link") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest$ac_exeext && {
1643          test "$cross_compiling" = yes ||
1644          $as_test_x conftest$ac_exeext
1645        }; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651         ac_retval=1
1652 fi
1653   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1654   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1655   # interfere with the next link command; also delete a directory that is
1656   # left behind by Apple's compiler.  We do this before executing the actions.
1657   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1658   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659   as_fn_set_status $ac_retval
1660
1661 } # ac_fn_c_try_link
1662
1663 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1664 # -------------------------------------------------------
1665 # Tests whether HEADER exists and can be compiled using the include files in
1666 # INCLUDES, setting the cache variable VAR accordingly.
1667 ac_fn_c_check_header_compile ()
1668 {
1669   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \${$3+:} false; then :
1673   $as_echo_n "(cached) " >&6
1674 else
1675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h.  */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"; then :
1681   eval "$3=yes"
1682 else
1683   eval "$3=no"
1684 fi
1685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1686 fi
1687 eval ac_res=\$$3
1688                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1689 $as_echo "$ac_res" >&6; }
1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691
1692 } # ac_fn_c_check_header_compile
1693
1694 # ac_fn_c_try_cpp LINENO
1695 # ----------------------
1696 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1697 ac_fn_c_try_cpp ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   if { { ac_try="$ac_cpp conftest.$ac_ext"
1701 case "(($ac_try" in
1702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703   *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1708   ac_status=$?
1709   if test -s conftest.err; then
1710     grep -v '^ *+' conftest.err >conftest.er1
1711     cat conftest.er1 >&5
1712     mv -f conftest.er1 conftest.err
1713   fi
1714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715   test $ac_status = 0; } > conftest.i && {
1716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1717          test ! -s conftest.err
1718        }; then :
1719   ac_retval=0
1720 else
1721   $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724     ac_retval=1
1725 fi
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727   as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_cpp
1730
1731 # ac_fn_c_try_run LINENO
1732 # ----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1734 # that executables *can* be run.
1735 ac_fn_c_try_run ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_link") 2>&5
1746   ac_status=$?
1747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1749   { { case "(($ac_try" in
1750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751   *) ac_try_echo=$ac_try;;
1752 esac
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755   (eval "$ac_try") 2>&5
1756   ac_status=$?
1757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1758   test $ac_status = 0; }; }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: program exited with status $ac_status" >&5
1762        $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765        ac_retval=$ac_status
1766 fi
1767   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1768   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769   as_fn_set_status $ac_retval
1770
1771 } # ac_fn_c_try_run
1772
1773 # ac_fn_c_check_func LINENO FUNC VAR
1774 # ----------------------------------
1775 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1776 ac_fn_c_check_func ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \${$3+:} false; then :
1782   $as_echo_n "(cached) " >&6
1783 else
1784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h.  */
1786 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1787    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1788 #define $2 innocuous_$2
1789
1790 /* System header to define __stub macros and hopefully few prototypes,
1791     which can conflict with char $2 (); below.
1792     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1793     <limits.h> exists even on freestanding compilers.  */
1794
1795 #ifdef __STDC__
1796 # include <limits.h>
1797 #else
1798 # include <assert.h>
1799 #endif
1800
1801 #undef $2
1802
1803 /* Override any GCC internal prototype to avoid an error.
1804    Use char because int might match the return type of a GCC
1805    builtin and then its argument prototype would still apply.  */
1806 #ifdef __cplusplus
1807 extern "C"
1808 #endif
1809 char $2 ();
1810 /* The GNU C library defines this for functions which it implements
1811     to always fail with ENOSYS.  Some functions are actually named
1812     something starting with __ and the normal name is an alias.  */
1813 #if defined __stub_$2 || defined __stub___$2
1814 choke me
1815 #endif
1816
1817 int
1818 main ()
1819 {
1820 return $2 ();
1821   ;
1822   return 0;
1823 }
1824 _ACEOF
1825 if ac_fn_c_try_link "$LINENO"; then :
1826   eval "$3=yes"
1827 else
1828   eval "$3=no"
1829 fi
1830 rm -f core conftest.err conftest.$ac_objext \
1831     conftest$ac_exeext conftest.$ac_ext
1832 fi
1833 eval ac_res=\$$3
1834                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1835 $as_echo "$ac_res" >&6; }
1836   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837
1838 } # ac_fn_c_check_func
1839
1840 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1843 # the include files in INCLUDES and setting the cache variable VAR
1844 # accordingly.
1845 ac_fn_c_check_header_mongrel ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   if eval \${$3+:} false; then :
1849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852   $as_echo_n "(cached) " >&6
1853 fi
1854 eval ac_res=\$$3
1855                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856 $as_echo "$ac_res" >&6; }
1857 else
1858   # Is the header compilable?
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1860 $as_echo_n "checking $2 usability... " >&6; }
1861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1862 /* end confdefs.h.  */
1863 $4
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_compile "$LINENO"; then :
1867   ac_header_compiler=yes
1868 else
1869   ac_header_compiler=no
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1873 $as_echo "$ac_header_compiler" >&6; }
1874
1875 # Is the header present?
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1877 $as_echo_n "checking $2 presence... " >&6; }
1878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1879 /* end confdefs.h.  */
1880 #include <$2>
1881 _ACEOF
1882 if ac_fn_c_try_cpp "$LINENO"; then :
1883   ac_header_preproc=yes
1884 else
1885   ac_header_preproc=no
1886 fi
1887 rm -f conftest.err conftest.i conftest.$ac_ext
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1889 $as_echo "$ac_header_preproc" >&6; }
1890
1891 # So?  What about this header?
1892 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1893   yes:no: )
1894     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1895 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1896     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1897 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1898     ;;
1899   no:yes:* )
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1901 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1902     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1903 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1905 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1907 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1908     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1909 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1910 ( $as_echo "## ------------------------------------------------------ ##
1911 ## Report this to http://github.com/atgreen/libffi/issues ##
1912 ## ------------------------------------------------------ ##"
1913      ) | sed "s/^/$as_me: WARNING:     /" >&2
1914     ;;
1915 esac
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   eval "$3=\$ac_header_compiler"
1922 fi
1923 eval ac_res=\$$3
1924                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 fi
1927   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928
1929 } # ac_fn_c_check_header_mongrel
1930
1931 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1932 # -------------------------------------------
1933 # Tests whether TYPE exists after having included INCLUDES, setting cache
1934 # variable VAR accordingly.
1935 ac_fn_c_check_type ()
1936 {
1937   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939 $as_echo_n "checking for $2... " >&6; }
1940 if eval \${$3+:} false; then :
1941   $as_echo_n "(cached) " >&6
1942 else
1943   eval "$3=no"
1944   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h.  */
1946 $4
1947 int
1948 main ()
1949 {
1950 if (sizeof ($2))
1951          return 0;
1952   ;
1953   return 0;
1954 }
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h.  */
1959 $4
1960 int
1961 main ()
1962 {
1963 if (sizeof (($2)))
1964             return 0;
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970
1971 else
1972   eval "$3=yes"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 eval ac_res=\$$3
1979                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 $as_echo "$ac_res" >&6; }
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_c_check_type
1984
1985 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1986 # --------------------------------------------
1987 # Tries to find the compile-time value of EXPR in a program that includes
1988 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1989 # computed
1990 ac_fn_c_compute_int ()
1991 {
1992   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993   if test "$cross_compiling" = yes; then
1994     # Depending upon the size, compute the lo and hi bounds.
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h.  */
1997 $4
1998 int
1999 main ()
2000 {
2001 static int test_array [1 - 2 * !(($2) >= 0)];
2002 test_array [0] = 0
2003
2004   ;
2005   return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_compile "$LINENO"; then :
2009   ac_lo=0 ac_mid=0
2010   while :; do
2011     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012 /* end confdefs.h.  */
2013 $4
2014 int
2015 main ()
2016 {
2017 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2018 test_array [0] = 0
2019
2020   ;
2021   return 0;
2022 }
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   ac_hi=$ac_mid; break
2026 else
2027   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2028                         if test $ac_lo -le $ac_mid; then
2029                           ac_lo= ac_hi=
2030                           break
2031                         fi
2032                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035   done
2036 else
2037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h.  */
2039 $4
2040 int
2041 main ()
2042 {
2043 static int test_array [1 - 2 * !(($2) < 0)];
2044 test_array [0] = 0
2045
2046   ;
2047   return 0;
2048 }
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051   ac_hi=-1 ac_mid=-1
2052   while :; do
2053     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h.  */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2060 test_array [0] = 0
2061
2062   ;
2063   return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_compile "$LINENO"; then :
2067   ac_lo=$ac_mid; break
2068 else
2069   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2070                         if test $ac_mid -le $ac_hi; then
2071                           ac_lo= ac_hi=
2072                           break
2073                         fi
2074                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2075 fi
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2077   done
2078 else
2079   ac_lo= ac_hi=
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 # Binary search between lo and hi bounds.
2085 while test "x$ac_lo" != "x$ac_hi"; do
2086   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 $4
2090 int
2091 main ()
2092 {
2093 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2094 test_array [0] = 0
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_hi=$ac_mid
2102 else
2103   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 done
2107 case $ac_lo in #((
2108 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2109 '') ac_retval=1 ;;
2110 esac
2111   else
2112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 $4
2115 static long int longval () { return $2; }
2116 static unsigned long int ulongval () { return $2; }
2117 #include <stdio.h>
2118 #include <stdlib.h>
2119 int
2120 main ()
2121 {
2122
2123   FILE *f = fopen ("conftest.val", "w");
2124   if (! f)
2125     return 1;
2126   if (($2) < 0)
2127     {
2128       long int i = longval ();
2129       if (i != ($2))
2130         return 1;
2131       fprintf (f, "%ld", i);
2132     }
2133   else
2134     {
2135       unsigned long int i = ulongval ();
2136       if (i != ($2))
2137         return 1;
2138       fprintf (f, "%lu", i);
2139     }
2140   /* Do not output a trailing newline, as this causes \r\n confusion
2141      on some platforms.  */
2142   return ferror (f) || fclose (f) != 0;
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 if ac_fn_c_try_run "$LINENO"; then :
2149   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2150 else
2151   ac_retval=1
2152 fi
2153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2154   conftest.$ac_objext conftest.beam conftest.$ac_ext
2155 rm -f conftest.val
2156
2157   fi
2158   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159   as_fn_set_status $ac_retval
2160
2161 } # ac_fn_c_compute_int
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2165
2166 It was created by libffi $as_me 3.0.11-rc2, which was
2167 generated by GNU Autoconf 2.68.  Invocation command line was
2168
2169   $ $0 $@
2170
2171 _ACEOF
2172 exec 5>>config.log
2173 {
2174 cat <<_ASUNAME
2175 ## --------- ##
2176 ## Platform. ##
2177 ## --------- ##
2178
2179 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2187
2188 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2189 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2190 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2192 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2193 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2194 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2195
2196 _ASUNAME
2197
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201   IFS=$as_save_IFS
2202   test -z "$as_dir" && as_dir=.
2203     $as_echo "PATH: $as_dir"
2204   done
2205 IFS=$as_save_IFS
2206
2207 } >&5
2208
2209 cat >&5 <<_ACEOF
2210
2211
2212 ## ----------- ##
2213 ## Core tests. ##
2214 ## ----------- ##
2215
2216 _ACEOF
2217
2218
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_configure_args=
2225 ac_configure_args0=
2226 ac_configure_args1=
2227 ac_must_keep_next=false
2228 for ac_pass in 1 2
2229 do
2230   for ac_arg
2231   do
2232     case $ac_arg in
2233     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235     | -silent | --silent | --silen | --sile | --sil)
2236       continue ;;
2237     *\'*)
2238       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239     esac
2240     case $ac_pass in
2241     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2242     2)
2243       as_fn_append ac_configure_args1 " '$ac_arg'"
2244       if test $ac_must_keep_next = true; then
2245         ac_must_keep_next=false # Got value, back to normal.
2246       else
2247         case $ac_arg in
2248           *=* | --config-cache | -C | -disable-* | --disable-* \
2249           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251           | -with-* | --with-* | -without-* | --without-* | --x)
2252             case "$ac_configure_args0 " in
2253               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254             esac
2255             ;;
2256           -* ) ac_must_keep_next=true ;;
2257         esac
2258       fi
2259       as_fn_append ac_configure_args " '$ac_arg'"
2260       ;;
2261     esac
2262   done
2263 done
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2266
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log.  We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273   # Save into config.log some information that might help in debugging.
2274   {
2275     echo
2276
2277     $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2280     echo
2281     # The following way of writing the cache mishandles newlines in values,
2282 (
2283   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2284     eval ac_val=\$$ac_var
2285     case $ac_val in #(
2286     *${as_nl}*)
2287       case $ac_var in #(
2288       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290       esac
2291       case $ac_var in #(
2292       _ | IFS | as_nl) ;; #(
2293       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294       *) { eval $ac_var=; unset $ac_var;} ;;
2295       esac ;;
2296     esac
2297   done
2298   (set) 2>&1 |
2299     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2300     *${as_nl}ac_space=\ *)
2301       sed -n \
2302         "s/'\''/'\''\\\\'\'''\''/g;
2303           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304       ;; #(
2305     *)
2306       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2307       ;;
2308     esac |
2309     sort
2310 )
2311     echo
2312
2313     $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2316     echo
2317     for ac_var in $ac_subst_vars
2318     do
2319       eval ac_val=\$$ac_var
2320       case $ac_val in
2321       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322       esac
2323       $as_echo "$ac_var='\''$ac_val'\''"
2324     done | sort
2325     echo
2326
2327     if test -n "$ac_subst_files"; then
2328       $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2331       echo
2332       for ac_var in $ac_subst_files
2333       do
2334         eval ac_val=\$$ac_var
2335         case $ac_val in
2336         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2337         esac
2338         $as_echo "$ac_var='\''$ac_val'\''"
2339       done | sort
2340       echo
2341     fi
2342
2343     if test -s confdefs.h; then
2344       $as_echo "## ----------- ##
2345 ## confdefs.h. ##
2346 ## ----------- ##"
2347       echo
2348       cat confdefs.h
2349       echo
2350     fi
2351     test "$ac_signal" != 0 &&
2352       $as_echo "$as_me: caught signal $ac_signal"
2353     $as_echo "$as_me: exit $exit_status"
2354   } >&5
2355   rm -f core *.core core.conftest.* &&
2356     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357     exit $exit_status
2358 ' 0
2359 for ac_signal in 1 2 13 15; do
2360   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 done
2362 ac_signal=0
2363
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2366
2367 $as_echo "/* confdefs.h */" > confdefs.h
2368
2369 # Predefined preprocessor variables.
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 _ACEOF
2374
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 _ACEOF
2378
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 _ACEOF
2382
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 _ACEOF
2386
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 _ACEOF
2390
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2393 _ACEOF
2394
2395
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2398 ac_site_file1=NONE
2399 ac_site_file2=NONE
2400 if test -n "$CONFIG_SITE"; then
2401   # We do not want a PATH search for config.site.
2402   case $CONFIG_SITE in #((
2403     -*)  ac_site_file1=./$CONFIG_SITE;;
2404     */*) ac_site_file1=$CONFIG_SITE;;
2405     *)   ac_site_file1=./$CONFIG_SITE;;
2406   esac
2407 elif test "x$prefix" != xNONE; then
2408   ac_site_file1=$prefix/share/config.site
2409   ac_site_file2=$prefix/etc/config.site
2410 else
2411   ac_site_file1=$ac_default_prefix/share/config.site
2412   ac_site_file2=$ac_default_prefix/etc/config.site
2413 fi
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415 do
2416   test "x$ac_site_file" = xNONE && continue
2417   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420     sed 's/^/| /' "$ac_site_file" >&5
2421     . "$ac_site_file" \
2422       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site script $ac_site_file
2425 See \`config.log' for more details" "$LINENO" 5; }
2426   fi
2427 done
2428
2429 if test -r "$cache_file"; then
2430   # Some versions of bash will fail to source /dev/null (special files
2431   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2432   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2435     case $cache_file in
2436       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437       *)                      . "./$cache_file";;
2438     esac
2439   fi
2440 else
2441   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443   >$cache_file
2444 fi
2445
2446 # Check that the precious variables saved in the cache have kept the same
2447 # value.
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451   eval ac_new_set=\$ac_env_${ac_var}_set
2452   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453   eval ac_new_val=\$ac_env_${ac_var}_value
2454   case $ac_old_set,$ac_new_set in
2455     set,)
2456       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2457 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458       ac_cache_corrupted=: ;;
2459     ,set)
2460       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2461 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2462       ac_cache_corrupted=: ;;
2463     ,);;
2464     *)
2465       if test "x$ac_old_val" != "x$ac_new_val"; then
2466         # differences in whitespace do not lead to failure.
2467         ac_old_val_w=`echo x $ac_old_val`
2468         ac_new_val_w=`echo x $ac_new_val`
2469         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2472           ac_cache_corrupted=:
2473         else
2474           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476           eval $ac_var=\$ac_old_val
2477         fi
2478         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2479 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2480         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2482       fi;;
2483   esac
2484   # Pass precious variables to config.status.
2485   if test "$ac_new_set" = set; then
2486     case $ac_new_val in
2487     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2488     *) ac_arg=$ac_var=$ac_new_val ;;
2489     esac
2490     case " $ac_configure_args " in
2491       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2492       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493     esac
2494   fi
2495 done
2496 if $ac_cache_corrupted; then
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502 fi
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2506
2507 ac_ext=c
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512
2513
2514 ac_config_headers="$ac_config_headers fficonfig.h"
2515
2516
2517 ac_aux_dir=
2518 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2519   if test -f "$ac_dir/install-sh"; then
2520     ac_aux_dir=$ac_dir
2521     ac_install_sh="$ac_aux_dir/install-sh -c"
2522     break
2523   elif test -f "$ac_dir/install.sh"; then
2524     ac_aux_dir=$ac_dir
2525     ac_install_sh="$ac_aux_dir/install.sh -c"
2526     break
2527   elif test -f "$ac_dir/shtool"; then
2528     ac_aux_dir=$ac_dir
2529     ac_install_sh="$ac_aux_dir/shtool install -c"
2530     break
2531   fi
2532 done
2533 if test -z "$ac_aux_dir"; then
2534   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2535 fi
2536
2537 # These three variables are undocumented and unsupported,
2538 # and are intended to be withdrawn in a future Autoconf release.
2539 # They can cause serious problems if a builder's source tree is in a directory
2540 # whose full name contains unusual characters.
2541 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2542 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2543 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2544
2545
2546 # Make sure we can run config.sub.
2547 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2548   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2549
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2551 $as_echo_n "checking build system type... " >&6; }
2552 if ${ac_cv_build+:} false; then :
2553   $as_echo_n "(cached) " >&6
2554 else
2555   ac_build_alias=$build_alias
2556 test "x$ac_build_alias" = x &&
2557   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2558 test "x$ac_build_alias" = x &&
2559   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2560 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2561   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2562
2563 fi
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2565 $as_echo "$ac_cv_build" >&6; }
2566 case $ac_cv_build in
2567 *-*-*) ;;
2568 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2569 esac
2570 build=$ac_cv_build
2571 ac_save_IFS=$IFS; IFS='-'
2572 set x $ac_cv_build
2573 shift
2574 build_cpu=$1
2575 build_vendor=$2
2576 shift; shift
2577 # Remember, the first character of IFS is used to create $*,
2578 # except with old shells:
2579 build_os=$*
2580 IFS=$ac_save_IFS
2581 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2582
2583
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2585 $as_echo_n "checking host system type... " >&6; }
2586 if ${ac_cv_host+:} false; then :
2587   $as_echo_n "(cached) " >&6
2588 else
2589   if test "x$host_alias" = x; then
2590   ac_cv_host=$ac_cv_build
2591 else
2592   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2593     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2594 fi
2595
2596 fi
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2598 $as_echo "$ac_cv_host" >&6; }
2599 case $ac_cv_host in
2600 *-*-*) ;;
2601 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2602 esac
2603 host=$ac_cv_host
2604 ac_save_IFS=$IFS; IFS='-'
2605 set x $ac_cv_host
2606 shift
2607 host_cpu=$1
2608 host_vendor=$2
2609 shift; shift
2610 # Remember, the first character of IFS is used to create $*,
2611 # except with old shells:
2612 host_os=$*
2613 IFS=$ac_save_IFS
2614 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2615
2616
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2618 $as_echo_n "checking target system type... " >&6; }
2619 if ${ac_cv_target+:} false; then :
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test "x$target_alias" = x; then
2623   ac_cv_target=$ac_cv_host
2624 else
2625   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2626     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2627 fi
2628
2629 fi
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2631 $as_echo "$ac_cv_target" >&6; }
2632 case $ac_cv_target in
2633 *-*-*) ;;
2634 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2635 esac
2636 target=$ac_cv_target
2637 ac_save_IFS=$IFS; IFS='-'
2638 set x $ac_cv_target
2639 shift
2640 target_cpu=$1
2641 target_vendor=$2
2642 shift; shift
2643 # Remember, the first character of IFS is used to create $*,
2644 # except with old shells:
2645 target_os=$*
2646 IFS=$ac_save_IFS
2647 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2648
2649
2650 # The aliases save the names the user supplied, while $host etc.
2651 # will get canonicalized.
2652 test -n "$target_alias" &&
2653   test "$program_prefix$program_suffix$program_transform_name" = \
2654     NONENONEs,x,x, &&
2655   program_prefix=${target_alias}-
2656
2657 target_alias=${target_alias-$host_alias}
2658
2659 . ${srcdir}/configure.host
2660
2661
2662    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2663    if test "${ac_configure_args+set}" != "set" ; then
2664       ac_configure_args=
2665       for ac_arg in ${1+"$@"}; do
2666          ac_configure_args="$ac_configure_args '$ac_arg'"
2667       done
2668    fi
2669
2670 # expand $ac_aux_dir to an absolute path
2671 am_aux_dir=`cd $ac_aux_dir && pwd`
2672
2673
2674 ax_enable_builddir="."
2675 # Check whether --enable-builddir was given.
2676 if test "${enable_builddir+set}" = set; then :
2677   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2678 else
2679   ax_enable_builddir="auto"
2680 fi
2681
2682 if test ".$ac_srcdir_defaulted" != ".no" ; then
2683 if test ".$srcdir" = ".." ; then
2684   if test -f config.status ; then
2685     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2686 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2687   else
2688     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2689     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2690     test ".$TARGET" = "." && TARGET="$target"
2691     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2692     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2693       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2694       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2695       cd $ax_enable_builddir
2696       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2697         rm conftest.tmp
2698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2699 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2700       else
2701         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2702       fi
2703       srcdir=`echo "$ax_enable_builddir" |
2704               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2705       # going to restart from subdirectory location
2706       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2707       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2708       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2709       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2711 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2712       case "$0" in # restart
2713        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2714        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2715       esac ; exit $?
2716     fi
2717   fi
2718 fi fi
2719 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2720 # Extract the first word of "gsed sed", so it can be a program name with args.
2721 set dummy gsed sed; ac_word=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2725   $as_echo_n "(cached) " >&6
2726 else
2727   case $ax_enable_builddir_sed in
2728   [\\/]* | ?:[\\/]*)
2729   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2730   ;;
2731   *)
2732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2733 for as_dir in $PATH
2734 do
2735   IFS=$as_save_IFS
2736   test -z "$as_dir" && as_dir=.
2737     for ac_exec_ext in '' $ac_executable_extensions; do
2738   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2739     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2740     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741     break 2
2742   fi
2743 done
2744   done
2745 IFS=$as_save_IFS
2746
2747   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2748   ;;
2749 esac
2750 fi
2751 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2752 if test -n "$ax_enable_builddir_sed"; then
2753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2754 $as_echo "$ax_enable_builddir_sed" >&6; }
2755 else
2756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2758 fi
2759
2760
2761 ax_enable_builddir_auxdir="$am_aux_dir"
2762 ac_config_commands="$ac_config_commands buildir"
2763
2764
2765 am__api_version='1.11'
2766
2767 # Find a good install program.  We prefer a C program (faster),
2768 # so one script is as good as another.  But avoid the broken or
2769 # incompatible versions:
2770 # SysV /etc/install, /usr/sbin/install
2771 # SunOS /usr/etc/install
2772 # IRIX /sbin/install
2773 # AIX /bin/install
2774 # AmigaOS /C/install, which installs bootblocks on floppy discs
2775 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2776 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2777 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2778 # OS/2's system install, which has a completely different semantic
2779 # ./install, which can be erroneously created by make from ./install.sh.
2780 # Reject install programs that cannot install multiple files.
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2782 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2783 if test -z "$INSTALL"; then
2784 if ${ac_cv_path_install+:} false; then :
2785   $as_echo_n "(cached) " >&6
2786 else
2787   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788 for as_dir in $PATH
2789 do
2790   IFS=$as_save_IFS
2791   test -z "$as_dir" && as_dir=.
2792     # Account for people who put trailing slashes in PATH elements.
2793 case $as_dir/ in #((
2794   ./ | .// | /[cC]/* | \
2795   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2796   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2797   /usr/ucb/* ) ;;
2798   *)
2799     # OSF1 and SCO ODT 3.0 have their own names for install.
2800     # Don't use installbsd from OSF since it installs stuff as root
2801     # by default.
2802     for ac_prog in ginstall scoinst install; do
2803       for ac_exec_ext in '' $ac_executable_extensions; do
2804         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2805           if test $ac_prog = install &&
2806             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2807             # AIX install.  It has an incompatible calling convention.
2808             :
2809           elif test $ac_prog = install &&
2810             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2811             # program-specific install script used by HP pwplus--don't use.
2812             :
2813           else
2814             rm -rf conftest.one conftest.two conftest.dir
2815             echo one > conftest.one
2816             echo two > conftest.two
2817             mkdir conftest.dir
2818             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2819               test -s conftest.one && test -s conftest.two &&
2820               test -s conftest.dir/conftest.one &&
2821               test -s conftest.dir/conftest.two
2822             then
2823               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2824               break 3
2825             fi
2826           fi
2827         fi
2828       done
2829     done
2830     ;;
2831 esac
2832
2833   done
2834 IFS=$as_save_IFS
2835
2836 rm -rf conftest.one conftest.two conftest.dir
2837
2838 fi
2839   if test "${ac_cv_path_install+set}" = set; then
2840     INSTALL=$ac_cv_path_install
2841   else
2842     # As a last resort, use the slow shell script.  Don't cache a
2843     # value for INSTALL within a source directory, because that will
2844     # break other packages using the cache if that directory is
2845     # removed, or if the value is a relative name.
2846     INSTALL=$ac_install_sh
2847   fi
2848 fi
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2850 $as_echo "$INSTALL" >&6; }
2851
2852 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2853 # It thinks the first close brace ends the variable substitution.
2854 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2855
2856 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2857
2858 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2859
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2861 $as_echo_n "checking whether build environment is sane... " >&6; }
2862 # Just in case
2863 sleep 1
2864 echo timestamp > conftest.file
2865 # Reject unsafe characters in $srcdir or the absolute working directory
2866 # name.  Accept space and tab only in the latter.
2867 am_lf='
2868 '
2869 case `pwd` in
2870   *[\\\"\#\$\&\'\`$am_lf]*)
2871     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2872 esac
2873 case $srcdir in
2874   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2875     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2876 esac
2877
2878 # Do `set' in a subshell so we don't clobber the current shell's
2879 # arguments.  Must try -L first in case configure is actually a
2880 # symlink; some systems play weird games with the mod time of symlinks
2881 # (eg FreeBSD returns the mod time of the symlink's containing
2882 # directory).
2883 if (
2884    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2885    if test "$*" = "X"; then
2886       # -L didn't work.
2887       set X `ls -t "$srcdir/configure" conftest.file`
2888    fi
2889    rm -f conftest.file
2890    if test "$*" != "X $srcdir/configure conftest.file" \
2891       && test "$*" != "X conftest.file $srcdir/configure"; then
2892
2893       # If neither matched, then we have a broken ls.  This can happen
2894       # if, for instance, CONFIG_SHELL is bash and it inherits a
2895       # broken ls alias from the environment.  This has actually
2896       # happened.  Such a system could not be considered "sane".
2897       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2898 alias in your environment" "$LINENO" 5
2899    fi
2900
2901    test "$2" = conftest.file
2902    )
2903 then
2904    # Ok.
2905    :
2906 else
2907    as_fn_error $? "newly created file is older than distributed files!
2908 Check your system clock" "$LINENO" 5
2909 fi
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2911 $as_echo "yes" >&6; }
2912 test "$program_prefix" != NONE &&
2913   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2914 # Use a double $ so make ignores it.
2915 test "$program_suffix" != NONE &&
2916   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2917 # Double any \ or $.
2918 # By default was `s,x,x', remove it if useless.
2919 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2920 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2921
2922 if test x"${MISSING+set}" != xset; then
2923   case $am_aux_dir in
2924   *\ * | *\     *)
2925     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2926   *)
2927     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2928   esac
2929 fi
2930 # Use eval to expand $SHELL
2931 if eval "$MISSING --run true"; then
2932   am_missing_run="$MISSING --run "
2933 else
2934   am_missing_run=
2935   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2936 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2937 fi
2938
2939 if test x"${install_sh}" != xset; then
2940   case $am_aux_dir in
2941   *\ * | *\     *)
2942     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2943   *)
2944     install_sh="\${SHELL} $am_aux_dir/install-sh"
2945   esac
2946 fi
2947
2948 # Installed binaries are usually stripped using `strip' when the user
2949 # run `make install-strip'.  However `strip' might not be the right
2950 # tool to use in cross-compilation environments, therefore Automake
2951 # will honor the `STRIP' environment variable to overrule this program.
2952 if test "$cross_compiling" != no; then
2953   if test -n "$ac_tool_prefix"; then
2954   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2955 set dummy ${ac_tool_prefix}strip; ac_word=$2
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957 $as_echo_n "checking for $ac_word... " >&6; }
2958 if ${ac_cv_prog_STRIP+:} false; then :
2959   $as_echo_n "(cached) " >&6
2960 else
2961   if test -n "$STRIP"; then
2962   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2966 do
2967   IFS=$as_save_IFS
2968   test -z "$as_dir" && as_dir=.
2969     for ac_exec_ext in '' $ac_executable_extensions; do
2970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973     break 2
2974   fi
2975 done
2976   done
2977 IFS=$as_save_IFS
2978
2979 fi
2980 fi
2981 STRIP=$ac_cv_prog_STRIP
2982 if test -n "$STRIP"; then
2983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2984 $as_echo "$STRIP" >&6; }
2985 else
2986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987 $as_echo "no" >&6; }
2988 fi
2989
2990
2991 fi
2992 if test -z "$ac_cv_prog_STRIP"; then
2993   ac_ct_STRIP=$STRIP
2994   # Extract the first word of "strip", so it can be a program name with args.
2995 set dummy strip; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2999   $as_echo_n "(cached) " >&6
3000 else
3001   if test -n "$ac_ct_STRIP"; then
3002   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009     for ac_exec_ext in '' $ac_executable_extensions; do
3010   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011     ac_cv_prog_ac_ct_STRIP="strip"
3012     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013     break 2
3014   fi
3015 done
3016   done
3017 IFS=$as_save_IFS
3018
3019 fi
3020 fi
3021 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3022 if test -n "$ac_ct_STRIP"; then
3023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3024 $as_echo "$ac_ct_STRIP" >&6; }
3025 else
3026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 fi
3029
3030   if test "x$ac_ct_STRIP" = x; then
3031     STRIP=":"
3032   else
3033     case $cross_compiling:$ac_tool_warned in
3034 yes:)
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3036 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3037 ac_tool_warned=yes ;;
3038 esac
3039     STRIP=$ac_ct_STRIP
3040   fi
3041 else
3042   STRIP="$ac_cv_prog_STRIP"
3043 fi
3044
3045 fi
3046 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3047
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3049 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3050 if test -z "$MKDIR_P"; then
3051   if ${ac_cv_path_mkdir+:} false; then :
3052   $as_echo_n "(cached) " >&6
3053 else
3054   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_prog in mkdir gmkdir; do
3060          for ac_exec_ext in '' $ac_executable_extensions; do
3061            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3062            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3063              'mkdir (GNU coreutils) '* | \
3064              'mkdir (coreutils) '* | \
3065              'mkdir (fileutils) '4.1*)
3066                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3067                break 3;;
3068            esac
3069          done
3070        done
3071   done
3072 IFS=$as_save_IFS
3073
3074 fi
3075
3076   test -d ./--version && rmdir ./--version
3077   if test "${ac_cv_path_mkdir+set}" = set; then
3078     MKDIR_P="$ac_cv_path_mkdir -p"
3079   else
3080     # As a last resort, use the slow shell script.  Don't cache a
3081     # value for MKDIR_P within a source directory, because that will
3082     # break other packages using the cache if that directory is
3083     # removed, or if the value is a relative name.
3084     MKDIR_P="$ac_install_sh -d"
3085   fi
3086 fi
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3088 $as_echo "$MKDIR_P" >&6; }
3089
3090 mkdir_p="$MKDIR_P"
3091 case $mkdir_p in
3092   [\\/$]* | ?:[\\/]*) ;;
3093   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3094 esac
3095
3096 for ac_prog in gawk mawk nawk awk
3097 do
3098   # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_AWK+:} false; then :
3103   $as_echo_n "(cached) " >&6
3104 else
3105   if test -n "$AWK"; then
3106   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_exec_ext in '' $ac_executable_extensions; do
3114   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115     ac_cv_prog_AWK="$ac_prog"
3116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117     break 2
3118   fi
3119 done
3120   done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 AWK=$ac_cv_prog_AWK
3126 if test -n "$AWK"; then
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3128 $as_echo "$AWK" >&6; }
3129 else
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135   test -n "$AWK" && break
3136 done
3137
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3139 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3140 set x ${MAKE-make}
3141 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3142 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3143   $as_echo_n "(cached) " >&6
3144 else
3145   cat >conftest.make <<\_ACEOF
3146 SHELL = /bin/sh
3147 all:
3148         @echo '@@@%%%=$(MAKE)=@@@%%%'
3149 _ACEOF
3150 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3151 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3152   *@@@%%%=?*=@@@%%%*)
3153     eval ac_cv_prog_make_${ac_make}_set=yes;;
3154   *)
3155     eval ac_cv_prog_make_${ac_make}_set=no;;
3156 esac
3157 rm -f conftest.make
3158 fi
3159 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3161 $as_echo "yes" >&6; }
3162   SET_MAKE=
3163 else
3164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165 $as_echo "no" >&6; }
3166   SET_MAKE="MAKE=${MAKE-make}"
3167 fi
3168
3169 rm -rf .tst 2>/dev/null
3170 mkdir .tst 2>/dev/null
3171 if test -d .tst; then
3172   am__leading_dot=.
3173 else
3174   am__leading_dot=_
3175 fi
3176 rmdir .tst 2>/dev/null
3177
3178 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3179   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3180   # is not polluted with repeated "-I."
3181   am__isrc=' -I$(srcdir)'
3182   # test to see if srcdir already configured
3183   if test -f $srcdir/config.status; then
3184     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3185   fi
3186 fi
3187
3188 # test whether we have cygpath
3189 if test -z "$CYGPATH_W"; then
3190   if (cygpath --version) >/dev/null 2>/dev/null; then
3191     CYGPATH_W='cygpath -w'
3192   else
3193     CYGPATH_W=echo
3194   fi
3195 fi
3196
3197
3198 # Define the identity of the package.
3199  PACKAGE='libffi'
3200  VERSION='3.0.11-rc2'
3201
3202
3203 cat >>confdefs.h <<_ACEOF
3204 #define PACKAGE "$PACKAGE"
3205 _ACEOF
3206
3207
3208 cat >>confdefs.h <<_ACEOF
3209 #define VERSION "$VERSION"
3210 _ACEOF
3211
3212 # Some tools Automake needs.
3213
3214 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3215
3216
3217 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3218
3219
3220 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3221
3222
3223 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3224
3225
3226 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3227
3228 # We need awk for the "check" target.  The system "awk" is bad on
3229 # some platforms.
3230 # Always define AMTAR for backward compatibility.
3231
3232 AMTAR=${AMTAR-"${am_missing_run}tar"}
3233
3234 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3235
3236
3237
3238
3239
3240
3241 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3242 # We must force CC to /not/ be precious variables; otherwise
3243 # the wrong, non-multilib-adjusted value will be used in multilibs.
3244 # As a side effect, we have to subst CFLAGS ourselves.
3245 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3246 # defaults of its own if none are provided.
3247
3248
3249
3250 save_CFLAGS=$CFLAGS
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 if test -n "$ac_tool_prefix"; then
3257   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262   $as_echo_n "(cached) " >&6
3263 else
3264   if test -n "$CC"; then
3265   ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270   IFS=$as_save_IFS
3271   test -z "$as_dir" && as_dir=.
3272     for ac_exec_ext in '' $ac_executable_extensions; do
3273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3274     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276     break 2
3277   fi
3278 done
3279   done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 if test -z "$ac_cv_prog_CC"; then
3296   ac_ct_CC=$CC
3297   # Extract the first word of "gcc", so it can be a program name with args.
3298 set dummy gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302   $as_echo_n "(cached) " >&6
3303 else
3304   if test -n "$ac_ct_CC"; then
3305   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310   IFS=$as_save_IFS
3311   test -z "$as_dir" && as_dir=.
3312     for ac_exec_ext in '' $ac_executable_extensions; do
3313   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3314     ac_cv_prog_ac_ct_CC="gcc"
3315     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316     break 2
3317   fi
3318 done
3319   done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333   if test "x$ac_ct_CC" = x; then
3334     CC=""
3335   else
3336     case $cross_compiling:$ac_tool_warned in
3337 yes:)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340 ac_tool_warned=yes ;;
3341 esac
3342     CC=$ac_ct_CC
3343   fi
3344 else
3345   CC="$ac_cv_prog_CC"
3346 fi
3347
3348 if test -z "$CC"; then
3349           if test -n "$ac_tool_prefix"; then
3350     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355   $as_echo_n "(cached) " >&6
3356 else
3357   if test -n "$CC"; then
3358   ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363   IFS=$as_save_IFS
3364   test -z "$as_dir" && as_dir=.
3365     for ac_exec_ext in '' $ac_executable_extensions; do
3366   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367     ac_cv_prog_CC="${ac_tool_prefix}cc"
3368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369     break 2
3370   fi
3371 done
3372   done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387   fi
3388 fi
3389 if test -z "$CC"; then
3390   # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395   $as_echo_n "(cached) " >&6
3396 else
3397   if test -n "$CC"; then
3398   ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400   ac_prog_rejected=no
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404   IFS=$as_save_IFS
3405   test -z "$as_dir" && as_dir=.
3406     for ac_exec_ext in '' $ac_executable_extensions; do
3407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409        ac_prog_rejected=yes
3410        continue
3411      fi
3412     ac_cv_prog_CC="cc"
3413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414     break 2
3415   fi
3416 done
3417   done
3418 IFS=$as_save_IFS
3419
3420 if test $ac_prog_rejected = yes; then
3421   # We found a bogon in the path, so make sure we never use it.
3422   set dummy $ac_cv_prog_CC
3423   shift
3424   if test $# != 0; then
3425     # We chose a different compiler from the bogus one.
3426     # However, it has the same basename, so the bogon will be chosen
3427     # first if we set CC to just the basename; use the full file name.
3428     shift
3429     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3430   fi
3431 fi
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 fi
3445 if test -z "$CC"; then
3446   if test -n "$ac_tool_prefix"; then
3447   for ac_prog in cl.exe
3448   do
3449     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_CC+:} false; then :
3454   $as_echo_n "(cached) " >&6
3455 else
3456   if test -n "$CC"; then
3457   ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     for ac_exec_ext in '' $ac_executable_extensions; do
3465   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486     test -n "$CC" && break
3487   done
3488 fi
3489 if test -z "$CC"; then
3490   ac_ct_CC=$CC
3491   for ac_prog in cl.exe
3492 do
3493   # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if test -n "$ac_ct_CC"; then
3501   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510     ac_cv_prog_ac_ct_CC="$ac_prog"
3511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515   done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3524 else
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530   test -n "$ac_ct_CC" && break
3531 done
3532
3533   if test "x$ac_ct_CC" = x; then
3534     CC=""
3535   else
3536     case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3541 esac
3542     CC=$ac_ct_CC
3543   fi
3544 fi
3545
3546 fi
3547
3548
3549 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details" "$LINENO" 5; }
3553
3554 # Provide some information about the compiler.
3555 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3556 set X $ac_compile
3557 ac_compiler=$2
3558 for ac_option in --version -v -V -qversion; do
3559   { { ac_try="$ac_compiler $ac_option >&5"
3560 case "(($ac_try" in
3561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562   *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3567   ac_status=$?
3568   if test -s conftest.err; then
3569     sed '10a\
3570 ... rest of stderr output deleted ...
3571          10q' conftest.err >conftest.er1
3572     cat conftest.er1 >&5
3573   fi
3574   rm -f conftest.er1 conftest.err
3575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576   test $ac_status = 0; }
3577 done
3578
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h.  */
3581
3582 int
3583 main ()
3584 {
3585
3586   ;
3587   return 0;
3588 }
3589 _ACEOF
3590 ac_clean_files_save=$ac_clean_files
3591 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3592 # Try to create an executable without -o first, disregard a.out.
3593 # It will help us diagnose broken compilers, and finding out an intuition
3594 # of exeext.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596 $as_echo_n "checking whether the C compiler works... " >&6; }
3597 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3598
3599 # The possible output files:
3600 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3601
3602 ac_rmfiles=
3603 for ac_file in $ac_files
3604 do
3605   case $ac_file in
3606     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3608   esac
3609 done
3610 rm -f $ac_rmfiles
3611
3612 if { { ac_try="$ac_link_default"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619   (eval "$ac_link_default") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }; then :
3623   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3624 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3625 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3626 # so that the user can short-circuit this test for compilers unknown to
3627 # Autoconf.
3628 for ac_file in $ac_files ''
3629 do
3630   test -f "$ac_file" || continue
3631   case $ac_file in
3632     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3633         ;;
3634     [ab].out )
3635         # We found the default executable, but exeext='' is most
3636         # certainly right.
3637         break;;
3638     *.* )
3639         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3640         then :; else
3641            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642         fi
3643         # We set ac_cv_exeext here because the later test for it is not
3644         # safe: cross compilers may not add the suffix if given an `-o'
3645         # argument, so we may need to know it at that point already.
3646         # Even if this section looks crufty: it has the advantage of
3647         # actually working.
3648         break;;
3649     * )
3650         break;;
3651   esac
3652 done
3653 test "$ac_cv_exeext" = no && ac_cv_exeext=
3654
3655 else
3656   ac_file=''
3657 fi
3658 if test -z "$ac_file"; then :
3659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error 77 "C compiler cannot create executables
3667 See \`config.log' for more details" "$LINENO" 5; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3677
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 # `rm'.
3697 for ac_file in conftest.exe conftest conftest.*; do
3698   test -f "$ac_file" || continue
3699   case $ac_file in
3700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702           break;;
3703     * ) break;;
3704   esac
3705 done
3706 else
3707   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 fi
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h.  */
3721 #include <stdio.h>
3722 int
3723 main ()
3724 {
3725 FILE *f = fopen ("conftest.out", "w");
3726  return ferror (f) || fclose (f) != 0;
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run.  If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738   { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745   (eval "$ac_link") 2>&5
3746   ac_status=$?
3747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748   test $ac_status = 0; }
3749   if { ac_try='./conftest$ac_cv_exeext'
3750   { { case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756   (eval "$ac_try") 2>&5
3757   ac_status=$?
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }; }; then
3760     cross_compiling=no
3761   else
3762     if test "$cross_compiling" = maybe; then
3763         cross_compiling=yes
3764     else
3765         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details" "$LINENO" 5; }
3770     fi
3771   fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3775
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if ${ac_cv_objext+:} false; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_compile") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; then :
3806   for ac_file in conftest.o conftest.obj conftest.*; do
3807   test -f "$ac_file" || continue;
3808   case $ac_file in
3809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811        break;;
3812   esac
3813 done
3814 else
3815   $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3828 ac_objext=$OBJEXT
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if ${ac_cv_c_compiler_gnu+:} false; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849   ac_compiler_gnu=yes
3850 else
3851   ac_compiler_gnu=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3860   GCC=yes
3861 else
3862   GCC=
3863 fi
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if ${ac_cv_prog_cc_g+:} false; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   ac_save_c_werror_flag=$ac_c_werror_flag
3872    ac_c_werror_flag=yes
3873    ac_cv_prog_cc_g=no
3874    CFLAGS="-g"
3875    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887   ac_cv_prog_cc_g=yes
3888 else
3889   CFLAGS=""
3890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 else
3904   ac_c_werror_flag=$ac_save_c_werror_flag
3905          CFLAGS="-g"
3906          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918   ac_cv_prog_cc_g=yes
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930   CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932   if test "$GCC" = yes; then
3933     CFLAGS="-g -O2"
3934   else
3935     CFLAGS="-g"
3936   fi
3937 else
3938   if test "$GCC" = yes; then
3939     CFLAGS="-O2"
3940   else
3941     CFLAGS=
3942   fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if ${ac_cv_prog_cc_c89+:} false; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   ac_cv_prog_cc_c89=no
3950 ac_save_CC=$CC
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3961      char **p;
3962      int i;
3963 {
3964   return p[i];
3965 }
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3967 {
3968   char *s;
3969   va_list v;
3970   va_start (v,p);
3971   s = g (p, va_arg (v,int));
3972   va_end (v);
3973   return s;
3974 }
3975
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3977    function prototypes and stuff, but not '\xHH' hex character constants.
3978    These don't provoke an error unfortunately, instead are silently treated
3979    as 'x'.  The following induces an error, until -std is added to get
3980    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3981    array size at least.  It's necessary to write '\x00'==0 to get something
3982    that's true only with -std.  */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986    inside strings and character constants.  */
3987 #define FOO(x) 'x'
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3994 int argc;
3995 char **argv;
3996 int
3997 main ()
3998 {
3999 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006 do
4007   CC="$ac_save_CC $ac_arg"
4008   if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_cv_prog_cc_c89=$ac_arg
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext
4012   test "x$ac_cv_prog_cc_c89" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC
4016
4017 fi
4018 # AC_CACHE_VAL
4019 case "x$ac_cv_prog_cc_c89" in
4020   x)
4021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4023   xno)
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4026   *)
4027     CC="$CC $ac_cv_prog_cc_c89"
4028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030 esac
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040 DEPDIR="${am__leading_dot}deps"
4041
4042 ac_config_commands="$ac_config_commands depfiles"
4043
4044
4045 am_make=${MAKE-make}
4046 cat > confinc << 'END'
4047 am__doit:
4048         @echo this is the am__doit target
4049 .PHONY: am__doit
4050 END
4051 # If we don't find an include directive, just comment out the code.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4053 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4054 am__include="#"
4055 am__quote=
4056 _am_result=none
4057 # First try GNU make style include.
4058 echo "include confinc" > confmf
4059 # Ignore all kinds of additional output from `make'.
4060 case `$am_make -s -f confmf 2> /dev/null` in #(
4061 *the\ am__doit\ target*)
4062   am__include=include
4063   am__quote=
4064   _am_result=GNU
4065   ;;
4066 esac
4067 # Now try BSD make style include.
4068 if test "$am__include" = "#"; then
4069    echo '.include "confinc"' > confmf
4070    case `$am_make -s -f confmf 2> /dev/null` in #(
4071    *the\ am__doit\ target*)
4072      am__include=.include
4073      am__quote="\""
4074      _am_result=BSD
4075      ;;
4076    esac
4077 fi
4078
4079
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4081 $as_echo "$_am_result" >&6; }
4082 rm -f confinc confmf
4083
4084 # Check whether --enable-dependency-tracking was given.
4085 if test "${enable_dependency_tracking+set}" = set; then :
4086   enableval=$enable_dependency_tracking;
4087 fi
4088
4089 if test "x$enable_dependency_tracking" != xno; then
4090   am_depcomp="$ac_aux_dir/depcomp"
4091   AMDEPBACKSLASH='\'
4092 fi
4093  if test "x$enable_dependency_tracking" != xno; then
4094   AMDEP_TRUE=
4095   AMDEP_FALSE='#'
4096 else
4097   AMDEP_TRUE='#'
4098   AMDEP_FALSE=
4099 fi
4100
4101
4102
4103 depcc="$CC"   am_compiler_list=
4104
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4106 $as_echo_n "checking dependency style of $depcc... " >&6; }
4107 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4108   $as_echo_n "(cached) " >&6
4109 else
4110   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4111   # We make a subdir and do the tests there.  Otherwise we can end up
4112   # making bogus files that we don't know about and never remove.  For
4113   # instance it was reported that on HP-UX the gcc test will end up
4114   # making a dummy file named `D' -- because `-MD' means `put the output
4115   # in D'.
4116   mkdir conftest.dir
4117   # Copy depcomp to subdir because otherwise we won't find it if we're
4118   # using a relative directory.
4119   cp "$am_depcomp" conftest.dir
4120   cd conftest.dir
4121   # We will build objects and dependencies in a subdirectory because
4122   # it helps to detect inapplicable dependency modes.  For instance
4123   # both Tru64's cc and ICC support -MD to output dependencies as a
4124   # side effect of compilation, but ICC will put the dependencies in
4125   # the current directory while Tru64 will put them in the object
4126   # directory.
4127   mkdir sub
4128
4129   am_cv_CC_dependencies_compiler_type=none
4130   if test "$am_compiler_list" = ""; then
4131      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4132   fi
4133   am__universal=false
4134   case " $depcc " in #(
4135      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4136      esac
4137
4138   for depmode in $am_compiler_list; do
4139     # Setup a source with many dependencies, because some compilers
4140     # like to wrap large dependency lists on column 80 (with \), and
4141     # we should not choose a depcomp mode which is confused by this.
4142     #
4143     # We need to recreate these files for each test, as the compiler may
4144     # overwrite some of them when testing with obscure command lines.
4145     # This happens at least with the AIX C compiler.
4146     : > sub/conftest.c
4147     for i in 1 2 3 4 5 6; do
4148       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4149       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4150       # Solaris 8's {/usr,}/bin/sh.
4151       touch sub/conftst$i.h
4152     done
4153     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4154
4155     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4156     # mode.  It turns out that the SunPro C++ compiler does not properly
4157     # handle `-M -o', and we need to detect this.  Also, some Intel
4158     # versions had trouble with output in subdirs
4159     am__obj=sub/conftest.${OBJEXT-o}
4160     am__minus_obj="-o $am__obj"
4161     case $depmode in
4162     gcc)
4163       # This depmode causes a compiler race in universal mode.
4164       test "$am__universal" = false || continue
4165       ;;
4166     nosideeffect)
4167       # after this tag, mechanisms are not by side-effect, so they'll
4168       # only be used when explicitly requested
4169       if test "x$enable_dependency_tracking" = xyes; then
4170         continue
4171       else
4172         break
4173       fi
4174       ;;
4175     msvisualcpp | msvcmsys)
4176       # This compiler won't grok `-c -o', but also, the minuso test has
4177       # not run yet.  These depmodes are late enough in the game, and
4178       # so weak that their functioning should not be impacted.
4179       am__obj=conftest.${OBJEXT-o}
4180       am__minus_obj=
4181       ;;
4182     none) break ;;
4183     esac
4184     if depmode=$depmode \
4185        source=sub/conftest.c object=$am__obj \
4186        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4187        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4188          >/dev/null 2>conftest.err &&
4189        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4190        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4191        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4192        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4193       # icc doesn't choke on unknown options, it will just issue warnings
4194       # or remarks (even with -Werror).  So we grep stderr for any message
4195       # that says an option was ignored or not supported.
4196       # When given -MP, icc 7.0 and 7.1 complain thusly:
4197       #   icc: Command line warning: ignoring option '-M'; no argument required
4198       # The diagnosis changed in icc 8.0:
4199       #   icc: Command line remark: option '-MP' not supported
4200       if (grep 'ignoring option' conftest.err ||
4201           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4202         am_cv_CC_dependencies_compiler_type=$depmode
4203         break
4204       fi
4205     fi
4206   done
4207
4208   cd ..
4209   rm -rf conftest.dir
4210 else
4211   am_cv_CC_dependencies_compiler_type=none
4212 fi
4213
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4216 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4217 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4218
4219  if
4220   test "x$enable_dependency_tracking" != xno \
4221   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4222   am__fastdepCC_TRUE=
4223   am__fastdepCC_FALSE='#'
4224 else
4225   am__fastdepCC_TRUE='#'
4226   am__fastdepCC_FALSE=
4227 fi
4228
4229
4230 CFLAGS=$save_CFLAGS
4231
4232
4233
4234
4235
4236 # By default we simply use the C compiler to build assembly code.
4237
4238 test "${CCAS+set}" = set || CCAS=$CC
4239 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4240
4241
4242
4243 depcc="$CCAS"   am_compiler_list=
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4246 $as_echo_n "checking dependency style of $depcc... " >&6; }
4247 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4251   # We make a subdir and do the tests there.  Otherwise we can end up
4252   # making bogus files that we don't know about and never remove.  For
4253   # instance it was reported that on HP-UX the gcc test will end up
4254   # making a dummy file named `D' -- because `-MD' means `put the output
4255   # in D'.
4256   mkdir conftest.dir
4257   # Copy depcomp to subdir because otherwise we won't find it if we're
4258   # using a relative directory.
4259   cp "$am_depcomp" conftest.dir
4260   cd conftest.dir
4261   # We will build objects and dependencies in a subdirectory because
4262   # it helps to detect inapplicable dependency modes.  For instance
4263   # both Tru64's cc and ICC support -MD to output dependencies as a
4264   # side effect of compilation, but ICC will put the dependencies in
4265   # the current directory while Tru64 will put them in the object
4266   # directory.
4267   mkdir sub
4268
4269   am_cv_CCAS_dependencies_compiler_type=none
4270   if test "$am_compiler_list" = ""; then
4271      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4272   fi
4273   am__universal=false
4274
4275
4276   for depmode in $am_compiler_list; do
4277     # Setup a source with many dependencies, because some compilers
4278     # like to wrap large dependency lists on column 80 (with \), and
4279     # we should not choose a depcomp mode which is confused by this.
4280     #
4281     # We need to recreate these files for each test, as the compiler may
4282     # overwrite some of them when testing with obscure command lines.
4283     # This happens at least with the AIX C compiler.
4284     : > sub/conftest.c
4285     for i in 1 2 3 4 5 6; do
4286       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4287       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4288       # Solaris 8's {/usr,}/bin/sh.
4289       touch sub/conftst$i.h
4290     done
4291     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4292
4293     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4294     # mode.  It turns out that the SunPro C++ compiler does not properly
4295     # handle `-M -o', and we need to detect this.  Also, some Intel
4296     # versions had trouble with output in subdirs
4297     am__obj=sub/conftest.${OBJEXT-o}
4298     am__minus_obj="-o $am__obj"
4299     case $depmode in
4300     gcc)
4301       # This depmode causes a compiler race in universal mode.
4302       test "$am__universal" = false || continue
4303       ;;
4304     nosideeffect)
4305       # after this tag, mechanisms are not by side-effect, so they'll
4306       # only be used when explicitly requested
4307       if test "x$enable_dependency_tracking" = xyes; then
4308         continue
4309       else
4310         break
4311       fi
4312       ;;
4313     msvisualcpp | msvcmsys)
4314       # This compiler won't grok `-c -o', but also, the minuso test has
4315       # not run yet.  These depmodes are late enough in the game, and
4316       # so weak that their functioning should not be impacted.
4317       am__obj=conftest.${OBJEXT-o}
4318       am__minus_obj=
4319       ;;
4320     none) break ;;
4321     esac
4322     if depmode=$depmode \
4323        source=sub/conftest.c object=$am__obj \
4324        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4325        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4326          >/dev/null 2>conftest.err &&
4327        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4328        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4329        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4330        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4331       # icc doesn't choke on unknown options, it will just issue warnings
4332       # or remarks (even with -Werror).  So we grep stderr for any message
4333       # that says an option was ignored or not supported.
4334       # When given -MP, icc 7.0 and 7.1 complain thusly:
4335       #   icc: Command line warning: ignoring option '-M'; no argument required
4336       # The diagnosis changed in icc 8.0:
4337       #   icc: Command line remark: option '-MP' not supported
4338       if (grep 'ignoring option' conftest.err ||
4339           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4340         am_cv_CCAS_dependencies_compiler_type=$depmode
4341         break
4342       fi
4343     fi
4344   done
4345
4346   cd ..
4347   rm -rf conftest.dir
4348 else
4349   am_cv_CCAS_dependencies_compiler_type=none
4350 fi
4351
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4354 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4355 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4356
4357  if
4358   test "x$enable_dependency_tracking" != xno \
4359   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4360   am__fastdepCCAS_TRUE=
4361   am__fastdepCCAS_FALSE='#'
4362 else
4363   am__fastdepCCAS_TRUE='#'
4364   am__fastdepCCAS_FALSE=
4365 fi
4366
4367
4368 if test "x$CC" != xcc; then
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4370 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4371 else
4372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4373 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4374 fi
4375 set dummy $CC; ac_cc=`$as_echo "$2" |
4376                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4377 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4378   $as_echo_n "(cached) " >&6
4379 else
4380   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h.  */
4382
4383 int
4384 main ()
4385 {
4386
4387   ;
4388   return 0;
4389 }
4390 _ACEOF
4391 # Make sure it works both with $CC and with simple cc.
4392 # We do the test twice because some compilers refuse to overwrite an
4393 # existing .o file with -o, though they will create one.
4394 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4395 rm -f conftest2.*
4396 if { { case "(($ac_try" in
4397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4398   *) ac_try_echo=$ac_try;;
4399 esac
4400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4401 $as_echo "$ac_try_echo"; } >&5
4402   (eval "$ac_try") 2>&5
4403   ac_status=$?
4404   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4405   test $ac_status = 0; } &&
4406    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412   (eval "$ac_try") 2>&5
4413   ac_status=$?
4414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415   test $ac_status = 0; };
4416 then
4417   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4418   if test "x$CC" != xcc; then
4419     # Test first that cc exists at all.
4420     if { ac_try='cc -c conftest.$ac_ext >&5'
4421   { { case "(($ac_try" in
4422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423   *) ac_try_echo=$ac_try;;
4424 esac
4425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4426 $as_echo "$ac_try_echo"; } >&5
4427   (eval "$ac_try") 2>&5
4428   ac_status=$?
4429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4430   test $ac_status = 0; }; }; then
4431       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4432       rm -f conftest2.*
4433       if { { case "(($ac_try" in
4434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4435   *) ac_try_echo=$ac_try;;
4436 esac
4437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4438 $as_echo "$ac_try_echo"; } >&5
4439   (eval "$ac_try") 2>&5
4440   ac_status=$?
4441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4442   test $ac_status = 0; } &&
4443          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4445   *) ac_try_echo=$ac_try;;
4446 esac
4447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4448 $as_echo "$ac_try_echo"; } >&5
4449   (eval "$ac_try") 2>&5
4450   ac_status=$?
4451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452   test $ac_status = 0; };
4453       then
4454         # cc works too.
4455         :
4456       else
4457         # cc exists but doesn't like -o.
4458         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4459       fi
4460     fi
4461   fi
4462 else
4463   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4464 fi
4465 rm -f core conftest*
4466
4467 fi
4468 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4470 $as_echo "yes" >&6; }
4471 else
4472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473 $as_echo "no" >&6; }
4474
4475 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4476
4477 fi
4478
4479 # FIXME: we rely on the cache variable name because
4480 # there is no other way.
4481 set dummy $CC
4482 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4483 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4484 if test "$am_t" != yes; then
4485    # Losing compiler, so override with the script.
4486    # FIXME: It is wrong to rewrite CC.
4487    # But if we don't then we get into trouble of one sort or another.
4488    # A longer-term fix would be to have automake use am__CC in this case,
4489    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4490    CC="$am_aux_dir/compile $CC"
4491 fi
4492
4493
4494 case `pwd` in
4495   *\ * | *\     *)
4496     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4497 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4498 esac
4499
4500
4501
4502 macro_version='2.4'
4503 macro_revision='1.3293'
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517 ltmain="$ac_aux_dir/ltmain.sh"
4518
4519 # Backslashify metacharacters that are still active within
4520 # double-quoted strings.
4521 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4522
4523 # Same as above, but do not quote variable references.
4524 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4525
4526 # Sed substitution to delay expansion of an escaped shell variable in a
4527 # double_quote_subst'ed string.
4528 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4529
4530 # Sed substitution to delay expansion of an escaped single quote.
4531 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4532
4533 # Sed substitution to avoid accidental globbing in evaled expressions
4534 no_glob_subst='s/\*/\\\*/g'
4535
4536 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4537 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4538 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4541 $as_echo_n "checking how to print strings... " >&6; }
4542 # Test print first, because it will be a builtin if present.
4543 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4544    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4545   ECHO='print -r --'
4546 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4547   ECHO='printf %s\n'
4548 else
4549   # Use this function as a fallback that always works.
4550   func_fallback_echo ()
4551   {
4552     eval 'cat <<_LTECHO_EOF
4553 $1
4554 _LTECHO_EOF'
4555   }
4556   ECHO='func_fallback_echo'
4557 fi
4558
4559 # func_echo_all arg...
4560 # Invoke $ECHO with all args, space-separated.
4561 func_echo_all ()
4562 {
4563     $ECHO ""
4564 }
4565
4566 case "$ECHO" in
4567   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4568 $as_echo "printf" >&6; } ;;
4569   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4570 $as_echo "print -r" >&6; } ;;
4571   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4572 $as_echo "cat" >&6; } ;;
4573 esac
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4589 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4590 if ${ac_cv_path_SED+:} false; then :
4591   $as_echo_n "(cached) " >&6
4592 else
4593             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4594      for ac_i in 1 2 3 4 5 6 7; do
4595        ac_script="$ac_script$as_nl$ac_script"
4596      done
4597      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4598      { ac_script=; unset ac_script;}
4599      if test -z "$SED"; then
4600   ac_path_SED_found=false
4601   # Loop through the user's path and test for each of PROGNAME-LIST
4602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607     for ac_prog in sed gsed; do
4608     for ac_exec_ext in '' $ac_executable_extensions; do
4609       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4610       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4611 # Check for GNU ac_path_SED and select it if it is found.
4612   # Check for GNU $ac_path_SED
4613 case `"$ac_path_SED" --version 2>&1` in
4614 *GNU*)
4615   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4616 *)
4617   ac_count=0
4618   $as_echo_n 0123456789 >"conftest.in"
4619   while :
4620   do
4621     cat "conftest.in" "conftest.in" >"conftest.tmp"
4622     mv "conftest.tmp" "conftest.in"
4623     cp "conftest.in" "conftest.nl"
4624     $as_echo '' >> "conftest.nl"
4625     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4626     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4627     as_fn_arith $ac_count + 1 && ac_count=$as_val
4628     if test $ac_count -gt ${ac_path_SED_max-0}; then
4629       # Best one so far, save it but keep looking for a better one
4630       ac_cv_path_SED="$ac_path_SED"
4631       ac_path_SED_max=$ac_count
4632     fi
4633     # 10*(2^10) chars as input seems more than enough
4634     test $ac_count -gt 10 && break
4635   done
4636   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4637 esac
4638
4639       $ac_path_SED_found && break 3
4640     done
4641   done
4642   done
4643 IFS=$as_save_IFS
4644   if test -z "$ac_cv_path_SED"; then
4645     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4646   fi
4647 else
4648   ac_cv_path_SED=$SED
4649 fi
4650
4651 fi
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4653 $as_echo "$ac_cv_path_SED" >&6; }
4654  SED="$ac_cv_path_SED"
4655   rm -f conftest.sed
4656
4657 test -z "$SED" && SED=sed
4658 Xsed="$SED -e 1s/^X//"
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672 if ${ac_cv_path_GREP+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   if test -z "$GREP"; then
4676   ac_path_GREP_found=false
4677   # Loop through the user's path and test for each of PROGNAME-LIST
4678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683     for ac_prog in grep ggrep; do
4684     for ac_exec_ext in '' $ac_executable_extensions; do
4685       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4687 # Check for GNU ac_path_GREP and select it if it is found.
4688   # Check for GNU $ac_path_GREP
4689 case `"$ac_path_GREP" --version 2>&1` in
4690 *GNU*)
4691   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4692 *)
4693   ac_count=0
4694   $as_echo_n 0123456789 >"conftest.in"
4695   while :
4696   do
4697     cat "conftest.in" "conftest.in" >"conftest.tmp"
4698     mv "conftest.tmp" "conftest.in"
4699     cp "conftest.in" "conftest.nl"
4700     $as_echo 'GREP' >> "conftest.nl"
4701     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703     as_fn_arith $ac_count + 1 && ac_count=$as_val
4704     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705       # Best one so far, save it but keep looking for a better one
4706       ac_cv_path_GREP="$ac_path_GREP"
4707       ac_path_GREP_max=$ac_count
4708     fi
4709     # 10*(2^10) chars as input seems more than enough
4710     test $ac_count -gt 10 && break
4711   done
4712   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713 esac
4714
4715       $ac_path_GREP_found && break 3
4716     done
4717   done
4718   done
4719 IFS=$as_save_IFS
4720   if test -z "$ac_cv_path_GREP"; then
4721     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722   fi
4723 else
4724   ac_cv_path_GREP=$GREP
4725 fi
4726
4727 fi
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729 $as_echo "$ac_cv_path_GREP" >&6; }
4730  GREP="$ac_cv_path_GREP"
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734 $as_echo_n "checking for egrep... " >&6; }
4735 if ${ac_cv_path_EGREP+:} false; then :
4736   $as_echo_n "(cached) " >&6
4737 else
4738   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739    then ac_cv_path_EGREP="$GREP -E"
4740    else
4741      if test -z "$EGREP"; then
4742   ac_path_EGREP_found=false
4743   # Loop through the user's path and test for each of PROGNAME-LIST
4744   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746 do
4747   IFS=$as_save_IFS
4748   test -z "$as_dir" && as_dir=.
4749     for ac_prog in egrep; do
4750     for ac_exec_ext in '' $ac_executable_extensions; do
4751       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4753 # Check for GNU ac_path_EGREP and select it if it is found.
4754   # Check for GNU $ac_path_EGREP
4755 case `"$ac_path_EGREP" --version 2>&1` in
4756 *GNU*)
4757   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4758 *)
4759   ac_count=0
4760   $as_echo_n 0123456789 >"conftest.in"
4761   while :
4762   do
4763     cat "conftest.in" "conftest.in" >"conftest.tmp"
4764     mv "conftest.tmp" "conftest.in"
4765     cp "conftest.in" "conftest.nl"
4766     $as_echo 'EGREP' >> "conftest.nl"
4767     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769     as_fn_arith $ac_count + 1 && ac_count=$as_val
4770     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771       # Best one so far, save it but keep looking for a better one
4772       ac_cv_path_EGREP="$ac_path_EGREP"
4773       ac_path_EGREP_max=$ac_count
4774     fi
4775     # 10*(2^10) chars as input seems more than enough
4776     test $ac_count -gt 10 && break
4777   done
4778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779 esac
4780
4781       $ac_path_EGREP_found && break 3
4782     done
4783   done
4784   done
4785 IFS=$as_save_IFS
4786   if test -z "$ac_cv_path_EGREP"; then
4787     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788   fi
4789 else
4790   ac_cv_path_EGREP=$EGREP
4791 fi
4792
4793    fi
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796 $as_echo "$ac_cv_path_EGREP" >&6; }
4797  EGREP="$ac_cv_path_EGREP"
4798
4799
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4801 $as_echo_n "checking for fgrep... " >&6; }
4802 if ${ac_cv_path_FGREP+:} false; then :
4803   $as_echo_n "(cached) " >&6
4804 else
4805   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4806    then ac_cv_path_FGREP="$GREP -F"
4807    else
4808      if test -z "$FGREP"; then
4809   ac_path_FGREP_found=false
4810   # Loop through the user's path and test for each of PROGNAME-LIST
4811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4813 do
4814   IFS=$as_save_IFS
4815   test -z "$as_dir" && as_dir=.
4816     for ac_prog in fgrep; do
4817     for ac_exec_ext in '' $ac_executable_extensions; do
4818       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4819       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4820 # Check for GNU ac_path_FGREP and select it if it is found.
4821   # Check for GNU $ac_path_FGREP
4822 case `"$ac_path_FGREP" --version 2>&1` in
4823 *GNU*)
4824   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4825 *)
4826   ac_count=0
4827   $as_echo_n 0123456789 >"conftest.in"
4828   while :
4829   do
4830     cat "conftest.in" "conftest.in" >"conftest.tmp"
4831     mv "conftest.tmp" "conftest.in"
4832     cp "conftest.in" "conftest.nl"
4833     $as_echo 'FGREP' >> "conftest.nl"
4834     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4835     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4836     as_fn_arith $ac_count + 1 && ac_count=$as_val
4837     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4838       # Best one so far, save it but keep looking for a better one
4839       ac_cv_path_FGREP="$ac_path_FGREP"
4840       ac_path_FGREP_max=$ac_count
4841     fi
4842     # 10*(2^10) chars as input seems more than enough
4843     test $ac_count -gt 10 && break
4844   done
4845   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4846 esac
4847
4848       $ac_path_FGREP_found && break 3
4849     done
4850   done
4851   done
4852 IFS=$as_save_IFS
4853   if test -z "$ac_cv_path_FGREP"; then
4854     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4855   fi
4856 else
4857   ac_cv_path_FGREP=$FGREP
4858 fi
4859
4860    fi
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4863 $as_echo "$ac_cv_path_FGREP" >&6; }
4864  FGREP="$ac_cv_path_FGREP"
4865
4866
4867 test -z "$GREP" && GREP=grep
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887 # Check whether --with-gnu-ld was given.
4888 if test "${with_gnu_ld+set}" = set; then :
4889   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4890 else
4891   with_gnu_ld=no
4892 fi
4893
4894 ac_prog=ld
4895 if test "$GCC" = yes; then
4896   # Check if gcc -print-prog-name=ld gives a path.
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4898 $as_echo_n "checking for ld used by $CC... " >&6; }
4899   case $host in
4900   *-*-mingw*)
4901     # gcc leaves a trailing carriage return which upsets mingw
4902     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4903   *)
4904     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4905   esac
4906   case $ac_prog in
4907     # Accept absolute paths.
4908     [\\/]* | ?:[\\/]*)
4909       re_direlt='/[^/][^/]*/\.\./'
4910       # Canonicalize the pathname of ld
4911       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4912       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4913         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4914       done
4915       test -z "$LD" && LD="$ac_prog"
4916       ;;
4917   "")
4918     # If it fails, then pretend we aren't using GCC.
4919     ac_prog=ld
4920     ;;
4921   *)
4922     # If it is relative, then search for the first ld in PATH.
4923     with_gnu_ld=unknown
4924     ;;
4925   esac
4926 elif test "$with_gnu_ld" = yes; then
4927   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4928 $as_echo_n "checking for GNU ld... " >&6; }
4929 else
4930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4931 $as_echo_n "checking for non-GNU ld... " >&6; }
4932 fi
4933 if ${lt_cv_path_LD+:} false; then :
4934   $as_echo_n "(cached) " >&6
4935 else
4936   if test -z "$LD"; then
4937   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4938   for ac_dir in $PATH; do
4939     IFS="$lt_save_ifs"
4940     test -z "$ac_dir" && ac_dir=.
4941     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4942       lt_cv_path_LD="$ac_dir/$ac_prog"
4943       # Check to see if the program is GNU ld.  I'd rather use --version,
4944       # but apparently some variants of GNU ld only accept -v.
4945       # Break only if it was the GNU/non-GNU ld that we prefer.
4946       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4947       *GNU* | *'with BFD'*)
4948         test "$with_gnu_ld" != no && break
4949         ;;
4950       *)
4951         test "$with_gnu_ld" != yes && break
4952         ;;
4953       esac
4954     fi
4955   done
4956   IFS="$lt_save_ifs"
4957 else
4958   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4959 fi
4960 fi
4961
4962 LD="$lt_cv_path_LD"
4963 if test -n "$LD"; then
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4965 $as_echo "$LD" >&6; }
4966 else
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4972 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4973 if ${lt_cv_prog_gnu_ld+:} false; then :
4974   $as_echo_n "(cached) " >&6
4975 else
4976   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4977 case `$LD -v 2>&1 </dev/null` in
4978 *GNU* | *'with BFD'*)
4979   lt_cv_prog_gnu_ld=yes
4980   ;;
4981 *)
4982   lt_cv_prog_gnu_ld=no
4983   ;;
4984 esac
4985 fi
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4987 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4988 with_gnu_ld=$lt_cv_prog_gnu_ld
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4999 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5000 if ${lt_cv_path_NM+:} false; then :
5001   $as_echo_n "(cached) " >&6
5002 else
5003   if test -n "$NM"; then
5004   # Let the user override the test.
5005   lt_cv_path_NM="$NM"
5006 else
5007   lt_nm_to_check="${ac_tool_prefix}nm"
5008   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5009     lt_nm_to_check="$lt_nm_to_check nm"
5010   fi
5011   for lt_tmp_nm in $lt_nm_to_check; do
5012     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5013     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5014       IFS="$lt_save_ifs"
5015       test -z "$ac_dir" && ac_dir=.
5016       tmp_nm="$ac_dir/$lt_tmp_nm"
5017       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5018         # Check to see if the nm accepts a BSD-compat flag.
5019         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5020         #   nm: unknown option "B" ignored
5021         # Tru64's nm complains that /dev/null is an invalid object file
5022         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5023         */dev/null* | *'Invalid file or object type'*)
5024           lt_cv_path_NM="$tmp_nm -B"
5025           break
5026           ;;
5027         *)
5028           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5029           */dev/null*)
5030             lt_cv_path_NM="$tmp_nm -p"
5031             break
5032             ;;
5033           *)
5034             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5035             continue # so that we can try to find one that supports BSD flags
5036             ;;
5037           esac
5038           ;;
5039         esac
5040       fi
5041     done
5042     IFS="$lt_save_ifs"
5043   done
5044   : ${lt_cv_path_NM=no}
5045 fi
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5048 $as_echo "$lt_cv_path_NM" >&6; }
5049 if test "$lt_cv_path_NM" != "no"; then
5050   NM="$lt_cv_path_NM"
5051 else
5052   # Didn't find any BSD compatible name lister, look for dumpbin.
5053   if test -n "$DUMPBIN"; then :
5054     # Let the user override the test.
5055   else
5056     if test -n "$ac_tool_prefix"; then
5057   for ac_prog in dumpbin "link -dump"
5058   do
5059     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5060 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5062 $as_echo_n "checking for $ac_word... " >&6; }
5063 if ${ac_cv_prog_DUMPBIN+:} false; then :
5064   $as_echo_n "(cached) " >&6
5065 else
5066   if test -n "$DUMPBIN"; then
5067   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5068 else
5069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074     for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081   done
5082 IFS=$as_save_IFS
5083
5084 fi
5085 fi
5086 DUMPBIN=$ac_cv_prog_DUMPBIN
5087 if test -n "$DUMPBIN"; then
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5089 $as_echo "$DUMPBIN" >&6; }
5090 else
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095
5096     test -n "$DUMPBIN" && break
5097   done
5098 fi
5099 if test -z "$DUMPBIN"; then
5100   ac_ct_DUMPBIN=$DUMPBIN
5101   for ac_prog in dumpbin "link -dump"
5102 do
5103   # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   if test -n "$ac_ct_DUMPBIN"; then
5111   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116   IFS=$as_save_IFS
5117   test -z "$as_dir" && as_dir=.
5118     for ac_exec_ext in '' $ac_executable_extensions; do
5119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5121     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122     break 2
5123   fi
5124 done
5125   done
5126 IFS=$as_save_IFS
5127
5128 fi
5129 fi
5130 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5131 if test -n "$ac_ct_DUMPBIN"; then
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5133 $as_echo "$ac_ct_DUMPBIN" >&6; }
5134 else
5135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5137 fi
5138
5139
5140   test -n "$ac_ct_DUMPBIN" && break
5141 done
5142
5143   if test "x$ac_ct_DUMPBIN" = x; then
5144     DUMPBIN=":"
5145   else
5146     case $cross_compiling:$ac_tool_warned in
5147 yes:)
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5150 ac_tool_warned=yes ;;
5151 esac
5152     DUMPBIN=$ac_ct_DUMPBIN
5153   fi
5154 fi
5155
5156     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5157     *COFF*)
5158       DUMPBIN="$DUMPBIN -symbols"
5159       ;;
5160     *)
5161       DUMPBIN=:
5162       ;;
5163     esac
5164   fi
5165
5166   if test "$DUMPBIN" != ":"; then
5167     NM="$DUMPBIN"
5168   fi
5169 fi
5170 test -z "$NM" && NM=nm
5171
5172
5173
5174
5175
5176
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5178 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5179 if ${lt_cv_nm_interface+:} false; then :
5180   $as_echo_n "(cached) " >&6
5181 else
5182   lt_cv_nm_interface="BSD nm"
5183   echo "int some_variable = 0;" > conftest.$ac_ext
5184   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5185   (eval "$ac_compile" 2>conftest.err)
5186   cat conftest.err >&5
5187   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5188   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5189   cat conftest.err >&5
5190   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5191   cat conftest.out >&5
5192   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5193     lt_cv_nm_interface="MS dumpbin"
5194   fi
5195   rm -f conftest*
5196 fi
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5198 $as_echo "$lt_cv_nm_interface" >&6; }
5199
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5201 $as_echo_n "checking whether ln -s works... " >&6; }
5202 LN_S=$as_ln_s
5203 if test "$LN_S" = "ln -s"; then
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5205 $as_echo "yes" >&6; }
5206 else
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5208 $as_echo "no, using $LN_S" >&6; }
5209 fi
5210
5211 # find the maximum length of command line arguments
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5213 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5214 if ${lt_cv_sys_max_cmd_len+:} false; then :
5215   $as_echo_n "(cached) " >&6
5216 else
5217     i=0
5218   teststring="ABCD"
5219
5220   case $build_os in
5221   msdosdjgpp*)
5222     # On DJGPP, this test can blow up pretty badly due to problems in libc
5223     # (any single argument exceeding 2000 bytes causes a buffer overrun
5224     # during glob expansion).  Even if it were fixed, the result of this
5225     # check would be larger than it should be.
5226     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5227     ;;
5228
5229   gnu*)
5230     # Under GNU Hurd, this test is not required because there is
5231     # no limit to the length of command line arguments.
5232     # Libtool will interpret -1 as no limit whatsoever
5233     lt_cv_sys_max_cmd_len=-1;
5234     ;;
5235
5236   cygwin* | mingw* | cegcc*)
5237     # On Win9x/ME, this test blows up -- it succeeds, but takes
5238     # about 5 minutes as the teststring grows exponentially.
5239     # Worse, since 9x/ME are not pre-emptively multitasking,
5240     # you end up with a "frozen" computer, even though with patience
5241     # the test eventually succeeds (with a max line length of 256k).
5242     # Instead, let's just punt: use the minimum linelength reported by
5243     # all of the supported platforms: 8192 (on NT/2K/XP).
5244     lt_cv_sys_max_cmd_len=8192;
5245     ;;
5246
5247   mint*)
5248     # On MiNT this can take a long time and run out of memory.
5249     lt_cv_sys_max_cmd_len=8192;
5250     ;;
5251
5252   amigaos*)
5253     # On AmigaOS with pdksh, this test takes hours, literally.
5254     # So we just punt and use a minimum line length of 8192.
5255     lt_cv_sys_max_cmd_len=8192;
5256     ;;
5257
5258   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5259     # This has been around since 386BSD, at least.  Likely further.
5260     if test -x /sbin/sysctl; then
5261       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5262     elif test -x /usr/sbin/sysctl; then
5263       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5264     else
5265       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5266     fi
5267     # And add a safety zone
5268     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5269     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5270     ;;
5271
5272   interix*)
5273     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5274     lt_cv_sys_max_cmd_len=196608
5275     ;;
5276
5277   osf*)
5278     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5279     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5280     # nice to cause kernel panics so lets avoid the loop below.
5281     # First set a reasonable default.
5282     lt_cv_sys_max_cmd_len=16384
5283     #
5284     if test -x /sbin/sysconfig; then
5285       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5286         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5287       esac
5288     fi
5289     ;;
5290   sco3.2v5*)
5291     lt_cv_sys_max_cmd_len=102400
5292     ;;
5293   sysv5* | sco5v6* | sysv4.2uw2*)
5294     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5295     if test -n "$kargmax"; then
5296       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5297     else
5298       lt_cv_sys_max_cmd_len=32768
5299     fi
5300     ;;
5301   *)
5302     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5303     if test -n "$lt_cv_sys_max_cmd_len"; then
5304       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5305       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5306     else
5307       # Make teststring a little bigger before we do anything with it.
5308       # a 1K string should be a reasonable start.
5309       for i in 1 2 3 4 5 6 7 8 ; do
5310         teststring=$teststring$teststring
5311       done
5312       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5313       # If test is not a shell built-in, we'll probably end up computing a
5314       # maximum length that is only half of the actual maximum length, but
5315       # we can't tell.
5316       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5317                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5318               test $i != 17 # 1/2 MB should be enough
5319       do
5320         i=`expr $i + 1`
5321         teststring=$teststring$teststring
5322       done
5323       # Only check the string length outside the loop.
5324       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5325       teststring=
5326       # Add a significant safety factor because C++ compilers can tack on
5327       # massive amounts of additional arguments before passing them to the
5328       # linker.  It appears as though 1/2 is a usable value.
5329       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5330     fi
5331     ;;
5332   esac
5333
5334 fi
5335
5336 if test -n $lt_cv_sys_max_cmd_len ; then
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5338 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5339 else
5340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5341 $as_echo "none" >&6; }
5342 fi
5343 max_cmd_len=$lt_cv_sys_max_cmd_len
5344
5345
5346
5347
5348
5349
5350 : ${CP="cp -f"}
5351 : ${MV="mv -f"}
5352 : ${RM="rm -f"}
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5355 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5356 # Try some XSI features
5357 xsi_shell=no
5358 ( _lt_dummy="a/b/c"
5359   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5360       = c,a/b,b/c, \
5361     && eval 'test $(( 1 + 1 )) -eq 2 \
5362     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5363   && xsi_shell=yes
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5365 $as_echo "$xsi_shell" >&6; }
5366
5367
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5369 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5370 lt_shell_append=no
5371 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5372     >/dev/null 2>&1 \
5373   && lt_shell_append=yes
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5375 $as_echo "$lt_shell_append" >&6; }
5376
5377
5378 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5379   lt_unset=unset
5380 else
5381   lt_unset=false
5382 fi
5383
5384
5385
5386
5387
5388 # test EBCDIC or ASCII
5389 case `echo X|tr X '\101'` in
5390  A) # ASCII based system
5391     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5392   lt_SP2NL='tr \040 \012'
5393   lt_NL2SP='tr \015\012 \040\040'
5394   ;;
5395  *) # EBCDIC based system
5396   lt_SP2NL='tr \100 \n'
5397   lt_NL2SP='tr \r\n \100\100'
5398   ;;
5399 esac
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5410 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5411 if ${lt_cv_to_host_file_cmd+:} false; then :
5412   $as_echo_n "(cached) " >&6
5413 else
5414   case $host in
5415   *-*-mingw* )
5416     case $build in
5417       *-*-mingw* ) # actually msys
5418         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5419         ;;
5420       *-*-cygwin* )
5421         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5422         ;;
5423       * ) # otherwise, assume *nix
5424         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5425         ;;
5426     esac
5427     ;;
5428   *-*-cygwin* )
5429     case $build in
5430       *-*-mingw* ) # actually msys
5431         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5432         ;;
5433       *-*-cygwin* )
5434         lt_cv_to_host_file_cmd=func_convert_file_noop
5435         ;;
5436       * ) # otherwise, assume *nix
5437         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5438         ;;
5439     esac
5440     ;;
5441   * ) # unhandled hosts (and "normal" native builds)
5442     lt_cv_to_host_file_cmd=func_convert_file_noop
5443     ;;
5444 esac
5445
5446 fi
5447
5448 to_host_file_cmd=$lt_cv_to_host_file_cmd
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5450 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5451
5452
5453
5454
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5457 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5458 if ${lt_cv_to_tool_file_cmd+:} false; then :
5459   $as_echo_n "(cached) " >&6
5460 else
5461   #assume ordinary cross tools, or native build.
5462 lt_cv_to_tool_file_cmd=func_convert_file_noop
5463 case $host in
5464   *-*-mingw* )
5465     case $build in
5466       *-*-mingw* ) # actually msys
5467         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5468         ;;
5469     esac
5470     ;;
5471 esac
5472
5473 fi
5474
5475 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5477 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5478
5479
5480
5481
5482
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5484 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5485 if ${lt_cv_ld_reload_flag+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   lt_cv_ld_reload_flag='-r'
5489 fi
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5491 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5492 reload_flag=$lt_cv_ld_reload_flag
5493 case $reload_flag in
5494 "" | " "*) ;;
5495 *) reload_flag=" $reload_flag" ;;
5496 esac
5497 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5498 case $host_os in
5499   cygwin* | mingw* | pw32* | cegcc*)
5500     if test "$GCC" != yes; then
5501       reload_cmds=false
5502     fi
5503     ;;
5504   darwin*)
5505     if test "$GCC" = yes; then
5506       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5507     else
5508       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5509     fi
5510     ;;
5511 esac
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521 if test -n "$ac_tool_prefix"; then
5522   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5523 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_prog_OBJDUMP+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   if test -n "$OBJDUMP"; then
5530   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5531 else
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547 fi
5548 fi
5549 OBJDUMP=$ac_cv_prog_OBJDUMP
5550 if test -n "$OBJDUMP"; then
5551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5552 $as_echo "$OBJDUMP" >&6; }
5553 else
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5556 fi
5557
5558
5559 fi
5560 if test -z "$ac_cv_prog_OBJDUMP"; then
5561   ac_ct_OBJDUMP=$OBJDUMP
5562   # Extract the first word of "objdump", so it can be a program name with args.
5563 set dummy objdump; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   if test -n "$ac_ct_OBJDUMP"; then
5570   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5571 else
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH
5574 do
5575   IFS=$as_save_IFS
5576   test -z "$as_dir" && as_dir=.
5577     for ac_exec_ext in '' $ac_executable_extensions; do
5578   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5579     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5581     break 2
5582   fi
5583 done
5584   done
5585 IFS=$as_save_IFS
5586
5587 fi
5588 fi
5589 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5590 if test -n "$ac_ct_OBJDUMP"; then
5591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5592 $as_echo "$ac_ct_OBJDUMP" >&6; }
5593 else
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5595 $as_echo "no" >&6; }
5596 fi
5597
5598   if test "x$ac_ct_OBJDUMP" = x; then
5599     OBJDUMP="false"
5600   else
5601     case $cross_compiling:$ac_tool_warned in
5602 yes:)
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5604 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5605 ac_tool_warned=yes ;;
5606 esac
5607     OBJDUMP=$ac_ct_OBJDUMP
5608   fi
5609 else
5610   OBJDUMP="$ac_cv_prog_OBJDUMP"
5611 fi
5612
5613 test -z "$OBJDUMP" && OBJDUMP=objdump
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5624 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5625 if ${lt_cv_deplibs_check_method+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   lt_cv_file_magic_cmd='$MAGIC_CMD'
5629 lt_cv_file_magic_test_file=
5630 lt_cv_deplibs_check_method='unknown'
5631 # Need to set the preceding variable on all platforms that support
5632 # interlibrary dependencies.
5633 # 'none' -- dependencies not supported.
5634 # `unknown' -- same as none, but documents that we really don't know.
5635 # 'pass_all' -- all dependencies passed with no checks.
5636 # 'test_compile' -- check by making test program.
5637 # 'file_magic [[regex]]' -- check by looking for files in library path
5638 # which responds to the $file_magic_cmd with a given extended regex.
5639 # If you have `file' or equivalent on your system and you're not sure
5640 # whether `pass_all' will *always* work, you probably want this one.
5641
5642 case $host_os in
5643 aix[4-9]*)
5644   lt_cv_deplibs_check_method=pass_all
5645   ;;
5646
5647 beos*)
5648   lt_cv_deplibs_check_method=pass_all
5649   ;;
5650
5651 bsdi[45]*)
5652   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5653   lt_cv_file_magic_cmd='/usr/bin/file -L'
5654   lt_cv_file_magic_test_file=/shlib/libc.so
5655   ;;
5656
5657 cygwin*)
5658   # func_win32_libid is a shell function defined in ltmain.sh
5659   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5660   lt_cv_file_magic_cmd='func_win32_libid'
5661   ;;
5662
5663 mingw* | pw32*)
5664   # Base MSYS/MinGW do not provide the 'file' command needed by
5665   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5666   # unless we find 'file', for example because we are cross-compiling.
5667   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5668   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5669     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5670     lt_cv_file_magic_cmd='func_win32_libid'
5671   else
5672     # Keep this pattern in sync with the one in func_win32_libid.
5673     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5674     lt_cv_file_magic_cmd='$OBJDUMP -f'
5675   fi
5676   ;;
5677
5678 cegcc*)
5679   # use the weaker test based on 'objdump'. See mingw*.
5680   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5681   lt_cv_file_magic_cmd='$OBJDUMP -f'
5682   ;;
5683
5684 darwin* | rhapsody*)
5685   lt_cv_deplibs_check_method=pass_all
5686   ;;
5687
5688 freebsd* | dragonfly*)
5689   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5690     case $host_cpu in
5691     i*86 )
5692       # Not sure whether the presence of OpenBSD here was a mistake.
5693       # Let's accept both of them until this is cleared up.
5694       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5695       lt_cv_file_magic_cmd=/usr/bin/file
5696       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5697       ;;
5698     esac
5699   else
5700     lt_cv_deplibs_check_method=pass_all
5701   fi
5702   ;;
5703
5704 gnu*)
5705   lt_cv_deplibs_check_method=pass_all
5706   ;;
5707
5708 haiku*)
5709   lt_cv_deplibs_check_method=pass_all
5710   ;;
5711
5712 hpux10.20* | hpux11*)
5713   lt_cv_file_magic_cmd=/usr/bin/file
5714   case $host_cpu in
5715   ia64*)
5716     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5717     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5718     ;;
5719   hppa*64*)
5720     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]'
5721     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5722     ;;
5723   *)
5724     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5725     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5726     ;;
5727   esac
5728   ;;
5729
5730 interix[3-9]*)
5731   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5732   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5733   ;;
5734
5735 irix5* | irix6* | nonstopux*)
5736   case $LD in
5737   *-32|*"-32 ") libmagic=32-bit;;
5738   *-n32|*"-n32 ") libmagic=N32;;
5739   *-64|*"-64 ") libmagic=64-bit;;
5740   *) libmagic=never-match;;
5741   esac
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744
5745 # This must be Linux ELF.
5746 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 netbsd*)
5751   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5753   else
5754     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5755   fi
5756   ;;
5757
5758 newos6*)
5759   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5760   lt_cv_file_magic_cmd=/usr/bin/file
5761   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5762   ;;
5763
5764 *nto* | *qnx*)
5765   lt_cv_deplibs_check_method=pass_all
5766   ;;
5767
5768 openbsd*)
5769   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5770     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5771   else
5772     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5773   fi
5774   ;;
5775
5776 osf3* | osf4* | osf5*)
5777   lt_cv_deplibs_check_method=pass_all
5778   ;;
5779
5780 rdos*)
5781   lt_cv_deplibs_check_method=pass_all
5782   ;;
5783
5784 solaris*)
5785   lt_cv_deplibs_check_method=pass_all
5786   ;;
5787
5788 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5789   lt_cv_deplibs_check_method=pass_all
5790   ;;
5791
5792 sysv4 | sysv4.3*)
5793   case $host_vendor in
5794   motorola)
5795     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]'
5796     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5797     ;;
5798   ncr)
5799     lt_cv_deplibs_check_method=pass_all
5800     ;;
5801   sequent)
5802     lt_cv_file_magic_cmd='/bin/file'
5803     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5804     ;;
5805   sni)
5806     lt_cv_file_magic_cmd='/bin/file'
5807     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5808     lt_cv_file_magic_test_file=/lib/libc.so
5809     ;;
5810   siemens)
5811     lt_cv_deplibs_check_method=pass_all
5812     ;;
5813   pc)
5814     lt_cv_deplibs_check_method=pass_all
5815     ;;
5816   esac
5817   ;;
5818
5819 tpf*)
5820   lt_cv_deplibs_check_method=pass_all
5821   ;;
5822 esac
5823
5824 fi
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5826 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5827
5828 file_magic_glob=
5829 want_nocaseglob=no
5830 if test "$build" = "$host"; then
5831   case $host_os in
5832   mingw* | pw32*)
5833     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5834       want_nocaseglob=yes
5835     else
5836       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5837     fi
5838     ;;
5839   esac
5840 fi
5841
5842 file_magic_cmd=$lt_cv_file_magic_cmd
5843 deplibs_check_method=$lt_cv_deplibs_check_method
5844 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 if test -n "$ac_tool_prefix"; then
5868   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5869 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871 $as_echo_n "checking for $ac_word... " >&6; }
5872 if ${ac_cv_prog_DLLTOOL+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875   if test -n "$DLLTOOL"; then
5876   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5877 else
5878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 for as_dir in $PATH
5880 do
5881   IFS=$as_save_IFS
5882   test -z "$as_dir" && as_dir=.
5883     for ac_exec_ext in '' $ac_executable_extensions; do
5884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887     break 2
5888   fi
5889 done
5890   done
5891 IFS=$as_save_IFS
5892
5893 fi
5894 fi
5895 DLLTOOL=$ac_cv_prog_DLLTOOL
5896 if test -n "$DLLTOOL"; then
5897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5898 $as_echo "$DLLTOOL" >&6; }
5899 else
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901 $as_echo "no" >&6; }
5902 fi
5903
5904
5905 fi
5906 if test -z "$ac_cv_prog_DLLTOOL"; then
5907   ac_ct_DLLTOOL=$DLLTOOL
5908   # Extract the first word of "dlltool", so it can be a program name with args.
5909 set dummy dlltool; ac_word=$2
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911 $as_echo_n "checking for $ac_word... " >&6; }
5912 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5913   $as_echo_n "(cached) " >&6
5914 else
5915   if test -n "$ac_ct_DLLTOOL"; then
5916   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5917 else
5918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919 for as_dir in $PATH
5920 do
5921   IFS=$as_save_IFS
5922   test -z "$as_dir" && as_dir=.
5923     for ac_exec_ext in '' $ac_executable_extensions; do
5924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5925     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927     break 2
5928   fi
5929 done
5930   done
5931 IFS=$as_save_IFS
5932
5933 fi
5934 fi
5935 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5936 if test -n "$ac_ct_DLLTOOL"; then
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5938 $as_echo "$ac_ct_DLLTOOL" >&6; }
5939 else
5940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941 $as_echo "no" >&6; }
5942 fi
5943
5944   if test "x$ac_ct_DLLTOOL" = x; then
5945     DLLTOOL="false"
5946   else
5947     case $cross_compiling:$ac_tool_warned in
5948 yes:)
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5950 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5951 ac_tool_warned=yes ;;
5952 esac
5953     DLLTOOL=$ac_ct_DLLTOOL
5954   fi
5955 else
5956   DLLTOOL="$ac_cv_prog_DLLTOOL"
5957 fi
5958
5959 test -z "$DLLTOOL" && DLLTOOL=dlltool
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5971 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5972 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   lt_cv_sharedlib_from_linklib_cmd='unknown'
5976
5977 case $host_os in
5978 cygwin* | mingw* | pw32* | cegcc*)
5979   # two different shell functions defined in ltmain.sh
5980   # decide which to use based on capabilities of $DLLTOOL
5981   case `$DLLTOOL --help 2>&1` in
5982   *--identify-strict*)
5983     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5984     ;;
5985   *)
5986     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5987     ;;
5988   esac
5989   ;;
5990 *)
5991   # fallback: assume linklib IS sharedlib
5992   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5993   ;;
5994 esac
5995
5996 fi
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5998 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5999 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6000 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6001
6002
6003
6004
6005
6006
6007
6008
6009 if test -n "$ac_tool_prefix"; then
6010   for ac_prog in ar
6011   do
6012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6015 $as_echo_n "checking for $ac_word... " >&6; }
6016 if ${ac_cv_prog_AR+:} false; then :
6017   $as_echo_n "(cached) " >&6
6018 else
6019   if test -n "$AR"; then
6020   ac_cv_prog_AR="$AR" # Let the user override the test.
6021 else
6022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 for as_dir in $PATH
6024 do
6025   IFS=$as_save_IFS
6026   test -z "$as_dir" && as_dir=.
6027     for ac_exec_ext in '' $ac_executable_extensions; do
6028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6029     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6031     break 2
6032   fi
6033 done
6034   done
6035 IFS=$as_save_IFS
6036
6037 fi
6038 fi
6039 AR=$ac_cv_prog_AR
6040 if test -n "$AR"; then
6041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6042 $as_echo "$AR" >&6; }
6043 else
6044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6045 $as_echo "no" >&6; }
6046 fi
6047
6048
6049     test -n "$AR" && break
6050   done
6051 fi
6052 if test -z "$AR"; then
6053   ac_ct_AR=$AR
6054   for ac_prog in ar
6055 do
6056   # Extract the first word of "$ac_prog", so it can be a program name with args.
6057 set dummy $ac_prog; ac_word=$2
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6059 $as_echo_n "checking for $ac_word... " >&6; }
6060 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6061   $as_echo_n "(cached) " >&6
6062 else
6063   if test -n "$ac_ct_AR"; then
6064   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6065 else
6066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6067 for as_dir in $PATH
6068 do
6069   IFS=$as_save_IFS
6070   test -z "$as_dir" && as_dir=.
6071     for ac_exec_ext in '' $ac_executable_extensions; do
6072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6073     ac_cv_prog_ac_ct_AR="$ac_prog"
6074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6075     break 2
6076   fi
6077 done
6078   done
6079 IFS=$as_save_IFS
6080
6081 fi
6082 fi
6083 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6084 if test -n "$ac_ct_AR"; then
6085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6086 $as_echo "$ac_ct_AR" >&6; }
6087 else
6088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6089 $as_echo "no" >&6; }
6090 fi
6091
6092
6093   test -n "$ac_ct_AR" && break
6094 done
6095
6096   if test "x$ac_ct_AR" = x; then
6097     AR="false"
6098   else
6099     case $cross_compiling:$ac_tool_warned in
6100 yes:)
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103 ac_tool_warned=yes ;;
6104 esac
6105     AR=$ac_ct_AR
6106   fi
6107 fi
6108
6109 : ${AR=ar}
6110 : ${AR_FLAGS=cru}
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6123 $as_echo_n "checking for archiver @FILE support... " >&6; }
6124 if ${lt_cv_ar_at_file+:} false; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127   lt_cv_ar_at_file=no
6128    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h.  */
6130
6131 int
6132 main ()
6133 {
6134
6135   ;
6136   return 0;
6137 }
6138 _ACEOF
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140   echo conftest.$ac_objext > conftest.lst
6141       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6142       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6143   (eval $lt_ar_try) 2>&5
6144   ac_status=$?
6145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146   test $ac_status = 0; }
6147       if test "$ac_status" -eq 0; then
6148         # Ensure the archiver fails upon bogus file names.
6149         rm -f conftest.$ac_objext libconftest.a
6150         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6151   (eval $lt_ar_try) 2>&5
6152   ac_status=$?
6153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154   test $ac_status = 0; }
6155         if test "$ac_status" -ne 0; then
6156           lt_cv_ar_at_file=@
6157         fi
6158       fi
6159       rm -f conftest.* libconftest.a
6160
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163
6164 fi
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6166 $as_echo "$lt_cv_ar_at_file" >&6; }
6167
6168 if test "x$lt_cv_ar_at_file" = xno; then
6169   archiver_list_spec=
6170 else
6171   archiver_list_spec=$lt_cv_ar_at_file
6172 fi
6173
6174
6175
6176
6177
6178
6179
6180 if test -n "$ac_tool_prefix"; then
6181   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}strip; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_STRIP+:} false; then :
6186   $as_echo_n "(cached) " >&6
6187 else
6188   if test -n "$STRIP"; then
6189   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194   IFS=$as_save_IFS
6195   test -z "$as_dir" && as_dir=.
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6198     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200     break 2
6201   fi
6202 done
6203   done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 STRIP=$ac_cv_prog_STRIP
6209 if test -n "$STRIP"; then
6210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6211 $as_echo "$STRIP" >&6; }
6212 else
6213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_STRIP"; then
6220   ac_ct_STRIP=$STRIP
6221   # Extract the first word of "strip", so it can be a program name with args.
6222 set dummy strip; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -n "$ac_ct_STRIP"; then
6229   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_prog_ac_ct_STRIP="strip"
6239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243   done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6249 if test -n "$ac_ct_STRIP"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6251 $as_echo "$ac_ct_STRIP" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257   if test "x$ac_ct_STRIP" = x; then
6258     STRIP=":"
6259   else
6260     case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266     STRIP=$ac_ct_STRIP
6267   fi
6268 else
6269   STRIP="$ac_cv_prog_STRIP"
6270 fi
6271
6272 test -z "$STRIP" && STRIP=:
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_RANLIB+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -n "$RANLIB"; then
6288   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 RANLIB=$ac_cv_prog_RANLIB
6308 if test -n "$RANLIB"; then
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6310 $as_echo "$RANLIB" >&6; }
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_RANLIB"; then
6319   ac_ct_RANLIB=$RANLIB
6320   # Extract the first word of "ranlib", so it can be a program name with args.
6321 set dummy ranlib; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6325   $as_echo_n "(cached) " >&6
6326 else
6327   if test -n "$ac_ct_RANLIB"; then
6328   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333   IFS=$as_save_IFS
6334   test -z "$as_dir" && as_dir=.
6335     for ac_exec_ext in '' $ac_executable_extensions; do
6336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337     ac_cv_prog_ac_ct_RANLIB="ranlib"
6338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339     break 2
6340   fi
6341 done
6342   done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6348 if test -n "$ac_ct_RANLIB"; then
6349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6350 $as_echo "$ac_ct_RANLIB" >&6; }
6351 else
6352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356   if test "x$ac_ct_RANLIB" = x; then
6357     RANLIB=":"
6358   else
6359     case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365     RANLIB=$ac_ct_RANLIB
6366   fi
6367 else
6368   RANLIB="$ac_cv_prog_RANLIB"
6369 fi
6370
6371 test -z "$RANLIB" && RANLIB=:
6372
6373
6374
6375
6376
6377
6378 # Determine commands to create old-style static archives.
6379 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6380 old_postinstall_cmds='chmod 644 $oldlib'
6381 old_postuninstall_cmds=
6382
6383 if test -n "$RANLIB"; then
6384   case $host_os in
6385   openbsd*)
6386     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6387     ;;
6388   *)
6389     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6390     ;;
6391   esac
6392   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6393 fi
6394
6395 case $host_os in
6396   darwin*)
6397     lock_old_archive_extraction=yes ;;
6398   *)
6399     lock_old_archive_extraction=no ;;
6400 esac
6401
6402
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 # If no C compiler was specified, use CC.
6441 LTCC=${LTCC-"$CC"}
6442
6443 # If no C compiler flags were specified, use CFLAGS.
6444 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6445
6446 # Allow CC to be a program name with arguments.
6447 compiler=$CC
6448
6449
6450 # Check for command to grab the raw symbol name followed by C symbol from nm.
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6452 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6453 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6454   $as_echo_n "(cached) " >&6
6455 else
6456
6457 # These are sane defaults that work on at least a few old systems.
6458 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6459
6460 # Character class describing NM global symbol codes.
6461 symcode='[BCDEGRST]'
6462
6463 # Regexp to match symbols that can be accessed directly from C.
6464 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6465
6466 # Define system-specific variables.
6467 case $host_os in
6468 aix*)
6469   symcode='[BCDT]'
6470   ;;
6471 cygwin* | mingw* | pw32* | cegcc*)
6472   symcode='[ABCDGISTW]'
6473   ;;
6474 hpux*)
6475   if test "$host_cpu" = ia64; then
6476     symcode='[ABCDEGRST]'
6477   fi
6478   ;;
6479 irix* | nonstopux*)
6480   symcode='[BCDEGRST]'
6481   ;;
6482 osf*)
6483   symcode='[BCDEGQRST]'
6484   ;;
6485 solaris*)
6486   symcode='[BDRT]'
6487   ;;
6488 sco3.2v5*)
6489   symcode='[DT]'
6490   ;;
6491 sysv4.2uw2*)
6492   symcode='[DT]'
6493   ;;
6494 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6495   symcode='[ABDT]'
6496   ;;
6497 sysv4)
6498   symcode='[DFNSTU]'
6499   ;;
6500 esac
6501
6502 # If we're using GNU nm, then use its standard symbol codes.
6503 case `$NM -V 2>&1` in
6504 *GNU* | *'with BFD'*)
6505   symcode='[ABCDGIRSTW]' ;;
6506 esac
6507
6508 # Transform an extracted symbol line into a proper C declaration.
6509 # Some systems (esp. on ia64) link data and code symbols differently,
6510 # so use this general approach.
6511 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6512
6513 # Transform an extracted symbol line into symbol name and symbol address
6514 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6515 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'"
6516
6517 # Handle CRLF in mingw tool chain
6518 opt_cr=
6519 case $build_os in
6520 mingw*)
6521   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6522   ;;
6523 esac
6524
6525 # Try without a prefix underscore, then with it.
6526 for ac_symprfx in "" "_"; do
6527
6528   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6529   symxfrm="\\1 $ac_symprfx\\2 \\2"
6530
6531   # Write the raw and C identifiers.
6532   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6533     # Fake it for dumpbin and say T for any non-static function
6534     # and D for any global variable.
6535     # Also find C++ and __fastcall symbols from MSVC++,
6536     # which start with @ or ?.
6537     lt_cv_sys_global_symbol_pipe="$AWK '"\
6538 "     {last_section=section; section=\$ 3};"\
6539 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6540 "     \$ 0!~/External *\|/{next};"\
6541 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6542 "     {if(hide[section]) next};"\
6543 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6544 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6545 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6546 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6547 "     ' prfx=^$ac_symprfx"
6548   else
6549     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6550   fi
6551   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6552
6553   # Check to see that the pipe works correctly.
6554   pipe_works=no
6555
6556   rm -f conftest*
6557   cat > conftest.$ac_ext <<_LT_EOF
6558 #ifdef __cplusplus
6559 extern "C" {
6560 #endif
6561 char nm_test_var;
6562 void nm_test_func(void);
6563 void nm_test_func(void){}
6564 #ifdef __cplusplus
6565 }
6566 #endif
6567 int main(){nm_test_var='a';nm_test_func();return(0);}
6568 _LT_EOF
6569
6570   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6571   (eval $ac_compile) 2>&5
6572   ac_status=$?
6573   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6574   test $ac_status = 0; }; then
6575     # Now try to grab the symbols.
6576     nlist=conftest.nm
6577     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6578   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6579   ac_status=$?
6580   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6581   test $ac_status = 0; } && test -s "$nlist"; then
6582       # Try sorting and uniquifying the output.
6583       if sort "$nlist" | uniq > "$nlist"T; then
6584         mv -f "$nlist"T "$nlist"
6585       else
6586         rm -f "$nlist"T
6587       fi
6588
6589       # Make sure that we snagged all the symbols we need.
6590       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6591         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6592           cat <<_LT_EOF > conftest.$ac_ext
6593 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6594 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6595 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6596    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6597 # define LT_DLSYM_CONST
6598 #elif defined(__osf__)
6599 /* This system does not cope well with relocations in const data.  */
6600 # define LT_DLSYM_CONST
6601 #else
6602 # define LT_DLSYM_CONST const
6603 #endif
6604
6605 #ifdef __cplusplus
6606 extern "C" {
6607 #endif
6608
6609 _LT_EOF
6610           # Now generate the symbol file.
6611           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6612
6613           cat <<_LT_EOF >> conftest.$ac_ext
6614
6615 /* The mapping between symbol names and symbols.  */
6616 LT_DLSYM_CONST struct {
6617   const char *name;
6618   void       *address;
6619 }
6620 lt__PROGRAM__LTX_preloaded_symbols[] =
6621 {
6622   { "@PROGRAM@", (void *) 0 },
6623 _LT_EOF
6624           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6625           cat <<\_LT_EOF >> conftest.$ac_ext
6626   {0, (void *) 0}
6627 };
6628
6629 /* This works around a problem in FreeBSD linker */
6630 #ifdef FREEBSD_WORKAROUND
6631 static const void *lt_preloaded_setup() {
6632   return lt__PROGRAM__LTX_preloaded_symbols;
6633 }
6634 #endif
6635
6636 #ifdef __cplusplus
6637 }
6638 #endif
6639 _LT_EOF
6640           # Now try linking the two files.
6641           mv conftest.$ac_objext conftstm.$ac_objext
6642           lt_globsym_save_LIBS=$LIBS
6643           lt_globsym_save_CFLAGS=$CFLAGS
6644           LIBS="conftstm.$ac_objext"
6645           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6646           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6647   (eval $ac_link) 2>&5
6648   ac_status=$?
6649   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6650   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6651             pipe_works=yes
6652           fi
6653           LIBS=$lt_globsym_save_LIBS
6654           CFLAGS=$lt_globsym_save_CFLAGS
6655         else
6656           echo "cannot find nm_test_func in $nlist" >&5
6657         fi
6658       else
6659         echo "cannot find nm_test_var in $nlist" >&5
6660       fi
6661     else
6662       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6663     fi
6664   else
6665     echo "$progname: failed program was:" >&5
6666     cat conftest.$ac_ext >&5
6667   fi
6668   rm -rf conftest* conftst*
6669
6670   # Do not use the global_symbol_pipe unless it works.
6671   if test "$pipe_works" = yes; then
6672     break
6673   else
6674     lt_cv_sys_global_symbol_pipe=
6675   fi
6676 done
6677
6678 fi
6679
6680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6681   lt_cv_sys_global_symbol_to_cdecl=
6682 fi
6683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6685 $as_echo "failed" >&6; }
6686 else
6687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6688 $as_echo "ok" >&6; }
6689 fi
6690
6691 # Response file support.
6692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6693   nm_file_list_spec='@'
6694 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6695   nm_file_list_spec='@'
6696 fi
6697
6698
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6725 $as_echo_n "checking for sysroot... " >&6; }
6726
6727 # Check whether --with-sysroot was given.
6728 if test "${with_sysroot+set}" = set; then :
6729   withval=$with_sysroot;
6730 else
6731   with_sysroot=no
6732 fi
6733
6734
6735 lt_sysroot=
6736 case ${with_sysroot} in #(
6737  yes)
6738    if test "$GCC" = yes; then
6739      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6740    fi
6741    ;; #(
6742  /*)
6743    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6744    ;; #(
6745  no|'')
6746    ;; #(
6747  *)
6748    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6749 $as_echo "${with_sysroot}" >&6; }
6750    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6751    ;;
6752 esac
6753
6754  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6755 $as_echo "${lt_sysroot:-no}" >&6; }
6756
6757
6758
6759
6760
6761 # Check whether --enable-libtool-lock was given.
6762 if test "${enable_libtool_lock+set}" = set; then :
6763   enableval=$enable_libtool_lock;
6764 fi
6765
6766 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6767
6768 # Some flags need to be propagated to the compiler or linker for good
6769 # libtool support.
6770 case $host in
6771 ia64-*-hpux*)
6772   # Find out which ABI we are using.
6773   echo 'int i;' > conftest.$ac_ext
6774   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6775   (eval $ac_compile) 2>&5
6776   ac_status=$?
6777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778   test $ac_status = 0; }; then
6779     case `/usr/bin/file conftest.$ac_objext` in
6780       *ELF-32*)
6781         HPUX_IA64_MODE="32"
6782         ;;
6783       *ELF-64*)
6784         HPUX_IA64_MODE="64"
6785         ;;
6786     esac
6787   fi
6788   rm -rf conftest*
6789   ;;
6790 *-*-irix6*)
6791   # Find out which ABI we are using.
6792   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6793   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6794   (eval $ac_compile) 2>&5
6795   ac_status=$?
6796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6797   test $ac_status = 0; }; then
6798     if test "$lt_cv_prog_gnu_ld" = yes; then
6799       case `/usr/bin/file conftest.$ac_objext` in
6800         *32-bit*)
6801           LD="${LD-ld} -melf32bsmip"
6802           ;;
6803         *N32*)
6804           LD="${LD-ld} -melf32bmipn32"
6805           ;;
6806         *64-bit*)
6807           LD="${LD-ld} -melf64bmip"
6808         ;;
6809       esac
6810     else
6811       case `/usr/bin/file conftest.$ac_objext` in
6812         *32-bit*)
6813           LD="${LD-ld} -32"
6814           ;;
6815         *N32*)
6816           LD="${LD-ld} -n32"
6817           ;;
6818         *64-bit*)
6819           LD="${LD-ld} -64"
6820           ;;
6821       esac
6822     fi
6823   fi
6824   rm -rf conftest*
6825   ;;
6826
6827 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6828 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6829   # Find out which ABI we are using.
6830   echo 'int i;' > conftest.$ac_ext
6831   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832   (eval $ac_compile) 2>&5
6833   ac_status=$?
6834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6835   test $ac_status = 0; }; then
6836     case `/usr/bin/file conftest.o` in
6837       *32-bit*)
6838         case $host in
6839           x86_64-*kfreebsd*-gnu)
6840             LD="${LD-ld} -m elf_i386_fbsd"
6841             ;;
6842           x86_64-*linux*)
6843             LD="${LD-ld} -m elf_i386"
6844             ;;
6845           ppc64-*linux*|powerpc64-*linux*)
6846             LD="${LD-ld} -m elf32ppclinux"
6847             ;;
6848           s390x-*linux*)
6849             LD="${LD-ld} -m elf_s390"
6850             ;;
6851           sparc64-*linux*)
6852             LD="${LD-ld} -m elf32_sparc"
6853             ;;
6854         esac
6855         ;;
6856       *64-bit*)
6857         case $host in
6858           x86_64-*kfreebsd*-gnu)
6859             LD="${LD-ld} -m elf_x86_64_fbsd"
6860             ;;
6861           x86_64-*linux*)
6862             LD="${LD-ld} -m elf_x86_64"
6863             ;;
6864           ppc*-*linux*|powerpc*-*linux*)
6865             LD="${LD-ld} -m elf64ppc"
6866             ;;
6867           s390*-*linux*|s390*-*tpf*)
6868             LD="${LD-ld} -m elf64_s390"
6869             ;;
6870           sparc*-*linux*)
6871             LD="${LD-ld} -m elf64_sparc"
6872             ;;
6873         esac
6874         ;;
6875     esac
6876   fi
6877   rm -rf conftest*
6878   ;;
6879
6880 *-*-sco3.2v5*)
6881   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6882   SAVE_CFLAGS="$CFLAGS"
6883   CFLAGS="$CFLAGS -belf"
6884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6885 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6886 if ${lt_cv_cc_needs_belf+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   ac_ext=c
6890 ac_cpp='$CPP $CPPFLAGS'
6891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6894
6895      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6896 /* end confdefs.h.  */
6897
6898 int
6899 main ()
6900 {
6901
6902   ;
6903   return 0;
6904 }
6905 _ACEOF
6906 if ac_fn_c_try_link "$LINENO"; then :
6907   lt_cv_cc_needs_belf=yes
6908 else
6909   lt_cv_cc_needs_belf=no
6910 fi
6911 rm -f core conftest.err conftest.$ac_objext \
6912     conftest$ac_exeext conftest.$ac_ext
6913      ac_ext=c
6914 ac_cpp='$CPP $CPPFLAGS'
6915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6918
6919 fi
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6921 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6922   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6923     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6924     CFLAGS="$SAVE_CFLAGS"
6925   fi
6926   ;;
6927 sparc*-*solaris*)
6928   # Find out which ABI we are using.
6929   echo 'int i;' > conftest.$ac_ext
6930   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6931   (eval $ac_compile) 2>&5
6932   ac_status=$?
6933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6934   test $ac_status = 0; }; then
6935     case `/usr/bin/file conftest.o` in
6936     *64-bit*)
6937       case $lt_cv_prog_gnu_ld in
6938       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6939       *)
6940         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6941           LD="${LD-ld} -64"
6942         fi
6943         ;;
6944       esac
6945       ;;
6946     esac
6947   fi
6948   rm -rf conftest*
6949   ;;
6950 esac
6951
6952 need_locks="$enable_libtool_lock"
6953
6954 if test -n "$ac_tool_prefix"; then
6955   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6956 set dummy ${ac_tool_prefix}mt; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6960   $as_echo_n "(cached) " >&6
6961 else
6962   if test -n "$MANIFEST_TOOL"; then
6963   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6967 do
6968   IFS=$as_save_IFS
6969   test -z "$as_dir" && as_dir=.
6970     for ac_exec_ext in '' $ac_executable_extensions; do
6971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6973     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974     break 2
6975   fi
6976 done
6977   done
6978 IFS=$as_save_IFS
6979
6980 fi
6981 fi
6982 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6983 if test -n "$MANIFEST_TOOL"; then
6984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6985 $as_echo "$MANIFEST_TOOL" >&6; }
6986 else
6987   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6989 fi
6990
6991
6992 fi
6993 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6994   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6995   # Extract the first word of "mt", so it can be a program name with args.
6996 set dummy mt; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   if test -n "$ac_ct_MANIFEST_TOOL"; then
7003   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010     for ac_exec_ext in '' $ac_executable_extensions; do
7011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7012     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017   done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7023 if test -n "$ac_ct_MANIFEST_TOOL"; then
7024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7025 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7026 else
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7032     MANIFEST_TOOL=":"
7033   else
7034     case $cross_compiling:$ac_tool_warned in
7035 yes:)
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7038 ac_tool_warned=yes ;;
7039 esac
7040     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7041   fi
7042 else
7043   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7044 fi
7045
7046 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7048 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7049 if ${lt_cv_path_mainfest_tool+:} false; then :
7050   $as_echo_n "(cached) " >&6
7051 else
7052   lt_cv_path_mainfest_tool=no
7053   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7054   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7055   cat conftest.err >&5
7056   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7057     lt_cv_path_mainfest_tool=yes
7058   fi
7059   rm -f conftest*
7060 fi
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7062 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7063 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7064   MANIFEST_TOOL=:
7065 fi
7066
7067
7068
7069
7070
7071
7072   case $host_os in
7073     rhapsody* | darwin*)
7074     if test -n "$ac_tool_prefix"; then
7075   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   if test -n "$DSYMUTIL"; then
7083   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090     for ac_exec_ext in '' $ac_executable_extensions; do
7091   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7092     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097   done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7103 if test -n "$DSYMUTIL"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7105 $as_echo "$DSYMUTIL" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111
7112 fi
7113 if test -z "$ac_cv_prog_DSYMUTIL"; then
7114   ac_ct_DSYMUTIL=$DSYMUTIL
7115   # Extract the first word of "dsymutil", so it can be a program name with args.
7116 set dummy dsymutil; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7120   $as_echo_n "(cached) " >&6
7121 else
7122   if test -n "$ac_ct_DSYMUTIL"; then
7123   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130     for ac_exec_ext in '' $ac_executable_extensions; do
7131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137   done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7143 if test -n "$ac_ct_DSYMUTIL"; then
7144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7145 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7146 else
7147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151   if test "x$ac_ct_DSYMUTIL" = x; then
7152     DSYMUTIL=":"
7153   else
7154     case $cross_compiling:$ac_tool_warned in
7155 yes:)
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7158 ac_tool_warned=yes ;;
7159 esac
7160     DSYMUTIL=$ac_ct_DSYMUTIL
7161   fi
7162 else
7163   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7164 fi
7165
7166     if test -n "$ac_tool_prefix"; then
7167   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if ${ac_cv_prog_NMEDIT+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174   if test -n "$NMEDIT"; then
7175   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7176 else
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH
7179 do
7180   IFS=$as_save_IFS
7181   test -z "$as_dir" && as_dir=.
7182     for ac_exec_ext in '' $ac_executable_extensions; do
7183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7184     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7186     break 2
7187   fi
7188 done
7189   done
7190 IFS=$as_save_IFS
7191
7192 fi
7193 fi
7194 NMEDIT=$ac_cv_prog_NMEDIT
7195 if test -n "$NMEDIT"; then
7196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7197 $as_echo "$NMEDIT" >&6; }
7198 else
7199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200 $as_echo "no" >&6; }
7201 fi
7202
7203
7204 fi
7205 if test -z "$ac_cv_prog_NMEDIT"; then
7206   ac_ct_NMEDIT=$NMEDIT
7207   # Extract the first word of "nmedit", so it can be a program name with args.
7208 set dummy nmedit; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7212   $as_echo_n "(cached) " >&6
7213 else
7214   if test -n "$ac_ct_NMEDIT"; then
7215   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222     for ac_exec_ext in '' $ac_executable_extensions; do
7223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7225     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229   done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7235 if test -n "$ac_ct_NMEDIT"; then
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7237 $as_echo "$ac_ct_NMEDIT" >&6; }
7238 else
7239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243   if test "x$ac_ct_NMEDIT" = x; then
7244     NMEDIT=":"
7245   else
7246     case $cross_compiling:$ac_tool_warned in
7247 yes:)
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7250 ac_tool_warned=yes ;;
7251 esac
7252     NMEDIT=$ac_ct_NMEDIT
7253   fi
7254 else
7255   NMEDIT="$ac_cv_prog_NMEDIT"
7256 fi
7257
7258     if test -n "$ac_tool_prefix"; then
7259   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_LIPO+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$LIPO"; then
7267   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7276     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 LIPO=$ac_cv_prog_LIPO
7287 if test -n "$LIPO"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7289 $as_echo "$LIPO" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295
7296 fi
7297 if test -z "$ac_cv_prog_LIPO"; then
7298   ac_ct_LIPO=$LIPO
7299   # Extract the first word of "lipo", so it can be a program name with args.
7300 set dummy lipo; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7302 $as_echo_n "checking for $ac_word... " >&6; }
7303 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   if test -n "$ac_ct_LIPO"; then
7307   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7308 else
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7310 for as_dir in $PATH
7311 do
7312   IFS=$as_save_IFS
7313   test -z "$as_dir" && as_dir=.
7314     for ac_exec_ext in '' $ac_executable_extensions; do
7315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7316     ac_cv_prog_ac_ct_LIPO="lipo"
7317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7318     break 2
7319   fi
7320 done
7321   done
7322 IFS=$as_save_IFS
7323
7324 fi
7325 fi
7326 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7327 if test -n "$ac_ct_LIPO"; then
7328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7329 $as_echo "$ac_ct_LIPO" >&6; }
7330 else
7331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }
7333 fi
7334
7335   if test "x$ac_ct_LIPO" = x; then
7336     LIPO=":"
7337   else
7338     case $cross_compiling:$ac_tool_warned in
7339 yes:)
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7341 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7342 ac_tool_warned=yes ;;
7343 esac
7344     LIPO=$ac_ct_LIPO
7345   fi
7346 else
7347   LIPO="$ac_cv_prog_LIPO"
7348 fi
7349
7350     if test -n "$ac_tool_prefix"; then
7351   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}otool; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_OTOOL+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$OTOOL"; then
7359   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 OTOOL=$ac_cv_prog_OTOOL
7379 if test -n "$OTOOL"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7381 $as_echo "$OTOOL" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387
7388 fi
7389 if test -z "$ac_cv_prog_OTOOL"; then
7390   ac_ct_OTOOL=$OTOOL
7391   # Extract the first word of "otool", so it can be a program name with args.
7392 set dummy otool; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7396   $as_echo_n "(cached) " >&6
7397 else
7398   if test -n "$ac_ct_OTOOL"; then
7399   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404   IFS=$as_save_IFS
7405   test -z "$as_dir" && as_dir=.
7406     for ac_exec_ext in '' $ac_executable_extensions; do
7407   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408     ac_cv_prog_ac_ct_OTOOL="otool"
7409     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7410     break 2
7411   fi
7412 done
7413   done
7414 IFS=$as_save_IFS
7415
7416 fi
7417 fi
7418 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7419 if test -n "$ac_ct_OTOOL"; then
7420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7421 $as_echo "$ac_ct_OTOOL" >&6; }
7422 else
7423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7425 fi
7426
7427   if test "x$ac_ct_OTOOL" = x; then
7428     OTOOL=":"
7429   else
7430     case $cross_compiling:$ac_tool_warned in
7431 yes:)
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7433 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7434 ac_tool_warned=yes ;;
7435 esac
7436     OTOOL=$ac_ct_OTOOL
7437   fi
7438 else
7439   OTOOL="$ac_cv_prog_OTOOL"
7440 fi
7441
7442     if test -n "$ac_tool_prefix"; then
7443   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_OTOOL64+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$OTOOL64"; then
7451   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458     for ac_exec_ext in '' $ac_executable_extensions; do
7459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465   done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 OTOOL64=$ac_cv_prog_OTOOL64
7471 if test -n "$OTOOL64"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7473 $as_echo "$OTOOL64" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479
7480 fi
7481 if test -z "$ac_cv_prog_OTOOL64"; then
7482   ac_ct_OTOOL64=$OTOOL64
7483   # Extract the first word of "otool64", so it can be a program name with args.
7484 set dummy otool64; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7486 $as_echo_n "checking for $ac_word... " >&6; }
7487 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7488   $as_echo_n "(cached) " >&6
7489 else
7490   if test -n "$ac_ct_OTOOL64"; then
7491   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7492 else
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 for as_dir in $PATH
7495 do
7496   IFS=$as_save_IFS
7497   test -z "$as_dir" && as_dir=.
7498     for ac_exec_ext in '' $ac_executable_extensions; do
7499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7500     ac_cv_prog_ac_ct_OTOOL64="otool64"
7501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7502     break 2
7503   fi
7504 done
7505   done
7506 IFS=$as_save_IFS
7507
7508 fi
7509 fi
7510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7511 if test -n "$ac_ct_OTOOL64"; then
7512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7513 $as_echo "$ac_ct_OTOOL64" >&6; }
7514 else
7515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7516 $as_echo "no" >&6; }
7517 fi
7518
7519   if test "x$ac_ct_OTOOL64" = x; then
7520     OTOOL64=":"
7521   else
7522     case $cross_compiling:$ac_tool_warned in
7523 yes:)
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7526 ac_tool_warned=yes ;;
7527 esac
7528     OTOOL64=$ac_ct_OTOOL64
7529   fi
7530 else
7531   OTOOL64="$ac_cv_prog_OTOOL64"
7532 fi
7533
7534
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7561 $as_echo_n "checking for -single_module linker flag... " >&6; }
7562 if ${lt_cv_apple_cc_single_mod+:} false; then :
7563   $as_echo_n "(cached) " >&6
7564 else
7565   lt_cv_apple_cc_single_mod=no
7566       if test -z "${LT_MULTI_MODULE}"; then
7567         # By default we will add the -single_module flag. You can override
7568         # by either setting the environment variable LT_MULTI_MODULE
7569         # non-empty at configure time, or by adding -multi_module to the
7570         # link flags.
7571         rm -rf libconftest.dylib*
7572         echo "int foo(void){return 1;}" > conftest.c
7573         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7574 -dynamiclib -Wl,-single_module conftest.c" >&5
7575         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7576           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7577         _lt_result=$?
7578         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7579           lt_cv_apple_cc_single_mod=yes
7580         else
7581           cat conftest.err >&5
7582         fi
7583         rm -rf libconftest.dylib*
7584         rm -f conftest.*
7585       fi
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7588 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7590 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7591 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   lt_cv_ld_exported_symbols_list=no
7595       save_LDFLAGS=$LDFLAGS
7596       echo "_main" > conftest.sym
7597       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7598       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h.  */
7600
7601 int
7602 main ()
7603 {
7604
7605   ;
7606   return 0;
7607 }
7608 _ACEOF
7609 if ac_fn_c_try_link "$LINENO"; then :
7610   lt_cv_ld_exported_symbols_list=yes
7611 else
7612   lt_cv_ld_exported_symbols_list=no
7613 fi
7614 rm -f core conftest.err conftest.$ac_objext \
7615     conftest$ac_exeext conftest.$ac_ext
7616         LDFLAGS="$save_LDFLAGS"
7617
7618 fi
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7620 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7622 $as_echo_n "checking for -force_load linker flag... " >&6; }
7623 if ${lt_cv_ld_force_load+:} false; then :
7624   $as_echo_n "(cached) " >&6
7625 else
7626   lt_cv_ld_force_load=no
7627       cat > conftest.c << _LT_EOF
7628 int forced_loaded() { return 2;}
7629 _LT_EOF
7630       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7631       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7632       echo "$AR cru libconftest.a conftest.o" >&5
7633       $AR cru libconftest.a conftest.o 2>&5
7634       echo "$RANLIB libconftest.a" >&5
7635       $RANLIB libconftest.a 2>&5
7636       cat > conftest.c << _LT_EOF
7637 int main() { return 0;}
7638 _LT_EOF
7639       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7640       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7641       _lt_result=$?
7642       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7643         lt_cv_ld_force_load=yes
7644       else
7645         cat conftest.err >&5
7646       fi
7647         rm -f conftest.err libconftest.a conftest conftest.c
7648         rm -rf conftest.dSYM
7649
7650 fi
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7652 $as_echo "$lt_cv_ld_force_load" >&6; }
7653     case $host_os in
7654     rhapsody* | darwin1.[012])
7655       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7656     darwin1.*)
7657       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7658     darwin*) # darwin 5.x on
7659       # if running on 10.5 or later, the deployment target defaults
7660       # to the OS version, if on x86, and 10.4, the deployment
7661       # target defaults to 10.4. Don't you love it?
7662       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7663         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7664           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7665         10.[012]*)
7666           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7667         10.*)
7668           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7669       esac
7670     ;;
7671   esac
7672     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7673       _lt_dar_single_mod='$single_module'
7674     fi
7675     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7676       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7677     else
7678       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7679     fi
7680     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7681       _lt_dsymutil='~$DSYMUTIL $lib || :'
7682     else
7683       _lt_dsymutil=
7684     fi
7685     ;;
7686   esac
7687
7688 ac_ext=c
7689 ac_cpp='$CPP $CPPFLAGS'
7690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7695 # On Suns, sometimes $CPP names a directory.
7696 if test -n "$CPP" && test -d "$CPP"; then
7697   CPP=
7698 fi
7699 if test -z "$CPP"; then
7700   if ${ac_cv_prog_CPP+:} false; then :
7701   $as_echo_n "(cached) " >&6
7702 else
7703       # Double quotes because CPP needs to be expanded
7704     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7705     do
7706       ac_preproc_ok=false
7707 for ac_c_preproc_warn_flag in '' yes
7708 do
7709   # Use a header file that comes with gcc, so configuring glibc
7710   # with a fresh cross-compiler works.
7711   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7712   # <limits.h> exists even on freestanding compilers.
7713   # On the NeXT, cc -E runs the code through the compiler's parser,
7714   # not just through cpp. "Syntax error" is here to catch this case.
7715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7716 /* end confdefs.h.  */
7717 #ifdef __STDC__
7718 # include <limits.h>
7719 #else
7720 # include <assert.h>
7721 #endif
7722                      Syntax error
7723 _ACEOF
7724 if ac_fn_c_try_cpp "$LINENO"; then :
7725
7726 else
7727   # Broken: fails on valid input.
7728 continue
7729 fi
7730 rm -f conftest.err conftest.i conftest.$ac_ext
7731
7732   # OK, works on sane cases.  Now check whether nonexistent headers
7733   # can be detected and how.
7734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735 /* end confdefs.h.  */
7736 #include <ac_nonexistent.h>
7737 _ACEOF
7738 if ac_fn_c_try_cpp "$LINENO"; then :
7739   # Broken: success on invalid input.
7740 continue
7741 else
7742   # Passes both tests.
7743 ac_preproc_ok=:
7744 break
7745 fi
7746 rm -f conftest.err conftest.i conftest.$ac_ext
7747
7748 done
7749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7750 rm -f conftest.i conftest.err conftest.$ac_ext
7751 if $ac_preproc_ok; then :
7752   break
7753 fi
7754
7755     done
7756     ac_cv_prog_CPP=$CPP
7757
7758 fi
7759   CPP=$ac_cv_prog_CPP
7760 else
7761   ac_cv_prog_CPP=$CPP
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7764 $as_echo "$CPP" >&6; }
7765 ac_preproc_ok=false
7766 for ac_c_preproc_warn_flag in '' yes
7767 do
7768   # Use a header file that comes with gcc, so configuring glibc
7769   # with a fresh cross-compiler works.
7770   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7771   # <limits.h> exists even on freestanding compilers.
7772   # On the NeXT, cc -E runs the code through the compiler's parser,
7773   # not just through cpp. "Syntax error" is here to catch this case.
7774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775 /* end confdefs.h.  */
7776 #ifdef __STDC__
7777 # include <limits.h>
7778 #else
7779 # include <assert.h>
7780 #endif
7781                      Syntax error
7782 _ACEOF
7783 if ac_fn_c_try_cpp "$LINENO"; then :
7784
7785 else
7786   # Broken: fails on valid input.
7787 continue
7788 fi
7789 rm -f conftest.err conftest.i conftest.$ac_ext
7790
7791   # OK, works on sane cases.  Now check whether nonexistent headers
7792   # can be detected and how.
7793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h.  */
7795 #include <ac_nonexistent.h>
7796 _ACEOF
7797 if ac_fn_c_try_cpp "$LINENO"; then :
7798   # Broken: success on invalid input.
7799 continue
7800 else
7801   # Passes both tests.
7802 ac_preproc_ok=:
7803 break
7804 fi
7805 rm -f conftest.err conftest.i conftest.$ac_ext
7806
7807 done
7808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7809 rm -f conftest.i conftest.err conftest.$ac_ext
7810 if $ac_preproc_ok; then :
7811
7812 else
7813   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7816 See \`config.log' for more details" "$LINENO" 5; }
7817 fi
7818
7819 ac_ext=c
7820 ac_cpp='$CPP $CPPFLAGS'
7821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7824
7825
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7827 $as_echo_n "checking for ANSI C header files... " >&6; }
7828 if ${ac_cv_header_stdc+:} false; then :
7829   $as_echo_n "(cached) " >&6
7830 else
7831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h.  */
7833 #include <stdlib.h>
7834 #include <stdarg.h>
7835 #include <string.h>
7836 #include <float.h>
7837
7838 int
7839 main ()
7840 {
7841
7842   ;
7843   return 0;
7844 }
7845 _ACEOF
7846 if ac_fn_c_try_compile "$LINENO"; then :
7847   ac_cv_header_stdc=yes
7848 else
7849   ac_cv_header_stdc=no
7850 fi
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852
7853 if test $ac_cv_header_stdc = yes; then
7854   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857 #include <string.h>
7858
7859 _ACEOF
7860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7861   $EGREP "memchr" >/dev/null 2>&1; then :
7862
7863 else
7864   ac_cv_header_stdc=no
7865 fi
7866 rm -f conftest*
7867
7868 fi
7869
7870 if test $ac_cv_header_stdc = yes; then
7871   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h.  */
7874 #include <stdlib.h>
7875
7876 _ACEOF
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878   $EGREP "free" >/dev/null 2>&1; then :
7879
7880 else
7881   ac_cv_header_stdc=no
7882 fi
7883 rm -f conftest*
7884
7885 fi
7886
7887 if test $ac_cv_header_stdc = yes; then
7888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7889   if test "$cross_compiling" = yes; then :
7890   :
7891 else
7892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7893 /* end confdefs.h.  */
7894 #include <ctype.h>
7895 #include <stdlib.h>
7896 #if ((' ' & 0x0FF) == 0x020)
7897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7899 #else
7900 # define ISLOWER(c) \
7901                    (('a' <= (c) && (c) <= 'i') \
7902                      || ('j' <= (c) && (c) <= 'r') \
7903                      || ('s' <= (c) && (c) <= 'z'))
7904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7905 #endif
7906
7907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7908 int
7909 main ()
7910 {
7911   int i;
7912   for (i = 0; i < 256; i++)
7913     if (XOR (islower (i), ISLOWER (i))
7914         || toupper (i) != TOUPPER (i))
7915       return 2;
7916   return 0;
7917 }
7918 _ACEOF
7919 if ac_fn_c_try_run "$LINENO"; then :
7920
7921 else
7922   ac_cv_header_stdc=no
7923 fi
7924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7925   conftest.$ac_objext conftest.beam conftest.$ac_ext
7926 fi
7927
7928 fi
7929 fi
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7931 $as_echo "$ac_cv_header_stdc" >&6; }
7932 if test $ac_cv_header_stdc = yes; then
7933
7934 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7935
7936 fi
7937
7938 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7939 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7940                   inttypes.h stdint.h unistd.h
7941 do :
7942   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7943 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7944 "
7945 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7946   cat >>confdefs.h <<_ACEOF
7947 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7948 _ACEOF
7949
7950 fi
7951
7952 done
7953
7954
7955 for ac_header in dlfcn.h
7956 do :
7957   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7958 "
7959 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7960   cat >>confdefs.h <<_ACEOF
7961 #define HAVE_DLFCN_H 1
7962 _ACEOF
7963
7964 fi
7965
7966 done
7967
7968
7969
7970
7971
7972 # Set options
7973
7974
7975
7976         enable_dlopen=no
7977
7978
7979   enable_win32_dll=no
7980
7981
7982             # Check whether --enable-shared was given.
7983 if test "${enable_shared+set}" = set; then :
7984   enableval=$enable_shared; p=${PACKAGE-default}
7985     case $enableval in
7986     yes) enable_shared=yes ;;
7987     no) enable_shared=no ;;
7988     *)
7989       enable_shared=no
7990       # Look at the argument we got.  We use all the common list separators.
7991       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992       for pkg in $enableval; do
7993         IFS="$lt_save_ifs"
7994         if test "X$pkg" = "X$p"; then
7995           enable_shared=yes
7996         fi
7997       done
7998       IFS="$lt_save_ifs"
7999       ;;
8000     esac
8001 else
8002   enable_shared=yes
8003 fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013   # Check whether --enable-static was given.
8014 if test "${enable_static+set}" = set; then :
8015   enableval=$enable_static; p=${PACKAGE-default}
8016     case $enableval in
8017     yes) enable_static=yes ;;
8018     no) enable_static=no ;;
8019     *)
8020      enable_static=no
8021       # Look at the argument we got.  We use all the common list separators.
8022       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023       for pkg in $enableval; do
8024         IFS="$lt_save_ifs"
8025         if test "X$pkg" = "X$p"; then
8026           enable_static=yes
8027         fi
8028       done
8029       IFS="$lt_save_ifs"
8030       ;;
8031     esac
8032 else
8033   enable_static=yes
8034 fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045 # Check whether --with-pic was given.
8046 if test "${with_pic+set}" = set; then :
8047   withval=$with_pic; pic_mode="$withval"
8048 else
8049   pic_mode=default
8050 fi
8051
8052
8053 test -z "$pic_mode" && pic_mode=default
8054
8055
8056
8057
8058
8059
8060
8061   # Check whether --enable-fast-install was given.
8062 if test "${enable_fast_install+set}" = set; then :
8063   enableval=$enable_fast_install; p=${PACKAGE-default}
8064     case $enableval in
8065     yes) enable_fast_install=yes ;;
8066     no) enable_fast_install=no ;;
8067     *)
8068       enable_fast_install=no
8069       # Look at the argument we got.  We use all the common list separators.
8070       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071       for pkg in $enableval; do
8072         IFS="$lt_save_ifs"
8073         if test "X$pkg" = "X$p"; then
8074           enable_fast_install=yes
8075         fi
8076       done
8077       IFS="$lt_save_ifs"
8078       ;;
8079     esac
8080 else
8081   enable_fast_install=yes
8082 fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094 # This can be used to rebuild libtool when needed
8095 LIBTOOL_DEPS="$ltmain"
8096
8097 # Always use our own libtool.
8098 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8099
8100
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 test -z "$LN_S" && LN_S="ln -s"
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 if test -n "${ZSH_VERSION+set}" ; then
8141    setopt NO_GLOB_SUBST
8142 fi
8143
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8145 $as_echo_n "checking for objdir... " >&6; }
8146 if ${lt_cv_objdir+:} false; then :
8147   $as_echo_n "(cached) " >&6
8148 else
8149   rm -f .libs 2>/dev/null
8150 mkdir .libs 2>/dev/null
8151 if test -d .libs; then
8152   lt_cv_objdir=.libs
8153 else
8154   # MS-DOS does not allow filenames that begin with a dot.
8155   lt_cv_objdir=_libs
8156 fi
8157 rmdir .libs 2>/dev/null
8158 fi
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8160 $as_echo "$lt_cv_objdir" >&6; }
8161 objdir=$lt_cv_objdir
8162
8163
8164
8165
8166
8167 cat >>confdefs.h <<_ACEOF
8168 #define LT_OBJDIR "$lt_cv_objdir/"
8169 _ACEOF
8170
8171
8172
8173
8174 case $host_os in
8175 aix3*)
8176   # AIX sometimes has problems with the GCC collect2 program.  For some
8177   # reason, if we set the COLLECT_NAMES environment variable, the problems
8178   # vanish in a puff of smoke.
8179   if test "X${COLLECT_NAMES+set}" != Xset; then
8180     COLLECT_NAMES=
8181     export COLLECT_NAMES
8182   fi
8183   ;;
8184 esac
8185
8186 # Global variables:
8187 ofile=libtool
8188 can_build_shared=yes
8189
8190 # All known linkers require a `.a' archive for static linking (except MSVC,
8191 # which needs '.lib').
8192 libext=a
8193
8194 with_gnu_ld="$lt_cv_prog_gnu_ld"
8195
8196 old_CC="$CC"
8197 old_CFLAGS="$CFLAGS"
8198
8199 # Set sane defaults for various variables
8200 test -z "$CC" && CC=cc
8201 test -z "$LTCC" && LTCC=$CC
8202 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8203 test -z "$LD" && LD=ld
8204 test -z "$ac_objext" && ac_objext=o
8205
8206 for cc_temp in $compiler""; do
8207   case $cc_temp in
8208     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8209     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8210     \-*) ;;
8211     *) break;;
8212   esac
8213 done
8214 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8215
8216
8217 # Only perform the check for file, if the check method requires it
8218 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8219 case $deplibs_check_method in
8220 file_magic*)
8221   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8222     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8223 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8224 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8225   $as_echo_n "(cached) " >&6
8226 else
8227   case $MAGIC_CMD in
8228 [\\/*] |  ?:[\\/]*)
8229   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230   ;;
8231 *)
8232   lt_save_MAGIC_CMD="$MAGIC_CMD"
8233   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235   for ac_dir in $ac_dummy; do
8236     IFS="$lt_save_ifs"
8237     test -z "$ac_dir" && ac_dir=.
8238     if test -f $ac_dir/${ac_tool_prefix}file; then
8239       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8240       if test -n "$file_magic_test_file"; then
8241         case $deplibs_check_method in
8242         "file_magic "*)
8243           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246             $EGREP "$file_magic_regex" > /dev/null; then
8247             :
8248           else
8249             cat <<_LT_EOF 1>&2
8250
8251 *** Warning: the command libtool uses to detect shared libraries,
8252 *** $file_magic_cmd, produces output that libtool cannot recognize.
8253 *** The result is that libtool may fail to recognize shared libraries
8254 *** as such.  This will affect the creation of libtool libraries that
8255 *** depend on shared libraries, but programs linked with such libtool
8256 *** libraries will work regardless of this problem.  Nevertheless, you
8257 *** may want to report the problem to your system manager and/or to
8258 *** bug-libtool@gnu.org
8259
8260 _LT_EOF
8261           fi ;;
8262         esac
8263       fi
8264       break
8265     fi
8266   done
8267   IFS="$lt_save_ifs"
8268   MAGIC_CMD="$lt_save_MAGIC_CMD"
8269   ;;
8270 esac
8271 fi
8272
8273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274 if test -n "$MAGIC_CMD"; then
8275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8276 $as_echo "$MAGIC_CMD" >&6; }
8277 else
8278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279 $as_echo "no" >&6; }
8280 fi
8281
8282
8283
8284
8285
8286 if test -z "$lt_cv_path_MAGIC_CMD"; then
8287   if test -n "$ac_tool_prefix"; then
8288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8289 $as_echo_n "checking for file... " >&6; }
8290 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8291   $as_echo_n "(cached) " >&6
8292 else
8293   case $MAGIC_CMD in
8294 [\\/*] |  ?:[\\/]*)
8295   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8296   ;;
8297 *)
8298   lt_save_MAGIC_CMD="$MAGIC_CMD"
8299   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8300   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8301   for ac_dir in $ac_dummy; do
8302     IFS="$lt_save_ifs"
8303     test -z "$ac_dir" && ac_dir=.
8304     if test -f $ac_dir/file; then
8305       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8306       if test -n "$file_magic_test_file"; then
8307         case $deplibs_check_method in
8308         "file_magic "*)
8309           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8310           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8311           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8312             $EGREP "$file_magic_regex" > /dev/null; then
8313             :
8314           else
8315             cat <<_LT_EOF 1>&2
8316
8317 *** Warning: the command libtool uses to detect shared libraries,
8318 *** $file_magic_cmd, produces output that libtool cannot recognize.
8319 *** The result is that libtool may fail to recognize shared libraries
8320 *** as such.  This will affect the creation of libtool libraries that
8321 *** depend on shared libraries, but programs linked with such libtool
8322 *** libraries will work regardless of this problem.  Nevertheless, you
8323 *** may want to report the problem to your system manager and/or to
8324 *** bug-libtool@gnu.org
8325
8326 _LT_EOF
8327           fi ;;
8328         esac
8329       fi
8330       break
8331     fi
8332   done
8333   IFS="$lt_save_ifs"
8334   MAGIC_CMD="$lt_save_MAGIC_CMD"
8335   ;;
8336 esac
8337 fi
8338
8339 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8340 if test -n "$MAGIC_CMD"; then
8341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8342 $as_echo "$MAGIC_CMD" >&6; }
8343 else
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8346 fi
8347
8348
8349   else
8350     MAGIC_CMD=:
8351   fi
8352 fi
8353
8354   fi
8355   ;;
8356 esac
8357
8358 # Use C for the default configuration in the libtool script
8359
8360 lt_save_CC="$CC"
8361 ac_ext=c
8362 ac_cpp='$CPP $CPPFLAGS'
8363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366
8367
8368 # Source file extension for C test sources.
8369 ac_ext=c
8370
8371 # Object file extension for compiled C test sources.
8372 objext=o
8373 objext=$objext
8374
8375 # Code to be used in simple compile tests
8376 lt_simple_compile_test_code="int some_variable = 0;"
8377
8378 # Code to be used in simple link tests
8379 lt_simple_link_test_code='int main(){return(0);}'
8380
8381
8382
8383
8384
8385
8386
8387 # If no C compiler was specified, use CC.
8388 LTCC=${LTCC-"$CC"}
8389
8390 # If no C compiler flags were specified, use CFLAGS.
8391 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8392
8393 # Allow CC to be a program name with arguments.
8394 compiler=$CC
8395
8396 # Save the default compiler, since it gets overwritten when the other
8397 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8398 compiler_DEFAULT=$CC
8399
8400 # save warnings/boilerplate of simple test code
8401 ac_outfile=conftest.$ac_objext
8402 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8403 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8404 _lt_compiler_boilerplate=`cat conftest.err`
8405 $RM conftest*
8406
8407 ac_outfile=conftest.$ac_objext
8408 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8409 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8410 _lt_linker_boilerplate=`cat conftest.err`
8411 $RM -r conftest*
8412
8413
8414 ## CAVEAT EMPTOR:
8415 ## There is no encapsulation within the following macros, do not change
8416 ## the running order or otherwise move them around unless you know exactly
8417 ## what you are doing...
8418 if test -n "$compiler"; then
8419
8420 lt_prog_compiler_no_builtin_flag=
8421
8422 if test "$GCC" = yes; then
8423   case $cc_basename in
8424   nvcc*)
8425     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8426   *)
8427     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8428   esac
8429
8430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8431 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8432 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8433   $as_echo_n "(cached) " >&6
8434 else
8435   lt_cv_prog_compiler_rtti_exceptions=no
8436    ac_outfile=conftest.$ac_objext
8437    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438    lt_compiler_flag="-fno-rtti -fno-exceptions"
8439    # Insert the option either (1) after the last *FLAGS variable, or
8440    # (2) before a word containing "conftest.", or (3) at the end.
8441    # Note that $ac_compile itself does not contain backslashes and begins
8442    # with a dollar sign (not a hyphen), so the echo should work correctly.
8443    # The option is referenced via a variable to avoid confusing sed.
8444    lt_compile=`echo "$ac_compile" | $SED \
8445    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447    -e 's:$: $lt_compiler_flag:'`
8448    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8449    (eval "$lt_compile" 2>conftest.err)
8450    ac_status=$?
8451    cat conftest.err >&5
8452    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453    if (exit $ac_status) && test -s "$ac_outfile"; then
8454      # The compiler can only warn and ignore the option if not recognized
8455      # So say no if there are warnings other than the usual output.
8456      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8457      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8458      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8459        lt_cv_prog_compiler_rtti_exceptions=yes
8460      fi
8461    fi
8462    $RM conftest*
8463
8464 fi
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8466 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8467
8468 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8469     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8470 else
8471     :
8472 fi
8473
8474 fi
8475
8476
8477
8478
8479
8480
8481   lt_prog_compiler_wl=
8482 lt_prog_compiler_pic=
8483 lt_prog_compiler_static=
8484
8485
8486   if test "$GCC" = yes; then
8487     lt_prog_compiler_wl='-Wl,'
8488     lt_prog_compiler_static='-static'
8489
8490     case $host_os in
8491       aix*)
8492       # All AIX code is PIC.
8493       if test "$host_cpu" = ia64; then
8494         # AIX 5 now supports IA64 processor
8495         lt_prog_compiler_static='-Bstatic'
8496       fi
8497       ;;
8498
8499     amigaos*)
8500       case $host_cpu in
8501       powerpc)
8502             # see comment about AmigaOS4 .so support
8503             lt_prog_compiler_pic='-fPIC'
8504         ;;
8505       m68k)
8506             # FIXME: we need at least 68020 code to build shared libraries, but
8507             # adding the `-m68020' flag to GCC prevents building anything better,
8508             # like `-m68040'.
8509             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8510         ;;
8511       esac
8512       ;;
8513
8514     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8515       # PIC is the default for these OSes.
8516       ;;
8517
8518     mingw* | cygwin* | pw32* | os2* | cegcc*)
8519       # This hack is so that the source file can tell whether it is being
8520       # built for inclusion in a dll (and should export symbols for example).
8521       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8522       # (--disable-auto-import) libraries
8523       lt_prog_compiler_pic='-DDLL_EXPORT'
8524       ;;
8525
8526     darwin* | rhapsody*)
8527       # PIC is the default on this platform
8528       # Common symbols not allowed in MH_DYLIB files
8529       lt_prog_compiler_pic='-fno-common'
8530       ;;
8531
8532     haiku*)
8533       # PIC is the default for Haiku.
8534       # The "-static" flag exists, but is broken.
8535       lt_prog_compiler_static=
8536       ;;
8537
8538     hpux*)
8539       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8540       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8541       # sets the default TLS model and affects inlining.
8542       case $host_cpu in
8543       hppa*64*)
8544         # +Z the default
8545         ;;
8546       *)
8547         lt_prog_compiler_pic='-fPIC'
8548         ;;
8549       esac
8550       ;;
8551
8552     interix[3-9]*)
8553       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8554       # Instead, we relocate shared libraries at runtime.
8555       ;;
8556
8557     msdosdjgpp*)
8558       # Just because we use GCC doesn't mean we suddenly get shared libraries
8559       # on systems that don't support them.
8560       lt_prog_compiler_can_build_shared=no
8561       enable_shared=no
8562       ;;
8563
8564     *nto* | *qnx*)
8565       # QNX uses GNU C++, but need to define -shared option too, otherwise
8566       # it will coredump.
8567       lt_prog_compiler_pic='-fPIC -shared'
8568       ;;
8569
8570     sysv4*MP*)
8571       if test -d /usr/nec; then
8572         lt_prog_compiler_pic=-Kconform_pic
8573       fi
8574       ;;
8575
8576     *)
8577       lt_prog_compiler_pic='-fPIC'
8578       ;;
8579     esac
8580
8581     case $cc_basename in
8582     nvcc*) # Cuda Compiler Driver 2.2
8583       lt_prog_compiler_wl='-Xlinker '
8584       lt_prog_compiler_pic='-Xcompiler -fPIC'
8585       ;;
8586     esac
8587   else
8588     # PORTME Check for flag to pass linker flags through the system compiler.
8589     case $host_os in
8590     aix*)
8591       lt_prog_compiler_wl='-Wl,'
8592       if test "$host_cpu" = ia64; then
8593         # AIX 5 now supports IA64 processor
8594         lt_prog_compiler_static='-Bstatic'
8595       else
8596         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8597       fi
8598       ;;
8599
8600     mingw* | cygwin* | pw32* | os2* | cegcc*)
8601       # This hack is so that the source file can tell whether it is being
8602       # built for inclusion in a dll (and should export symbols for example).
8603       lt_prog_compiler_pic='-DDLL_EXPORT'
8604       ;;
8605
8606     hpux9* | hpux10* | hpux11*)
8607       lt_prog_compiler_wl='-Wl,'
8608       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8609       # not for PA HP-UX.
8610       case $host_cpu in
8611       hppa*64*|ia64*)
8612         # +Z the default
8613         ;;
8614       *)
8615         lt_prog_compiler_pic='+Z'
8616         ;;
8617       esac
8618       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8619       lt_prog_compiler_static='${wl}-a ${wl}archive'
8620       ;;
8621
8622     irix5* | irix6* | nonstopux*)
8623       lt_prog_compiler_wl='-Wl,'
8624       # PIC (with -KPIC) is the default.
8625       lt_prog_compiler_static='-non_shared'
8626       ;;
8627
8628     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8629       case $cc_basename in
8630       # old Intel for x86_64 which still supported -KPIC.
8631       ecc*)
8632         lt_prog_compiler_wl='-Wl,'
8633         lt_prog_compiler_pic='-KPIC'
8634         lt_prog_compiler_static='-static'
8635         ;;
8636       # icc used to be incompatible with GCC.
8637       # ICC 10 doesn't accept -KPIC any more.
8638       icc* | ifort*)
8639         lt_prog_compiler_wl='-Wl,'
8640         lt_prog_compiler_pic='-fPIC'
8641         lt_prog_compiler_static='-static'
8642         ;;
8643       # Lahey Fortran 8.1.
8644       lf95*)
8645         lt_prog_compiler_wl='-Wl,'
8646         lt_prog_compiler_pic='--shared'
8647         lt_prog_compiler_static='--static'
8648         ;;
8649       nagfor*)
8650         # NAG Fortran compiler
8651         lt_prog_compiler_wl='-Wl,-Wl,,'
8652         lt_prog_compiler_pic='-PIC'
8653         lt_prog_compiler_static='-Bstatic'
8654         ;;
8655       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8656         # Portland Group compilers (*not* the Pentium gcc compiler,
8657         # which looks to be a dead project)
8658         lt_prog_compiler_wl='-Wl,'
8659         lt_prog_compiler_pic='-fpic'
8660         lt_prog_compiler_static='-Bstatic'
8661         ;;
8662       ccc*)
8663         lt_prog_compiler_wl='-Wl,'
8664         # All Alpha code is PIC.
8665         lt_prog_compiler_static='-non_shared'
8666         ;;
8667       xl* | bgxl* | bgf* | mpixl*)
8668         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8669         lt_prog_compiler_wl='-Wl,'
8670         lt_prog_compiler_pic='-qpic'
8671         lt_prog_compiler_static='-qstaticlink'
8672         ;;
8673       *)
8674         case `$CC -V 2>&1 | sed 5q` in
8675         *Sun\ F* | *Sun*Fortran*)
8676           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8677           lt_prog_compiler_pic='-KPIC'
8678           lt_prog_compiler_static='-Bstatic'
8679           lt_prog_compiler_wl=''
8680           ;;
8681         *Sun\ C*)
8682           # Sun C 5.9
8683           lt_prog_compiler_pic='-KPIC'
8684           lt_prog_compiler_static='-Bstatic'
8685           lt_prog_compiler_wl='-Wl,'
8686           ;;
8687         esac
8688         ;;
8689       esac
8690       ;;
8691
8692     newsos6)
8693       lt_prog_compiler_pic='-KPIC'
8694       lt_prog_compiler_static='-Bstatic'
8695       ;;
8696
8697     *nto* | *qnx*)
8698       # QNX uses GNU C++, but need to define -shared option too, otherwise
8699       # it will coredump.
8700       lt_prog_compiler_pic='-fPIC -shared'
8701       ;;
8702
8703     osf3* | osf4* | osf5*)
8704       lt_prog_compiler_wl='-Wl,'
8705       # All OSF/1 code is PIC.
8706       lt_prog_compiler_static='-non_shared'
8707       ;;
8708
8709     rdos*)
8710       lt_prog_compiler_static='-non_shared'
8711       ;;
8712
8713     solaris*)
8714       lt_prog_compiler_pic='-KPIC'
8715       lt_prog_compiler_static='-Bstatic'
8716       case $cc_basename in
8717       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8718         lt_prog_compiler_wl='-Qoption ld ';;
8719       *)
8720         lt_prog_compiler_wl='-Wl,';;
8721       esac
8722       ;;
8723
8724     sunos4*)
8725       lt_prog_compiler_wl='-Qoption ld '
8726       lt_prog_compiler_pic='-PIC'
8727       lt_prog_compiler_static='-Bstatic'
8728       ;;
8729
8730     sysv4 | sysv4.2uw2* | sysv4.3*)
8731       lt_prog_compiler_wl='-Wl,'
8732       lt_prog_compiler_pic='-KPIC'
8733       lt_prog_compiler_static='-Bstatic'
8734       ;;
8735
8736     sysv4*MP*)
8737       if test -d /usr/nec ;then
8738         lt_prog_compiler_pic='-Kconform_pic'
8739         lt_prog_compiler_static='-Bstatic'
8740       fi
8741       ;;
8742
8743     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8744       lt_prog_compiler_wl='-Wl,'
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     unicos*)
8750       lt_prog_compiler_wl='-Wl,'
8751       lt_prog_compiler_can_build_shared=no
8752       ;;
8753
8754     uts4*)
8755       lt_prog_compiler_pic='-pic'
8756       lt_prog_compiler_static='-Bstatic'
8757       ;;
8758
8759     *)
8760       lt_prog_compiler_can_build_shared=no
8761       ;;
8762     esac
8763   fi
8764
8765 case $host_os in
8766   # For platforms which do not support PIC, -DPIC is meaningless:
8767   *djgpp*)
8768     lt_prog_compiler_pic=
8769     ;;
8770   *)
8771     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8772     ;;
8773 esac
8774
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8777 if ${lt_cv_prog_compiler_pic+:} false; then :
8778   $as_echo_n "(cached) " >&6
8779 else
8780   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8781 fi
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8783 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8784 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8785
8786 #
8787 # Check to make sure the PIC flag actually works.
8788 #
8789 if test -n "$lt_prog_compiler_pic"; then
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8791 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8792 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   lt_cv_prog_compiler_pic_works=no
8796    ac_outfile=conftest.$ac_objext
8797    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8798    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8799    # Insert the option either (1) after the last *FLAGS variable, or
8800    # (2) before a word containing "conftest.", or (3) at the end.
8801    # Note that $ac_compile itself does not contain backslashes and begins
8802    # with a dollar sign (not a hyphen), so the echo should work correctly.
8803    # The option is referenced via a variable to avoid confusing sed.
8804    lt_compile=`echo "$ac_compile" | $SED \
8805    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8806    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8807    -e 's:$: $lt_compiler_flag:'`
8808    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8809    (eval "$lt_compile" 2>conftest.err)
8810    ac_status=$?
8811    cat conftest.err >&5
8812    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813    if (exit $ac_status) && test -s "$ac_outfile"; then
8814      # The compiler can only warn and ignore the option if not recognized
8815      # So say no if there are warnings other than the usual output.
8816      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8817      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8818      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8819        lt_cv_prog_compiler_pic_works=yes
8820      fi
8821    fi
8822    $RM conftest*
8823
8824 fi
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8826 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8827
8828 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8829     case $lt_prog_compiler_pic in
8830      "" | " "*) ;;
8831      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8832      esac
8833 else
8834     lt_prog_compiler_pic=
8835      lt_prog_compiler_can_build_shared=no
8836 fi
8837
8838 fi
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850 #
8851 # Check to make sure the static flag actually works.
8852 #
8853 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8855 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8856 if ${lt_cv_prog_compiler_static_works+:} false; then :
8857   $as_echo_n "(cached) " >&6
8858 else
8859   lt_cv_prog_compiler_static_works=no
8860    save_LDFLAGS="$LDFLAGS"
8861    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8862    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8863    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8864      # The linker can only warn and ignore the option if not recognized
8865      # So say no if there are warnings
8866      if test -s conftest.err; then
8867        # Append any errors to the config.log.
8868        cat conftest.err 1>&5
8869        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8870        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8871        if diff conftest.exp conftest.er2 >/dev/null; then
8872          lt_cv_prog_compiler_static_works=yes
8873        fi
8874      else
8875        lt_cv_prog_compiler_static_works=yes
8876      fi
8877    fi
8878    $RM -r conftest*
8879    LDFLAGS="$save_LDFLAGS"
8880
8881 fi
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8883 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8884
8885 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8886     :
8887 else
8888     lt_prog_compiler_static=
8889 fi
8890
8891
8892
8893
8894
8895
8896
8897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8898 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8899 if ${lt_cv_prog_compiler_c_o+:} false; then :
8900   $as_echo_n "(cached) " >&6
8901 else
8902   lt_cv_prog_compiler_c_o=no
8903    $RM -r conftest 2>/dev/null
8904    mkdir conftest
8905    cd conftest
8906    mkdir out
8907    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8908
8909    lt_compiler_flag="-o out/conftest2.$ac_objext"
8910    # Insert the option either (1) after the last *FLAGS variable, or
8911    # (2) before a word containing "conftest.", or (3) at the end.
8912    # Note that $ac_compile itself does not contain backslashes and begins
8913    # with a dollar sign (not a hyphen), so the echo should work correctly.
8914    lt_compile=`echo "$ac_compile" | $SED \
8915    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8916    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8917    -e 's:$: $lt_compiler_flag:'`
8918    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8919    (eval "$lt_compile" 2>out/conftest.err)
8920    ac_status=$?
8921    cat out/conftest.err >&5
8922    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8924    then
8925      # The compiler can only warn and ignore the option if not recognized
8926      # So say no if there are warnings
8927      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8928      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8929      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8930        lt_cv_prog_compiler_c_o=yes
8931      fi
8932    fi
8933    chmod u+w . 2>&5
8934    $RM conftest*
8935    # SGI C++ compiler will create directory out/ii_files/ for
8936    # template instantiation
8937    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8938    $RM out/* && rmdir out
8939    cd ..
8940    $RM -r conftest
8941    $RM conftest*
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8946
8947
8948
8949
8950
8951
8952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8953 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8954 if ${lt_cv_prog_compiler_c_o+:} false; then :
8955   $as_echo_n "(cached) " >&6
8956 else
8957   lt_cv_prog_compiler_c_o=no
8958    $RM -r conftest 2>/dev/null
8959    mkdir conftest
8960    cd conftest
8961    mkdir out
8962    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8963
8964    lt_compiler_flag="-o out/conftest2.$ac_objext"
8965    # Insert the option either (1) after the last *FLAGS variable, or
8966    # (2) before a word containing "conftest.", or (3) at the end.
8967    # Note that $ac_compile itself does not contain backslashes and begins
8968    # with a dollar sign (not a hyphen), so the echo should work correctly.
8969    lt_compile=`echo "$ac_compile" | $SED \
8970    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8971    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8972    -e 's:$: $lt_compiler_flag:'`
8973    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8974    (eval "$lt_compile" 2>out/conftest.err)
8975    ac_status=$?
8976    cat out/conftest.err >&5
8977    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8979    then
8980      # The compiler can only warn and ignore the option if not recognized
8981      # So say no if there are warnings
8982      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8983      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8984      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8985        lt_cv_prog_compiler_c_o=yes
8986      fi
8987    fi
8988    chmod u+w . 2>&5
8989    $RM conftest*
8990    # SGI C++ compiler will create directory out/ii_files/ for
8991    # template instantiation
8992    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8993    $RM out/* && rmdir out
8994    cd ..
8995    $RM -r conftest
8996    $RM conftest*
8997
8998 fi
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9000 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9001
9002
9003
9004
9005 hard_links="nottested"
9006 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9007   # do not overwrite the value of need_locks provided by the user
9008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9009 $as_echo_n "checking if we can lock with hard links... " >&6; }
9010   hard_links=yes
9011   $RM conftest*
9012   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9013   touch conftest.a
9014   ln conftest.a conftest.b 2>&5 || hard_links=no
9015   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9017 $as_echo "$hard_links" >&6; }
9018   if test "$hard_links" = no; then
9019     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9020 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9021     need_locks=warn
9022   fi
9023 else
9024   need_locks=no
9025 fi
9026
9027
9028
9029
9030
9031
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9033 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9034
9035   runpath_var=
9036   allow_undefined_flag=
9037   always_export_symbols=no
9038   archive_cmds=
9039   archive_expsym_cmds=
9040   compiler_needs_object=no
9041   enable_shared_with_static_runtimes=no
9042   export_dynamic_flag_spec=
9043   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9044   hardcode_automatic=no
9045   hardcode_direct=no
9046   hardcode_direct_absolute=no
9047   hardcode_libdir_flag_spec=
9048   hardcode_libdir_flag_spec_ld=
9049   hardcode_libdir_separator=
9050   hardcode_minus_L=no
9051   hardcode_shlibpath_var=unsupported
9052   inherit_rpath=no
9053   link_all_deplibs=unknown
9054   module_cmds=
9055   module_expsym_cmds=
9056   old_archive_from_new_cmds=
9057   old_archive_from_expsyms_cmds=
9058   thread_safe_flag_spec=
9059   whole_archive_flag_spec=
9060   # include_expsyms should be a list of space-separated symbols to be *always*
9061   # included in the symbol list
9062   include_expsyms=
9063   # exclude_expsyms can be an extended regexp of symbols to exclude
9064   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9065   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9066   # as well as any symbol that contains `d'.
9067   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9068   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9069   # platforms (ab)use it in PIC code, but their linkers get confused if
9070   # the symbol is explicitly referenced.  Since portable code cannot
9071   # rely on this symbol name, it's probably fine to never include it in
9072   # preloaded symbol tables.
9073   # Exclude shared library initialization/finalization symbols.
9074   extract_expsyms_cmds=
9075
9076   case $host_os in
9077   cygwin* | mingw* | pw32* | cegcc*)
9078     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9079     # When not using gcc, we currently assume that we are using
9080     # Microsoft Visual C++.
9081     if test "$GCC" != yes; then
9082       with_gnu_ld=no
9083     fi
9084     ;;
9085   interix*)
9086     # we just hope/assume this is gcc and not c89 (= MSVC++)
9087     with_gnu_ld=yes
9088     ;;
9089   openbsd*)
9090     with_gnu_ld=no
9091     ;;
9092   esac
9093
9094   ld_shlibs=yes
9095
9096   # On some targets, GNU ld is compatible enough with the native linker
9097   # that we're better off using the native interface for both.
9098   lt_use_gnu_ld_interface=no
9099   if test "$with_gnu_ld" = yes; then
9100     case $host_os in
9101       aix*)
9102         # The AIX port of GNU ld has always aspired to compatibility
9103         # with the native linker.  However, as the warning in the GNU ld
9104         # block says, versions before 2.19.5* couldn't really create working
9105         # shared libraries, regardless of the interface used.
9106         case `$LD -v 2>&1` in
9107           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9108           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9109           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9110           *)
9111             lt_use_gnu_ld_interface=yes
9112             ;;
9113         esac
9114         ;;
9115       *)
9116         lt_use_gnu_ld_interface=yes
9117         ;;
9118     esac
9119   fi
9120
9121   if test "$lt_use_gnu_ld_interface" = yes; then
9122     # If archive_cmds runs LD, not CC, wlarc should be empty
9123     wlarc='${wl}'
9124
9125     # Set some defaults for GNU ld with shared library support. These
9126     # are reset later if shared libraries are not supported. Putting them
9127     # here allows them to be overridden if necessary.
9128     runpath_var=LD_RUN_PATH
9129     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9130     export_dynamic_flag_spec='${wl}--export-dynamic'
9131     # ancient GNU ld didn't support --whole-archive et. al.
9132     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9133       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9134     else
9135       whole_archive_flag_spec=
9136     fi
9137     supports_anon_versioning=no
9138     case `$LD -v 2>&1` in
9139       *GNU\ gold*) supports_anon_versioning=yes ;;
9140       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9141       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9142       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9143       *\ 2.11.*) ;; # other 2.11 versions
9144       *) supports_anon_versioning=yes ;;
9145     esac
9146
9147     # See if GNU ld supports shared libraries.
9148     case $host_os in
9149     aix[3-9]*)
9150       # On AIX/PPC, the GNU linker is very broken
9151       if test "$host_cpu" != ia64; then
9152         ld_shlibs=no
9153         cat <<_LT_EOF 1>&2
9154
9155 *** Warning: the GNU linker, at least up to release 2.19, is reported
9156 *** to be unable to reliably create shared libraries on AIX.
9157 *** Therefore, libtool is disabling shared libraries support.  If you
9158 *** really care for shared libraries, you may want to install binutils
9159 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9160 *** You will then need to restart the configuration process.
9161
9162 _LT_EOF
9163       fi
9164       ;;
9165
9166     amigaos*)
9167       case $host_cpu in
9168       powerpc)
9169             # see comment about AmigaOS4 .so support
9170             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9171             archive_expsym_cmds=''
9172         ;;
9173       m68k)
9174             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)'
9175             hardcode_libdir_flag_spec='-L$libdir'
9176             hardcode_minus_L=yes
9177         ;;
9178       esac
9179       ;;
9180
9181     beos*)
9182       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9183         allow_undefined_flag=unsupported
9184         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9185         # support --undefined.  This deserves some investigation.  FIXME
9186         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187       else
9188         ld_shlibs=no
9189       fi
9190       ;;
9191
9192     cygwin* | mingw* | pw32* | cegcc*)
9193       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9194       # as there is no search path for DLLs.
9195       hardcode_libdir_flag_spec='-L$libdir'
9196       export_dynamic_flag_spec='${wl}--export-all-symbols'
9197       allow_undefined_flag=unsupported
9198       always_export_symbols=no
9199       enable_shared_with_static_runtimes=yes
9200       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'
9201       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9202
9203       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9204         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9205         # If the export-symbols file already is a .def file (1st line
9206         # is EXPORTS), use it as is; otherwise, prepend...
9207         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9208           cp $export_symbols $output_objdir/$soname.def;
9209         else
9210           echo EXPORTS > $output_objdir/$soname.def;
9211           cat $export_symbols >> $output_objdir/$soname.def;
9212         fi~
9213         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9214       else
9215         ld_shlibs=no
9216       fi
9217       ;;
9218
9219     haiku*)
9220       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9221       link_all_deplibs=yes
9222       ;;
9223
9224     interix[3-9]*)
9225       hardcode_direct=no
9226       hardcode_shlibpath_var=no
9227       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9228       export_dynamic_flag_spec='${wl}-E'
9229       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9230       # Instead, shared libraries are loaded at an image base (0x10000000 by
9231       # default) and relocated if they conflict, which is a slow very memory
9232       # consuming and fragmenting process.  To avoid this, we pick a random,
9233       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9234       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9235       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9236       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'
9237       ;;
9238
9239     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9240       tmp_diet=no
9241       if test "$host_os" = linux-dietlibc; then
9242         case $cc_basename in
9243           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9244         esac
9245       fi
9246       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9247          && test "$tmp_diet" = no
9248       then
9249         tmp_addflag=' $pic_flag'
9250         tmp_sharedflag='-shared'
9251         case $cc_basename,$host_cpu in
9252         pgcc*)                          # Portland Group C compiler
9253           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'
9254           tmp_addflag=' $pic_flag'
9255           ;;
9256         pgf77* | pgf90* | pgf95* | pgfortran*)
9257                                         # Portland Group f77 and f90 compilers
9258           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'
9259           tmp_addflag=' $pic_flag -Mnomain' ;;
9260         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9261           tmp_addflag=' -i_dynamic' ;;
9262         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9263           tmp_addflag=' -i_dynamic -nofor_main' ;;
9264         ifc* | ifort*)                  # Intel Fortran compiler
9265           tmp_addflag=' -nofor_main' ;;
9266         lf95*)                          # Lahey Fortran 8.1
9267           whole_archive_flag_spec=
9268           tmp_sharedflag='--shared' ;;
9269         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9270           tmp_sharedflag='-qmkshrobj'
9271           tmp_addflag= ;;
9272         nvcc*)  # Cuda Compiler Driver 2.2
9273           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'
9274           compiler_needs_object=yes
9275           ;;
9276         esac
9277         case `$CC -V 2>&1 | sed 5q` in
9278         *Sun\ C*)                       # Sun C 5.9
9279           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'
9280           compiler_needs_object=yes
9281           tmp_sharedflag='-G' ;;
9282         *Sun\ F*)                       # Sun Fortran 8.3
9283           tmp_sharedflag='-G' ;;
9284         esac
9285         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9286
9287         if test "x$supports_anon_versioning" = xyes; then
9288           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290             echo "local: *; };" >> $output_objdir/$libname.ver~
9291             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9292         fi
9293
9294         case $cc_basename in
9295         xlf* | bgf* | bgxlf* | mpixlf*)
9296           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9297           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9298           hardcode_libdir_flag_spec=
9299           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9300           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9301           if test "x$supports_anon_versioning" = xyes; then
9302             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9303               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9304               echo "local: *; };" >> $output_objdir/$libname.ver~
9305               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9306           fi
9307           ;;
9308         esac
9309       else
9310         ld_shlibs=no
9311       fi
9312       ;;
9313
9314     netbsd*)
9315       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9316         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9317         wlarc=
9318       else
9319         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9320         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9321       fi
9322       ;;
9323
9324     solaris*)
9325       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9326         ld_shlibs=no
9327         cat <<_LT_EOF 1>&2
9328
9329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9330 *** create shared libraries on Solaris systems.  Therefore, libtool
9331 *** is disabling shared libraries support.  We urge you to upgrade GNU
9332 *** binutils to release 2.9.1 or newer.  Another option is to modify
9333 *** your PATH or compiler configuration so that the native linker is
9334 *** used, and then restart.
9335
9336 _LT_EOF
9337       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9338         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340       else
9341         ld_shlibs=no
9342       fi
9343       ;;
9344
9345     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9346       case `$LD -v 2>&1` in
9347         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9348         ld_shlibs=no
9349         cat <<_LT_EOF 1>&2
9350
9351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9352 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9353 *** is disabling shared libraries support.  We urge you to upgrade GNU
9354 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9355 *** your PATH or compiler configuration so that the native linker is
9356 *** used, and then restart.
9357
9358 _LT_EOF
9359         ;;
9360         *)
9361           # For security reasons, it is highly recommended that you always
9362           # use absolute paths for naming shared libraries, and exclude the
9363           # DT_RUNPATH tag from executables and libraries.  But doing so
9364           # requires that you compile everything twice, which is a pain.
9365           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9366             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9367             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9369           else
9370             ld_shlibs=no
9371           fi
9372         ;;
9373       esac
9374       ;;
9375
9376     sunos4*)
9377       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9378       wlarc=
9379       hardcode_direct=yes
9380       hardcode_shlibpath_var=no
9381       ;;
9382
9383     *)
9384       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9385         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9387       else
9388         ld_shlibs=no
9389       fi
9390       ;;
9391     esac
9392
9393     if test "$ld_shlibs" = no; then
9394       runpath_var=
9395       hardcode_libdir_flag_spec=
9396       export_dynamic_flag_spec=
9397       whole_archive_flag_spec=
9398     fi
9399   else
9400     # PORTME fill in a description of your system's linker (not GNU ld)
9401     case $host_os in
9402     aix3*)
9403       allow_undefined_flag=unsupported
9404       always_export_symbols=yes
9405       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'
9406       # Note: this linker hardcodes the directories in LIBPATH if there
9407       # are no directories specified by -L.
9408       hardcode_minus_L=yes
9409       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9410         # Neither direct hardcoding nor static linking is supported with a
9411         # broken collect2.
9412         hardcode_direct=unsupported
9413       fi
9414       ;;
9415
9416     aix[4-9]*)
9417       if test "$host_cpu" = ia64; then
9418         # On IA64, the linker does run time linking by default, so we don't
9419         # have to do anything special.
9420         aix_use_runtimelinking=no
9421         exp_sym_flag='-Bexport'
9422         no_entry_flag=""
9423       else
9424         # If we're using GNU nm, then we don't want the "-C" option.
9425         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9426         # Also, AIX nm treats weak defined symbols like other global
9427         # defined symbols, whereas GNU nm marks them as "W".
9428         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9429           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'
9430         else
9431           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'
9432         fi
9433         aix_use_runtimelinking=no
9434
9435         # Test if we are trying to use run time linking or normal
9436         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9437         # need to do runtime linking.
9438         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9439           for ld_flag in $LDFLAGS; do
9440           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9441             aix_use_runtimelinking=yes
9442             break
9443           fi
9444           done
9445           ;;
9446         esac
9447
9448         exp_sym_flag='-bexport'
9449         no_entry_flag='-bnoentry'
9450       fi
9451
9452       # When large executables or shared objects are built, AIX ld can
9453       # have problems creating the table of contents.  If linking a library
9454       # or program results in "error TOC overflow" add -mminimal-toc to
9455       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9456       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9457
9458       archive_cmds=''
9459       hardcode_direct=yes
9460       hardcode_direct_absolute=yes
9461       hardcode_libdir_separator=':'
9462       link_all_deplibs=yes
9463       file_list_spec='${wl}-f,'
9464
9465       if test "$GCC" = yes; then
9466         case $host_os in aix4.[012]|aix4.[012].*)
9467         # We only want to do this on AIX 4.2 and lower, the check
9468         # below for broken collect2 doesn't work under 4.3+
9469           collect2name=`${CC} -print-prog-name=collect2`
9470           if test -f "$collect2name" &&
9471            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9472           then
9473           # We have reworked collect2
9474           :
9475           else
9476           # We have old collect2
9477           hardcode_direct=unsupported
9478           # It fails to find uninstalled libraries when the uninstalled
9479           # path is not listed in the libpath.  Setting hardcode_minus_L
9480           # to unsupported forces relinking
9481           hardcode_minus_L=yes
9482           hardcode_libdir_flag_spec='-L$libdir'
9483           hardcode_libdir_separator=
9484           fi
9485           ;;
9486         esac
9487         shared_flag='-shared'
9488         if test "$aix_use_runtimelinking" = yes; then
9489           shared_flag="$shared_flag "'${wl}-G'
9490         fi
9491       else
9492         # not using gcc
9493         if test "$host_cpu" = ia64; then
9494         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9495         # chokes on -Wl,-G. The following line is correct:
9496           shared_flag='-G'
9497         else
9498           if test "$aix_use_runtimelinking" = yes; then
9499             shared_flag='${wl}-G'
9500           else
9501             shared_flag='${wl}-bM:SRE'
9502           fi
9503         fi
9504       fi
9505
9506       export_dynamic_flag_spec='${wl}-bexpall'
9507       # It seems that -bexpall does not export symbols beginning with
9508       # underscore (_), so it is better to generate a list of symbols to export.
9509       always_export_symbols=yes
9510       if test "$aix_use_runtimelinking" = yes; then
9511         # Warning - without using the other runtime loading flags (-brtl),
9512         # -berok will link without error, but may produce a broken library.
9513         allow_undefined_flag='-berok'
9514         # Determine the default libpath from the value encoded in an
9515         # empty executable.
9516         if test "${lt_cv_aix_libpath+set}" = set; then
9517   aix_libpath=$lt_cv_aix_libpath
9518 else
9519   if ${lt_cv_aix_libpath_+:} false; then :
9520   $as_echo_n "(cached) " >&6
9521 else
9522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9523 /* end confdefs.h.  */
9524
9525 int
9526 main ()
9527 {
9528
9529   ;
9530   return 0;
9531 }
9532 _ACEOF
9533 if ac_fn_c_try_link "$LINENO"; then :
9534
9535   lt_aix_libpath_sed='
9536       /Import File Strings/,/^$/ {
9537           /^0/ {
9538               s/^0  *\([^ ]*\) *$/\1/
9539               p
9540           }
9541       }'
9542   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9543   # Check for a 64-bit object if we didn't find anything.
9544   if test -z "$lt_cv_aix_libpath_"; then
9545     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9546   fi
9547 fi
9548 rm -f core conftest.err conftest.$ac_objext \
9549     conftest$ac_exeext conftest.$ac_ext
9550   if test -z "$lt_cv_aix_libpath_"; then
9551     lt_cv_aix_libpath_="/usr/lib:/lib"
9552   fi
9553
9554 fi
9555
9556   aix_libpath=$lt_cv_aix_libpath_
9557 fi
9558
9559         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9560         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"
9561       else
9562         if test "$host_cpu" = ia64; then
9563           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9564           allow_undefined_flag="-z nodefs"
9565           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"
9566         else
9567          # Determine the default libpath from the value encoded in an
9568          # empty executable.
9569          if test "${lt_cv_aix_libpath+set}" = set; then
9570   aix_libpath=$lt_cv_aix_libpath
9571 else
9572   if ${lt_cv_aix_libpath_+:} false; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h.  */
9577
9578 int
9579 main ()
9580 {
9581
9582   ;
9583   return 0;
9584 }
9585 _ACEOF
9586 if ac_fn_c_try_link "$LINENO"; then :
9587
9588   lt_aix_libpath_sed='
9589       /Import File Strings/,/^$/ {
9590           /^0/ {
9591               s/^0  *\([^ ]*\) *$/\1/
9592               p
9593           }
9594       }'
9595   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9596   # Check for a 64-bit object if we didn't find anything.
9597   if test -z "$lt_cv_aix_libpath_"; then
9598     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9599   fi
9600 fi
9601 rm -f core conftest.err conftest.$ac_objext \
9602     conftest$ac_exeext conftest.$ac_ext
9603   if test -z "$lt_cv_aix_libpath_"; then
9604     lt_cv_aix_libpath_="/usr/lib:/lib"
9605   fi
9606
9607 fi
9608
9609   aix_libpath=$lt_cv_aix_libpath_
9610 fi
9611
9612          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9613           # Warning - without using the other run time loading flags,
9614           # -berok will link without error, but may produce a broken library.
9615           no_undefined_flag=' ${wl}-bernotok'
9616           allow_undefined_flag=' ${wl}-berok'
9617           if test "$with_gnu_ld" = yes; then
9618             # We only use this code for GNU lds that support --whole-archive.
9619             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9620           else
9621             # Exported symbols can be pulled into shared objects from archives
9622             whole_archive_flag_spec='$convenience'
9623           fi
9624           archive_cmds_need_lc=yes
9625           # This is similar to how AIX traditionally builds its shared libraries.
9626           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'
9627         fi
9628       fi
9629       ;;
9630
9631     amigaos*)
9632       case $host_cpu in
9633       powerpc)
9634             # see comment about AmigaOS4 .so support
9635             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9636             archive_expsym_cmds=''
9637         ;;
9638       m68k)
9639             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)'
9640             hardcode_libdir_flag_spec='-L$libdir'
9641             hardcode_minus_L=yes
9642         ;;
9643       esac
9644       ;;
9645
9646     bsdi[45]*)
9647       export_dynamic_flag_spec=-rdynamic
9648       ;;
9649
9650     cygwin* | mingw* | pw32* | cegcc*)
9651       # When not using gcc, we currently assume that we are using
9652       # Microsoft Visual C++.
9653       # hardcode_libdir_flag_spec is actually meaningless, as there is
9654       # no search path for DLLs.
9655       case $cc_basename in
9656       cl*)
9657         # Native MSVC
9658         hardcode_libdir_flag_spec=' '
9659         allow_undefined_flag=unsupported
9660         always_export_symbols=yes
9661         file_list_spec='@'
9662         # Tell ltmain to make .lib files, not .a files.
9663         libext=lib
9664         # Tell ltmain to make .dll files, not .so files.
9665         shrext_cmds=".dll"
9666         # FIXME: Setting linknames here is a bad hack.
9667         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9668         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9669             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9670           else
9671             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9672           fi~
9673           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9674           linknames='
9675         # The linker will not automatically build a static lib if we build a DLL.
9676         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9677         enable_shared_with_static_runtimes=yes
9678         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9679         # Don't use ranlib
9680         old_postinstall_cmds='chmod 644 $oldlib'
9681         postlink_cmds='lt_outputfile="@OUTPUT@"~
9682           lt_tool_outputfile="@TOOL_OUTPUT@"~
9683           case $lt_outputfile in
9684             *.exe|*.EXE) ;;
9685             *)
9686               lt_outputfile="$lt_outputfile.exe"
9687               lt_tool_outputfile="$lt_tool_outputfile.exe"
9688               ;;
9689           esac~
9690           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9691             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9692             $RM "$lt_outputfile.manifest";
9693           fi'
9694         ;;
9695       *)
9696         # Assume MSVC wrapper
9697         hardcode_libdir_flag_spec=' '
9698         allow_undefined_flag=unsupported
9699         # Tell ltmain to make .lib files, not .a files.
9700         libext=lib
9701         # Tell ltmain to make .dll files, not .so files.
9702         shrext_cmds=".dll"
9703         # FIXME: Setting linknames here is a bad hack.
9704         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9705         # The linker will automatically build a .lib file if we build a DLL.
9706         old_archive_from_new_cmds='true'
9707         # FIXME: Should let the user specify the lib program.
9708         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9709         enable_shared_with_static_runtimes=yes
9710         ;;
9711       esac
9712       ;;
9713
9714     darwin* | rhapsody*)
9715
9716
9717   archive_cmds_need_lc=no
9718   hardcode_direct=no
9719   hardcode_automatic=yes
9720   hardcode_shlibpath_var=unsupported
9721   if test "$lt_cv_ld_force_load" = "yes"; then
9722     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\"`'
9723   else
9724     whole_archive_flag_spec=''
9725   fi
9726   link_all_deplibs=yes
9727   allow_undefined_flag="$_lt_dar_allow_undefined"
9728   case $cc_basename in
9729      ifort*) _lt_dar_can_shared=yes ;;
9730      *) _lt_dar_can_shared=$GCC ;;
9731   esac
9732   if test "$_lt_dar_can_shared" = "yes"; then
9733     output_verbose_link_cmd=func_echo_all
9734     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9735     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9736     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}"
9737     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}"
9738
9739   else
9740   ld_shlibs=no
9741   fi
9742
9743       ;;
9744
9745     dgux*)
9746       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747       hardcode_libdir_flag_spec='-L$libdir'
9748       hardcode_shlibpath_var=no
9749       ;;
9750
9751     freebsd1*)
9752       ld_shlibs=no
9753       ;;
9754
9755     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9756     # support.  Future versions do this automatically, but an explicit c++rt0.o
9757     # does not break anything, and helps significantly (at the cost of a little
9758     # extra space).
9759     freebsd2.2*)
9760       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9761       hardcode_libdir_flag_spec='-R$libdir'
9762       hardcode_direct=yes
9763       hardcode_shlibpath_var=no
9764       ;;
9765
9766     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9767     freebsd2*)
9768       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9769       hardcode_direct=yes
9770       hardcode_minus_L=yes
9771       hardcode_shlibpath_var=no
9772       ;;
9773
9774     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9775     freebsd* | dragonfly*)
9776       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9777       hardcode_libdir_flag_spec='-R$libdir'
9778       hardcode_direct=yes
9779       hardcode_shlibpath_var=no
9780       ;;
9781
9782     hpux9*)
9783       if test "$GCC" = yes; then
9784         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'
9785       else
9786         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'
9787       fi
9788       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9789       hardcode_libdir_separator=:
9790       hardcode_direct=yes
9791
9792       # hardcode_minus_L: Not really in the search PATH,
9793       # but as the default location of the library.
9794       hardcode_minus_L=yes
9795       export_dynamic_flag_spec='${wl}-E'
9796       ;;
9797
9798     hpux10*)
9799       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9800         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9801       else
9802         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9803       fi
9804       if test "$with_gnu_ld" = no; then
9805         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9806         hardcode_libdir_flag_spec_ld='+b $libdir'
9807         hardcode_libdir_separator=:
9808         hardcode_direct=yes
9809         hardcode_direct_absolute=yes
9810         export_dynamic_flag_spec='${wl}-E'
9811         # hardcode_minus_L: Not really in the search PATH,
9812         # but as the default location of the library.
9813         hardcode_minus_L=yes
9814       fi
9815       ;;
9816
9817     hpux11*)
9818       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9819         case $host_cpu in
9820         hppa*64*)
9821           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9822           ;;
9823         ia64*)
9824           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9825           ;;
9826         *)
9827           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828           ;;
9829         esac
9830       else
9831         case $host_cpu in
9832         hppa*64*)
9833           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9834           ;;
9835         ia64*)
9836           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9837           ;;
9838         *)
9839
9840           # Older versions of the 11.00 compiler do not understand -b yet
9841           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9842           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9843 $as_echo_n "checking if $CC understands -b... " >&6; }
9844 if ${lt_cv_prog_compiler__b+:} false; then :
9845   $as_echo_n "(cached) " >&6
9846 else
9847   lt_cv_prog_compiler__b=no
9848    save_LDFLAGS="$LDFLAGS"
9849    LDFLAGS="$LDFLAGS -b"
9850    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9851    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9852      # The linker can only warn and ignore the option if not recognized
9853      # So say no if there are warnings
9854      if test -s conftest.err; then
9855        # Append any errors to the config.log.
9856        cat conftest.err 1>&5
9857        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9858        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9859        if diff conftest.exp conftest.er2 >/dev/null; then
9860          lt_cv_prog_compiler__b=yes
9861        fi
9862      else
9863        lt_cv_prog_compiler__b=yes
9864      fi
9865    fi
9866    $RM -r conftest*
9867    LDFLAGS="$save_LDFLAGS"
9868
9869 fi
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9871 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9872
9873 if test x"$lt_cv_prog_compiler__b" = xyes; then
9874     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9875 else
9876     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9877 fi
9878
9879           ;;
9880         esac
9881       fi
9882       if test "$with_gnu_ld" = no; then
9883         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9884         hardcode_libdir_separator=:
9885
9886         case $host_cpu in
9887         hppa*64*|ia64*)
9888           hardcode_direct=no
9889           hardcode_shlibpath_var=no
9890           ;;
9891         *)
9892           hardcode_direct=yes
9893           hardcode_direct_absolute=yes
9894           export_dynamic_flag_spec='${wl}-E'
9895
9896           # hardcode_minus_L: Not really in the search PATH,
9897           # but as the default location of the library.
9898           hardcode_minus_L=yes
9899           ;;
9900         esac
9901       fi
9902       ;;
9903
9904     irix5* | irix6* | nonstopux*)
9905       if test "$GCC" = yes; then
9906         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'
9907         # Try to use the -exported_symbol ld option, if it does not
9908         # work, assume that -exports_file does not work either and
9909         # implicitly export all symbols.
9910         # This should be the same for all languages, so no per-tag cache variable.
9911         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9912 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9913 if ${lt_cv_irix_exported_symbol+:} false; then :
9914   $as_echo_n "(cached) " >&6
9915 else
9916   save_LDFLAGS="$LDFLAGS"
9917            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9918            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h.  */
9920 int foo (void) { return 0; }
9921 _ACEOF
9922 if ac_fn_c_try_link "$LINENO"; then :
9923   lt_cv_irix_exported_symbol=yes
9924 else
9925   lt_cv_irix_exported_symbol=no
9926 fi
9927 rm -f core conftest.err conftest.$ac_objext \
9928     conftest$ac_exeext conftest.$ac_ext
9929            LDFLAGS="$save_LDFLAGS"
9930 fi
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9932 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9933         if test "$lt_cv_irix_exported_symbol" = yes; then
9934           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'
9935         fi
9936       else
9937         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'
9938         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'
9939       fi
9940       archive_cmds_need_lc='no'
9941       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9942       hardcode_libdir_separator=:
9943       inherit_rpath=yes
9944       link_all_deplibs=yes
9945       ;;
9946
9947     netbsd*)
9948       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9949         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9950       else
9951         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9952       fi
9953       hardcode_libdir_flag_spec='-R$libdir'
9954       hardcode_direct=yes
9955       hardcode_shlibpath_var=no
9956       ;;
9957
9958     newsos6)
9959       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9960       hardcode_direct=yes
9961       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9962       hardcode_libdir_separator=:
9963       hardcode_shlibpath_var=no
9964       ;;
9965
9966     *nto* | *qnx*)
9967       ;;
9968
9969     openbsd*)
9970       if test -f /usr/libexec/ld.so; then
9971         hardcode_direct=yes
9972         hardcode_shlibpath_var=no
9973         hardcode_direct_absolute=yes
9974         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9975           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9976           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9977           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9978           export_dynamic_flag_spec='${wl}-E'
9979         else
9980           case $host_os in
9981            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9982              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9983              hardcode_libdir_flag_spec='-R$libdir'
9984              ;;
9985            *)
9986              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9987              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9988              ;;
9989           esac
9990         fi
9991       else
9992         ld_shlibs=no
9993       fi
9994       ;;
9995
9996     os2*)
9997       hardcode_libdir_flag_spec='-L$libdir'
9998       hardcode_minus_L=yes
9999       allow_undefined_flag=unsupported
10000       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'
10001       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10002       ;;
10003
10004     osf3*)
10005       if test "$GCC" = yes; then
10006         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10007         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'
10008       else
10009         allow_undefined_flag=' -expect_unresolved \*'
10010         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'
10011       fi
10012       archive_cmds_need_lc='no'
10013       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014       hardcode_libdir_separator=:
10015       ;;
10016
10017     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10018       if test "$GCC" = yes; then
10019         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10020         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'
10021         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10022       else
10023         allow_undefined_flag=' -expect_unresolved \*'
10024         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'
10025         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~
10026         $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'
10027
10028         # Both c and cxx compiler support -rpath directly
10029         hardcode_libdir_flag_spec='-rpath $libdir'
10030       fi
10031       archive_cmds_need_lc='no'
10032       hardcode_libdir_separator=:
10033       ;;
10034
10035     solaris*)
10036       no_undefined_flag=' -z defs'
10037       if test "$GCC" = yes; then
10038         wlarc='${wl}'
10039         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10040         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10041           $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'
10042       else
10043         case `$CC -V 2>&1` in
10044         *"Compilers 5.0"*)
10045           wlarc=''
10046           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10048           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10049           ;;
10050         *)
10051           wlarc='${wl}'
10052           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10053           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10054           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10055           ;;
10056         esac
10057       fi
10058       hardcode_libdir_flag_spec='-R$libdir'
10059       hardcode_shlibpath_var=no
10060       case $host_os in
10061       solaris2.[0-5] | solaris2.[0-5].*) ;;
10062       *)
10063         # The compiler driver will combine and reorder linker options,
10064         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10065         # but is careful enough not to reorder.
10066         # Supported since Solaris 2.6 (maybe 2.5.1?)
10067         if test "$GCC" = yes; then
10068           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10069         else
10070           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10071         fi
10072         ;;
10073       esac
10074       link_all_deplibs=yes
10075       ;;
10076
10077     sunos4*)
10078       if test "x$host_vendor" = xsequent; then
10079         # Use $CC to link under sequent, because it throws in some extra .o
10080         # files that make .init and .fini sections work.
10081         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10082       else
10083         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10084       fi
10085       hardcode_libdir_flag_spec='-L$libdir'
10086       hardcode_direct=yes
10087       hardcode_minus_L=yes
10088       hardcode_shlibpath_var=no
10089       ;;
10090
10091     sysv4)
10092       case $host_vendor in
10093         sni)
10094           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10095           hardcode_direct=yes # is this really true???
10096         ;;
10097         siemens)
10098           ## LD is ld it makes a PLAMLIB
10099           ## CC just makes a GrossModule.
10100           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10101           reload_cmds='$CC -r -o $output$reload_objs'
10102           hardcode_direct=no
10103         ;;
10104         motorola)
10105           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10106           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10107         ;;
10108       esac
10109       runpath_var='LD_RUN_PATH'
10110       hardcode_shlibpath_var=no
10111       ;;
10112
10113     sysv4.3*)
10114       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115       hardcode_shlibpath_var=no
10116       export_dynamic_flag_spec='-Bexport'
10117       ;;
10118
10119     sysv4*MP*)
10120       if test -d /usr/nec; then
10121         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10122         hardcode_shlibpath_var=no
10123         runpath_var=LD_RUN_PATH
10124         hardcode_runpath_var=yes
10125         ld_shlibs=yes
10126       fi
10127       ;;
10128
10129     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10130       no_undefined_flag='${wl}-z,text'
10131       archive_cmds_need_lc=no
10132       hardcode_shlibpath_var=no
10133       runpath_var='LD_RUN_PATH'
10134
10135       if test "$GCC" = yes; then
10136         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138       else
10139         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10141       fi
10142       ;;
10143
10144     sysv5* | sco3.2v5* | sco5v6*)
10145       # Note: We can NOT use -z defs as we might desire, because we do not
10146       # link with -lc, and that would cause any symbols used from libc to
10147       # always be unresolved, which means just about no library would
10148       # ever link correctly.  If we're not using GNU ld we use -z text
10149       # though, which does catch some bad symbols but isn't as heavy-handed
10150       # as -z defs.
10151       no_undefined_flag='${wl}-z,text'
10152       allow_undefined_flag='${wl}-z,nodefs'
10153       archive_cmds_need_lc=no
10154       hardcode_shlibpath_var=no
10155       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10156       hardcode_libdir_separator=':'
10157       link_all_deplibs=yes
10158       export_dynamic_flag_spec='${wl}-Bexport'
10159       runpath_var='LD_RUN_PATH'
10160
10161       if test "$GCC" = yes; then
10162         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164       else
10165         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10167       fi
10168       ;;
10169
10170     uts4*)
10171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172       hardcode_libdir_flag_spec='-L$libdir'
10173       hardcode_shlibpath_var=no
10174       ;;
10175
10176     *)
10177       ld_shlibs=no
10178       ;;
10179     esac
10180
10181     if test x$host_vendor = xsni; then
10182       case $host in
10183       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10184         export_dynamic_flag_spec='${wl}-Blargedynsym'
10185         ;;
10186       esac
10187     fi
10188   fi
10189
10190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10191 $as_echo "$ld_shlibs" >&6; }
10192 test "$ld_shlibs" = no && can_build_shared=no
10193
10194 with_gnu_ld=$with_gnu_ld
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210 #
10211 # Do we need to explicitly link libc?
10212 #
10213 case "x$archive_cmds_need_lc" in
10214 x|xyes)
10215   # Assume -lc should be added
10216   archive_cmds_need_lc=yes
10217
10218   if test "$enable_shared" = yes && test "$GCC" = yes; then
10219     case $archive_cmds in
10220     *'~'*)
10221       # FIXME: we may have to deal with multi-command sequences.
10222       ;;
10223     '$CC '*)
10224       # Test whether the compiler implicitly links with -lc since on some
10225       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10226       # to ld, don't add -lc before -lgcc.
10227       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10228 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10229 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10230   $as_echo_n "(cached) " >&6
10231 else
10232   $RM conftest*
10233         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10234
10235         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10236   (eval $ac_compile) 2>&5
10237   ac_status=$?
10238   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10239   test $ac_status = 0; } 2>conftest.err; then
10240           soname=conftest
10241           lib=conftest
10242           libobjs=conftest.$ac_objext
10243           deplibs=
10244           wl=$lt_prog_compiler_wl
10245           pic_flag=$lt_prog_compiler_pic
10246           compiler_flags=-v
10247           linker_flags=-v
10248           verstring=
10249           output_objdir=.
10250           libname=conftest
10251           lt_save_allow_undefined_flag=$allow_undefined_flag
10252           allow_undefined_flag=
10253           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10254   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10255   ac_status=$?
10256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10257   test $ac_status = 0; }
10258           then
10259             lt_cv_archive_cmds_need_lc=no
10260           else
10261             lt_cv_archive_cmds_need_lc=yes
10262           fi
10263           allow_undefined_flag=$lt_save_allow_undefined_flag
10264         else
10265           cat conftest.err 1>&5
10266         fi
10267         $RM conftest*
10268
10269 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10271 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10272       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10273       ;;
10274     esac
10275   fi
10276   ;;
10277 esac
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
10434
10435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10436 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10437
10438 if test "$GCC" = yes; then
10439   case $host_os in
10440     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10441     *) lt_awk_arg="/^libraries:/" ;;
10442   esac
10443   case $host_os in
10444     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10445     *) lt_sed_strip_eq="s,=/,/,g" ;;
10446   esac
10447   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10448   case $lt_search_path_spec in
10449   *\;*)
10450     # if the path contains ";" then we assume it to be the separator
10451     # otherwise default to the standard path separator (i.e. ":") - it is
10452     # assumed that no part of a normal pathname contains ";" but that should
10453     # okay in the real world where ";" in dirpaths is itself problematic.
10454     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10455     ;;
10456   *)
10457     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10458     ;;
10459   esac
10460   # Ok, now we have the path, separated by spaces, we can step through it
10461   # and add multilib dir if necessary.
10462   lt_tmp_lt_search_path_spec=
10463   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10464   for lt_sys_path in $lt_search_path_spec; do
10465     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10466       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10467     else
10468       test -d "$lt_sys_path" && \
10469         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10470     fi
10471   done
10472   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10473 BEGIN {RS=" "; FS="/|\n";} {
10474   lt_foo="";
10475   lt_count=0;
10476   for (lt_i = NF; lt_i > 0; lt_i--) {
10477     if ($lt_i != "" && $lt_i != ".") {
10478       if ($lt_i == "..") {
10479         lt_count++;
10480       } else {
10481         if (lt_count == 0) {
10482           lt_foo="/" $lt_i lt_foo;
10483         } else {
10484           lt_count--;
10485         }
10486       }
10487     }
10488   }
10489   if (lt_foo != "") { lt_freq[lt_foo]++; }
10490   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10491 }'`
10492   # AWK program above erroneously prepends '/' to C:/dos/paths
10493   # for these hosts.
10494   case $host_os in
10495     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10496       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10497   esac
10498   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10499 else
10500   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10501 fi
10502 library_names_spec=
10503 libname_spec='lib$name'
10504 soname_spec=
10505 shrext_cmds=".so"
10506 postinstall_cmds=
10507 postuninstall_cmds=
10508 finish_cmds=
10509 finish_eval=
10510 shlibpath_var=
10511 shlibpath_overrides_runpath=unknown
10512 version_type=none
10513 dynamic_linker="$host_os ld.so"
10514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10515 need_lib_prefix=unknown
10516 hardcode_into_libs=no
10517
10518 # when you set need_version to no, make sure it does not cause -set_version
10519 # flags to be left without arguments
10520 need_version=unknown
10521
10522 case $host_os in
10523 aix3*)
10524   version_type=linux
10525   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10526   shlibpath_var=LIBPATH
10527
10528   # AIX 3 has no versioning support, so we append a major version to the name.
10529   soname_spec='${libname}${release}${shared_ext}$major'
10530   ;;
10531
10532 aix[4-9]*)
10533   version_type=linux
10534   need_lib_prefix=no
10535   need_version=no
10536   hardcode_into_libs=yes
10537   if test "$host_cpu" = ia64; then
10538     # AIX 5 supports IA64
10539     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10540     shlibpath_var=LD_LIBRARY_PATH
10541   else
10542     # With GCC up to 2.95.x, collect2 would create an import file
10543     # for dependence libraries.  The import file would start with
10544     # the line `#! .'.  This would cause the generated library to
10545     # depend on `.', always an invalid library.  This was fixed in
10546     # development snapshots of GCC prior to 3.0.
10547     case $host_os in
10548       aix4 | aix4.[01] | aix4.[01].*)
10549       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10550            echo ' yes '
10551            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10552         :
10553       else
10554         can_build_shared=no
10555       fi
10556       ;;
10557     esac
10558     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10559     # soname into executable. Probably we can add versioning support to
10560     # collect2, so additional links can be useful in future.
10561     if test "$aix_use_runtimelinking" = yes; then
10562       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10563       # instead of lib<name>.a to let people know that these are not
10564       # typical AIX shared libraries.
10565       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10566     else
10567       # We preserve .a as extension for shared libraries through AIX4.2
10568       # and later when we are not doing run time linking.
10569       library_names_spec='${libname}${release}.a $libname.a'
10570       soname_spec='${libname}${release}${shared_ext}$major'
10571     fi
10572     shlibpath_var=LIBPATH
10573   fi
10574   ;;
10575
10576 amigaos*)
10577   case $host_cpu in
10578   powerpc)
10579     # Since July 2007 AmigaOS4 officially supports .so libraries.
10580     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10581     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10582     ;;
10583   m68k)
10584     library_names_spec='$libname.ixlibrary $libname.a'
10585     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10586     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'
10587     ;;
10588   esac
10589   ;;
10590
10591 beos*)
10592   library_names_spec='${libname}${shared_ext}'
10593   dynamic_linker="$host_os ld.so"
10594   shlibpath_var=LIBRARY_PATH
10595   ;;
10596
10597 bsdi[45]*)
10598   version_type=linux
10599   need_version=no
10600   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10601   soname_spec='${libname}${release}${shared_ext}$major'
10602   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10603   shlibpath_var=LD_LIBRARY_PATH
10604   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10605   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10606   # the default ld.so.conf also contains /usr/contrib/lib and
10607   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10608   # libtool to hard-code these into programs
10609   ;;
10610
10611 cygwin* | mingw* | pw32* | cegcc*)
10612   version_type=windows
10613   shrext_cmds=".dll"
10614   need_version=no
10615   need_lib_prefix=no
10616
10617   case $GCC,$cc_basename in
10618   yes,*)
10619     # gcc
10620     library_names_spec='$libname.dll.a'
10621     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10622     postinstall_cmds='base_file=`basename \${file}`~
10623       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10624       dldir=$destdir/`dirname \$dlpath`~
10625       test -d \$dldir || mkdir -p \$dldir~
10626       $install_prog $dir/$dlname \$dldir/$dlname~
10627       chmod a+x \$dldir/$dlname~
10628       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10629         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10630       fi'
10631     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10632       dlpath=$dir/\$dldll~
10633        $RM \$dlpath'
10634     shlibpath_overrides_runpath=yes
10635
10636     case $host_os in
10637     cygwin*)
10638       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10639       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10640
10641       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10642       ;;
10643     mingw* | cegcc*)
10644       # MinGW DLLs use traditional 'lib' prefix
10645       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10646       ;;
10647     pw32*)
10648       # pw32 DLLs use 'pw' prefix rather than 'lib'
10649       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10650       ;;
10651     esac
10652     dynamic_linker='Win32 ld.exe'
10653     ;;
10654
10655   *,cl*)
10656     # Native MSVC
10657     libname_spec='$name'
10658     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659     library_names_spec='${libname}.dll.lib'
10660
10661     case $build_os in
10662     mingw*)
10663       sys_lib_search_path_spec=
10664       lt_save_ifs=$IFS
10665       IFS=';'
10666       for lt_path in $LIB
10667       do
10668         IFS=$lt_save_ifs
10669         # Let DOS variable expansion print the short 8.3 style file name.
10670         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10671         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10672       done
10673       IFS=$lt_save_ifs
10674       # Convert to MSYS style.
10675       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10676       ;;
10677     cygwin*)
10678       # Convert to unix form, then to dos form, then back to unix form
10679       # but this time dos style (no spaces!) so that the unix form looks
10680       # like /cygdrive/c/PROGRA~1:/cygdr...
10681       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10682       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10683       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10684       ;;
10685     *)
10686       sys_lib_search_path_spec="$LIB"
10687       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10688         # It is most probably a Windows format PATH.
10689         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10690       else
10691         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10692       fi
10693       # FIXME: find the short name or the path components, as spaces are
10694       # common. (e.g. "Program Files" -> "PROGRA~1")
10695       ;;
10696     esac
10697
10698     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10699     postinstall_cmds='base_file=`basename \${file}`~
10700       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10701       dldir=$destdir/`dirname \$dlpath`~
10702       test -d \$dldir || mkdir -p \$dldir~
10703       $install_prog $dir/$dlname \$dldir/$dlname'
10704     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10705       dlpath=$dir/\$dldll~
10706        $RM \$dlpath'
10707     shlibpath_overrides_runpath=yes
10708     dynamic_linker='Win32 link.exe'
10709     ;;
10710
10711   *)
10712     # Assume MSVC wrapper
10713     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10714     dynamic_linker='Win32 ld.exe'
10715     ;;
10716   esac
10717   # FIXME: first we should search . and the directory the executable is in
10718   shlibpath_var=PATH
10719   ;;
10720
10721 darwin* | rhapsody*)
10722   dynamic_linker="$host_os dyld"
10723   version_type=darwin
10724   need_lib_prefix=no
10725   need_version=no
10726   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10727   soname_spec='${libname}${release}${major}$shared_ext'
10728   shlibpath_overrides_runpath=yes
10729   shlibpath_var=DYLD_LIBRARY_PATH
10730   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10731
10732   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10733   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10734   ;;
10735
10736 dgux*)
10737   version_type=linux
10738   need_lib_prefix=no
10739   need_version=no
10740   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10741   soname_spec='${libname}${release}${shared_ext}$major'
10742   shlibpath_var=LD_LIBRARY_PATH
10743   ;;
10744
10745 freebsd1*)
10746   dynamic_linker=no
10747   ;;
10748
10749 freebsd* | dragonfly*)
10750   # DragonFly does not have aout.  When/if they implement a new
10751   # versioning mechanism, adjust this.
10752   if test -x /usr/bin/objformat; then
10753     objformat=`/usr/bin/objformat`
10754   else
10755     case $host_os in
10756     freebsd[123]*) objformat=aout ;;
10757     *) objformat=elf ;;
10758     esac
10759   fi
10760   version_type=freebsd-$objformat
10761   case $version_type in
10762     freebsd-elf*)
10763       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10764       need_version=no
10765       need_lib_prefix=no
10766       ;;
10767     freebsd-*)
10768       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10769       need_version=yes
10770       ;;
10771   esac
10772   shlibpath_var=LD_LIBRARY_PATH
10773   case $host_os in
10774   freebsd2*)
10775     shlibpath_overrides_runpath=yes
10776     ;;
10777   freebsd3.[01]* | freebsdelf3.[01]*)
10778     shlibpath_overrides_runpath=yes
10779     hardcode_into_libs=yes
10780     ;;
10781   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10782   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10783     shlibpath_overrides_runpath=no
10784     hardcode_into_libs=yes
10785     ;;
10786   *) # from 4.6 on, and DragonFly
10787     shlibpath_overrides_runpath=yes
10788     hardcode_into_libs=yes
10789     ;;
10790   esac
10791   ;;
10792
10793 gnu*)
10794   version_type=linux
10795   need_lib_prefix=no
10796   need_version=no
10797   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10798   soname_spec='${libname}${release}${shared_ext}$major'
10799   shlibpath_var=LD_LIBRARY_PATH
10800   hardcode_into_libs=yes
10801   ;;
10802
10803 haiku*)
10804   version_type=linux
10805   need_lib_prefix=no
10806   need_version=no
10807   dynamic_linker="$host_os runtime_loader"
10808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10809   soname_spec='${libname}${release}${shared_ext}$major'
10810   shlibpath_var=LIBRARY_PATH
10811   shlibpath_overrides_runpath=yes
10812   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10813   hardcode_into_libs=yes
10814   ;;
10815
10816 hpux9* | hpux10* | hpux11*)
10817   # Give a soname corresponding to the major version so that dld.sl refuses to
10818   # link against other versions.
10819   version_type=sunos
10820   need_lib_prefix=no
10821   need_version=no
10822   case $host_cpu in
10823   ia64*)
10824     shrext_cmds='.so'
10825     hardcode_into_libs=yes
10826     dynamic_linker="$host_os dld.so"
10827     shlibpath_var=LD_LIBRARY_PATH
10828     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10829     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830     soname_spec='${libname}${release}${shared_ext}$major'
10831     if test "X$HPUX_IA64_MODE" = X32; then
10832       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10833     else
10834       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10835     fi
10836     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10837     ;;
10838   hppa*64*)
10839     shrext_cmds='.sl'
10840     hardcode_into_libs=yes
10841     dynamic_linker="$host_os dld.sl"
10842     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10843     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10844     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10845     soname_spec='${libname}${release}${shared_ext}$major'
10846     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10847     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10848     ;;
10849   *)
10850     shrext_cmds='.sl'
10851     dynamic_linker="$host_os dld.sl"
10852     shlibpath_var=SHLIB_PATH
10853     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10854     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10855     soname_spec='${libname}${release}${shared_ext}$major'
10856     ;;
10857   esac
10858   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10859   postinstall_cmds='chmod 555 $lib'
10860   # or fails outright, so override atomically:
10861   install_override_mode=555
10862   ;;
10863
10864 interix[3-9]*)
10865   version_type=linux
10866   need_lib_prefix=no
10867   need_version=no
10868   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10869   soname_spec='${libname}${release}${shared_ext}$major'
10870   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10871   shlibpath_var=LD_LIBRARY_PATH
10872   shlibpath_overrides_runpath=no
10873   hardcode_into_libs=yes
10874   ;;
10875
10876 irix5* | irix6* | nonstopux*)
10877   case $host_os in
10878     nonstopux*) version_type=nonstopux ;;
10879     *)
10880         if test "$lt_cv_prog_gnu_ld" = yes; then
10881                 version_type=linux
10882         else
10883                 version_type=irix
10884         fi ;;
10885   esac
10886   need_lib_prefix=no
10887   need_version=no
10888   soname_spec='${libname}${release}${shared_ext}$major'
10889   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10890   case $host_os in
10891   irix5* | nonstopux*)
10892     libsuff= shlibsuff=
10893     ;;
10894   *)
10895     case $LD in # libtool.m4 will add one of these switches to LD
10896     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10897       libsuff= shlibsuff= libmagic=32-bit;;
10898     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10899       libsuff=32 shlibsuff=N32 libmagic=N32;;
10900     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10901       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10902     *) libsuff= shlibsuff= libmagic=never-match;;
10903     esac
10904     ;;
10905   esac
10906   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10907   shlibpath_overrides_runpath=no
10908   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10909   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10910   hardcode_into_libs=yes
10911   ;;
10912
10913 # No shared lib support for Linux oldld, aout, or coff.
10914 linux*oldld* | linux*aout* | linux*coff*)
10915   dynamic_linker=no
10916   ;;
10917
10918 # This must be Linux ELF.
10919 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10920   version_type=linux
10921   need_lib_prefix=no
10922   need_version=no
10923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924   soname_spec='${libname}${release}${shared_ext}$major'
10925   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10926   shlibpath_var=LD_LIBRARY_PATH
10927   shlibpath_overrides_runpath=no
10928
10929   # Some binutils ld are patched to set DT_RUNPATH
10930   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10931   $as_echo_n "(cached) " >&6
10932 else
10933   lt_cv_shlibpath_overrides_runpath=no
10934     save_LDFLAGS=$LDFLAGS
10935     save_libdir=$libdir
10936     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10937          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939 /* end confdefs.h.  */
10940
10941 int
10942 main ()
10943 {
10944
10945   ;
10946   return 0;
10947 }
10948 _ACEOF
10949 if ac_fn_c_try_link "$LINENO"; then :
10950   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10951   lt_cv_shlibpath_overrides_runpath=yes
10952 fi
10953 fi
10954 rm -f core conftest.err conftest.$ac_objext \
10955     conftest$ac_exeext conftest.$ac_ext
10956     LDFLAGS=$save_LDFLAGS
10957     libdir=$save_libdir
10958
10959 fi
10960
10961   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10962
10963   # This implies no fast_install, which is unacceptable.
10964   # Some rework will be needed to allow for fast_install
10965   # before this can be enabled.
10966   hardcode_into_libs=yes
10967
10968   # Append ld.so.conf contents to the search path
10969   if test -f /etc/ld.so.conf; then
10970     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' ' '`
10971     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10972   fi
10973
10974   # We used to test for /lib/ld.so.1 and disable shared libraries on
10975   # powerpc, because MkLinux only supported shared libraries with the
10976   # GNU dynamic linker.  Since this was broken with cross compilers,
10977   # most powerpc-linux boxes support dynamic linking these days and
10978   # people can always --disable-shared, the test was removed, and we
10979   # assume the GNU/Linux dynamic linker is in use.
10980   dynamic_linker='GNU/Linux ld.so'
10981   ;;
10982
10983 netbsd*)
10984   version_type=sunos
10985   need_lib_prefix=no
10986   need_version=no
10987   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10989     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10990     dynamic_linker='NetBSD (a.out) ld.so'
10991   else
10992     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10993     soname_spec='${libname}${release}${shared_ext}$major'
10994     dynamic_linker='NetBSD ld.elf_so'
10995   fi
10996   shlibpath_var=LD_LIBRARY_PATH
10997   shlibpath_overrides_runpath=yes
10998   hardcode_into_libs=yes
10999   ;;
11000
11001 newsos6)
11002   version_type=linux
11003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004   shlibpath_var=LD_LIBRARY_PATH
11005   shlibpath_overrides_runpath=yes
11006   ;;
11007
11008 *nto* | *qnx*)
11009   version_type=qnx
11010   need_lib_prefix=no
11011   need_version=no
11012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11013   soname_spec='${libname}${release}${shared_ext}$major'
11014   shlibpath_var=LD_LIBRARY_PATH
11015   shlibpath_overrides_runpath=no
11016   hardcode_into_libs=yes
11017   dynamic_linker='ldqnx.so'
11018   ;;
11019
11020 openbsd*)
11021   version_type=sunos
11022   sys_lib_dlsearch_path_spec="/usr/lib"
11023   need_lib_prefix=no
11024   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11025   case $host_os in
11026     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11027     *)                          need_version=no  ;;
11028   esac
11029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11031   shlibpath_var=LD_LIBRARY_PATH
11032   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11033     case $host_os in
11034       openbsd2.[89] | openbsd2.[89].*)
11035         shlibpath_overrides_runpath=no
11036         ;;
11037       *)
11038         shlibpath_overrides_runpath=yes
11039         ;;
11040       esac
11041   else
11042     shlibpath_overrides_runpath=yes
11043   fi
11044   ;;
11045
11046 os2*)
11047   libname_spec='$name'
11048   shrext_cmds=".dll"
11049   need_lib_prefix=no
11050   library_names_spec='$libname${shared_ext} $libname.a'
11051   dynamic_linker='OS/2 ld.exe'
11052   shlibpath_var=LIBPATH
11053   ;;
11054
11055 osf3* | osf4* | osf5*)
11056   version_type=osf
11057   need_lib_prefix=no
11058   need_version=no
11059   soname_spec='${libname}${release}${shared_ext}$major'
11060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11061   shlibpath_var=LD_LIBRARY_PATH
11062   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11063   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11064   ;;
11065
11066 rdos*)
11067   dynamic_linker=no
11068   ;;
11069
11070 solaris*)
11071   version_type=linux
11072   need_lib_prefix=no
11073   need_version=no
11074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11075   soname_spec='${libname}${release}${shared_ext}$major'
11076   shlibpath_var=LD_LIBRARY_PATH
11077   shlibpath_overrides_runpath=yes
11078   hardcode_into_libs=yes
11079   # ldd complains unless libraries are executable
11080   postinstall_cmds='chmod +x $lib'
11081   ;;
11082
11083 sunos4*)
11084   version_type=sunos
11085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11086   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11087   shlibpath_var=LD_LIBRARY_PATH
11088   shlibpath_overrides_runpath=yes
11089   if test "$with_gnu_ld" = yes; then
11090     need_lib_prefix=no
11091   fi
11092   need_version=yes
11093   ;;
11094
11095 sysv4 | sysv4.3*)
11096   version_type=linux
11097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098   soname_spec='${libname}${release}${shared_ext}$major'
11099   shlibpath_var=LD_LIBRARY_PATH
11100   case $host_vendor in
11101     sni)
11102       shlibpath_overrides_runpath=no
11103       need_lib_prefix=no
11104       runpath_var=LD_RUN_PATH
11105       ;;
11106     siemens)
11107       need_lib_prefix=no
11108       ;;
11109     motorola)
11110       need_lib_prefix=no
11111       need_version=no
11112       shlibpath_overrides_runpath=no
11113       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11114       ;;
11115   esac
11116   ;;
11117
11118 sysv4*MP*)
11119   if test -d /usr/nec ;then
11120     version_type=linux
11121     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11122     soname_spec='$libname${shared_ext}.$major'
11123     shlibpath_var=LD_LIBRARY_PATH
11124   fi
11125   ;;
11126
11127 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11128   version_type=freebsd-elf
11129   need_lib_prefix=no
11130   need_version=no
11131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11132   soname_spec='${libname}${release}${shared_ext}$major'
11133   shlibpath_var=LD_LIBRARY_PATH
11134   shlibpath_overrides_runpath=yes
11135   hardcode_into_libs=yes
11136   if test "$with_gnu_ld" = yes; then
11137     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11138   else
11139     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11140     case $host_os in
11141       sco3.2v5*)
11142         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11143         ;;
11144     esac
11145   fi
11146   sys_lib_dlsearch_path_spec='/usr/lib'
11147   ;;
11148
11149 tpf*)
11150   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11151   version_type=linux
11152   need_lib_prefix=no
11153   need_version=no
11154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   shlibpath_overrides_runpath=no
11157   hardcode_into_libs=yes
11158   ;;
11159
11160 uts4*)
11161   version_type=linux
11162   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   shlibpath_var=LD_LIBRARY_PATH
11165   ;;
11166
11167 *)
11168   dynamic_linker=no
11169   ;;
11170 esac
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11172 $as_echo "$dynamic_linker" >&6; }
11173 test "$dynamic_linker" = no && can_build_shared=no
11174
11175 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11176 if test "$GCC" = yes; then
11177   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11178 fi
11179
11180 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11181   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11182 fi
11183 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11184   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11185 fi
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11279 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11280 hardcode_action=
11281 if test -n "$hardcode_libdir_flag_spec" ||
11282    test -n "$runpath_var" ||
11283    test "X$hardcode_automatic" = "Xyes" ; then
11284
11285   # We can hardcode non-existent directories.
11286   if test "$hardcode_direct" != no &&
11287      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11288      # have to relink, otherwise we might link with an installed library
11289      # when we should be linking with a yet-to-be-installed one
11290      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11291      test "$hardcode_minus_L" != no; then
11292     # Linking always hardcodes the temporary library directory.
11293     hardcode_action=relink
11294   else
11295     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11296     hardcode_action=immediate
11297   fi
11298 else
11299   # We cannot hardcode anything, or else we can only hardcode existing
11300   # directories.
11301   hardcode_action=unsupported
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11304 $as_echo "$hardcode_action" >&6; }
11305
11306 if test "$hardcode_action" = relink ||
11307    test "$inherit_rpath" = yes; then
11308   # Fast installation is not supported
11309   enable_fast_install=no
11310 elif test "$shlibpath_overrides_runpath" = yes ||
11311      test "$enable_shared" = no; then
11312   # Fast installation is not necessary
11313   enable_fast_install=needless
11314 fi
11315
11316
11317
11318
11319
11320
11321   if test "x$enable_dlopen" != xyes; then
11322   enable_dlopen=unknown
11323   enable_dlopen_self=unknown
11324   enable_dlopen_self_static=unknown
11325 else
11326   lt_cv_dlopen=no
11327   lt_cv_dlopen_libs=
11328
11329   case $host_os in
11330   beos*)
11331     lt_cv_dlopen="load_add_on"
11332     lt_cv_dlopen_libs=
11333     lt_cv_dlopen_self=yes
11334     ;;
11335
11336   mingw* | pw32* | cegcc*)
11337     lt_cv_dlopen="LoadLibrary"
11338     lt_cv_dlopen_libs=
11339     ;;
11340
11341   cygwin*)
11342     lt_cv_dlopen="dlopen"
11343     lt_cv_dlopen_libs=
11344     ;;
11345
11346   darwin*)
11347   # if libdl is installed we need to link against it
11348     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11349 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11350 if ${ac_cv_lib_dl_dlopen+:} false; then :
11351   $as_echo_n "(cached) " >&6
11352 else
11353   ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-ldl  $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h.  */
11357
11358 /* Override any GCC internal prototype to avoid an error.
11359    Use char because int might match the return type of a GCC
11360    builtin and then its argument prototype would still apply.  */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char dlopen ();
11365 int
11366 main ()
11367 {
11368 return dlopen ();
11369   ;
11370   return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374   ac_cv_lib_dl_dlopen=yes
11375 else
11376   ac_cv_lib_dl_dlopen=no
11377 fi
11378 rm -f core conftest.err conftest.$ac_objext \
11379     conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11381 fi
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11383 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11384 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11386 else
11387
11388     lt_cv_dlopen="dyld"
11389     lt_cv_dlopen_libs=
11390     lt_cv_dlopen_self=yes
11391
11392 fi
11393
11394     ;;
11395
11396   *)
11397     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11398 if test "x$ac_cv_func_shl_load" = xyes; then :
11399   lt_cv_dlopen="shl_load"
11400 else
11401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11402 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11403 if ${ac_cv_lib_dld_shl_load+:} false; then :
11404   $as_echo_n "(cached) " >&6
11405 else
11406   ac_check_lib_save_LIBS=$LIBS
11407 LIBS="-ldld  $LIBS"
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h.  */
11410
11411 /* Override any GCC internal prototype to avoid an error.
11412    Use char because int might match the return type of a GCC
11413    builtin and then its argument prototype would still apply.  */
11414 #ifdef __cplusplus
11415 extern "C"
11416 #endif
11417 char shl_load ();
11418 int
11419 main ()
11420 {
11421 return shl_load ();
11422   ;
11423   return 0;
11424 }
11425 _ACEOF
11426 if ac_fn_c_try_link "$LINENO"; then :
11427   ac_cv_lib_dld_shl_load=yes
11428 else
11429   ac_cv_lib_dld_shl_load=no
11430 fi
11431 rm -f core conftest.err conftest.$ac_objext \
11432     conftest$ac_exeext conftest.$ac_ext
11433 LIBS=$ac_check_lib_save_LIBS
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11436 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11437 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11438   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11439 else
11440   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11441 if test "x$ac_cv_func_dlopen" = xyes; then :
11442   lt_cv_dlopen="dlopen"
11443 else
11444   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11445 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11446 if ${ac_cv_lib_dl_dlopen+:} false; then :
11447   $as_echo_n "(cached) " >&6
11448 else
11449   ac_check_lib_save_LIBS=$LIBS
11450 LIBS="-ldl  $LIBS"
11451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11452 /* end confdefs.h.  */
11453
11454 /* Override any GCC internal prototype to avoid an error.
11455    Use char because int might match the return type of a GCC
11456    builtin and then its argument prototype would still apply.  */
11457 #ifdef __cplusplus
11458 extern "C"
11459 #endif
11460 char dlopen ();
11461 int
11462 main ()
11463 {
11464 return dlopen ();
11465   ;
11466   return 0;
11467 }
11468 _ACEOF
11469 if ac_fn_c_try_link "$LINENO"; then :
11470   ac_cv_lib_dl_dlopen=yes
11471 else
11472   ac_cv_lib_dl_dlopen=no
11473 fi
11474 rm -f core conftest.err conftest.$ac_objext \
11475     conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11479 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11480 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11481   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11482 else
11483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11484 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11485 if ${ac_cv_lib_svld_dlopen+:} false; then :
11486   $as_echo_n "(cached) " >&6
11487 else
11488   ac_check_lib_save_LIBS=$LIBS
11489 LIBS="-lsvld  $LIBS"
11490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11491 /* end confdefs.h.  */
11492
11493 /* Override any GCC internal prototype to avoid an error.
11494    Use char because int might match the return type of a GCC
11495    builtin and then its argument prototype would still apply.  */
11496 #ifdef __cplusplus
11497 extern "C"
11498 #endif
11499 char dlopen ();
11500 int
11501 main ()
11502 {
11503 return dlopen ();
11504   ;
11505   return 0;
11506 }
11507 _ACEOF
11508 if ac_fn_c_try_link "$LINENO"; then :
11509   ac_cv_lib_svld_dlopen=yes
11510 else
11511   ac_cv_lib_svld_dlopen=no
11512 fi
11513 rm -f core conftest.err conftest.$ac_objext \
11514     conftest$ac_exeext conftest.$ac_ext
11515 LIBS=$ac_check_lib_save_LIBS
11516 fi
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11518 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11519 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11520   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11521 else
11522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11523 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11524 if ${ac_cv_lib_dld_dld_link+:} false; then :
11525   $as_echo_n "(cached) " >&6
11526 else
11527   ac_check_lib_save_LIBS=$LIBS
11528 LIBS="-ldld  $LIBS"
11529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530 /* end confdefs.h.  */
11531
11532 /* Override any GCC internal prototype to avoid an error.
11533    Use char because int might match the return type of a GCC
11534    builtin and then its argument prototype would still apply.  */
11535 #ifdef __cplusplus
11536 extern "C"
11537 #endif
11538 char dld_link ();
11539 int
11540 main ()
11541 {
11542 return dld_link ();
11543   ;
11544   return 0;
11545 }
11546 _ACEOF
11547 if ac_fn_c_try_link "$LINENO"; then :
11548   ac_cv_lib_dld_dld_link=yes
11549 else
11550   ac_cv_lib_dld_dld_link=no
11551 fi
11552 rm -f core conftest.err conftest.$ac_objext \
11553     conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11557 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11558 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11559   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11560 fi
11561
11562
11563 fi
11564
11565
11566 fi
11567
11568
11569 fi
11570
11571
11572 fi
11573
11574
11575 fi
11576
11577     ;;
11578   esac
11579
11580   if test "x$lt_cv_dlopen" != xno; then
11581     enable_dlopen=yes
11582   else
11583     enable_dlopen=no
11584   fi
11585
11586   case $lt_cv_dlopen in
11587   dlopen)
11588     save_CPPFLAGS="$CPPFLAGS"
11589     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11590
11591     save_LDFLAGS="$LDFLAGS"
11592     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11593
11594     save_LIBS="$LIBS"
11595     LIBS="$lt_cv_dlopen_libs $LIBS"
11596
11597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11598 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11599 if ${lt_cv_dlopen_self+:} false; then :
11600   $as_echo_n "(cached) " >&6
11601 else
11602           if test "$cross_compiling" = yes; then :
11603   lt_cv_dlopen_self=cross
11604 else
11605   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11606   lt_status=$lt_dlunknown
11607   cat > conftest.$ac_ext <<_LT_EOF
11608 #line $LINENO "configure"
11609 #include "confdefs.h"
11610
11611 #if HAVE_DLFCN_H
11612 #include <dlfcn.h>
11613 #endif
11614
11615 #include <stdio.h>
11616
11617 #ifdef RTLD_GLOBAL
11618 #  define LT_DLGLOBAL           RTLD_GLOBAL
11619 #else
11620 #  ifdef DL_GLOBAL
11621 #    define LT_DLGLOBAL         DL_GLOBAL
11622 #  else
11623 #    define LT_DLGLOBAL         0
11624 #  endif
11625 #endif
11626
11627 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11628    find out it does not work in some platform. */
11629 #ifndef LT_DLLAZY_OR_NOW
11630 #  ifdef RTLD_LAZY
11631 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11632 #  else
11633 #    ifdef DL_LAZY
11634 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11635 #    else
11636 #      ifdef RTLD_NOW
11637 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11638 #      else
11639 #        ifdef DL_NOW
11640 #          define LT_DLLAZY_OR_NOW      DL_NOW
11641 #        else
11642 #          define LT_DLLAZY_OR_NOW      0
11643 #        endif
11644 #      endif
11645 #    endif
11646 #  endif
11647 #endif
11648
11649 /* When -fvisbility=hidden is used, assume the code has been annotated
11650    correspondingly for the symbols needed.  */
11651 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11652 int fnord () __attribute__((visibility("default")));
11653 #endif
11654
11655 int fnord () { return 42; }
11656 int main ()
11657 {
11658   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11659   int status = $lt_dlunknown;
11660
11661   if (self)
11662     {
11663       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11664       else
11665         {
11666           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11667           else puts (dlerror ());
11668         }
11669       /* dlclose (self); */
11670     }
11671   else
11672     puts (dlerror ());
11673
11674   return status;
11675 }
11676 _LT_EOF
11677   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11678   (eval $ac_link) 2>&5
11679   ac_status=$?
11680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11681   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11682     (./conftest; exit; ) >&5 2>/dev/null
11683     lt_status=$?
11684     case x$lt_status in
11685       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11686       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11687       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11688     esac
11689   else :
11690     # compilation failed
11691     lt_cv_dlopen_self=no
11692   fi
11693 fi
11694 rm -fr conftest*
11695
11696
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11699 $as_echo "$lt_cv_dlopen_self" >&6; }
11700
11701     if test "x$lt_cv_dlopen_self" = xyes; then
11702       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11703       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11704 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11705 if ${lt_cv_dlopen_self_static+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708           if test "$cross_compiling" = yes; then :
11709   lt_cv_dlopen_self_static=cross
11710 else
11711   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11712   lt_status=$lt_dlunknown
11713   cat > conftest.$ac_ext <<_LT_EOF
11714 #line $LINENO "configure"
11715 #include "confdefs.h"
11716
11717 #if HAVE_DLFCN_H
11718 #include <dlfcn.h>
11719 #endif
11720
11721 #include <stdio.h>
11722
11723 #ifdef RTLD_GLOBAL
11724 #  define LT_DLGLOBAL           RTLD_GLOBAL
11725 #else
11726 #  ifdef DL_GLOBAL
11727 #    define LT_DLGLOBAL         DL_GLOBAL
11728 #  else
11729 #    define LT_DLGLOBAL         0
11730 #  endif
11731 #endif
11732
11733 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11734    find out it does not work in some platform. */
11735 #ifndef LT_DLLAZY_OR_NOW
11736 #  ifdef RTLD_LAZY
11737 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11738 #  else
11739 #    ifdef DL_LAZY
11740 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11741 #    else
11742 #      ifdef RTLD_NOW
11743 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11744 #      else
11745 #        ifdef DL_NOW
11746 #          define LT_DLLAZY_OR_NOW      DL_NOW
11747 #        else
11748 #          define LT_DLLAZY_OR_NOW      0
11749 #        endif
11750 #      endif
11751 #    endif
11752 #  endif
11753 #endif
11754
11755 /* When -fvisbility=hidden is used, assume the code has been annotated
11756    correspondingly for the symbols needed.  */
11757 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11758 int fnord () __attribute__((visibility("default")));
11759 #endif
11760
11761 int fnord () { return 42; }
11762 int main ()
11763 {
11764   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11765   int status = $lt_dlunknown;
11766
11767   if (self)
11768     {
11769       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11770       else
11771         {
11772           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11773           else puts (dlerror ());
11774         }
11775       /* dlclose (self); */
11776     }
11777   else
11778     puts (dlerror ());
11779
11780   return status;
11781 }
11782 _LT_EOF
11783   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11784   (eval $ac_link) 2>&5
11785   ac_status=$?
11786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11787   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11788     (./conftest; exit; ) >&5 2>/dev/null
11789     lt_status=$?
11790     case x$lt_status in
11791       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11792       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11793       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11794     esac
11795   else :
11796     # compilation failed
11797     lt_cv_dlopen_self_static=no
11798   fi
11799 fi
11800 rm -fr conftest*
11801
11802
11803 fi
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11805 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11806     fi
11807
11808     CPPFLAGS="$save_CPPFLAGS"
11809     LDFLAGS="$save_LDFLAGS"
11810     LIBS="$save_LIBS"
11811     ;;
11812   esac
11813
11814   case $lt_cv_dlopen_self in
11815   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11816   *) enable_dlopen_self=unknown ;;
11817   esac
11818
11819   case $lt_cv_dlopen_self_static in
11820   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11821   *) enable_dlopen_self_static=unknown ;;
11822   esac
11823 fi
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841 striplib=
11842 old_striplib=
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11844 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11845 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11846   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11847   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11849 $as_echo "yes" >&6; }
11850 else
11851 # FIXME - insert some real tests, host_os isn't really good enough
11852   case $host_os in
11853   darwin*)
11854     if test -n "$STRIP" ; then
11855       striplib="$STRIP -x"
11856       old_striplib="$STRIP -S"
11857       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11858 $as_echo "yes" >&6; }
11859     else
11860       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862     fi
11863     ;;
11864   *)
11865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11866 $as_echo "no" >&6; }
11867     ;;
11868   esac
11869 fi
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882   # Report which library types will actually be built
11883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11884 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11886 $as_echo "$can_build_shared" >&6; }
11887
11888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11889 $as_echo_n "checking whether to build shared libraries... " >&6; }
11890   test "$can_build_shared" = "no" && enable_shared=no
11891
11892   # On AIX, shared libraries and static libraries use the same namespace, and
11893   # are all built from PIC.
11894   case $host_os in
11895   aix3*)
11896     test "$enable_shared" = yes && enable_static=no
11897     if test -n "$RANLIB"; then
11898       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11899       postinstall_cmds='$RANLIB $lib'
11900     fi
11901     ;;
11902
11903   aix[4-9]*)
11904     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11905       test "$enable_shared" = yes && enable_static=no
11906     fi
11907     ;;
11908   esac
11909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11910 $as_echo "$enable_shared" >&6; }
11911
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11913 $as_echo_n "checking whether to build static libraries... " >&6; }
11914   # Make sure either enable_shared or enable_static is yes.
11915   test "$enable_shared" = yes || enable_static=yes
11916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11917 $as_echo "$enable_static" >&6; }
11918
11919
11920
11921
11922 fi
11923 ac_ext=c
11924 ac_cpp='$CPP $CPPFLAGS'
11925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11928
11929 CC="$lt_save_CC"
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943         ac_config_commands="$ac_config_commands libtool"
11944
11945
11946
11947
11948 # Only expand once:
11949
11950
11951
11952
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11954 $as_echo_n "checking for C compiler vendor... " >&6; }
11955 if ${ax_cv_c_compiler_vendor+:} false; then :
11956   $as_echo_n "(cached) " >&6
11957 else
11958   # note: don't check for gcc first since some other compilers define __GNUC__
11959   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
11960            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
11961            pathscale: __PATHCC__,__PATHSCALE__
11962            clang:     __clang__
11963            gnu:       __GNUC__
11964            sun:       __SUNPRO_C,__SUNPRO_CC
11965            hp:        __HP_cc,__HP_aCC
11966            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
11967            borland:   __BORLANDC__,__TURBOC__
11968            comeau:    __COMO__
11969            cray:      _CRAYC
11970            kai:       __KCC
11971            lcc:       __LCC__
11972            sgi:       __sgi,sgi
11973            microsoft: _MSC_VER
11974            metrowerks: __MWERKS__
11975            watcom:    __WATCOMC__
11976            portland:  __PGI
11977            unknown:   UNKNOWN"
11978   for ventest in $vendors; do
11979     case $ventest in
11980       *:) vendor=$ventest; continue ;;
11981       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
11982     esac
11983     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984 /* end confdefs.h.  */
11985
11986 int
11987 main ()
11988 {
11989
11990       #if !($vencpp)
11991         thisisanerror;
11992       #endif
11993
11994   ;
11995   return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_compile "$LINENO"; then :
11999   break
12000 fi
12001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12002   done
12003   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12004
12005 fi
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12007 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12008
12009
12010
12011
12012
12013
12014 # Check whether --enable-portable-binary was given.
12015 if test "${enable_portable_binary+set}" = set; then :
12016   enableval=$enable_portable_binary; acx_maxopt_portable=$withval
12017 else
12018   acx_maxopt_portable=no
12019 fi
12020
12021
12022 # Try to determine "good" native compiler flags if none specified via CFLAGS
12023 if test "$ac_test_CFLAGS" != "set"; then
12024   CFLAGS=""
12025   case $ax_cv_c_compiler_vendor in
12026     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12027          if test "x$acx_maxopt_portable" = xno; then
12028            CFLAGS="$CFLAGS -arch host"
12029          fi;;
12030
12031     sun) CFLAGS="-native -fast -xO5 -dalign"
12032          if test "x$acx_maxopt_portable" = xyes; then
12033            CFLAGS="$CFLAGS -xarch=generic"
12034          fi;;
12035
12036     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12037          if test "x$acx_maxopt_portable" = xyes; then
12038            CFLAGS="$CFLAGS +DAportable"
12039          fi;;
12040
12041     ibm) if test "x$acx_maxopt_portable" = xno; then
12042            xlc_opt="-qarch=auto -qtune=auto"
12043          else
12044            xlc_opt="-qtune=auto"
12045          fi
12046          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12048 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12049 if eval \${$as_CACHEVAR+:} false; then :
12050   $as_echo_n "(cached) " >&6
12051 else
12052
12053   ax_check_save_flags=$CFLAGS
12054   CFLAGS="$CFLAGS  $xlc_opt"
12055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h.  */
12057
12058 int
12059 main ()
12060 {
12061
12062   ;
12063   return 0;
12064 }
12065 _ACEOF
12066 if ac_fn_c_try_compile "$LINENO"; then :
12067   eval "$as_CACHEVAR=yes"
12068 else
12069   eval "$as_CACHEVAR=no"
12070 fi
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072   CFLAGS=$ax_check_save_flags
12073 fi
12074 eval ac_res=\$$as_CACHEVAR
12075                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12076 $as_echo "$ac_res" >&6; }
12077 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12078   CFLAGS="-O3 -qansialias -w $xlc_opt"
12079 else
12080   CFLAGS="-O3 -qansialias -w"
12081                 echo "******************************************************"
12082                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12083                 echo "*  recommended for best performance that you use:    *"
12084                 echo "*                                                    *"
12085                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12086                 echo "*                      ^^^        ^^^                *"
12087                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12088                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12089                 echo "*  and re-run configure.)  For more info, man cc.    *"
12090                 echo "******************************************************"
12091 fi
12092
12093          ;;
12094
12095     intel) CFLAGS="-O3 -ansi_alias"
12096         if test "x$acx_maxopt_portable" = xno; then
12097           icc_archflag=unknown
12098           icc_flags=""
12099           case $host_cpu in
12100             i686*|x86_64*)
12101               # icc accepts gcc assembly syntax, so these should work:
12102
12103 ac_ext=c
12104 ac_cpp='$CPP $CPPFLAGS'
12105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12108
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12110 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12111 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12112   $as_echo_n "(cached) " >&6
12113 else
12114   if test "$cross_compiling" = yes; then :
12115   ax_cv_gcc_x86_cpuid_0=unknown
12116 else
12117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119 #include <stdio.h>
12120 int
12121 main ()
12122 {
12123
12124      int op = 0, eax, ebx, ecx, edx;
12125      FILE *f;
12126       __asm__("cpuid"
12127         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12128         : "a" (op));
12129      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12130      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12131      fclose(f);
12132      return 0;
12133
12134   ;
12135   return 0;
12136 }
12137 _ACEOF
12138 if ac_fn_c_try_run "$LINENO"; then :
12139   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12140 else
12141   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12142 fi
12143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12144   conftest.$ac_objext conftest.beam conftest.$ac_ext
12145 fi
12146
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12149 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12150 ac_ext=c
12151 ac_cpp='$CPP $CPPFLAGS'
12152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12155
12156
12157
12158 ac_ext=c
12159 ac_cpp='$CPP $CPPFLAGS'
12160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12163
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12165 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12166 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   if test "$cross_compiling" = yes; then :
12170   ax_cv_gcc_x86_cpuid_1=unknown
12171 else
12172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12173 /* end confdefs.h.  */
12174 #include <stdio.h>
12175 int
12176 main ()
12177 {
12178
12179      int op = 1, eax, ebx, ecx, edx;
12180      FILE *f;
12181       __asm__("cpuid"
12182         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12183         : "a" (op));
12184      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12185      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12186      fclose(f);
12187      return 0;
12188
12189   ;
12190   return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_run "$LINENO"; then :
12194   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12195 else
12196   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12197 fi
12198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12199   conftest.$ac_objext conftest.beam conftest.$ac_ext
12200 fi
12201
12202 fi
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12204 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12205 ac_ext=c
12206 ac_cpp='$CPP $CPPFLAGS'
12207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12210
12211
12212               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12213                 *:756e6547:*:*) # Intel
12214                   case $ax_cv_gcc_x86_cpuid_1 in
12215                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12216                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12217                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12218                   esac ;;
12219               esac ;;
12220           esac
12221           if test "x$icc_flags" != x; then
12222             for flag in $icc_flags; do
12223               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12225 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12226 if eval \${$as_CACHEVAR+:} false; then :
12227   $as_echo_n "(cached) " >&6
12228 else
12229
12230   ax_check_save_flags=$CFLAGS
12231   CFLAGS="$CFLAGS  $flag"
12232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12233 /* end confdefs.h.  */
12234
12235 int
12236 main ()
12237 {
12238
12239   ;
12240   return 0;
12241 }
12242 _ACEOF
12243 if ac_fn_c_try_compile "$LINENO"; then :
12244   eval "$as_CACHEVAR=yes"
12245 else
12246   eval "$as_CACHEVAR=no"
12247 fi
12248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12249   CFLAGS=$ax_check_save_flags
12250 fi
12251 eval ac_res=\$$as_CACHEVAR
12252                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12253 $as_echo "$ac_res" >&6; }
12254 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12255   icc_archflag=$flag; break
12256 else
12257   :
12258 fi
12259
12260             done
12261           fi
12262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12263 $as_echo_n "checking for icc architecture flag... " >&6; }
12264           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12265 $as_echo "$icc_archflag" >&6; }
12266           if test "x$icc_archflag" != xunknown; then
12267             CFLAGS="$CFLAGS $icc_archflag"
12268           fi
12269         fi
12270         ;;
12271
12272     gnu)
12273      # default optimization flags for gcc on all systems
12274      CFLAGS="-O3 -fomit-frame-pointer"
12275
12276      # -malign-double for x86 systems
12277      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12278 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12279 if ${ax_cv_check_cflags___malign_double+:} false; then :
12280   $as_echo_n "(cached) " >&6
12281 else
12282
12283   ax_check_save_flags=$CFLAGS
12284   CFLAGS="$CFLAGS  -malign-double"
12285   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12286 /* end confdefs.h.  */
12287
12288 int
12289 main ()
12290 {
12291
12292   ;
12293   return 0;
12294 }
12295 _ACEOF
12296 if ac_fn_c_try_compile "$LINENO"; then :
12297   ax_cv_check_cflags___malign_double=yes
12298 else
12299   ax_cv_check_cflags___malign_double=no
12300 fi
12301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12302   CFLAGS=$ax_check_save_flags
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12305 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12306 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12307   CFLAGS="$CFLAGS -malign-double"
12308 else
12309   :
12310 fi
12311
12312
12313      #  -fstrict-aliasing for gcc-2.95+
12314      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12315 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12316 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12317   $as_echo_n "(cached) " >&6
12318 else
12319
12320   ax_check_save_flags=$CFLAGS
12321   CFLAGS="$CFLAGS  -fstrict-aliasing"
12322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h.  */
12324
12325 int
12326 main ()
12327 {
12328
12329   ;
12330   return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_compile "$LINENO"; then :
12334   ax_cv_check_cflags___fstrict_aliasing=yes
12335 else
12336   ax_cv_check_cflags___fstrict_aliasing=no
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12339   CFLAGS=$ax_check_save_flags
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12342 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12343 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12344   CFLAGS="$CFLAGS -fstrict-aliasing"
12345 else
12346   :
12347 fi
12348
12349
12350      # note that we enable "unsafe" fp optimization with other compilers, too
12351      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12352 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12353 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12354   $as_echo_n "(cached) " >&6
12355 else
12356
12357   ax_check_save_flags=$CFLAGS
12358   CFLAGS="$CFLAGS  -ffast-math"
12359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12360 /* end confdefs.h.  */
12361
12362 int
12363 main ()
12364 {
12365
12366   ;
12367   return 0;
12368 }
12369 _ACEOF
12370 if ac_fn_c_try_compile "$LINENO"; then :
12371   ax_cv_check_cflags___ffast_math=yes
12372 else
12373   ax_cv_check_cflags___ffast_math=no
12374 fi
12375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12376   CFLAGS=$ax_check_save_flags
12377 fi
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12379 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12380 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12381   CFLAGS="$CFLAGS -ffast-math"
12382 else
12383   :
12384 fi
12385
12386
12387
12388
12389
12390
12391 # Check whether --with-gcc-arch was given.
12392 if test "${with_gcc_arch+set}" = set; then :
12393   withval=$with_gcc_arch; ax_gcc_arch=$withval
12394 else
12395   ax_gcc_arch=yes
12396 fi
12397
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12400 $as_echo_n "checking for gcc architecture flag... " >&6; }
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12402 $as_echo "" >&6; }
12403 if ${ax_cv_gcc_archflag+:} false; then :
12404   $as_echo_n "(cached) " >&6
12405 else
12406
12407 ax_cv_gcc_archflag="unknown"
12408
12409 if test "$GCC" = yes; then
12410
12411 if test "x$ax_gcc_arch" = xyes; then
12412 ax_gcc_arch=""
12413 if test "$cross_compiling" = no; then
12414 case $host_cpu in
12415   i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
12416
12417 ac_ext=c
12418 ac_cpp='$CPP $CPPFLAGS'
12419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12424 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12425 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12426   $as_echo_n "(cached) " >&6
12427 else
12428   if test "$cross_compiling" = yes; then :
12429   ax_cv_gcc_x86_cpuid_0=unknown
12430 else
12431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12432 /* end confdefs.h.  */
12433 #include <stdio.h>
12434 int
12435 main ()
12436 {
12437
12438      int op = 0, eax, ebx, ecx, edx;
12439      FILE *f;
12440       __asm__("cpuid"
12441         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12442         : "a" (op));
12443      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12444      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12445      fclose(f);
12446      return 0;
12447
12448   ;
12449   return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_run "$LINENO"; then :
12453   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12454 else
12455   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12456 fi
12457 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12458   conftest.$ac_objext conftest.beam conftest.$ac_ext
12459 fi
12460
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12463 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12464 ac_ext=c
12465 ac_cpp='$CPP $CPPFLAGS'
12466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12469
12470
12471
12472 ac_ext=c
12473 ac_cpp='$CPP $CPPFLAGS'
12474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477
12478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12479 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12480 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12481   $as_echo_n "(cached) " >&6
12482 else
12483   if test "$cross_compiling" = yes; then :
12484   ax_cv_gcc_x86_cpuid_1=unknown
12485 else
12486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h.  */
12488 #include <stdio.h>
12489 int
12490 main ()
12491 {
12492
12493      int op = 1, eax, ebx, ecx, edx;
12494      FILE *f;
12495       __asm__("cpuid"
12496         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12497         : "a" (op));
12498      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12499      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12500      fclose(f);
12501      return 0;
12502
12503   ;
12504   return 0;
12505 }
12506 _ACEOF
12507 if ac_fn_c_try_run "$LINENO"; then :
12508   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12509 else
12510   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12511 fi
12512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12513   conftest.$ac_objext conftest.beam conftest.$ac_ext
12514 fi
12515
12516 fi
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12518 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12519 ac_ext=c
12520 ac_cpp='$CPP $CPPFLAGS'
12521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12524
12525
12526      case $ax_cv_gcc_x86_cpuid_0 in
12527        *:756e6547:*:*) # Intel
12528           case $ax_cv_gcc_x86_cpuid_1 in
12529             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12530             *5??:*:*:*) ax_gcc_arch=pentium ;;
12531             *6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12532             *6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12533             *6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12534             *6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12535             *6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12536             *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12537             *f3[347]:*:*:*|*f41347:*:*:*)
12538                 case $host_cpu in
12539                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12540                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12541                 esac ;;
12542             *f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12543           esac ;;
12544        *:68747541:*:*) # AMD
12545           case $ax_cv_gcc_x86_cpuid_1 in
12546             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12547             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12548             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12549             *60?:*:*:*) ax_gcc_arch=k7 ;;
12550             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12551             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12552             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12553             *6[68a]?:*:*:*)
12554
12555 ac_ext=c
12556 ac_cpp='$CPP $CPPFLAGS'
12557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12562 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12563 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12564   $as_echo_n "(cached) " >&6
12565 else
12566   if test "$cross_compiling" = yes; then :
12567   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12568 else
12569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h.  */
12571 #include <stdio.h>
12572 int
12573 main ()
12574 {
12575
12576      int op = 0x80000006, eax, ebx, ecx, edx;
12577      FILE *f;
12578       __asm__("cpuid"
12579         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12580         : "a" (op));
12581      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12582      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12583      fclose(f);
12584      return 0;
12585
12586   ;
12587   return 0;
12588 }
12589 _ACEOF
12590 if ac_fn_c_try_run "$LINENO"; then :
12591   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12592 else
12593   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12594 fi
12595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12596   conftest.$ac_objext conftest.beam conftest.$ac_ext
12597 fi
12598
12599 fi
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12601 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12602 ac_ext=c
12603 ac_cpp='$CPP $CPPFLAGS'
12604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12607
12608  # L2 cache size
12609                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12610                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12611                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12612                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12613                esac ;;
12614             *f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12615             *f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12616             *f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12617             *f??:*:*:*) ax_gcc_arch="k8" ;;
12618           esac ;;
12619         *:746e6543:*:*) # IDT
12620            case $ax_cv_gcc_x86_cpuid_1 in
12621              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12622              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12623              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12624              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12625            esac ;;
12626      esac
12627      if test x"$ax_gcc_arch" = x; then # fallback
12628         case $host_cpu in
12629           i586*) ax_gcc_arch=pentium ;;
12630           i686*) ax_gcc_arch=pentiumpro ;;
12631         esac
12632      fi
12633      ;;
12634
12635   sparc*)
12636      # Extract the first word of "prtdiag", so it can be a program name with args.
12637 set dummy prtdiag; ac_word=$2
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12639 $as_echo_n "checking for $ac_word... " >&6; }
12640 if ${ac_cv_path_PRTDIAG+:} false; then :
12641   $as_echo_n "(cached) " >&6
12642 else
12643   case $PRTDIAG in
12644   [\\/]* | ?:[\\/]*)
12645   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12646   ;;
12647   *)
12648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12649 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12650 for as_dir in $as_dummy
12651 do
12652   IFS=$as_save_IFS
12653   test -z "$as_dir" && as_dir=.
12654     for ac_exec_ext in '' $ac_executable_extensions; do
12655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12656     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12658     break 2
12659   fi
12660 done
12661   done
12662 IFS=$as_save_IFS
12663
12664   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12665   ;;
12666 esac
12667 fi
12668 PRTDIAG=$ac_cv_path_PRTDIAG
12669 if test -n "$PRTDIAG"; then
12670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12671 $as_echo "$PRTDIAG" >&6; }
12672 else
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12674 $as_echo "no" >&6; }
12675 fi
12676
12677
12678      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`
12679      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12680      case $cputype in
12681          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12682          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12683          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12684          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12685          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12686          *cypress*) ax_gcc_arch=cypress ;;
12687      esac ;;
12688
12689   alphaev5) ax_gcc_arch=ev5 ;;
12690   alphaev56) ax_gcc_arch=ev56 ;;
12691   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12692   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12693   alphaev6) ax_gcc_arch=ev6 ;;
12694   alphaev67) ax_gcc_arch=ev67 ;;
12695   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12696   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12697   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12698   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12699
12700   powerpc*)
12701      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`
12702      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12703      case $cputype in
12704        *750*) ax_gcc_arch="750 G3" ;;
12705        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12706        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12707        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12708        *970*) ax_gcc_arch="970 G5 power4";;
12709        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12710        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12711        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12712        *) ax_gcc_arch=$cputype ;;
12713      esac
12714      ax_gcc_arch="$ax_gcc_arch powerpc"
12715      ;;
12716 esac
12717 fi # not cross-compiling
12718 fi # guess arch
12719
12720 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12721 for arch in $ax_gcc_arch; do
12722   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12723     flags="-mtune=$arch"
12724     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12725     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12726     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12727   else
12728     flags="-march=$arch -mcpu=$arch -m$arch"
12729   fi
12730   for flag in $flags; do
12731     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12733 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12734 if eval \${$as_CACHEVAR+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737
12738   ax_check_save_flags=$CFLAGS
12739   CFLAGS="$CFLAGS  $flag"
12740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12741 /* end confdefs.h.  */
12742
12743 int
12744 main ()
12745 {
12746
12747   ;
12748   return 0;
12749 }
12750 _ACEOF
12751 if ac_fn_c_try_compile "$LINENO"; then :
12752   eval "$as_CACHEVAR=yes"
12753 else
12754   eval "$as_CACHEVAR=no"
12755 fi
12756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757   CFLAGS=$ax_check_save_flags
12758 fi
12759 eval ac_res=\$$as_CACHEVAR
12760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12761 $as_echo "$ac_res" >&6; }
12762 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12763   ax_cv_gcc_archflag=$flag; break
12764 else
12765   :
12766 fi
12767
12768   done
12769   test "x$ax_cv_gcc_archflag" = xunknown || break
12770 done
12771 fi
12772
12773 fi # $GCC=yes
12774
12775 fi
12776
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12778 $as_echo_n "checking for gcc architecture flag... " >&6; }
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12780 $as_echo "$ax_cv_gcc_archflag" >&6; }
12781 if test "x$ax_cv_gcc_archflag" = xunknown; then
12782   :
12783 else
12784   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12785 fi
12786
12787      ;;
12788   esac
12789
12790   if test -z "$CFLAGS"; then
12791         echo ""
12792         echo "********************************************************"
12793         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12794         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12795         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12796         echo "********************************************************"
12797         echo ""
12798         CFLAGS="-O3"
12799   fi
12800
12801   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12803 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12804 if eval \${$as_CACHEVAR+:} false; then :
12805   $as_echo_n "(cached) " >&6
12806 else
12807
12808   ax_check_save_flags=$CFLAGS
12809   CFLAGS="$CFLAGS  $CFLAGS"
12810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12811 /* end confdefs.h.  */
12812
12813 int
12814 main ()
12815 {
12816
12817   ;
12818   return 0;
12819 }
12820 _ACEOF
12821 if ac_fn_c_try_compile "$LINENO"; then :
12822   eval "$as_CACHEVAR=yes"
12823 else
12824   eval "$as_CACHEVAR=no"
12825 fi
12826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12827   CFLAGS=$ax_check_save_flags
12828 fi
12829 eval ac_res=\$$as_CACHEVAR
12830                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12831 $as_echo "$ac_res" >&6; }
12832 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12833   :
12834 else
12835
12836         echo ""
12837         echo "********************************************************"
12838         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12839         echo "* your compiler.                                       *"
12840         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12841         echo "********************************************************"
12842         echo ""
12843         CFLAGS=""
12844
12845 fi
12846
12847
12848 fi
12849
12850 ac_ext=c
12851 ac_cpp='$CPP $CPPFLAGS'
12852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12855
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12857 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12858 if ${ac_cv_cflags_warn_all+:} false; then :
12859   $as_echo_n "(cached) " >&6
12860 else
12861   ac_cv_cflags_warn_all="no, unknown"
12862 ac_save_CFLAGS="$CFLAGS"
12863 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"    #
12864 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12865    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h.  */
12867
12868 int
12869 main ()
12870 {
12871
12872   ;
12873   return 0;
12874 }
12875 _ACEOF
12876 if ac_fn_c_try_compile "$LINENO"; then :
12877   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12880 done
12881 CFLAGS="$ac_save_CFLAGS"
12882
12883 fi
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12885 $as_echo "$ac_cv_cflags_warn_all" >&6; }
12886 case ".$ac_cv_cflags_warn_all" in
12887      .ok|.ok,*)  ;;
12888    .|.no|.no,*)  ;;
12889    *) if ${CFLAGS+:} false; then :
12890   case " $CFLAGS " in
12891     *" $ac_cv_cflags_warn_all "*)
12892       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
12893   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
12894   ac_status=$?
12895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12896   test $ac_status = 0; }
12897       ;;
12898     *)
12899       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
12900   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
12901   ac_status=$?
12902   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12903   test $ac_status = 0; }
12904       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
12905       ;;
12906    esac
12907 else
12908   CFLAGS="$ac_cv_cflags_warn_all"
12909 fi
12910  ;;
12911 esac
12912
12913 ac_ext=c
12914 ac_cpp='$CPP $CPPFLAGS'
12915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12918
12919
12920 if test "x$GCC" = "xyes"; then
12921   CFLAGS="$CFLAGS -fexceptions"
12922 fi
12923
12924
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
12926 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12927     # Check whether --enable-maintainer-mode was given.
12928 if test "${enable_maintainer_mode+set}" = set; then :
12929   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12930 else
12931   USE_MAINTAINER_MODE=no
12932 fi
12933
12934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
12935 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12936    if test $USE_MAINTAINER_MODE = yes; then
12937   MAINTAINER_MODE_TRUE=
12938   MAINTAINER_MODE_FALSE='#'
12939 else
12940   MAINTAINER_MODE_TRUE='#'
12941   MAINTAINER_MODE_FALSE=
12942 fi
12943
12944   MAINT=$MAINTAINER_MODE_TRUE
12945
12946
12947
12948 for ac_header in sys/mman.h
12949 do :
12950   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12951 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12952   cat >>confdefs.h <<_ACEOF
12953 #define HAVE_SYS_MMAN_H 1
12954 _ACEOF
12955
12956 fi
12957
12958 done
12959
12960 for ac_func in mmap
12961 do :
12962   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12963 if test "x$ac_cv_func_mmap" = xyes; then :
12964   cat >>confdefs.h <<_ACEOF
12965 #define HAVE_MMAP 1
12966 _ACEOF
12967
12968 fi
12969 done
12970
12971
12972 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12973 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
12974   libffi_header_sys_mman_h=yes
12975 else
12976   libffi_header_sys_mman_h=no
12977 fi
12978
12979
12980 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12981 if test "x$ac_cv_func_mmap" = xyes; then :
12982   libffi_func_mmap=yes
12983 else
12984   libffi_func_mmap=no
12985 fi
12986
12987 if test "$libffi_header_sys_mman_h" != yes \
12988  || test "$libffi_func_mmap" != yes; then
12989    ac_cv_func_mmap_file=no
12990    ac_cv_func_mmap_dev_zero=no
12991    ac_cv_func_mmap_anon=no
12992 else
12993    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
12994 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
12995 if ${ac_cv_func_mmap_file+:} false; then :
12996   $as_echo_n "(cached) " >&6
12997 else
12998   # Add a system to this blacklist if
12999    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13000    # memory area containing the same data that you'd get if you applied
13001    # read() to the same fd.  The only system known to have a problem here
13002    # is VMS, where text files have record structure.
13003    case "$host_os" in
13004      vms* | ultrix*)
13005         ac_cv_func_mmap_file=no ;;
13006      *)
13007         ac_cv_func_mmap_file=yes;;
13008    esac
13009 fi
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13011 $as_echo "$ac_cv_func_mmap_file" >&6; }
13012    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13013 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13014 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13015   $as_echo_n "(cached) " >&6
13016 else
13017   # Add a system to this blacklist if it has mmap() but /dev/zero
13018    # does not exist, or if mmapping /dev/zero does not give anonymous
13019    # zeroed pages with both the following properties:
13020    # 1. If you map N consecutive pages in with one call, and then
13021    #    unmap any subset of those pages, the pages that were not
13022    #    explicitly unmapped remain accessible.
13023    # 2. If you map two adjacent blocks of memory and then unmap them
13024    #    both at once, they must both go away.
13025    # Systems known to be in this category are Windows (all variants),
13026    # VMS, and Darwin.
13027    case "$host_os" in
13028      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13029         ac_cv_func_mmap_dev_zero=no ;;
13030      *)
13031         ac_cv_func_mmap_dev_zero=yes;;
13032    esac
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13035 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13036
13037    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13039 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13040 if ${ac_cv_decl_map_anon+:} false; then :
13041   $as_echo_n "(cached) " >&6
13042 else
13043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h.  */
13045 #include <sys/types.h>
13046 #include <sys/mman.h>
13047 #include <unistd.h>
13048
13049 #ifndef MAP_ANONYMOUS
13050 #define MAP_ANONYMOUS MAP_ANON
13051 #endif
13052
13053 int
13054 main ()
13055 {
13056 int n = MAP_ANONYMOUS;
13057   ;
13058   return 0;
13059 }
13060 _ACEOF
13061 if ac_fn_c_try_compile "$LINENO"; then :
13062   ac_cv_decl_map_anon=yes
13063 else
13064   ac_cv_decl_map_anon=no
13065 fi
13066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13067 fi
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13069 $as_echo "$ac_cv_decl_map_anon" >&6; }
13070
13071    if test $ac_cv_decl_map_anon = no; then
13072      ac_cv_func_mmap_anon=no
13073    else
13074      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13075 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13076 if ${ac_cv_func_mmap_anon+:} false; then :
13077   $as_echo_n "(cached) " >&6
13078 else
13079   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13080    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13081    # doesn't give anonymous zeroed pages with the same properties listed
13082    # above for use of /dev/zero.
13083    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13084    case "$host_os" in
13085      vms* | cygwin* | pe | mingw* | sco* | udk* )
13086         ac_cv_func_mmap_anon=no ;;
13087      *)
13088         ac_cv_func_mmap_anon=yes;;
13089    esac
13090 fi
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13092 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13093    fi
13094 fi
13095
13096 if test $ac_cv_func_mmap_file = yes; then
13097
13098 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13099
13100 fi
13101 if test $ac_cv_func_mmap_dev_zero = yes; then
13102
13103 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13104
13105 fi
13106 if test $ac_cv_func_mmap_anon = yes; then
13107
13108 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13109
13110 fi
13111
13112
13113  if test -d $srcdir/testsuite; then
13114   TESTSUBDIR_TRUE=
13115   TESTSUBDIR_FALSE='#'
13116 else
13117   TESTSUBDIR_TRUE='#'
13118   TESTSUBDIR_FALSE=
13119 fi
13120
13121
13122 TARGETDIR="unknown"
13123 case "$host" in
13124   alpha*-*-*)
13125         TARGET=ALPHA; TARGETDIR=alpha;
13126         # Support 128-bit long double, changeable via command-line switch.
13127         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13128         ;;
13129
13130   arm*-*-*)
13131         TARGET=ARM; TARGETDIR=arm
13132         ;;
13133
13134   amd64-*-freebsd* | amd64-*-openbsd*)
13135         TARGET=X86_64; TARGETDIR=x86
13136         ;;
13137
13138   amd64-*-freebsd*)
13139         TARGET=X86_64; TARGETDIR=x86
13140         ;;
13141
13142   avr32*-*-*)
13143         TARGET=AVR32; TARGETDIR=avr32
13144         ;;
13145
13146   cris-*-*)
13147         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13148         ;;
13149
13150   frv-*-*)
13151         TARGET=FRV; TARGETDIR=frv
13152         ;;
13153
13154   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13155         TARGET=PA_LINUX; TARGETDIR=pa
13156         ;;
13157   hppa*64-*-hpux*)
13158         TARGET=PA64_HPUX; TARGETDIR=pa
13159         ;;
13160   hppa*-*-hpux*)
13161         TARGET=PA_HPUX; TARGETDIR=pa
13162         ;;
13163
13164   i?86-*-freebsd* | i?86-*-openbsd*)
13165         TARGET=X86_FREEBSD; TARGETDIR=x86
13166         ;;
13167   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13168         TARGET=X86_WIN32; TARGETDIR=x86
13169         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13170         # We must also check with_cross_host to decide if this is a native
13171         # or cross-build and select where to install dlls appropriately.
13172         if test -n "$with_cross_host" &&
13173            test x"$with_cross_host" != x"no"; then
13174           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13175         else
13176           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13177         fi
13178         ;;
13179   i?86-*-darwin*)
13180         TARGET=X86_DARWIN; TARGETDIR=x86
13181         ;;
13182   i?86-*-solaris2.1[0-9]*)
13183         TARGET=X86_64; TARGETDIR=x86
13184         ;;
13185   i?86-*-*)
13186         TARGET=X86_64; TARGETDIR=x86
13187         ;;
13188
13189   ia64*-*-*)
13190         TARGET=IA64; TARGETDIR=ia64
13191         ;;
13192
13193   m32r*-*-*)
13194         TARGET=M32R; TARGETDIR=m32r
13195         ;;
13196
13197   m68k-*-*)
13198         TARGET=M68K; TARGETDIR=m68k
13199         ;;
13200
13201   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13202         TARGET=MIPS; TARGETDIR=mips
13203         ;;
13204   mips*-*-linux* | mips*-*-openbsd*)
13205         # Support 128-bit long double for NewABI.
13206         HAVE_LONG_DOUBLE='defined(__mips64)'
13207         TARGET=MIPS; TARGETDIR=mips
13208         ;;
13209
13210   moxie-*-*)
13211         TARGET=MOXIE; TARGETDIR=moxie
13212         ;;
13213
13214   powerpc*-*-linux* | powerpc-*-sysv*)
13215         TARGET=POWERPC; TARGETDIR=powerpc
13216         ;;
13217   powerpc-*-amigaos*)
13218         TARGET=POWERPC; TARGETDIR=powerpc
13219         ;;
13220   powerpc-*-beos*)
13221         TARGET=POWERPC; TARGETDIR=powerpc
13222         ;;
13223   powerpc-*-darwin* | powerpc64-*-darwin*)
13224         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13225         ;;
13226   powerpc-*-aix* | rs6000-*-aix*)
13227         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13228         ;;
13229   powerpc-*-freebsd* | powerpc-*-openbsd*)
13230         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13231         ;;
13232   powerpc64-*-freebsd*)
13233         TARGET=POWERPC; TARGETDIR=powerpc
13234         ;;
13235   powerpc*-*-rtems*)
13236         TARGET=POWERPC; TARGETDIR=powerpc
13237         ;;
13238
13239   s390-*-* | s390x-*-*)
13240         TARGET=S390; TARGETDIR=s390
13241         ;;
13242
13243   sh-*-* | sh[34]*-*-*)
13244         TARGET=SH; TARGETDIR=sh
13245         ;;
13246   sh64-*-* | sh5*-*-*)
13247         TARGET=SH64; TARGETDIR=sh64
13248         ;;
13249
13250   sparc*-*-*)
13251         TARGET=SPARC; TARGETDIR=sparc
13252         ;;
13253
13254   x86_64-*-darwin*)
13255         TARGET=X86_DARWIN; TARGETDIR=x86
13256         ;;
13257
13258   x86_64-*-cygwin* | x86_64-*-mingw*)
13259         TARGET=X86_WIN64; TARGETDIR=x86
13260         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13261         # We must also check with_cross_host to decide if this is a native
13262         # or cross-build and select where to install dlls appropriately.
13263         if test -n "$with_cross_host" &&
13264            test x"$with_cross_host" != x"no"; then
13265           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13266         else
13267           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13268         fi
13269         ;;
13270
13271   x86_64-*-*)
13272         TARGET=X86_64; TARGETDIR=x86
13273         ;;
13274 esac
13275
13276
13277
13278
13279 if test $TARGETDIR = unknown; then
13280   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13281 fi
13282
13283  if test x$TARGET = xMIPS; then
13284   MIPS_TRUE=
13285   MIPS_FALSE='#'
13286 else
13287   MIPS_TRUE='#'
13288   MIPS_FALSE=
13289 fi
13290
13291  if test x$TARGET = xSPARC; then
13292   SPARC_TRUE=
13293   SPARC_FALSE='#'
13294 else
13295   SPARC_TRUE='#'
13296   SPARC_FALSE=
13297 fi
13298
13299  if test x$TARGET = xX86; then
13300   X86_TRUE=
13301   X86_FALSE='#'
13302 else
13303   X86_TRUE='#'
13304   X86_FALSE=
13305 fi
13306
13307  if test x$TARGET = xX86_FREEBSD; then
13308   X86_FREEBSD_TRUE=
13309   X86_FREEBSD_FALSE='#'
13310 else
13311   X86_FREEBSD_TRUE='#'
13312   X86_FREEBSD_FALSE=
13313 fi
13314
13315  if test x$TARGET = xX86_WIN32; then
13316   X86_WIN32_TRUE=
13317   X86_WIN32_FALSE='#'
13318 else
13319   X86_WIN32_TRUE='#'
13320   X86_WIN32_FALSE=
13321 fi
13322
13323  if test x$TARGET = xX86_WIN64; then
13324   X86_WIN64_TRUE=
13325   X86_WIN64_FALSE='#'
13326 else
13327   X86_WIN64_TRUE='#'
13328   X86_WIN64_FALSE=
13329 fi
13330
13331  if test x$TARGET = xX86_DARWIN; then
13332   X86_DARWIN_TRUE=
13333   X86_DARWIN_FALSE='#'
13334 else
13335   X86_DARWIN_TRUE='#'
13336   X86_DARWIN_FALSE=
13337 fi
13338
13339  if test x$TARGET = xALPHA; then
13340   ALPHA_TRUE=
13341   ALPHA_FALSE='#'
13342 else
13343   ALPHA_TRUE='#'
13344   ALPHA_FALSE=
13345 fi
13346
13347  if test x$TARGET = xIA64; then
13348   IA64_TRUE=
13349   IA64_FALSE='#'
13350 else
13351   IA64_TRUE='#'
13352   IA64_FALSE=
13353 fi
13354
13355  if test x$TARGET = xM32R; then
13356   M32R_TRUE=
13357   M32R_FALSE='#'
13358 else
13359   M32R_TRUE='#'
13360   M32R_FALSE=
13361 fi
13362
13363  if test x$TARGET = xM68K; then
13364   M68K_TRUE=
13365   M68K_FALSE='#'
13366 else
13367   M68K_TRUE='#'
13368   M68K_FALSE=
13369 fi
13370
13371  if test x$TARGET = xMOXIE; then
13372   MOXIE_TRUE=
13373   MOXIE_FALSE='#'
13374 else
13375   MOXIE_TRUE='#'
13376   MOXIE_FALSE=
13377 fi
13378
13379  if test x$TARGET = xPOWERPC; then
13380   POWERPC_TRUE=
13381   POWERPC_FALSE='#'
13382 else
13383   POWERPC_TRUE='#'
13384   POWERPC_FALSE=
13385 fi
13386
13387  if test x$TARGET = xPOWERPC_AIX; then
13388   POWERPC_AIX_TRUE=
13389   POWERPC_AIX_FALSE='#'
13390 else
13391   POWERPC_AIX_TRUE='#'
13392   POWERPC_AIX_FALSE=
13393 fi
13394
13395  if test x$TARGET = xPOWERPC_DARWIN; then
13396   POWERPC_DARWIN_TRUE=
13397   POWERPC_DARWIN_FALSE='#'
13398 else
13399   POWERPC_DARWIN_TRUE='#'
13400   POWERPC_DARWIN_FALSE=
13401 fi
13402
13403  if test x$TARGET = xPOWERPC_FREEBSD; then
13404   POWERPC_FREEBSD_TRUE=
13405   POWERPC_FREEBSD_FALSE='#'
13406 else
13407   POWERPC_FREEBSD_TRUE='#'
13408   POWERPC_FREEBSD_FALSE=
13409 fi
13410
13411  if test x$TARGET = xARM; then
13412   ARM_TRUE=
13413   ARM_FALSE='#'
13414 else
13415   ARM_TRUE='#'
13416   ARM_FALSE=
13417 fi
13418
13419  if test x$TARGET = xAVR32; then
13420   AVR32_TRUE=
13421   AVR32_FALSE='#'
13422 else
13423   AVR32_TRUE='#'
13424   AVR32_FALSE=
13425 fi
13426
13427  if test x$TARGET = xLIBFFI_CRIS; then
13428   LIBFFI_CRIS_TRUE=
13429   LIBFFI_CRIS_FALSE='#'
13430 else
13431   LIBFFI_CRIS_TRUE='#'
13432   LIBFFI_CRIS_FALSE=
13433 fi
13434
13435  if test x$TARGET = xFRV; then
13436   FRV_TRUE=
13437   FRV_FALSE='#'
13438 else
13439   FRV_TRUE='#'
13440   FRV_FALSE=
13441 fi
13442
13443  if test x$TARGET = xS390; then
13444   S390_TRUE=
13445   S390_FALSE='#'
13446 else
13447   S390_TRUE='#'
13448   S390_FALSE=
13449 fi
13450
13451  if test x$TARGET = xX86_64; then
13452   X86_64_TRUE=
13453   X86_64_FALSE='#'
13454 else
13455   X86_64_TRUE='#'
13456   X86_64_FALSE=
13457 fi
13458
13459  if test x$TARGET = xSH; then
13460   SH_TRUE=
13461   SH_FALSE='#'
13462 else
13463   SH_TRUE='#'
13464   SH_FALSE=
13465 fi
13466
13467  if test x$TARGET = xSH64; then
13468   SH64_TRUE=
13469   SH64_FALSE='#'
13470 else
13471   SH64_TRUE='#'
13472   SH64_FALSE=
13473 fi
13474
13475  if test x$TARGET = xPA_LINUX; then
13476   PA_LINUX_TRUE=
13477   PA_LINUX_FALSE='#'
13478 else
13479   PA_LINUX_TRUE='#'
13480   PA_LINUX_FALSE=
13481 fi
13482
13483  if test x$TARGET = xPA_HPUX; then
13484   PA_HPUX_TRUE=
13485   PA_HPUX_FALSE='#'
13486 else
13487   PA_HPUX_TRUE='#'
13488   PA_HPUX_FALSE=
13489 fi
13490
13491  if test x$TARGET = xPA64_HPUX; then
13492   PA64_HPUX_TRUE=
13493   PA64_HPUX_FALSE='#'
13494 else
13495   PA64_HPUX_TRUE='#'
13496   PA64_HPUX_FALSE=
13497 fi
13498
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13501 $as_echo_n "checking for ANSI C header files... " >&6; }
13502 if ${ac_cv_header_stdc+:} false; then :
13503   $as_echo_n "(cached) " >&6
13504 else
13505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13506 /* end confdefs.h.  */
13507 #include <stdlib.h>
13508 #include <stdarg.h>
13509 #include <string.h>
13510 #include <float.h>
13511
13512 int
13513 main ()
13514 {
13515
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 if ac_fn_c_try_compile "$LINENO"; then :
13521   ac_cv_header_stdc=yes
13522 else
13523   ac_cv_header_stdc=no
13524 fi
13525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13526
13527 if test $ac_cv_header_stdc = yes; then
13528   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h.  */
13531 #include <string.h>
13532
13533 _ACEOF
13534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13535   $EGREP "memchr" >/dev/null 2>&1; then :
13536
13537 else
13538   ac_cv_header_stdc=no
13539 fi
13540 rm -f conftest*
13541
13542 fi
13543
13544 if test $ac_cv_header_stdc = yes; then
13545   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547 /* end confdefs.h.  */
13548 #include <stdlib.h>
13549
13550 _ACEOF
13551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13552   $EGREP "free" >/dev/null 2>&1; then :
13553
13554 else
13555   ac_cv_header_stdc=no
13556 fi
13557 rm -f conftest*
13558
13559 fi
13560
13561 if test $ac_cv_header_stdc = yes; then
13562   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13563   if test "$cross_compiling" = yes; then :
13564   :
13565 else
13566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13567 /* end confdefs.h.  */
13568 #include <ctype.h>
13569 #include <stdlib.h>
13570 #if ((' ' & 0x0FF) == 0x020)
13571 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13572 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13573 #else
13574 # define ISLOWER(c) \
13575                    (('a' <= (c) && (c) <= 'i') \
13576                      || ('j' <= (c) && (c) <= 'r') \
13577                      || ('s' <= (c) && (c) <= 'z'))
13578 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13579 #endif
13580
13581 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13582 int
13583 main ()
13584 {
13585   int i;
13586   for (i = 0; i < 256; i++)
13587     if (XOR (islower (i), ISLOWER (i))
13588         || toupper (i) != TOUPPER (i))
13589       return 2;
13590   return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_c_try_run "$LINENO"; then :
13594
13595 else
13596   ac_cv_header_stdc=no
13597 fi
13598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13599   conftest.$ac_objext conftest.beam conftest.$ac_ext
13600 fi
13601
13602 fi
13603 fi
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13605 $as_echo "$ac_cv_header_stdc" >&6; }
13606 if test $ac_cv_header_stdc = yes; then
13607
13608 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13609
13610 fi
13611
13612 for ac_func in memcpy
13613 do :
13614   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13615 if test "x$ac_cv_func_memcpy" = xyes; then :
13616   cat >>confdefs.h <<_ACEOF
13617 #define HAVE_MEMCPY 1
13618 _ACEOF
13619
13620 fi
13621 done
13622
13623 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13624 if test "x$ac_cv_type_size_t" = xyes; then :
13625
13626 else
13627
13628 cat >>confdefs.h <<_ACEOF
13629 #define size_t unsigned int
13630 _ACEOF
13631
13632 fi
13633
13634 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13635 # for constant arguments.  Useless!
13636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13637 $as_echo_n "checking for working alloca.h... " >&6; }
13638 if ${ac_cv_working_alloca_h+:} false; then :
13639   $as_echo_n "(cached) " >&6
13640 else
13641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13642 /* end confdefs.h.  */
13643 #include <alloca.h>
13644 int
13645 main ()
13646 {
13647 char *p = (char *) alloca (2 * sizeof (int));
13648                           if (p) return 0;
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_link "$LINENO"; then :
13654   ac_cv_working_alloca_h=yes
13655 else
13656   ac_cv_working_alloca_h=no
13657 fi
13658 rm -f core conftest.err conftest.$ac_objext \
13659     conftest$ac_exeext conftest.$ac_ext
13660 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13662 $as_echo "$ac_cv_working_alloca_h" >&6; }
13663 if test $ac_cv_working_alloca_h = yes; then
13664
13665 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13666
13667 fi
13668
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13670 $as_echo_n "checking for alloca... " >&6; }
13671 if ${ac_cv_func_alloca_works+:} false; then :
13672   $as_echo_n "(cached) " >&6
13673 else
13674   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h.  */
13676 #ifdef __GNUC__
13677 # define alloca __builtin_alloca
13678 #else
13679 # ifdef _MSC_VER
13680 #  include <malloc.h>
13681 #  define alloca _alloca
13682 # else
13683 #  ifdef HAVE_ALLOCA_H
13684 #   include <alloca.h>
13685 #  else
13686 #   ifdef _AIX
13687  #pragma alloca
13688 #   else
13689 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13690 void *alloca (size_t);
13691 #    endif
13692 #   endif
13693 #  endif
13694 # endif
13695 #endif
13696
13697 int
13698 main ()
13699 {
13700 char *p = (char *) alloca (1);
13701                                     if (p) return 0;
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"; then :
13707   ac_cv_func_alloca_works=yes
13708 else
13709   ac_cv_func_alloca_works=no
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext \
13712     conftest$ac_exeext conftest.$ac_ext
13713 fi
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13715 $as_echo "$ac_cv_func_alloca_works" >&6; }
13716
13717 if test $ac_cv_func_alloca_works = yes; then
13718
13719 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13720
13721 else
13722   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13723 # that cause trouble.  Some versions do not even contain alloca or
13724 # contain a buggy version.  If you still want to use their alloca,
13725 # use ar to extract alloca.o from them instead of compiling alloca.c.
13726
13727 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13728
13729 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13730
13731
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13733 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13734 if ${ac_cv_os_cray+:} false; then :
13735   $as_echo_n "(cached) " >&6
13736 else
13737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13738 /* end confdefs.h.  */
13739 #if defined CRAY && ! defined CRAY2
13740 webecray
13741 #else
13742 wenotbecray
13743 #endif
13744
13745 _ACEOF
13746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13747   $EGREP "webecray" >/dev/null 2>&1; then :
13748   ac_cv_os_cray=yes
13749 else
13750   ac_cv_os_cray=no
13751 fi
13752 rm -f conftest*
13753
13754 fi
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13756 $as_echo "$ac_cv_os_cray" >&6; }
13757 if test $ac_cv_os_cray = yes; then
13758   for ac_func in _getb67 GETB67 getb67; do
13759     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13760 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13761 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13762
13763 cat >>confdefs.h <<_ACEOF
13764 #define CRAY_STACKSEG_END $ac_func
13765 _ACEOF
13766
13767     break
13768 fi
13769
13770   done
13771 fi
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13774 $as_echo_n "checking stack direction for C alloca... " >&6; }
13775 if ${ac_cv_c_stack_direction+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   if test "$cross_compiling" = yes; then :
13779   ac_cv_c_stack_direction=0
13780 else
13781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13782 /* end confdefs.h.  */
13783 $ac_includes_default
13784 int
13785 find_stack_direction ()
13786 {
13787   static char *addr = 0;
13788   auto char dummy;
13789   if (addr == 0)
13790     {
13791       addr = &dummy;
13792       return find_stack_direction ();
13793     }
13794   else
13795     return (&dummy > addr) ? 1 : -1;
13796 }
13797
13798 int
13799 main ()
13800 {
13801   return find_stack_direction () < 0;
13802 }
13803 _ACEOF
13804 if ac_fn_c_try_run "$LINENO"; then :
13805   ac_cv_c_stack_direction=1
13806 else
13807   ac_cv_c_stack_direction=-1
13808 fi
13809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13810   conftest.$ac_objext conftest.beam conftest.$ac_ext
13811 fi
13812
13813 fi
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13815 $as_echo "$ac_cv_c_stack_direction" >&6; }
13816 cat >>confdefs.h <<_ACEOF
13817 #define STACK_DIRECTION $ac_cv_c_stack_direction
13818 _ACEOF
13819
13820
13821 fi
13822
13823
13824 # The cast to long int works around a bug in the HP C Compiler
13825 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13826 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13827 # This bug is HP SR number 8606223364.
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
13829 $as_echo_n "checking size of double... " >&6; }
13830 if ${ac_cv_sizeof_double+:} false; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
13834
13835 else
13836   if test "$ac_cv_type_double" = yes; then
13837      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13838 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13839 as_fn_error 77 "cannot compute sizeof (double)
13840 See \`config.log' for more details" "$LINENO" 5; }
13841    else
13842      ac_cv_sizeof_double=0
13843    fi
13844 fi
13845
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
13848 $as_echo "$ac_cv_sizeof_double" >&6; }
13849
13850
13851
13852 cat >>confdefs.h <<_ACEOF
13853 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
13854 _ACEOF
13855
13856
13857 # The cast to long int works around a bug in the HP C Compiler
13858 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13859 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13860 # This bug is HP SR number 8606223364.
13861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
13862 $as_echo_n "checking size of long double... " >&6; }
13863 if ${ac_cv_sizeof_long_double+:} false; then :
13864   $as_echo_n "(cached) " >&6
13865 else
13866   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
13867
13868 else
13869   if test "$ac_cv_type_long_double" = yes; then
13870      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13872 as_fn_error 77 "cannot compute sizeof (long double)
13873 See \`config.log' for more details" "$LINENO" 5; }
13874    else
13875      ac_cv_sizeof_long_double=0
13876    fi
13877 fi
13878
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
13881 $as_echo "$ac_cv_sizeof_long_double" >&6; }
13882
13883
13884
13885 cat >>confdefs.h <<_ACEOF
13886 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
13887 _ACEOF
13888
13889
13890
13891 # Also AC_SUBST this variable for ffi.h.
13892 if test -z "$HAVE_LONG_DOUBLE"; then
13893   HAVE_LONG_DOUBLE=0
13894   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
13895     if test $ac_cv_sizeof_long_double != 0; then
13896       HAVE_LONG_DOUBLE=1
13897
13898 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
13899
13900     fi
13901   fi
13902 fi
13903
13904
13905  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13906 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13907 if ${ac_cv_c_bigendian+:} false; then :
13908   $as_echo_n "(cached) " >&6
13909 else
13910   ac_cv_c_bigendian=unknown
13911     # See if we're dealing with a universal compiler.
13912     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h.  */
13914 #ifndef __APPLE_CC__
13915                not a universal capable compiler
13916              #endif
13917              typedef int dummy;
13918
13919 _ACEOF
13920 if ac_fn_c_try_compile "$LINENO"; then :
13921
13922         # Check for potential -arch flags.  It is not universal unless
13923         # there are at least two -arch flags with different values.
13924         ac_arch=
13925         ac_prev=
13926         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13927          if test -n "$ac_prev"; then
13928            case $ac_word in
13929              i?86 | x86_64 | ppc | ppc64)
13930                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13931                  ac_arch=$ac_word
13932                else
13933                  ac_cv_c_bigendian=universal
13934                  break
13935                fi
13936                ;;
13937            esac
13938            ac_prev=
13939          elif test "x$ac_word" = "x-arch"; then
13940            ac_prev=arch
13941          fi
13942        done
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945     if test $ac_cv_c_bigendian = unknown; then
13946       # See if sys/param.h defines the BYTE_ORDER macro.
13947       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949 #include <sys/types.h>
13950              #include <sys/param.h>
13951
13952 int
13953 main ()
13954 {
13955 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13956                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13957                      && LITTLE_ENDIAN)
13958               bogus endian macros
13959              #endif
13960
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 if ac_fn_c_try_compile "$LINENO"; then :
13966   # It does; now see whether it defined to BIG_ENDIAN or not.
13967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h.  */
13969 #include <sys/types.h>
13970                 #include <sys/param.h>
13971
13972 int
13973 main ()
13974 {
13975 #if BYTE_ORDER != BIG_ENDIAN
13976                  not big endian
13977                 #endif
13978
13979   ;
13980   return 0;
13981 }
13982 _ACEOF
13983 if ac_fn_c_try_compile "$LINENO"; then :
13984   ac_cv_c_bigendian=yes
13985 else
13986   ac_cv_c_bigendian=no
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13989 fi
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991     fi
13992     if test $ac_cv_c_bigendian = unknown; then
13993       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13994       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13995 /* end confdefs.h.  */
13996 #include <limits.h>
13997
13998 int
13999 main ()
14000 {
14001 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14002               bogus endian macros
14003              #endif
14004
14005   ;
14006   return 0;
14007 }
14008 _ACEOF
14009 if ac_fn_c_try_compile "$LINENO"; then :
14010   # It does; now see whether it defined to _BIG_ENDIAN or not.
14011          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h.  */
14013 #include <limits.h>
14014
14015 int
14016 main ()
14017 {
14018 #ifndef _BIG_ENDIAN
14019                  not big endian
14020                 #endif
14021
14022   ;
14023   return 0;
14024 }
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027   ac_cv_c_bigendian=yes
14028 else
14029   ac_cv_c_bigendian=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14034     fi
14035     if test $ac_cv_c_bigendian = unknown; then
14036       # Compile a test program.
14037       if test "$cross_compiling" = yes; then :
14038   # Try to guess by grepping values from an object file.
14039          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h.  */
14041 short int ascii_mm[] =
14042                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14043                 short int ascii_ii[] =
14044                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14045                 int use_ascii (int i) {
14046                   return ascii_mm[i] + ascii_ii[i];
14047                 }
14048                 short int ebcdic_ii[] =
14049                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14050                 short int ebcdic_mm[] =
14051                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14052                 int use_ebcdic (int i) {
14053                   return ebcdic_mm[i] + ebcdic_ii[i];
14054                 }
14055                 extern int foo;
14056
14057 int
14058 main ()
14059 {
14060 return use_ascii (foo) == use_ebcdic (foo);
14061   ;
14062   return 0;
14063 }
14064 _ACEOF
14065 if ac_fn_c_try_compile "$LINENO"; then :
14066   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14067               ac_cv_c_bigendian=yes
14068             fi
14069             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14070               if test "$ac_cv_c_bigendian" = unknown; then
14071                 ac_cv_c_bigendian=no
14072               else
14073                 # finding both strings is unlikely to happen, but who knows?
14074                 ac_cv_c_bigendian=unknown
14075               fi
14076             fi
14077 fi
14078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14079 else
14080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h.  */
14082 $ac_includes_default
14083 int
14084 main ()
14085 {
14086
14087              /* Are we little or big endian?  From Harbison&Steele.  */
14088              union
14089              {
14090                long int l;
14091                char c[sizeof (long int)];
14092              } u;
14093              u.l = 1;
14094              return u.c[sizeof (long int) - 1] == 1;
14095
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 if ac_fn_c_try_run "$LINENO"; then :
14101   ac_cv_c_bigendian=no
14102 else
14103   ac_cv_c_bigendian=yes
14104 fi
14105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14106   conftest.$ac_objext conftest.beam conftest.$ac_ext
14107 fi
14108
14109     fi
14110 fi
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14112 $as_echo "$ac_cv_c_bigendian" >&6; }
14113  case $ac_cv_c_bigendian in #(
14114    yes)
14115      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14116 ;; #(
14117    no)
14118       ;; #(
14119    universal)
14120
14121 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14122
14123      ;; #(
14124    *)
14125      as_fn_error $? "unknown endianness
14126  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14127  esac
14128
14129
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14131 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14132 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14133   $as_echo_n "(cached) " >&6
14134 else
14135
14136     gcc_cv_as_cfi_pseudo_op=unknown
14137     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14138 /* end confdefs.h.  */
14139 asm (".cfi_startproc\n\t.cfi_endproc");
14140 int
14141 main ()
14142 {
14143
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 if ac_fn_c_try_compile "$LINENO"; then :
14149   gcc_cv_as_cfi_pseudo_op=yes
14150 else
14151   gcc_cv_as_cfi_pseudo_op=no
14152 fi
14153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14154
14155 fi
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14157 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14158  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14159
14160 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14161
14162  fi
14163
14164
14165 if test x$TARGET = xSPARC; then
14166     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14167 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14168 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14169   $as_echo_n "(cached) " >&6
14170 else
14171
14172         save_CFLAGS="$CFLAGS"
14173         save_LDFLAGS="$LDFLAGS"
14174         CFLAGS="$CFLAGS -fpic"
14175         LDFLAGS="$LDFLAGS -shared"
14176         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14177 /* end confdefs.h.  */
14178 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14179 int
14180 main ()
14181 {
14182
14183   ;
14184   return 0;
14185 }
14186 _ACEOF
14187 if ac_fn_c_try_link "$LINENO"; then :
14188   libffi_cv_as_sparc_ua_pcrel=yes
14189 else
14190   libffi_cv_as_sparc_ua_pcrel=no
14191 fi
14192 rm -f core conftest.err conftest.$ac_objext \
14193     conftest$ac_exeext conftest.$ac_ext
14194         CFLAGS="$save_CFLAGS"
14195         LDFLAGS="$save_LDFLAGS"
14196 fi
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14198 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14199     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14200
14201 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14202
14203     fi
14204
14205     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14206 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14207 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14208   $as_echo_n "(cached) " >&6
14209 else
14210
14211        libffi_cv_as_register_pseudo_op=unknown
14212        # Check if we have .register
14213        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14214 /* end confdefs.h.  */
14215 asm (".register %g2, #scratch");
14216 int
14217 main ()
14218 {
14219
14220   ;
14221   return 0;
14222 }
14223 _ACEOF
14224 if ac_fn_c_try_compile "$LINENO"; then :
14225   libffi_cv_as_register_pseudo_op=yes
14226 else
14227   libffi_cv_as_register_pseudo_op=no
14228 fi
14229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14230
14231 fi
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14233 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14234     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14235
14236 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14237
14238     fi
14239 fi
14240
14241 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14242     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14243 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14244 if ${libffi_cv_as_x86_pcrel+:} false; then :
14245   $as_echo_n "(cached) " >&6
14246 else
14247
14248         libffi_cv_as_x86_pcrel=no
14249         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14250         if $CC $CFLAGS -c conftest.s > /dev/null; then
14251            libffi_cv_as_x86_pcrel=yes
14252         fi
14253
14254 fi
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14256 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14257     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14258
14259 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14260
14261     fi
14262
14263     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14264 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14265 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14266   $as_echo_n "(cached) " >&6
14267 else
14268
14269        libffi_cv_as_ascii_pseudo_op=unknown
14270        # Check if we have .ascii
14271        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14272 /* end confdefs.h.  */
14273 asm (".ascii \\"string\\"");
14274 int
14275 main ()
14276 {
14277
14278   ;
14279   return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_compile "$LINENO"; then :
14283   libffi_cv_as_ascii_pseudo_op=yes
14284 else
14285   libffi_cv_as_ascii_pseudo_op=no
14286 fi
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288
14289 fi
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14291 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14292     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14293
14294 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14295
14296     fi
14297
14298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14299 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14300 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14301   $as_echo_n "(cached) " >&6
14302 else
14303
14304        libffi_cv_as_string_pseudo_op=unknown
14305        # Check if we have .string
14306        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h.  */
14308 asm (".string \\"string\\"");
14309 int
14310 main ()
14311 {
14312
14313   ;
14314   return 0;
14315 }
14316 _ACEOF
14317 if ac_fn_c_try_compile "$LINENO"; then :
14318   libffi_cv_as_string_pseudo_op=yes
14319 else
14320   libffi_cv_as_string_pseudo_op=no
14321 fi
14322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14323
14324 fi
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14326 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14327     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14328
14329 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14330
14331     fi
14332 fi
14333
14334 if test x$TARGET = xX86_WIN64; then
14335     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14336 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14337 if ${lt_cv_sys_symbol_underscore+:} false; then :
14338   $as_echo_n "(cached) " >&6
14339 else
14340   lt_cv_sys_symbol_underscore=no
14341   cat > conftest.$ac_ext <<_LT_EOF
14342 void nm_test_func(){}
14343 int main(){nm_test_func;return 0;}
14344 _LT_EOF
14345   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14346   (eval $ac_compile) 2>&5
14347   ac_status=$?
14348   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14349   test $ac_status = 0; }; then
14350     # Now try to grab the symbols.
14351     ac_nlist=conftest.nm
14352     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14353   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14354   ac_status=$?
14355   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14356   test $ac_status = 0; } && test -s "$ac_nlist"; then
14357       # See whether the symbols have a leading underscore.
14358       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14359         lt_cv_sys_symbol_underscore=yes
14360       else
14361         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14362           :
14363         else
14364           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14365         fi
14366       fi
14367     else
14368       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14369     fi
14370   else
14371     echo "configure: failed program was:" >&5
14372     cat conftest.c >&5
14373   fi
14374   rm -rf conftest*
14375
14376 fi
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14378 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14379   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14380
14381
14382     if test "x$sys_symbol_underscore" = xyes; then
14383
14384 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14385
14386     fi
14387 fi
14388
14389
14390 FFI_EXEC_TRAMPOLINE_TABLE=0
14391 case "$target" in
14392      *arm*-apple-darwin*)
14393        FFI_EXEC_TRAMPOLINE_TABLE=1
14394
14395 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14396
14397      ;;
14398      *-apple-darwin1[10]* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
14399
14400 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14401
14402      ;;
14403 esac
14404  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14405   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14406   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14407 else
14408   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14409   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14410 fi
14411
14412
14413
14414 if test x$TARGET = xX86_64; then
14415     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14416 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14417 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14418   $as_echo_n "(cached) " >&6
14419 else
14420
14421         libffi_cv_as_x86_64_unwind_section_type=yes
14422         echo '.section .eh_frame,"a",@unwind' > conftest.s
14423         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14424             libffi_cv_as_x86_64_unwind_section_type=no
14425         fi
14426
14427 fi
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14429 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14430     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14431
14432 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14433
14434     fi
14435 fi
14436
14437 if test "x$GCC" = "xyes"; then
14438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14439 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14440 if ${libffi_cv_ro_eh_frame+:} false; then :
14441   $as_echo_n "(cached) " >&6
14442 else
14443
14444         libffi_cv_ro_eh_frame=no
14445         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14446         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
14447             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
14448                 libffi_cv_ro_eh_frame=yes
14449             elif grep '.section.*eh_frame.*#alloc' conftest.c \
14450                  | grep -v '#write' > /dev/null; then
14451                 libffi_cv_ro_eh_frame=yes
14452             fi
14453         fi
14454         rm -f conftest.*
14455
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14458 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14459   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14460
14461 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14462
14463
14464 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14465
14466   else
14467
14468 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14469
14470   fi
14471
14472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14473 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14474 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14475   $as_echo_n "(cached) " >&6
14476 else
14477
14478         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14479         libffi_cv_hidden_visibility_attribute=no
14480         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14481   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14482   (eval $ac_try) 2>&5
14483   ac_status=$?
14484   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14485   test $ac_status = 0; }; }; then
14486             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14487                 libffi_cv_hidden_visibility_attribute=yes
14488             fi
14489         fi
14490         rm -f conftest.*
14491
14492 fi
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14494 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14495   if test $libffi_cv_hidden_visibility_attribute = yes; then
14496
14497 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14498
14499   fi
14500 fi
14501
14502
14503
14504
14505
14506
14507
14508
14509 # Check whether --enable-debug was given.
14510 if test "${enable_debug+set}" = set; then :
14511   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14512
14513 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14514
14515   fi
14516 fi
14517
14518  if test "$enable_debug" = "yes"; then
14519   FFI_DEBUG_TRUE=
14520   FFI_DEBUG_FALSE='#'
14521 else
14522   FFI_DEBUG_TRUE='#'
14523   FFI_DEBUG_FALSE=
14524 fi
14525
14526
14527 # Check whether --enable-structs was given.
14528 if test "${enable_structs+set}" = set; then :
14529   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14530
14531 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14532
14533   fi
14534 fi
14535
14536
14537 # Check whether --enable-raw-api was given.
14538 if test "${enable_raw_api+set}" = set; then :
14539   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14540
14541 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14542
14543   fi
14544 fi
14545
14546
14547 # Check whether --enable-purify-safety was given.
14548 if test "${enable_purify_safety+set}" = set; then :
14549   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14550
14551 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14552
14553   fi
14554 fi
14555
14556
14557 # These variables are only ever used when we cross-build to X86_WIN32.
14558 # And we only support this with GCC, so...
14559 if test x"$GCC" != x"no"; then
14560   if test -n "$with_cross_host" &&
14561      test x"$with_cross_host" != x"no"; then
14562     toolexecdir='$(exec_prefix)/$(target_alias)'
14563     toolexeclibdir='$(toolexecdir)/lib'
14564   else
14565     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14566     toolexeclibdir='$(libdir)'
14567   fi
14568   multi_os_directory=`$CC -print-multi-os-directory`
14569   case $multi_os_directory in
14570     .) ;; # Avoid trailing /.
14571     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14572   esac
14573
14574
14575 fi
14576
14577 if test "${multilib}" = "yes"; then
14578   multilib_arg="--enable-multilib"
14579 else
14580   multilib_arg=
14581 fi
14582
14583 ac_config_commands="$ac_config_commands include"
14584
14585 ac_config_commands="$ac_config_commands src"
14586
14587
14588 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14589
14590
14591 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14592
14593
14594 cat >confcache <<\_ACEOF
14595 # This file is a shell script that caches the results of configure
14596 # tests run on this system so they can be shared between configure
14597 # scripts and configure runs, see configure's option --config-cache.
14598 # It is not useful on other systems.  If it contains results you don't
14599 # want to keep, you may remove or edit it.
14600 #
14601 # config.status only pays attention to the cache file if you give it
14602 # the --recheck option to rerun configure.
14603 #
14604 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14605 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14606 # following values.
14607
14608 _ACEOF
14609
14610 # The following way of writing the cache mishandles newlines in values,
14611 # but we know of no workaround that is simple, portable, and efficient.
14612 # So, we kill variables containing newlines.
14613 # Ultrix sh set writes to stderr and can't be redirected directly,
14614 # and sets the high bit in the cache file unless we assign to the vars.
14615 (
14616   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14617     eval ac_val=\$$ac_var
14618     case $ac_val in #(
14619     *${as_nl}*)
14620       case $ac_var in #(
14621       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14622 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14623       esac
14624       case $ac_var in #(
14625       _ | IFS | as_nl) ;; #(
14626       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14627       *) { eval $ac_var=; unset $ac_var;} ;;
14628       esac ;;
14629     esac
14630   done
14631
14632   (set) 2>&1 |
14633     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14634     *${as_nl}ac_space=\ *)
14635       # `set' does not quote correctly, so add quotes: double-quote
14636       # substitution turns \\\\ into \\, and sed turns \\ into \.
14637       sed -n \
14638         "s/'/'\\\\''/g;
14639           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14640       ;; #(
14641     *)
14642       # `set' quotes correctly as required by POSIX, so do not add quotes.
14643       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14644       ;;
14645     esac |
14646     sort
14647 ) |
14648   sed '
14649      /^ac_cv_env_/b end
14650      t clear
14651      :clear
14652      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14653      t end
14654      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14655      :end' >>confcache
14656 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14657   if test -w "$cache_file"; then
14658     if test "x$cache_file" != "x/dev/null"; then
14659       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14660 $as_echo "$as_me: updating cache $cache_file" >&6;}
14661       if test ! -f "$cache_file" || test -h "$cache_file"; then
14662         cat confcache >"$cache_file"
14663       else
14664         case $cache_file in #(
14665         */* | ?:*)
14666           mv -f confcache "$cache_file"$$ &&
14667           mv -f "$cache_file"$$ "$cache_file" ;; #(
14668         *)
14669           mv -f confcache "$cache_file" ;;
14670         esac
14671       fi
14672     fi
14673   else
14674     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14676   fi
14677 fi
14678 rm -f confcache
14679
14680 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14681 # Let make expand exec_prefix.
14682 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14683
14684 DEFS=-DHAVE_CONFIG_H
14685
14686 ac_libobjs=
14687 ac_ltlibobjs=
14688 U=
14689 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14690   # 1. Remove the extension, and $U if already installed.
14691   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14692   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14693   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14694   #    will be set to the directory where LIBOBJS objects are built.
14695   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14696   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14697 done
14698 LIBOBJS=$ac_libobjs
14699
14700 LTLIBOBJS=$ac_ltlibobjs
14701
14702
14703  if test -n "$EXEEXT"; then
14704   am__EXEEXT_TRUE=
14705   am__EXEEXT_FALSE='#'
14706 else
14707   am__EXEEXT_TRUE='#'
14708   am__EXEEXT_FALSE=
14709 fi
14710
14711 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14712   as_fn_error $? "conditional \"AMDEP\" was never defined.
14713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714 fi
14715 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14716   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14718 fi
14719 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14720   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14722 fi
14723 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14724   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14726 fi
14727 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14728   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14730 fi
14731 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14732   as_fn_error $? "conditional \"MIPS\" was never defined.
14733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14734 fi
14735 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14736   as_fn_error $? "conditional \"SPARC\" was never defined.
14737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738 fi
14739 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14740   as_fn_error $? "conditional \"X86\" was never defined.
14741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14742 fi
14743 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14744   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14746 fi
14747 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14748   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14750 fi
14751 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14752   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14754 fi
14755 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14756   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14758 fi
14759 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14760   as_fn_error $? "conditional \"ALPHA\" was never defined.
14761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14762 fi
14763 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14764   as_fn_error $? "conditional \"IA64\" was never defined.
14765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14766 fi
14767 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14768   as_fn_error $? "conditional \"M32R\" was never defined.
14769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14770 fi
14771 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14772   as_fn_error $? "conditional \"M68K\" was never defined.
14773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14774 fi
14775 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14776   as_fn_error $? "conditional \"MOXIE\" was never defined.
14777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14778 fi
14779 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14780   as_fn_error $? "conditional \"POWERPC\" was never defined.
14781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14782 fi
14783 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14784   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14786 fi
14787 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14788   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14790 fi
14791 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14792   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14794 fi
14795 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14796   as_fn_error $? "conditional \"ARM\" was never defined.
14797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14798 fi
14799 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14800   as_fn_error $? "conditional \"AVR32\" was never defined.
14801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14802 fi
14803 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14804   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14806 fi
14807 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14808   as_fn_error $? "conditional \"FRV\" was never defined.
14809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14810 fi
14811 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14812   as_fn_error $? "conditional \"S390\" was never defined.
14813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14814 fi
14815 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14816   as_fn_error $? "conditional \"X86_64\" was never defined.
14817 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14818 fi
14819 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14820   as_fn_error $? "conditional \"SH\" was never defined.
14821 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14822 fi
14823 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
14824   as_fn_error $? "conditional \"SH64\" was never defined.
14825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14826 fi
14827 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
14828   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
14829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14830 fi
14831 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
14832   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
14833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14834 fi
14835 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
14836   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
14837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14838 fi
14839
14840 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
14841   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
14842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14843 fi
14844 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
14845   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
14846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14847 fi
14848
14849 : "${CONFIG_STATUS=./config.status}"
14850 ac_write_fail=0
14851 ac_clean_files_save=$ac_clean_files
14852 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14854 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14855 as_write_fail=0
14856 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14857 #! $SHELL
14858 # Generated by $as_me.
14859 # Run this file to recreate the current configuration.
14860 # Compiler output produced by configure, useful for debugging
14861 # configure, is in config.log if it exists.
14862
14863 debug=false
14864 ac_cs_recheck=false
14865 ac_cs_silent=false
14866
14867 SHELL=\${CONFIG_SHELL-$SHELL}
14868 export SHELL
14869 _ASEOF
14870 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14871 ## -------------------- ##
14872 ## M4sh Initialization. ##
14873 ## -------------------- ##
14874
14875 # Be more Bourne compatible
14876 DUALCASE=1; export DUALCASE # for MKS sh
14877 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14878   emulate sh
14879   NULLCMD=:
14880   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14881   # is contrary to our usage.  Disable this feature.
14882   alias -g '${1+"$@"}'='"$@"'
14883   setopt NO_GLOB_SUBST
14884 else
14885   case `(set -o) 2>/dev/null` in #(
14886   *posix*) :
14887     set -o posix ;; #(
14888   *) :
14889      ;;
14890 esac
14891 fi
14892
14893
14894 as_nl='
14895 '
14896 export as_nl
14897 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14898 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14899 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14901 # Prefer a ksh shell builtin over an external printf program on Solaris,
14902 # but without wasting forks for bash or zsh.
14903 if test -z "$BASH_VERSION$ZSH_VERSION" \
14904     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14905   as_echo='print -r --'
14906   as_echo_n='print -rn --'
14907 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14908   as_echo='printf %s\n'
14909   as_echo_n='printf %s'
14910 else
14911   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14912     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14913     as_echo_n='/usr/ucb/echo -n'
14914   else
14915     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14916     as_echo_n_body='eval
14917       arg=$1;
14918       case $arg in #(
14919       *"$as_nl"*)
14920         expr "X$arg" : "X\\(.*\\)$as_nl";
14921         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14922       esac;
14923       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14924     '
14925     export as_echo_n_body
14926     as_echo_n='sh -c $as_echo_n_body as_echo'
14927   fi
14928   export as_echo_body
14929   as_echo='sh -c $as_echo_body as_echo'
14930 fi
14931
14932 # The user is always right.
14933 if test "${PATH_SEPARATOR+set}" != set; then
14934   PATH_SEPARATOR=:
14935   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14936     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14937       PATH_SEPARATOR=';'
14938   }
14939 fi
14940
14941
14942 # IFS
14943 # We need space, tab and new line, in precisely that order.  Quoting is
14944 # there to prevent editors from complaining about space-tab.
14945 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14946 # splitting by setting IFS to empty value.)
14947 IFS=" ""        $as_nl"
14948
14949 # Find who we are.  Look in the path if we contain no directory separator.
14950 as_myself=
14951 case $0 in #((
14952   *[\\/]* ) as_myself=$0 ;;
14953   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14954 for as_dir in $PATH
14955 do
14956   IFS=$as_save_IFS
14957   test -z "$as_dir" && as_dir=.
14958     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14959   done
14960 IFS=$as_save_IFS
14961
14962      ;;
14963 esac
14964 # We did not find ourselves, most probably we were run as `sh COMMAND'
14965 # in which case we are not to be found in the path.
14966 if test "x$as_myself" = x; then
14967   as_myself=$0
14968 fi
14969 if test ! -f "$as_myself"; then
14970   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14971   exit 1
14972 fi
14973
14974 # Unset variables that we do not need and which cause bugs (e.g. in
14975 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14976 # suppresses any "Segmentation fault" message there.  '((' could
14977 # trigger a bug in pdksh 5.2.14.
14978 for as_var in BASH_ENV ENV MAIL MAILPATH
14979 do eval test x\${$as_var+set} = xset \
14980   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14981 done
14982 PS1='$ '
14983 PS2='> '
14984 PS4='+ '
14985
14986 # NLS nuisances.
14987 LC_ALL=C
14988 export LC_ALL
14989 LANGUAGE=C
14990 export LANGUAGE
14991
14992 # CDPATH.
14993 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14994
14995
14996 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14997 # ----------------------------------------
14998 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14999 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15000 # script with STATUS, using 1 if that was 0.
15001 as_fn_error ()
15002 {
15003   as_status=$1; test $as_status -eq 0 && as_status=1
15004   if test "$4"; then
15005     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15006     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15007   fi
15008   $as_echo "$as_me: error: $2" >&2
15009   as_fn_exit $as_status
15010 } # as_fn_error
15011
15012
15013 # as_fn_set_status STATUS
15014 # -----------------------
15015 # Set $? to STATUS, without forking.
15016 as_fn_set_status ()
15017 {
15018   return $1
15019 } # as_fn_set_status
15020
15021 # as_fn_exit STATUS
15022 # -----------------
15023 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15024 as_fn_exit ()
15025 {
15026   set +e
15027   as_fn_set_status $1
15028   exit $1
15029 } # as_fn_exit
15030
15031 # as_fn_unset VAR
15032 # ---------------
15033 # Portably unset VAR.
15034 as_fn_unset ()
15035 {
15036   { eval $1=; unset $1;}
15037 }
15038 as_unset=as_fn_unset
15039 # as_fn_append VAR VALUE
15040 # ----------------------
15041 # Append the text in VALUE to the end of the definition contained in VAR. Take
15042 # advantage of any shell optimizations that allow amortized linear growth over
15043 # repeated appends, instead of the typical quadratic growth present in naive
15044 # implementations.
15045 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15046   eval 'as_fn_append ()
15047   {
15048     eval $1+=\$2
15049   }'
15050 else
15051   as_fn_append ()
15052   {
15053     eval $1=\$$1\$2
15054   }
15055 fi # as_fn_append
15056
15057 # as_fn_arith ARG...
15058 # ------------------
15059 # Perform arithmetic evaluation on the ARGs, and store the result in the
15060 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15061 # must be portable across $(()) and expr.
15062 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15063   eval 'as_fn_arith ()
15064   {
15065     as_val=$(( $* ))
15066   }'
15067 else
15068   as_fn_arith ()
15069   {
15070     as_val=`expr "$@" || test $? -eq 1`
15071   }
15072 fi # as_fn_arith
15073
15074
15075 if expr a : '\(a\)' >/dev/null 2>&1 &&
15076    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15077   as_expr=expr
15078 else
15079   as_expr=false
15080 fi
15081
15082 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15083   as_basename=basename
15084 else
15085   as_basename=false
15086 fi
15087
15088 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15089   as_dirname=dirname
15090 else
15091   as_dirname=false
15092 fi
15093
15094 as_me=`$as_basename -- "$0" ||
15095 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15096          X"$0" : 'X\(//\)$' \| \
15097          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15098 $as_echo X/"$0" |
15099     sed '/^.*\/\([^/][^/]*\)\/*$/{
15100             s//\1/
15101             q
15102           }
15103           /^X\/\(\/\/\)$/{
15104             s//\1/
15105             q
15106           }
15107           /^X\/\(\/\).*/{
15108             s//\1/
15109             q
15110           }
15111           s/.*/./; q'`
15112
15113 # Avoid depending upon Character Ranges.
15114 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15115 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15116 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15117 as_cr_digits='0123456789'
15118 as_cr_alnum=$as_cr_Letters$as_cr_digits
15119
15120 ECHO_C= ECHO_N= ECHO_T=
15121 case `echo -n x` in #(((((
15122 -n*)
15123   case `echo 'xy\c'` in
15124   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15125   xy)  ECHO_C='\c';;
15126   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15127        ECHO_T=' ';;
15128   esac;;
15129 *)
15130   ECHO_N='-n';;
15131 esac
15132
15133 rm -f conf$$ conf$$.exe conf$$.file
15134 if test -d conf$$.dir; then
15135   rm -f conf$$.dir/conf$$.file
15136 else
15137   rm -f conf$$.dir
15138   mkdir conf$$.dir 2>/dev/null
15139 fi
15140 if (echo >conf$$.file) 2>/dev/null; then
15141   if ln -s conf$$.file conf$$ 2>/dev/null; then
15142     as_ln_s='ln -s'
15143     # ... but there are two gotchas:
15144     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15145     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15146     # In both cases, we have to default to `cp -p'.
15147     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15148       as_ln_s='cp -p'
15149   elif ln conf$$.file conf$$ 2>/dev/null; then
15150     as_ln_s=ln
15151   else
15152     as_ln_s='cp -p'
15153   fi
15154 else
15155   as_ln_s='cp -p'
15156 fi
15157 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15158 rmdir conf$$.dir 2>/dev/null
15159
15160
15161 # as_fn_mkdir_p
15162 # -------------
15163 # Create "$as_dir" as a directory, including parents if necessary.
15164 as_fn_mkdir_p ()
15165 {
15166
15167   case $as_dir in #(
15168   -*) as_dir=./$as_dir;;
15169   esac
15170   test -d "$as_dir" || eval $as_mkdir_p || {
15171     as_dirs=
15172     while :; do
15173       case $as_dir in #(
15174       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15175       *) as_qdir=$as_dir;;
15176       esac
15177       as_dirs="'$as_qdir' $as_dirs"
15178       as_dir=`$as_dirname -- "$as_dir" ||
15179 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15180          X"$as_dir" : 'X\(//\)[^/]' \| \
15181          X"$as_dir" : 'X\(//\)$' \| \
15182          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15183 $as_echo X"$as_dir" |
15184     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15185             s//\1/
15186             q
15187           }
15188           /^X\(\/\/\)[^/].*/{
15189             s//\1/
15190             q
15191           }
15192           /^X\(\/\/\)$/{
15193             s//\1/
15194             q
15195           }
15196           /^X\(\/\).*/{
15197             s//\1/
15198             q
15199           }
15200           s/.*/./; q'`
15201       test -d "$as_dir" && break
15202     done
15203     test -z "$as_dirs" || eval "mkdir $as_dirs"
15204   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15205
15206
15207 } # as_fn_mkdir_p
15208 if mkdir -p . 2>/dev/null; then
15209   as_mkdir_p='mkdir -p "$as_dir"'
15210 else
15211   test -d ./-p && rmdir ./-p
15212   as_mkdir_p=false
15213 fi
15214
15215 if test -x / >/dev/null 2>&1; then
15216   as_test_x='test -x'
15217 else
15218   if ls -dL / >/dev/null 2>&1; then
15219     as_ls_L_option=L
15220   else
15221     as_ls_L_option=
15222   fi
15223   as_test_x='
15224     eval sh -c '\''
15225       if test -d "$1"; then
15226         test -d "$1/.";
15227       else
15228         case $1 in #(
15229         -*)set "./$1";;
15230         esac;
15231         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15232         ???[sx]*):;;*)false;;esac;fi
15233     '\'' sh
15234   '
15235 fi
15236 as_executable_p=$as_test_x
15237
15238 # Sed expression to map a string onto a valid CPP name.
15239 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15240
15241 # Sed expression to map a string onto a valid variable name.
15242 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15243
15244
15245 exec 6>&1
15246 ## ----------------------------------- ##
15247 ## Main body of $CONFIG_STATUS script. ##
15248 ## ----------------------------------- ##
15249 _ASEOF
15250 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15251
15252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15253 # Save the log message, to keep $0 and so on meaningful, and to
15254 # report actual input values of CONFIG_FILES etc. instead of their
15255 # values after options handling.
15256 ac_log="
15257 This file was extended by libffi $as_me 3.0.11-rc2, which was
15258 generated by GNU Autoconf 2.68.  Invocation command line was
15259
15260   CONFIG_FILES    = $CONFIG_FILES
15261   CONFIG_HEADERS  = $CONFIG_HEADERS
15262   CONFIG_LINKS    = $CONFIG_LINKS
15263   CONFIG_COMMANDS = $CONFIG_COMMANDS
15264   $ $0 $@
15265
15266 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15267 "
15268
15269 _ACEOF
15270
15271 case $ac_config_files in *"
15272 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15273 esac
15274
15275 case $ac_config_headers in *"
15276 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15277 esac
15278
15279
15280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15281 # Files that config.status was made for.
15282 config_files="$ac_config_files"
15283 config_headers="$ac_config_headers"
15284 config_links="$ac_config_links"
15285 config_commands="$ac_config_commands"
15286
15287 _ACEOF
15288
15289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15290 ac_cs_usage="\
15291 \`$as_me' instantiates files and other configuration actions
15292 from templates according to the current configuration.  Unless the files
15293 and actions are specified as TAGs, all are instantiated by default.
15294
15295 Usage: $0 [OPTION]... [TAG]...
15296
15297   -h, --help       print this help, then exit
15298   -V, --version    print version number and configuration settings, then exit
15299       --config     print configuration, then exit
15300   -q, --quiet, --silent
15301                    do not print progress messages
15302   -d, --debug      don't remove temporary files
15303       --recheck    update $as_me by reconfiguring in the same conditions
15304       --file=FILE[:TEMPLATE]
15305                    instantiate the configuration file FILE
15306       --header=FILE[:TEMPLATE]
15307                    instantiate the configuration header FILE
15308
15309 Configuration files:
15310 $config_files
15311
15312 Configuration headers:
15313 $config_headers
15314
15315 Configuration links:
15316 $config_links
15317
15318 Configuration commands:
15319 $config_commands
15320
15321 Report bugs to <http://github.com/atgreen/libffi/issues>."
15322
15323 _ACEOF
15324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15325 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15326 ac_cs_version="\\
15327 libffi config.status 3.0.11-rc2
15328 configured by $0, generated by GNU Autoconf 2.68,
15329   with options \\"\$ac_cs_config\\"
15330
15331 Copyright (C) 2010 Free Software Foundation, Inc.
15332 This config.status script is free software; the Free Software Foundation
15333 gives unlimited permission to copy, distribute and modify it."
15334
15335 ac_pwd='$ac_pwd'
15336 srcdir='$srcdir'
15337 INSTALL='$INSTALL'
15338 MKDIR_P='$MKDIR_P'
15339 AWK='$AWK'
15340 test -n "\$AWK" || AWK=awk
15341 _ACEOF
15342
15343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15344 # The default lists apply if the user does not specify any file.
15345 ac_need_defaults=:
15346 while test $# != 0
15347 do
15348   case $1 in
15349   --*=?*)
15350     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15351     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15352     ac_shift=:
15353     ;;
15354   --*=)
15355     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15356     ac_optarg=
15357     ac_shift=:
15358     ;;
15359   *)
15360     ac_option=$1
15361     ac_optarg=$2
15362     ac_shift=shift
15363     ;;
15364   esac
15365
15366   case $ac_option in
15367   # Handling of the options.
15368   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15369     ac_cs_recheck=: ;;
15370   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15371     $as_echo "$ac_cs_version"; exit ;;
15372   --config | --confi | --conf | --con | --co | --c )
15373     $as_echo "$ac_cs_config"; exit ;;
15374   --debug | --debu | --deb | --de | --d | -d )
15375     debug=: ;;
15376   --file | --fil | --fi | --f )
15377     $ac_shift
15378     case $ac_optarg in
15379     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15380     '') as_fn_error $? "missing file argument" ;;
15381     esac
15382     as_fn_append CONFIG_FILES " '$ac_optarg'"
15383     ac_need_defaults=false;;
15384   --header | --heade | --head | --hea )
15385     $ac_shift
15386     case $ac_optarg in
15387     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15388     esac
15389     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15390     ac_need_defaults=false;;
15391   --he | --h)
15392     # Conflict between --help and --header
15393     as_fn_error $? "ambiguous option: \`$1'
15394 Try \`$0 --help' for more information.";;
15395   --help | --hel | -h )
15396     $as_echo "$ac_cs_usage"; exit ;;
15397   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15398   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15399     ac_cs_silent=: ;;
15400
15401   # This is an error.
15402   -*) as_fn_error $? "unrecognized option: \`$1'
15403 Try \`$0 --help' for more information." ;;
15404
15405   *) as_fn_append ac_config_targets " $1"
15406      ac_need_defaults=false ;;
15407
15408   esac
15409   shift
15410 done
15411
15412 ac_configure_extra_args=
15413
15414 if $ac_cs_silent; then
15415   exec 6>/dev/null
15416   ac_configure_extra_args="$ac_configure_extra_args --silent"
15417 fi
15418
15419 _ACEOF
15420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15421 if \$ac_cs_recheck; then
15422   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15423   shift
15424   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15425   CONFIG_SHELL='$SHELL'
15426   export CONFIG_SHELL
15427   exec "\$@"
15428 fi
15429
15430 _ACEOF
15431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15432 exec 5>>config.log
15433 {
15434   echo
15435   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15436 ## Running $as_me. ##
15437 _ASBOX
15438   $as_echo "$ac_log"
15439 } >&5
15440
15441 _ACEOF
15442 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15443 #
15444 # INIT-COMMANDS
15445 #
15446 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15447 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15448 ax_enable_builddir_version="$VERSION"                  # $VERSION
15449 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15450 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15451 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15452 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15453
15454 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15455
15456
15457 # The HP-UX ksh and POSIX shell print the target directory to stdout
15458 # if CDPATH is set.
15459 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15460
15461 sed_quote_subst='$sed_quote_subst'
15462 double_quote_subst='$double_quote_subst'
15463 delay_variable_subst='$delay_variable_subst'
15464 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15465 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15466 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15467 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15468 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15469 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15470 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15471 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15472 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15473 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15474 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15475 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15476 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15477 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15478 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15479 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15480 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15481 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15482 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15483 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15484 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15485 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15486 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15487 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15488 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15489 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15490 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15491 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15492 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15493 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15494 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15495 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15496 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15497 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15498 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15499 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15500 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15501 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15502 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15503 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15504 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15505 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15506 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15507 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15508 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15509 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15510 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15511 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15512 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15513 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15514 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15515 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15516 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15517 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15518 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15519 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"`'
15520 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15521 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15522 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15523 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15524 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15525 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15526 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15527 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15528 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15529 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15530 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15531 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15532 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15533 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15534 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15535 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15536 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15537 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15538 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15539 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15540 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15541 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15542 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15543 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15544 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15545 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15546 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15547 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15548 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15549 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15550 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15551 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15552 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15553 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15554 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15555 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15556 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15557 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15558 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15559 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15560 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15561 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15562 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15563 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15564 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15565 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15566 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15567 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15568 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15569 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15570 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15571 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15572 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15573 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15574 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15575 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15576 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15577 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15578 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15579 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15580 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15581 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15582 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15583 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15584 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15585 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15586 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15587 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15588 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15589 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15590 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15591 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15592 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15593 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15594
15595 LTCC='$LTCC'
15596 LTCFLAGS='$LTCFLAGS'
15597 compiler='$compiler_DEFAULT'
15598
15599 # A function that is used when there is no print builtin or printf.
15600 func_fallback_echo ()
15601 {
15602   eval 'cat <<_LTECHO_EOF
15603 \$1
15604 _LTECHO_EOF'
15605 }
15606
15607 # Quote evaled strings.
15608 for var in SHELL \
15609 ECHO \
15610 SED \
15611 GREP \
15612 EGREP \
15613 FGREP \
15614 LD \
15615 NM \
15616 LN_S \
15617 lt_SP2NL \
15618 lt_NL2SP \
15619 reload_flag \
15620 OBJDUMP \
15621 deplibs_check_method \
15622 file_magic_cmd \
15623 file_magic_glob \
15624 want_nocaseglob \
15625 DLLTOOL \
15626 sharedlib_from_linklib_cmd \
15627 AR \
15628 AR_FLAGS \
15629 archiver_list_spec \
15630 STRIP \
15631 RANLIB \
15632 CC \
15633 CFLAGS \
15634 compiler \
15635 lt_cv_sys_global_symbol_pipe \
15636 lt_cv_sys_global_symbol_to_cdecl \
15637 lt_cv_sys_global_symbol_to_c_name_address \
15638 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15639 nm_file_list_spec \
15640 lt_prog_compiler_no_builtin_flag \
15641 lt_prog_compiler_pic \
15642 lt_prog_compiler_wl \
15643 lt_prog_compiler_static \
15644 lt_cv_prog_compiler_c_o \
15645 need_locks \
15646 MANIFEST_TOOL \
15647 DSYMUTIL \
15648 NMEDIT \
15649 LIPO \
15650 OTOOL \
15651 OTOOL64 \
15652 shrext_cmds \
15653 export_dynamic_flag_spec \
15654 whole_archive_flag_spec \
15655 compiler_needs_object \
15656 with_gnu_ld \
15657 allow_undefined_flag \
15658 no_undefined_flag \
15659 hardcode_libdir_flag_spec \
15660 hardcode_libdir_flag_spec_ld \
15661 hardcode_libdir_separator \
15662 exclude_expsyms \
15663 include_expsyms \
15664 file_list_spec \
15665 variables_saved_for_relink \
15666 libname_spec \
15667 library_names_spec \
15668 soname_spec \
15669 install_override_mode \
15670 finish_eval \
15671 old_striplib \
15672 striplib; do
15673     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15674     *[\\\\\\\`\\"\\\$]*)
15675       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15676       ;;
15677     *)
15678       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15679       ;;
15680     esac
15681 done
15682
15683 # Double-quote double-evaled strings.
15684 for var in reload_cmds \
15685 old_postinstall_cmds \
15686 old_postuninstall_cmds \
15687 old_archive_cmds \
15688 extract_expsyms_cmds \
15689 old_archive_from_new_cmds \
15690 old_archive_from_expsyms_cmds \
15691 archive_cmds \
15692 archive_expsym_cmds \
15693 module_cmds \
15694 module_expsym_cmds \
15695 export_symbols_cmds \
15696 prelink_cmds \
15697 postlink_cmds \
15698 postinstall_cmds \
15699 postuninstall_cmds \
15700 finish_cmds \
15701 sys_lib_search_path_spec \
15702 sys_lib_dlsearch_path_spec; do
15703     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15704     *[\\\\\\\`\\"\\\$]*)
15705       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15706       ;;
15707     *)
15708       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15709       ;;
15710     esac
15711 done
15712
15713 ac_aux_dir='$ac_aux_dir'
15714 xsi_shell='$xsi_shell'
15715 lt_shell_append='$lt_shell_append'
15716
15717 # See if we are running on zsh, and set the options which allow our
15718 # commands through without removal of \ escapes INIT.
15719 if test -n "\${ZSH_VERSION+set}" ; then
15720    setopt NO_GLOB_SUBST
15721 fi
15722
15723
15724     PACKAGE='$PACKAGE'
15725     VERSION='$VERSION'
15726     TIMESTAMP='$TIMESTAMP'
15727     RM='$RM'
15728     ofile='$ofile'
15729
15730
15731
15732 TARGETDIR="$TARGETDIR"
15733
15734 _ACEOF
15735
15736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15737
15738 # Handling of arguments.
15739 for ac_config_target in $ac_config_targets
15740 do
15741   case $ac_config_target in
15742     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15743     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15744     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15745     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15746     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15747     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15748     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15749     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15750     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15751     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15752     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15753     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15754     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15755
15756   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15757   esac
15758 done
15759
15760
15761 # If the user did not use the arguments to specify the items to instantiate,
15762 # then the envvar interface is used.  Set only those that are not.
15763 # We use the long form for the default assignment because of an extremely
15764 # bizarre bug on SunOS 4.1.3.
15765 if $ac_need_defaults; then
15766   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15767   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15768   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15769   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15770 fi
15771
15772 # Have a temporary directory for convenience.  Make it in the build tree
15773 # simply because there is no reason against having it here, and in addition,
15774 # creating and moving files from /tmp can sometimes cause problems.
15775 # Hook for its removal unless debugging.
15776 # Note that there is a small window in which the directory will not be cleaned:
15777 # after its creation but before its name has been assigned to `$tmp'.
15778 $debug ||
15779 {
15780   tmp= ac_tmp=
15781   trap 'exit_status=$?
15782   : "${ac_tmp:=$tmp}"
15783   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15784 ' 0
15785   trap 'as_fn_exit 1' 1 2 13 15
15786 }
15787 # Create a (secure) tmp directory for tmp files.
15788
15789 {
15790   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15791   test -d "$tmp"
15792 }  ||
15793 {
15794   tmp=./conf$$-$RANDOM
15795   (umask 077 && mkdir "$tmp")
15796 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15797 ac_tmp=$tmp
15798
15799 # Set up the scripts for CONFIG_FILES section.
15800 # No need to generate them if there are no CONFIG_FILES.
15801 # This happens for instance with `./config.status config.h'.
15802 if test -n "$CONFIG_FILES"; then
15803
15804
15805 ac_cr=`echo X | tr X '\015'`
15806 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15807 # But we know of no other shell where ac_cr would be empty at this
15808 # point, so we can use a bashism as a fallback.
15809 if test "x$ac_cr" = x; then
15810   eval ac_cr=\$\'\\r\'
15811 fi
15812 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15813 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15814   ac_cs_awk_cr='\\r'
15815 else
15816   ac_cs_awk_cr=$ac_cr
15817 fi
15818
15819 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15820 _ACEOF
15821
15822
15823 {
15824   echo "cat >conf$$subs.awk <<_ACEOF" &&
15825   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15826   echo "_ACEOF"
15827 } >conf$$subs.sh ||
15828   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15829 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15830 ac_delim='%!_!# '
15831 for ac_last_try in false false false false false :; do
15832   . ./conf$$subs.sh ||
15833     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15834
15835   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15836   if test $ac_delim_n = $ac_delim_num; then
15837     break
15838   elif $ac_last_try; then
15839     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15840   else
15841     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15842   fi
15843 done
15844 rm -f conf$$subs.sh
15845
15846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15847 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15848 _ACEOF
15849 sed -n '
15850 h
15851 s/^/S["/; s/!.*/"]=/
15852 p
15853 g
15854 s/^[^!]*!//
15855 :repl
15856 t repl
15857 s/'"$ac_delim"'$//
15858 t delim
15859 :nl
15860 h
15861 s/\(.\{148\}\)..*/\1/
15862 t more1
15863 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15864 p
15865 n
15866 b repl
15867 :more1
15868 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15869 p
15870 g
15871 s/.\{148\}//
15872 t nl
15873 :delim
15874 h
15875 s/\(.\{148\}\)..*/\1/
15876 t more2
15877 s/["\\]/\\&/g; s/^/"/; s/$/"/
15878 p
15879 b
15880 :more2
15881 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15882 p
15883 g
15884 s/.\{148\}//
15885 t delim
15886 ' <conf$$subs.awk | sed '
15887 /^[^""]/{
15888   N
15889   s/\n//
15890 }
15891 ' >>$CONFIG_STATUS || ac_write_fail=1
15892 rm -f conf$$subs.awk
15893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15894 _ACAWK
15895 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15896   for (key in S) S_is_set[key] = 1
15897   FS = "\a"
15898
15899 }
15900 {
15901   line = $ 0
15902   nfields = split(line, field, "@")
15903   substed = 0
15904   len = length(field[1])
15905   for (i = 2; i < nfields; i++) {
15906     key = field[i]
15907     keylen = length(key)
15908     if (S_is_set[key]) {
15909       value = S[key]
15910       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15911       len += length(value) + length(field[++i])
15912       substed = 1
15913     } else
15914       len += 1 + keylen
15915   }
15916
15917   print line
15918 }
15919
15920 _ACAWK
15921 _ACEOF
15922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15923 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15924   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15925 else
15926   cat
15927 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15928   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15929 _ACEOF
15930
15931 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15932 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15933 # trailing colons and then remove the whole line if VPATH becomes empty
15934 # (actually we leave an empty line to preserve line numbers).
15935 if test "x$srcdir" = x.; then
15936   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15937 h
15938 s///
15939 s/^/:/
15940 s/[      ]*$/:/
15941 s/:\$(srcdir):/:/g
15942 s/:\${srcdir}:/:/g
15943 s/:@srcdir@:/:/g
15944 s/^:*//
15945 s/:*$//
15946 x
15947 s/\(=[   ]*\).*/\1/
15948 G
15949 s/\n//
15950 s/^[^=]*=[       ]*$//
15951 }'
15952 fi
15953
15954 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15955 fi # test -n "$CONFIG_FILES"
15956
15957 # Set up the scripts for CONFIG_HEADERS section.
15958 # No need to generate them if there are no CONFIG_HEADERS.
15959 # This happens for instance with `./config.status Makefile'.
15960 if test -n "$CONFIG_HEADERS"; then
15961 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15962 BEGIN {
15963 _ACEOF
15964
15965 # Transform confdefs.h into an awk script `defines.awk', embedded as
15966 # here-document in config.status, that substitutes the proper values into
15967 # config.h.in to produce config.h.
15968
15969 # Create a delimiter string that does not exist in confdefs.h, to ease
15970 # handling of long lines.
15971 ac_delim='%!_!# '
15972 for ac_last_try in false false :; do
15973   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15974   if test -z "$ac_tt"; then
15975     break
15976   elif $ac_last_try; then
15977     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15978   else
15979     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15980   fi
15981 done
15982
15983 # For the awk script, D is an array of macro values keyed by name,
15984 # likewise P contains macro parameters if any.  Preserve backslash
15985 # newline sequences.
15986
15987 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15988 sed -n '
15989 s/.\{148\}/&'"$ac_delim"'/g
15990 t rset
15991 :rset
15992 s/^[     ]*#[    ]*define[       ][      ]*/ /
15993 t def
15994 d
15995 :def
15996 s/\\$//
15997 t bsnl
15998 s/["\\]/\\&/g
15999 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16000 D["\1"]=" \3"/p
16001 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16002 d
16003 :bsnl
16004 s/["\\]/\\&/g
16005 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16006 D["\1"]=" \3\\\\\\n"\\/p
16007 t cont
16008 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16009 t cont
16010 d
16011 :cont
16012 n
16013 s/.\{148\}/&'"$ac_delim"'/g
16014 t clear
16015 :clear
16016 s/\\$//
16017 t bsnlc
16018 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16019 d
16020 :bsnlc
16021 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16022 b cont
16023 ' <confdefs.h | sed '
16024 s/'"$ac_delim"'/"\\\
16025 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16026
16027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16028   for (key in D) D_is_set[key] = 1
16029   FS = "\a"
16030 }
16031 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16032   line = \$ 0
16033   split(line, arg, " ")
16034   if (arg[1] == "#") {
16035     defundef = arg[2]
16036     mac1 = arg[3]
16037   } else {
16038     defundef = substr(arg[1], 2)
16039     mac1 = arg[2]
16040   }
16041   split(mac1, mac2, "(") #)
16042   macro = mac2[1]
16043   prefix = substr(line, 1, index(line, defundef) - 1)
16044   if (D_is_set[macro]) {
16045     # Preserve the white space surrounding the "#".
16046     print prefix "define", macro P[macro] D[macro]
16047     next
16048   } else {
16049     # Replace #undef with comments.  This is necessary, for example,
16050     # in the case of _POSIX_SOURCE, which is predefined and required
16051     # on some systems where configure will not decide to define it.
16052     if (defundef == "undef") {
16053       print "/*", prefix defundef, macro, "*/"
16054       next
16055     }
16056   }
16057 }
16058 { print }
16059 _ACAWK
16060 _ACEOF
16061 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16062   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16063 fi # test -n "$CONFIG_HEADERS"
16064
16065
16066 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16067 shift
16068 for ac_tag
16069 do
16070   case $ac_tag in
16071   :[FHLC]) ac_mode=$ac_tag; continue;;
16072   esac
16073   case $ac_mode$ac_tag in
16074   :[FHL]*:*);;
16075   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16076   :[FH]-) ac_tag=-:-;;
16077   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16078   esac
16079   ac_save_IFS=$IFS
16080   IFS=:
16081   set x $ac_tag
16082   IFS=$ac_save_IFS
16083   shift
16084   ac_file=$1
16085   shift
16086
16087   case $ac_mode in
16088   :L) ac_source=$1;;
16089   :[FH])
16090     ac_file_inputs=
16091     for ac_f
16092     do
16093       case $ac_f in
16094       -) ac_f="$ac_tmp/stdin";;
16095       *) # Look for the file first in the build tree, then in the source tree
16096          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16097          # because $ac_f cannot contain `:'.
16098          test -f "$ac_f" ||
16099            case $ac_f in
16100            [\\/$]*) false;;
16101            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16102            esac ||
16103            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16104       esac
16105       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16106       as_fn_append ac_file_inputs " '$ac_f'"
16107     done
16108
16109     # Let's still pretend it is `configure' which instantiates (i.e., don't
16110     # use $as_me), people would be surprised to read:
16111     #    /* config.h.  Generated by config.status.  */
16112     configure_input='Generated from '`
16113           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16114         `' by configure.'
16115     if test x"$ac_file" != x-; then
16116       configure_input="$ac_file.  $configure_input"
16117       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16118 $as_echo "$as_me: creating $ac_file" >&6;}
16119     fi
16120     # Neutralize special characters interpreted by sed in replacement strings.
16121     case $configure_input in #(
16122     *\&* | *\|* | *\\* )
16123        ac_sed_conf_input=`$as_echo "$configure_input" |
16124        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16125     *) ac_sed_conf_input=$configure_input;;
16126     esac
16127
16128     case $ac_tag in
16129     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16130       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16131     esac
16132     ;;
16133   esac
16134
16135   ac_dir=`$as_dirname -- "$ac_file" ||
16136 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16137          X"$ac_file" : 'X\(//\)[^/]' \| \
16138          X"$ac_file" : 'X\(//\)$' \| \
16139          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16140 $as_echo X"$ac_file" |
16141     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16142             s//\1/
16143             q
16144           }
16145           /^X\(\/\/\)[^/].*/{
16146             s//\1/
16147             q
16148           }
16149           /^X\(\/\/\)$/{
16150             s//\1/
16151             q
16152           }
16153           /^X\(\/\).*/{
16154             s//\1/
16155             q
16156           }
16157           s/.*/./; q'`
16158   as_dir="$ac_dir"; as_fn_mkdir_p
16159   ac_builddir=.
16160
16161 case "$ac_dir" in
16162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16163 *)
16164   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16165   # A ".." for each directory in $ac_dir_suffix.
16166   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16167   case $ac_top_builddir_sub in
16168   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16169   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16170   esac ;;
16171 esac
16172 ac_abs_top_builddir=$ac_pwd
16173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16174 # for backward compatibility:
16175 ac_top_builddir=$ac_top_build_prefix
16176
16177 case $srcdir in
16178   .)  # We are building in place.
16179     ac_srcdir=.
16180     ac_top_srcdir=$ac_top_builddir_sub
16181     ac_abs_top_srcdir=$ac_pwd ;;
16182   [\\/]* | ?:[\\/]* )  # Absolute name.
16183     ac_srcdir=$srcdir$ac_dir_suffix;
16184     ac_top_srcdir=$srcdir
16185     ac_abs_top_srcdir=$srcdir ;;
16186   *) # Relative name.
16187     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16188     ac_top_srcdir=$ac_top_build_prefix$srcdir
16189     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16190 esac
16191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16192
16193
16194   case $ac_mode in
16195   :F)
16196   #
16197   # CONFIG_FILE
16198   #
16199
16200   case $INSTALL in
16201   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16202   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16203   esac
16204   ac_MKDIR_P=$MKDIR_P
16205   case $MKDIR_P in
16206   [\\/$]* | ?:[\\/]* ) ;;
16207   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16208   esac
16209 _ACEOF
16210
16211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16212 # If the template does not know about datarootdir, expand it.
16213 # FIXME: This hack should be removed a few years after 2.60.
16214 ac_datarootdir_hack=; ac_datarootdir_seen=
16215 ac_sed_dataroot='
16216 /datarootdir/ {
16217   p
16218   q
16219 }
16220 /@datadir@/p
16221 /@docdir@/p
16222 /@infodir@/p
16223 /@localedir@/p
16224 /@mandir@/p'
16225 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16226 *datarootdir*) ac_datarootdir_seen=yes;;
16227 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16228   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16229 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16230 _ACEOF
16231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16232   ac_datarootdir_hack='
16233   s&@datadir@&$datadir&g
16234   s&@docdir@&$docdir&g
16235   s&@infodir@&$infodir&g
16236   s&@localedir@&$localedir&g
16237   s&@mandir@&$mandir&g
16238   s&\\\${datarootdir}&$datarootdir&g' ;;
16239 esac
16240 _ACEOF
16241
16242 # Neutralize VPATH when `$srcdir' = `.'.
16243 # Shell code in configure.ac might set extrasub.
16244 # FIXME: do we really want to maintain this feature?
16245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16246 ac_sed_extra="$ac_vpsub
16247 $extrasub
16248 _ACEOF
16249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250 :t
16251 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16252 s|@configure_input@|$ac_sed_conf_input|;t t
16253 s&@top_builddir@&$ac_top_builddir_sub&;t t
16254 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16255 s&@srcdir@&$ac_srcdir&;t t
16256 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16257 s&@top_srcdir@&$ac_top_srcdir&;t t
16258 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16259 s&@builddir@&$ac_builddir&;t t
16260 s&@abs_builddir@&$ac_abs_builddir&;t t
16261 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16262 s&@INSTALL@&$ac_INSTALL&;t t
16263 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16264 $ac_datarootdir_hack
16265 "
16266 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16267   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16268
16269 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16270   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16271   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16272       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16273   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16274 which seems to be undefined.  Please make sure it is defined" >&5
16275 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16276 which seems to be undefined.  Please make sure it is defined" >&2;}
16277
16278   rm -f "$ac_tmp/stdin"
16279   case $ac_file in
16280   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16281   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16282   esac \
16283   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16284  ;;
16285   :H)
16286   #
16287   # CONFIG_HEADER
16288   #
16289   if test x"$ac_file" != x-; then
16290     {
16291       $as_echo "/* $configure_input  */" \
16292       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16293     } >"$ac_tmp/config.h" \
16294       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16295     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16296       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16297 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16298     else
16299       rm -f "$ac_file"
16300       mv "$ac_tmp/config.h" "$ac_file" \
16301         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16302     fi
16303   else
16304     $as_echo "/* $configure_input  */" \
16305       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16306       || as_fn_error $? "could not create -" "$LINENO" 5
16307   fi
16308 # Compute "$ac_file"'s index in $config_headers.
16309 _am_arg="$ac_file"
16310 _am_stamp_count=1
16311 for _am_header in $config_headers :; do
16312   case $_am_header in
16313     $_am_arg | $_am_arg:* )
16314       break ;;
16315     * )
16316       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16317   esac
16318 done
16319 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16320 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321          X"$_am_arg" : 'X\(//\)[^/]' \| \
16322          X"$_am_arg" : 'X\(//\)$' \| \
16323          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16324 $as_echo X"$_am_arg" |
16325     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16326             s//\1/
16327             q
16328           }
16329           /^X\(\/\/\)[^/].*/{
16330             s//\1/
16331             q
16332           }
16333           /^X\(\/\/\)$/{
16334             s//\1/
16335             q
16336           }
16337           /^X\(\/\).*/{
16338             s//\1/
16339             q
16340           }
16341           s/.*/./; q'`/stamp-h$_am_stamp_count
16342  ;;
16343   :L)
16344   #
16345   # CONFIG_LINK
16346   #
16347
16348   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16349     :
16350   else
16351     # Prefer the file from the source tree if names are identical.
16352     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16353       ac_source=$srcdir/$ac_source
16354     fi
16355
16356     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16357 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16358
16359     if test ! -r "$ac_source"; then
16360       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16361     fi
16362     rm -f "$ac_file"
16363
16364     # Try a relative symlink, then a hard link, then a copy.
16365     case $ac_source in
16366     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16367         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16368     esac
16369     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16370       ln "$ac_source" "$ac_file" 2>/dev/null ||
16371       cp -p "$ac_source" "$ac_file" ||
16372       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16373   fi
16374  ;;
16375   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16376 $as_echo "$as_me: executing $ac_file commands" >&6;}
16377  ;;
16378   esac
16379
16380
16381   case $ac_file$ac_mode in
16382     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16383   if test ".$ax_enable_builddir" = ".." ; then
16384     if test -f "$top_srcdir/Makefile" ; then
16385       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16386 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16387     else
16388       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16389 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16390     fi
16391   else
16392     if test -f "$ac_top_srcdir/Makefile" ; then
16393       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16394       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16395     fi
16396     if test -f "$ac_top_srcdir/Makefile" ; then
16397         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16398         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16399       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16400       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16401       then rm $ac_top_srcdir/Makefile ; fi
16402       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16403     fi
16404     if test ! -f "$ac_top_srcdir/Makefile" ; then
16405       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16406 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16407       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16408 /^\$/n
16409 x
16410 /^\$/bS
16411 x
16412 /\\\\\$/{H;d;}
16413 {H;s/.*//;x;}
16414 bM
16415 :S
16416 x
16417 /\\\\\$/{h;d;}
16418 {h;s/.*//;x;}
16419 :M
16420 s/\\(\\n\\)     /\\1 /g
16421 /^      /d
16422 /^[      ]*[\\#]/d
16423 /^VPATH *=/d
16424 s/^srcdir *=.*/srcdir = ./
16425 s/^top_srcdir *=.*/top_srcdir = ./
16426 /[:=]/!d
16427 /^\\./d
16428 / = /b
16429 / .= /b
16430 /:/!b
16431 s/:.*/:/
16432 s/ /  /g
16433 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16434 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16435 s/  / /g
16436 /^all all-all[ :]/i\\
16437 all-configured : all-all
16438 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16439 /-all-all/d
16440 a\\
16441         @ HOST="\$(HOST)\" \\\\\\
16442         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16443         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16444         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16445         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16446         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16447         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16448         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16449         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16450         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16451 /dist-all *:/a\\
16452         @ HOST="\$(HOST)\" \\\\\\
16453         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16454         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16455         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16456         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16457         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16458         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16459         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16460         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16461         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16462 /dist-[a-zA-Z0-9]*-all *:/a\\
16463         @ HOST="\$(HOST)\" \\\\\\
16464         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16465         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16466         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16467         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16468         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16469         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16470         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16471         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16472         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16473 /distclean-all *:/a\\
16474         @ HOST="\$(HOST)\" \\\\\\
16475         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16476         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16477         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16478         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16479         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16480         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16481         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16482         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16483         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16484         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16485         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16486 _EOF
16487       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16488       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16489       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16490         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16491 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16492         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16493       fi ; xxxx="####"
16494       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16495       # sanity check
16496       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16497         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16498 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16499         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16500           >$ac_top_srcdir/Makefile~
16501         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16502       fi
16503     else
16504       xxxx="\\#\\#\\#\\#"
16505       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16506       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16507       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16508         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16509         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16510       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16511         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16512 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16513         rm "$tmp/mkfile.tmp"
16514       else
16515         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16516 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16517         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16518       fi
16519     fi
16520     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16521 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16522     xxxx="####"
16523     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16524   fi
16525  ;;
16526     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16527   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16528   # are listed without --file.  Let's play safe and only enable the eval
16529   # if we detect the quoting.
16530   case $CONFIG_FILES in
16531   *\'*) eval set x "$CONFIG_FILES" ;;
16532   *)   set x $CONFIG_FILES ;;
16533   esac
16534   shift
16535   for mf
16536   do
16537     # Strip MF so we end up with the name of the file.
16538     mf=`echo "$mf" | sed -e 's/:.*$//'`
16539     # Check whether this is an Automake generated Makefile or not.
16540     # We used to match only the files named `Makefile.in', but
16541     # some people rename them; so instead we look at the file content.
16542     # Grep'ing the first line is not enough: some people post-process
16543     # each Makefile.in and add a new line on top of each file to say so.
16544     # Grep'ing the whole file is not good either: AIX grep has a line
16545     # limit of 2048, but all sed's we know have understand at least 4000.
16546     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16547       dirpart=`$as_dirname -- "$mf" ||
16548 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16549          X"$mf" : 'X\(//\)[^/]' \| \
16550          X"$mf" : 'X\(//\)$' \| \
16551          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16552 $as_echo X"$mf" |
16553     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16554             s//\1/
16555             q
16556           }
16557           /^X\(\/\/\)[^/].*/{
16558             s//\1/
16559             q
16560           }
16561           /^X\(\/\/\)$/{
16562             s//\1/
16563             q
16564           }
16565           /^X\(\/\).*/{
16566             s//\1/
16567             q
16568           }
16569           s/.*/./; q'`
16570     else
16571       continue
16572     fi
16573     # Extract the definition of DEPDIR, am__include, and am__quote
16574     # from the Makefile without running `make'.
16575     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16576     test -z "$DEPDIR" && continue
16577     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16578     test -z "am__include" && continue
16579     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16580     # When using ansi2knr, U may be empty or an underscore; expand it
16581     U=`sed -n 's/^U = //p' < "$mf"`
16582     # Find all dependency output files, they are included files with
16583     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16584     # simplest approach to changing $(DEPDIR) to its actual value in the
16585     # expansion.
16586     for file in `sed -n "
16587       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16588          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16589       # Make sure the directory exists.
16590       test -f "$dirpart/$file" && continue
16591       fdir=`$as_dirname -- "$file" ||
16592 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16593          X"$file" : 'X\(//\)[^/]' \| \
16594          X"$file" : 'X\(//\)$' \| \
16595          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16596 $as_echo X"$file" |
16597     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16598             s//\1/
16599             q
16600           }
16601           /^X\(\/\/\)[^/].*/{
16602             s//\1/
16603             q
16604           }
16605           /^X\(\/\/\)$/{
16606             s//\1/
16607             q
16608           }
16609           /^X\(\/\).*/{
16610             s//\1/
16611             q
16612           }
16613           s/.*/./; q'`
16614       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16615       # echo "creating $dirpart/$file"
16616       echo '# dummy' > "$dirpart/$file"
16617     done
16618   done
16619 }
16620  ;;
16621     "libtool":C)
16622
16623     # See if we are running on zsh, and set the options which allow our
16624     # commands through without removal of \ escapes.
16625     if test -n "${ZSH_VERSION+set}" ; then
16626       setopt NO_GLOB_SUBST
16627     fi
16628
16629     cfgfile="${ofile}T"
16630     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16631     $RM "$cfgfile"
16632
16633     cat <<_LT_EOF >> "$cfgfile"
16634 #! $SHELL
16635
16636 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16637 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16638 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16639 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16640 #
16641 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16642 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16643 #                 Inc.
16644 #   Written by Gordon Matzigkeit, 1996
16645 #
16646 #   This file is part of GNU Libtool.
16647 #
16648 # GNU Libtool is free software; you can redistribute it and/or
16649 # modify it under the terms of the GNU General Public License as
16650 # published by the Free Software Foundation; either version 2 of
16651 # the License, or (at your option) any later version.
16652 #
16653 # As a special exception to the GNU General Public License,
16654 # if you distribute this file as part of a program or library that
16655 # is built using GNU Libtool, you may include this file under the
16656 # same distribution terms that you use for the rest of that program.
16657 #
16658 # GNU Libtool is distributed in the hope that it will be useful,
16659 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16660 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16661 # GNU General Public License for more details.
16662 #
16663 # You should have received a copy of the GNU General Public License
16664 # along with GNU Libtool; see the file COPYING.  If not, a copy
16665 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16666 # obtained by writing to the Free Software Foundation, Inc.,
16667 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16668
16669
16670 # The names of the tagged configurations supported by this script.
16671 available_tags=""
16672
16673 # ### BEGIN LIBTOOL CONFIG
16674
16675 # Which release of libtool.m4 was used?
16676 macro_version=$macro_version
16677 macro_revision=$macro_revision
16678
16679 # Whether or not to build shared libraries.
16680 build_libtool_libs=$enable_shared
16681
16682 # Whether or not to build static libraries.
16683 build_old_libs=$enable_static
16684
16685 # What type of objects to build.
16686 pic_mode=$pic_mode
16687
16688 # Whether or not to optimize for fast installation.
16689 fast_install=$enable_fast_install
16690
16691 # Shell to use when invoking shell scripts.
16692 SHELL=$lt_SHELL
16693
16694 # An echo program that protects backslashes.
16695 ECHO=$lt_ECHO
16696
16697 # The host system.
16698 host_alias=$host_alias
16699 host=$host
16700 host_os=$host_os
16701
16702 # The build system.
16703 build_alias=$build_alias
16704 build=$build
16705 build_os=$build_os
16706
16707 # A sed program that does not truncate output.
16708 SED=$lt_SED
16709
16710 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16711 Xsed="\$SED -e 1s/^X//"
16712
16713 # A grep program that handles long lines.
16714 GREP=$lt_GREP
16715
16716 # An ERE matcher.
16717 EGREP=$lt_EGREP
16718
16719 # A literal string matcher.
16720 FGREP=$lt_FGREP
16721
16722 # A BSD- or MS-compatible name lister.
16723 NM=$lt_NM
16724
16725 # Whether we need soft or hard links.
16726 LN_S=$lt_LN_S
16727
16728 # What is the maximum length of a command?
16729 max_cmd_len=$max_cmd_len
16730
16731 # Object file suffix (normally "o").
16732 objext=$ac_objext
16733
16734 # Executable file suffix (normally "").
16735 exeext=$exeext
16736
16737 # whether the shell understands "unset".
16738 lt_unset=$lt_unset
16739
16740 # turn spaces into newlines.
16741 SP2NL=$lt_lt_SP2NL
16742
16743 # turn newlines into spaces.
16744 NL2SP=$lt_lt_NL2SP
16745
16746 # convert \$build file names to \$host format.
16747 to_host_file_cmd=$lt_cv_to_host_file_cmd
16748
16749 # convert \$build files to toolchain format.
16750 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16751
16752 # An object symbol dumper.
16753 OBJDUMP=$lt_OBJDUMP
16754
16755 # Method to check whether dependent libraries are shared objects.
16756 deplibs_check_method=$lt_deplibs_check_method
16757
16758 # Command to use when deplibs_check_method = "file_magic".
16759 file_magic_cmd=$lt_file_magic_cmd
16760
16761 # How to find potential files when deplibs_check_method = "file_magic".
16762 file_magic_glob=$lt_file_magic_glob
16763
16764 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16765 want_nocaseglob=$lt_want_nocaseglob
16766
16767 # DLL creation program.
16768 DLLTOOL=$lt_DLLTOOL
16769
16770 # Command to associate shared and link libraries.
16771 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16772
16773 # The archiver.
16774 AR=$lt_AR
16775
16776 # Flags to create an archive.
16777 AR_FLAGS=$lt_AR_FLAGS
16778
16779 # How to feed a file listing to the archiver.
16780 archiver_list_spec=$lt_archiver_list_spec
16781
16782 # A symbol stripping program.
16783 STRIP=$lt_STRIP
16784
16785 # Commands used to install an old-style archive.
16786 RANLIB=$lt_RANLIB
16787 old_postinstall_cmds=$lt_old_postinstall_cmds
16788 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16789
16790 # Whether to use a lock for old archive extraction.
16791 lock_old_archive_extraction=$lock_old_archive_extraction
16792
16793 # A C compiler.
16794 LTCC=$lt_CC
16795
16796 # LTCC compiler flags.
16797 LTCFLAGS=$lt_CFLAGS
16798
16799 # Take the output of nm and produce a listing of raw symbols and C names.
16800 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16801
16802 # Transform the output of nm in a proper C declaration.
16803 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16804
16805 # Transform the output of nm in a C name address pair.
16806 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16807
16808 # Transform the output of nm in a C name address pair when lib prefix is needed.
16809 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16810
16811 # Specify filename containing input files for \$NM.
16812 nm_file_list_spec=$lt_nm_file_list_spec
16813
16814 # The root where to search for dependent libraries,and in which our libraries should be installed.
16815 lt_sysroot=$lt_sysroot
16816
16817 # The name of the directory that contains temporary libtool files.
16818 objdir=$objdir
16819
16820 # Used to examine libraries when file_magic_cmd begins with "file".
16821 MAGIC_CMD=$MAGIC_CMD
16822
16823 # Must we lock files when doing compilation?
16824 need_locks=$lt_need_locks
16825
16826 # Manifest tool.
16827 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16828
16829 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16830 DSYMUTIL=$lt_DSYMUTIL
16831
16832 # Tool to change global to local symbols on Mac OS X.
16833 NMEDIT=$lt_NMEDIT
16834
16835 # Tool to manipulate fat objects and archives on Mac OS X.
16836 LIPO=$lt_LIPO
16837
16838 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16839 OTOOL=$lt_OTOOL
16840
16841 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16842 OTOOL64=$lt_OTOOL64
16843
16844 # Old archive suffix (normally "a").
16845 libext=$libext
16846
16847 # Shared library suffix (normally ".so").
16848 shrext_cmds=$lt_shrext_cmds
16849
16850 # The commands to extract the exported symbol list from a shared archive.
16851 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16852
16853 # Variables whose values should be saved in libtool wrapper scripts and
16854 # restored at link time.
16855 variables_saved_for_relink=$lt_variables_saved_for_relink
16856
16857 # Do we need the "lib" prefix for modules?
16858 need_lib_prefix=$need_lib_prefix
16859
16860 # Do we need a version for libraries?
16861 need_version=$need_version
16862
16863 # Library versioning type.
16864 version_type=$version_type
16865
16866 # Shared library runtime path variable.
16867 runpath_var=$runpath_var
16868
16869 # Shared library path variable.
16870 shlibpath_var=$shlibpath_var
16871
16872 # Is shlibpath searched before the hard-coded library search path?
16873 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16874
16875 # Format of library name prefix.
16876 libname_spec=$lt_libname_spec
16877
16878 # List of archive names.  First name is the real one, the rest are links.
16879 # The last name is the one that the linker finds with -lNAME
16880 library_names_spec=$lt_library_names_spec
16881
16882 # The coded name of the library, if different from the real name.
16883 soname_spec=$lt_soname_spec
16884
16885 # Permission mode override for installation of shared libraries.
16886 install_override_mode=$lt_install_override_mode
16887
16888 # Command to use after installation of a shared archive.
16889 postinstall_cmds=$lt_postinstall_cmds
16890
16891 # Command to use after uninstallation of a shared archive.
16892 postuninstall_cmds=$lt_postuninstall_cmds
16893
16894 # Commands used to finish a libtool library installation in a directory.
16895 finish_cmds=$lt_finish_cmds
16896
16897 # As "finish_cmds", except a single script fragment to be evaled but
16898 # not shown.
16899 finish_eval=$lt_finish_eval
16900
16901 # Whether we should hardcode library paths into libraries.
16902 hardcode_into_libs=$hardcode_into_libs
16903
16904 # Compile-time system search path for libraries.
16905 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16906
16907 # Run-time system search path for libraries.
16908 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16909
16910 # Whether dlopen is supported.
16911 dlopen_support=$enable_dlopen
16912
16913 # Whether dlopen of programs is supported.
16914 dlopen_self=$enable_dlopen_self
16915
16916 # Whether dlopen of statically linked programs is supported.
16917 dlopen_self_static=$enable_dlopen_self_static
16918
16919 # Commands to strip libraries.
16920 old_striplib=$lt_old_striplib
16921 striplib=$lt_striplib
16922
16923
16924 # The linker used to build libraries.
16925 LD=$lt_LD
16926
16927 # How to create reloadable object files.
16928 reload_flag=$lt_reload_flag
16929 reload_cmds=$lt_reload_cmds
16930
16931 # Commands used to build an old-style archive.
16932 old_archive_cmds=$lt_old_archive_cmds
16933
16934 # A language specific compiler.
16935 CC=$lt_compiler
16936
16937 # Is the compiler the GNU compiler?
16938 with_gcc=$GCC
16939
16940 # Compiler flag to turn off builtin functions.
16941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16942
16943 # Additional compiler flags for building library objects.
16944 pic_flag=$lt_lt_prog_compiler_pic
16945
16946 # How to pass a linker flag through the compiler.
16947 wl=$lt_lt_prog_compiler_wl
16948
16949 # Compiler flag to prevent dynamic linking.
16950 link_static_flag=$lt_lt_prog_compiler_static
16951
16952 # Does compiler simultaneously support -c and -o options?
16953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16954
16955 # Whether or not to add -lc for building shared libraries.
16956 build_libtool_need_lc=$archive_cmds_need_lc
16957
16958 # Whether or not to disallow shared libs when runtime libs are static.
16959 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16960
16961 # Compiler flag to allow reflexive dlopens.
16962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16963
16964 # Compiler flag to generate shared objects directly from archives.
16965 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16966
16967 # Whether the compiler copes with passing no objects directly.
16968 compiler_needs_object=$lt_compiler_needs_object
16969
16970 # Create an old-style archive from a shared archive.
16971 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16972
16973 # Create a temporary old-style archive to link instead of a shared archive.
16974 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16975
16976 # Commands used to build a shared archive.
16977 archive_cmds=$lt_archive_cmds
16978 archive_expsym_cmds=$lt_archive_expsym_cmds
16979
16980 # Commands used to build a loadable module if different from building
16981 # a shared archive.
16982 module_cmds=$lt_module_cmds
16983 module_expsym_cmds=$lt_module_expsym_cmds
16984
16985 # Whether we are building with GNU ld or not.
16986 with_gnu_ld=$lt_with_gnu_ld
16987
16988 # Flag that allows shared libraries with undefined symbols to be built.
16989 allow_undefined_flag=$lt_allow_undefined_flag
16990
16991 # Flag that enforces no undefined symbols.
16992 no_undefined_flag=$lt_no_undefined_flag
16993
16994 # Flag to hardcode \$libdir into a binary during linking.
16995 # This must work even if \$libdir does not exist
16996 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16997
16998 # If ld is used when linking, flag to hardcode \$libdir into a binary
16999 # during linking.  This must work even if \$libdir does not exist.
17000 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17001
17002 # Whether we need a single "-rpath" flag with a separated argument.
17003 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17004
17005 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17006 # DIR into the resulting binary.
17007 hardcode_direct=$hardcode_direct
17008
17009 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17010 # DIR into the resulting binary and the resulting library dependency is
17011 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17012 # library is relocated.
17013 hardcode_direct_absolute=$hardcode_direct_absolute
17014
17015 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17016 # into the resulting binary.
17017 hardcode_minus_L=$hardcode_minus_L
17018
17019 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17020 # into the resulting binary.
17021 hardcode_shlibpath_var=$hardcode_shlibpath_var
17022
17023 # Set to "yes" if building a shared library automatically hardcodes DIR
17024 # into the library and all subsequent libraries and executables linked
17025 # against it.
17026 hardcode_automatic=$hardcode_automatic
17027
17028 # Set to yes if linker adds runtime paths of dependent libraries
17029 # to runtime path list.
17030 inherit_rpath=$inherit_rpath
17031
17032 # Whether libtool must link a program against all its dependency libraries.
17033 link_all_deplibs=$link_all_deplibs
17034
17035 # Set to "yes" if exported symbols are required.
17036 always_export_symbols=$always_export_symbols
17037
17038 # The commands to list exported symbols.
17039 export_symbols_cmds=$lt_export_symbols_cmds
17040
17041 # Symbols that should not be listed in the preloaded symbols.
17042 exclude_expsyms=$lt_exclude_expsyms
17043
17044 # Symbols that must always be exported.
17045 include_expsyms=$lt_include_expsyms
17046
17047 # Commands necessary for linking programs (against libraries) with templates.
17048 prelink_cmds=$lt_prelink_cmds
17049
17050 # Commands necessary for finishing linking programs.
17051 postlink_cmds=$lt_postlink_cmds
17052
17053 # Specify filename containing input files.
17054 file_list_spec=$lt_file_list_spec
17055
17056 # How to hardcode a shared library path into an executable.
17057 hardcode_action=$hardcode_action
17058
17059 # ### END LIBTOOL CONFIG
17060
17061 _LT_EOF
17062
17063   case $host_os in
17064   aix3*)
17065     cat <<\_LT_EOF >> "$cfgfile"
17066 # AIX sometimes has problems with the GCC collect2 program.  For some
17067 # reason, if we set the COLLECT_NAMES environment variable, the problems
17068 # vanish in a puff of smoke.
17069 if test "X${COLLECT_NAMES+set}" != Xset; then
17070   COLLECT_NAMES=
17071   export COLLECT_NAMES
17072 fi
17073 _LT_EOF
17074     ;;
17075   esac
17076
17077
17078 ltmain="$ac_aux_dir/ltmain.sh"
17079
17080
17081   # We use sed instead of cat because bash on DJGPP gets confused if
17082   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17083   # text mode, it properly converts lines to CR/LF.  This bash problem
17084   # is reportedly fixed, but why not run on old versions too?
17085   sed '$q' "$ltmain" >> "$cfgfile" \
17086      || (rm -f "$cfgfile"; exit 1)
17087
17088   if test x"$xsi_shell" = xyes; then
17089   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17090 func_dirname ()\
17091 {\
17092 \    case ${1} in\
17093 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17094 \      *  ) func_dirname_result="${3}" ;;\
17095 \    esac\
17096 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17097   && mv -f "$cfgfile.tmp" "$cfgfile" \
17098     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17099 test 0 -eq $? || _lt_function_replace_fail=:
17100
17101
17102   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17103 func_basename ()\
17104 {\
17105 \    func_basename_result="${1##*/}"\
17106 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17107   && mv -f "$cfgfile.tmp" "$cfgfile" \
17108     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17109 test 0 -eq $? || _lt_function_replace_fail=:
17110
17111
17112   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17113 func_dirname_and_basename ()\
17114 {\
17115 \    case ${1} in\
17116 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17117 \      *  ) func_dirname_result="${3}" ;;\
17118 \    esac\
17119 \    func_basename_result="${1##*/}"\
17120 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17121   && mv -f "$cfgfile.tmp" "$cfgfile" \
17122     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17123 test 0 -eq $? || _lt_function_replace_fail=:
17124
17125
17126   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17127 func_stripname ()\
17128 {\
17129 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17130 \    # positional parameters, so assign one to ordinary parameter first.\
17131 \    func_stripname_result=${3}\
17132 \    func_stripname_result=${func_stripname_result#"${1}"}\
17133 \    func_stripname_result=${func_stripname_result%"${2}"}\
17134 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17135   && mv -f "$cfgfile.tmp" "$cfgfile" \
17136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17137 test 0 -eq $? || _lt_function_replace_fail=:
17138
17139
17140   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17141 func_split_long_opt ()\
17142 {\
17143 \    func_split_long_opt_name=${1%%=*}\
17144 \    func_split_long_opt_arg=${1#*=}\
17145 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17146   && mv -f "$cfgfile.tmp" "$cfgfile" \
17147     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17148 test 0 -eq $? || _lt_function_replace_fail=:
17149
17150
17151   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17152 func_split_short_opt ()\
17153 {\
17154 \    func_split_short_opt_arg=${1#??}\
17155 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17156 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17157   && mv -f "$cfgfile.tmp" "$cfgfile" \
17158     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17159 test 0 -eq $? || _lt_function_replace_fail=:
17160
17161
17162   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17163 func_lo2o ()\
17164 {\
17165 \    case ${1} in\
17166 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17167 \      *)    func_lo2o_result=${1} ;;\
17168 \    esac\
17169 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17170   && mv -f "$cfgfile.tmp" "$cfgfile" \
17171     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17172 test 0 -eq $? || _lt_function_replace_fail=:
17173
17174
17175   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17176 func_xform ()\
17177 {\
17178     func_xform_result=${1%.*}.lo\
17179 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17180   && mv -f "$cfgfile.tmp" "$cfgfile" \
17181     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17182 test 0 -eq $? || _lt_function_replace_fail=:
17183
17184
17185   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17186 func_arith ()\
17187 {\
17188     func_arith_result=$(( $* ))\
17189 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17190   && mv -f "$cfgfile.tmp" "$cfgfile" \
17191     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17192 test 0 -eq $? || _lt_function_replace_fail=:
17193
17194
17195   sed -e '/^func_len ()$/,/^} # func_len /c\
17196 func_len ()\
17197 {\
17198     func_len_result=${#1}\
17199 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17200   && mv -f "$cfgfile.tmp" "$cfgfile" \
17201     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17202 test 0 -eq $? || _lt_function_replace_fail=:
17203
17204 fi
17205
17206 if test x"$lt_shell_append" = xyes; then
17207   sed -e '/^func_append ()$/,/^} # func_append /c\
17208 func_append ()\
17209 {\
17210     eval "${1}+=\\${2}"\
17211 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17212   && mv -f "$cfgfile.tmp" "$cfgfile" \
17213     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17214 test 0 -eq $? || _lt_function_replace_fail=:
17215
17216
17217   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17218 func_append_quoted ()\
17219 {\
17220 \    func_quote_for_eval "${2}"\
17221 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17222 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17223   && mv -f "$cfgfile.tmp" "$cfgfile" \
17224     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17225 test 0 -eq $? || _lt_function_replace_fail=:
17226
17227
17228   # Save a `func_append' function call where possible by direct use of '+='
17229   sed -e 's%func_append \([a-zA-Z_]\{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 else
17234   # Save a `func_append' function call even when '+=' is not available
17235   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17236     && mv -f "$cfgfile.tmp" "$cfgfile" \
17237       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17238   test 0 -eq $? || _lt_function_replace_fail=:
17239 fi
17240
17241 if test x"$_lt_function_replace_fail" = x":"; then
17242   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17243 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17244 fi
17245
17246
17247    mv -f "$cfgfile" "$ofile" ||
17248     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17249   chmod +x "$ofile"
17250
17251  ;;
17252     "include":C) test -d include || mkdir include ;;
17253     "src":C)
17254 test -d src || mkdir src
17255 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17256  ;;
17257
17258   esac
17259 done # for ac_tag
17260
17261
17262 as_fn_exit 0
17263 _ACEOF
17264 ac_clean_files=$ac_clean_files_save
17265
17266 test $ac_write_fail = 0 ||
17267   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17268
17269
17270 # configure is writing to config.log, and then calls config.status.
17271 # config.status does its own redirection, appending to config.log.
17272 # Unfortunately, on DOS this fails, as config.log is still kept open
17273 # by configure, so config.status won't be able to write to it; its
17274 # output is simply discarded.  So we exec the FD to /dev/null,
17275 # effectively closing config.log, so it can be properly (re)opened and
17276 # appended to by config.status.  When coming back to configure, we
17277 # need to make the FD available again.
17278 if test "$no_create" != yes; then
17279   ac_cs_success=:
17280   ac_config_status_args=
17281   test "$silent" = yes &&
17282     ac_config_status_args="$ac_config_status_args --quiet"
17283   exec 5>/dev/null
17284   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17285   exec 5>>config.log
17286   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17287   # would make configure fail if this is the last instruction.
17288   $ac_cs_success || as_fn_exit 1
17289 fi
17290 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17291   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17292 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17293 fi
17294