OSDN Git Service

2009-12-26 Andreas Tobler <a.tobler@schweiz.org>
[pf3gnuchains/gcc-fork.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libffi 3.0.8.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
175   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
176     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
177     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     PATH=/empty FPATH=/empty; export PATH FPATH
180     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
181       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
182 test \$(( 1 + 1 )) = 2 || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org and
240 $0: http://gcc.gnu.org/bugs.html about your system,
241 $0: including any error possibly output before this
242 $0: message. Then install a modern shell, or manually run
243 $0: the script under such a shell if you do have one."
244   fi
245   exit 1
246 fi
247 fi
248 fi
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
254
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
262 {
263   { eval $1=; unset $1;}
264 }
265 as_unset=as_fn_unset
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272   return $1
273 } # as_fn_set_status
274
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
279 {
280   set +e
281   as_fn_set_status $1
282   exit $1
283 } # as_fn_exit
284
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
289 {
290
291   case $as_dir in #(
292   -*) as_dir=./$as_dir;;
293   esac
294   test -d "$as_dir" || eval $as_mkdir_p || {
295     as_dirs=
296     while :; do
297       case $as_dir in #(
298       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299       *) as_qdir=$as_dir;;
300       esac
301       as_dirs="'$as_qdir' $as_dirs"
302       as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304          X"$as_dir" : 'X\(//\)[^/]' \| \
305          X"$as_dir" : 'X\(//\)$' \| \
306          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\/\)[^/].*/{
313             s//\1/
314             q
315           }
316           /^X\(\/\/\)$/{
317             s//\1/
318             q
319           }
320           /^X\(\/\).*/{
321             s//\1/
322             q
323           }
324           s/.*/./; q'`
325       test -d "$as_dir" && break
326     done
327     test -z "$as_dirs" || eval "mkdir $as_dirs"
328   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339   eval 'as_fn_append ()
340   {
341     eval $1+=\$2
342   }'
343 else
344   as_fn_append ()
345   {
346     eval $1=\$$1\$2
347   }
348 fi # as_fn_append
349
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356   eval 'as_fn_arith ()
357   {
358     as_val=$(( $* ))
359   }'
360 else
361   as_fn_arith ()
362   {
363     as_val=`expr "$@" || test $? -eq 1`
364   }
365 fi # as_fn_arith
366
367
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
374 {
375   as_status=$?; test $as_status -eq 0 && as_status=1
376   if test "$3"; then
377     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379   fi
380   $as_echo "$as_me: error: $1" >&2
381   as_fn_exit $as_status
382 } # as_fn_error
383
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385    test "X`expr 00001 : '.*\(...\)'`" = X001; then
386   as_expr=expr
387 else
388   as_expr=false
389 fi
390
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392   as_basename=basename
393 else
394   as_basename=false
395 fi
396
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398   as_dirname=dirname
399 else
400   as_dirname=false
401 fi
402
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405          X"$0" : 'X\(//\)$' \| \
406          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408     sed '/^.*\/\([^/][^/]*\)\/*$/{
409             s//\1/
410             q
411           }
412           /^X\/\(\/\/\)$/{
413             s//\1/
414             q
415           }
416           /^X\/\(\/\).*/{
417             s//\1/
418             q
419           }
420           s/.*/./; q'`
421
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430   as_lineno_1=$LINENO as_lineno_1a=$LINENO
431   as_lineno_2=$LINENO as_lineno_2a=$LINENO
432   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464   case `echo 'xy\c'` in
465   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
466   xy)  ECHO_C='\c';;
467   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
468        ECHO_T=' ';;
469   esac;;
470 *)
471   ECHO_N='-n';;
472 esac
473
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476   rm -f conf$$.dir/conf$$.file
477 else
478   rm -f conf$$.dir
479   mkdir conf$$.dir 2>/dev/null
480 fi
481 if (echo >conf$$.file) 2>/dev/null; then
482   if ln -s conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s='ln -s'
484     # ... but there are two gotchas:
485     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487     # In both cases, we have to default to `cp -p'.
488     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489       as_ln_s='cp -p'
490   elif ln conf$$.file conf$$ 2>/dev/null; then
491     as_ln_s=ln
492   else
493     as_ln_s='cp -p'
494   fi
495 else
496   as_ln_s='cp -p'
497 fi
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
500
501 if mkdir -p . 2>/dev/null; then
502   as_mkdir_p='mkdir -p "$as_dir"'
503 else
504   test -d ./-p && rmdir ./-p
505   as_mkdir_p=false
506 fi
507
508 if test -x / >/dev/null 2>&1; then
509   as_test_x='test -x'
510 else
511   if ls -dL / >/dev/null 2>&1; then
512     as_ls_L_option=L
513   else
514     as_ls_L_option=
515   fi
516   as_test_x='
517     eval sh -c '\''
518       if test -d "$1"; then
519         test -d "$1/.";
520       else
521         case $1 in #(
522         -*)set "./$1";;
523         esac;
524         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525         ???[sx]*):;;*)false;;esac;fi
526     '\'' sh
527   '
528 fi
529 as_executable_p=$as_test_x
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='libffi'
561 PACKAGE_TARNAME='libffi'
562 PACKAGE_VERSION='3.0.8'
563 PACKAGE_STRING='libffi 3.0.8'
564 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
565 PACKAGE_URL=''
566
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 #  include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 #  include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 toolexeclibdir
608 toolexecdir
609 TARGETDIR
610 TARGET
611 HAVE_LONG_DOUBLE
612 ALLOCA
613 PA64_HPUX_FALSE
614 PA64_HPUX_TRUE
615 PA_HPUX_FALSE
616 PA_HPUX_TRUE
617 PA_LINUX_FALSE
618 PA_LINUX_TRUE
619 SH64_FALSE
620 SH64_TRUE
621 SH_FALSE
622 SH_TRUE
623 X86_64_FALSE
624 X86_64_TRUE
625 S390_FALSE
626 S390_TRUE
627 FRV_FALSE
628 FRV_TRUE
629 LIBFFI_CRIS_FALSE
630 LIBFFI_CRIS_TRUE
631 AVR32_FALSE
632 AVR32_TRUE
633 ARM_FALSE
634 ARM_TRUE
635 POWERPC_FREEBSD_FALSE
636 POWERPC_FREEBSD_TRUE
637 POWERPC_DARWIN_FALSE
638 POWERPC_DARWIN_TRUE
639 POWERPC_AIX_FALSE
640 POWERPC_AIX_TRUE
641 POWERPC_FALSE
642 POWERPC_TRUE
643 M68K_FALSE
644 M68K_TRUE
645 M32R_FALSE
646 M32R_TRUE
647 IA64_FALSE
648 IA64_TRUE
649 ALPHA_FALSE
650 ALPHA_TRUE
651 X86_DARWIN_FALSE
652 X86_DARWIN_TRUE
653 X86_WIN64_FALSE
654 X86_WIN64_TRUE
655 X86_WIN32_FALSE
656 X86_WIN32_TRUE
657 X86_FREEBSD_FALSE
658 X86_FREEBSD_TRUE
659 X86_FALSE
660 X86_TRUE
661 SPARC_FALSE
662 SPARC_TRUE
663 MIPS_FALSE
664 MIPS_TRUE
665 AM_RUNTESTFLAGS
666 TESTSUBDIR_FALSE
667 TESTSUBDIR_TRUE
668 MAINT
669 MAINTAINER_MODE_FALSE
670 MAINTAINER_MODE_TRUE
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 RANLIB
678 AR
679 OBJDUMP
680 LN_S
681 NM
682 ac_ct_DUMPBIN
683 DUMPBIN
684 LD
685 FGREP
686 EGREP
687 GREP
688 SED
689 LIBTOOL
690 am__fastdepCCAS_FALSE
691 am__fastdepCCAS_TRUE
692 CCASDEPMODE
693 CCASFLAGS
694 CCAS
695 am__fastdepCC_FALSE
696 am__fastdepCC_TRUE
697 CCDEPMODE
698 AMDEPBACKSLASH
699 AMDEP_FALSE
700 AMDEP_TRUE
701 am__quote
702 am__include
703 DEPDIR
704 OBJEXT
705 EXEEXT
706 ac_ct_CC
707 CPPFLAGS
708 LDFLAGS
709 CFLAGS
710 CC
711 am__untar
712 am__tar
713 AMTAR
714 am__leading_dot
715 SET_MAKE
716 AWK
717 mkdir_p
718 MKDIR_P
719 INSTALL_STRIP_PROGRAM
720 STRIP
721 install_sh
722 MAKEINFO
723 AUTOHEADER
724 AUTOMAKE
725 AUTOCONF
726 ACLOCAL
727 VERSION
728 PACKAGE
729 CYGPATH_W
730 am__isrc
731 INSTALL_DATA
732 INSTALL_SCRIPT
733 INSTALL_PROGRAM
734 target_os
735 target_vendor
736 target_cpu
737 target
738 host_os
739 host_vendor
740 host_cpu
741 host
742 build_os
743 build_vendor
744 build_cpu
745 build
746 multi_basedir
747 target_alias
748 host_alias
749 build_alias
750 LIBS
751 ECHO_T
752 ECHO_N
753 ECHO_C
754 DEFS
755 mandir
756 localedir
757 libdir
758 psdir
759 pdfdir
760 dvidir
761 htmldir
762 infodir
763 docdir
764 oldincludedir
765 includedir
766 localstatedir
767 sharedstatedir
768 sysconfdir
769 datadir
770 datarootdir
771 libexecdir
772 sbindir
773 bindir
774 program_transform_name
775 prefix
776 exec_prefix
777 PACKAGE_URL
778 PACKAGE_BUGREPORT
779 PACKAGE_STRING
780 PACKAGE_VERSION
781 PACKAGE_TARNAME
782 PACKAGE_NAME
783 PATH_SEPARATOR
784 SHELL'
785 ac_subst_files=''
786 ac_user_opts='
787 enable_option_checking
788 enable_multilib
789 enable_dependency_tracking
790 enable_shared
791 enable_static
792 with_pic
793 enable_fast_install
794 with_gnu_ld
795 enable_libtool_lock
796 enable_maintainer_mode
797 enable_debug
798 enable_structs
799 enable_raw_api
800 enable_purify_safety
801 '
802       ac_precious_vars='build_alias
803 host_alias
804 target_alias
805 CCAS
806 CCASFLAGS
807 CPP
808 CPPFLAGS'
809
810
811 # Initialize some variables set by options.
812 ac_init_help=
813 ac_init_version=false
814 ac_unrecognized_opts=
815 ac_unrecognized_sep=
816 # The variables have the same names as the options, with
817 # dashes changed to underlines.
818 cache_file=/dev/null
819 exec_prefix=NONE
820 no_create=
821 no_recursion=
822 prefix=NONE
823 program_prefix=NONE
824 program_suffix=NONE
825 program_transform_name=s,x,x,
826 silent=
827 site=
828 srcdir=
829 verbose=
830 x_includes=NONE
831 x_libraries=NONE
832
833 # Installation directory options.
834 # These are left unexpanded so users can "make install exec_prefix=/foo"
835 # and all the variables that are supposed to be based on exec_prefix
836 # by default will actually change.
837 # Use braces instead of parens because sh, perl, etc. also accept them.
838 # (The list follows the same order as the GNU Coding Standards.)
839 bindir='${exec_prefix}/bin'
840 sbindir='${exec_prefix}/sbin'
841 libexecdir='${exec_prefix}/libexec'
842 datarootdir='${prefix}/share'
843 datadir='${datarootdir}'
844 sysconfdir='${prefix}/etc'
845 sharedstatedir='${prefix}/com'
846 localstatedir='${prefix}/var'
847 includedir='${prefix}/include'
848 oldincludedir='/usr/include'
849 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
850 infodir='${datarootdir}/info'
851 htmldir='${docdir}'
852 dvidir='${docdir}'
853 pdfdir='${docdir}'
854 psdir='${docdir}'
855 libdir='${exec_prefix}/lib'
856 localedir='${datarootdir}/locale'
857 mandir='${datarootdir}/man'
858
859 ac_prev=
860 ac_dashdash=
861 for ac_option
862 do
863   # If the previous option needs an argument, assign it.
864   if test -n "$ac_prev"; then
865     eval $ac_prev=\$ac_option
866     ac_prev=
867     continue
868   fi
869
870   case $ac_option in
871   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
872   *)    ac_optarg=yes ;;
873   esac
874
875   # Accept the important Cygnus configure options, so we can diagnose typos.
876
877   case $ac_dashdash$ac_option in
878   --)
879     ac_dashdash=yes ;;
880
881   -bindir | --bindir | --bindi | --bind | --bin | --bi)
882     ac_prev=bindir ;;
883   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884     bindir=$ac_optarg ;;
885
886   -build | --build | --buil | --bui | --bu)
887     ac_prev=build_alias ;;
888   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889     build_alias=$ac_optarg ;;
890
891   -cache-file | --cache-file | --cache-fil | --cache-fi \
892   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893     ac_prev=cache_file ;;
894   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896     cache_file=$ac_optarg ;;
897
898   --config-cache | -C)
899     cache_file=config.cache ;;
900
901   -datadir | --datadir | --datadi | --datad)
902     ac_prev=datadir ;;
903   -datadir=* | --datadir=* | --datadi=* | --datad=*)
904     datadir=$ac_optarg ;;
905
906   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907   | --dataroo | --dataro | --datar)
908     ac_prev=datarootdir ;;
909   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911     datarootdir=$ac_optarg ;;
912
913   -disable-* | --disable-*)
914     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915     # Reject names that are not valid shell variable names.
916     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
917       as_fn_error "invalid feature name: $ac_useropt"
918     ac_useropt_orig=$ac_useropt
919     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920     case $ac_user_opts in
921       *"
922 "enable_$ac_useropt"
923 "*) ;;
924       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925          ac_unrecognized_sep=', ';;
926     esac
927     eval enable_$ac_useropt=no ;;
928
929   -docdir | --docdir | --docdi | --doc | --do)
930     ac_prev=docdir ;;
931   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
932     docdir=$ac_optarg ;;
933
934   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935     ac_prev=dvidir ;;
936   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
937     dvidir=$ac_optarg ;;
938
939   -enable-* | --enable-*)
940     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941     # Reject names that are not valid shell variable names.
942     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943       as_fn_error "invalid feature name: $ac_useropt"
944     ac_useropt_orig=$ac_useropt
945     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946     case $ac_user_opts in
947       *"
948 "enable_$ac_useropt"
949 "*) ;;
950       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951          ac_unrecognized_sep=', ';;
952     esac
953     eval enable_$ac_useropt=\$ac_optarg ;;
954
955   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957   | --exec | --exe | --ex)
958     ac_prev=exec_prefix ;;
959   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961   | --exec=* | --exe=* | --ex=*)
962     exec_prefix=$ac_optarg ;;
963
964   -gas | --gas | --ga | --g)
965     # Obsolete; use --with-gas.
966     with_gas=yes ;;
967
968   -help | --help | --hel | --he | -h)
969     ac_init_help=long ;;
970   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
971     ac_init_help=recursive ;;
972   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
973     ac_init_help=short ;;
974
975   -host | --host | --hos | --ho)
976     ac_prev=host_alias ;;
977   -host=* | --host=* | --hos=* | --ho=*)
978     host_alias=$ac_optarg ;;
979
980   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981     ac_prev=htmldir ;;
982   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983   | --ht=*)
984     htmldir=$ac_optarg ;;
985
986   -includedir | --includedir | --includedi | --included | --include \
987   | --includ | --inclu | --incl | --inc)
988     ac_prev=includedir ;;
989   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990   | --includ=* | --inclu=* | --incl=* | --inc=*)
991     includedir=$ac_optarg ;;
992
993   -infodir | --infodir | --infodi | --infod | --info | --inf)
994     ac_prev=infodir ;;
995   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996     infodir=$ac_optarg ;;
997
998   -libdir | --libdir | --libdi | --libd)
999     ac_prev=libdir ;;
1000   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001     libdir=$ac_optarg ;;
1002
1003   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004   | --libexe | --libex | --libe)
1005     ac_prev=libexecdir ;;
1006   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007   | --libexe=* | --libex=* | --libe=*)
1008     libexecdir=$ac_optarg ;;
1009
1010   -localedir | --localedir | --localedi | --localed | --locale)
1011     ac_prev=localedir ;;
1012   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013     localedir=$ac_optarg ;;
1014
1015   -localstatedir | --localstatedir | --localstatedi | --localstated \
1016   | --localstate | --localstat | --localsta | --localst | --locals)
1017     ac_prev=localstatedir ;;
1018   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020     localstatedir=$ac_optarg ;;
1021
1022   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023     ac_prev=mandir ;;
1024   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025     mandir=$ac_optarg ;;
1026
1027   -nfp | --nfp | --nf)
1028     # Obsolete; use --without-fp.
1029     with_fp=no ;;
1030
1031   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032   | --no-cr | --no-c | -n)
1033     no_create=yes ;;
1034
1035   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1037     no_recursion=yes ;;
1038
1039   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041   | --oldin | --oldi | --old | --ol | --o)
1042     ac_prev=oldincludedir ;;
1043   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046     oldincludedir=$ac_optarg ;;
1047
1048   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049     ac_prev=prefix ;;
1050   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051     prefix=$ac_optarg ;;
1052
1053   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054   | --program-pre | --program-pr | --program-p)
1055     ac_prev=program_prefix ;;
1056   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058     program_prefix=$ac_optarg ;;
1059
1060   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061   | --program-suf | --program-su | --program-s)
1062     ac_prev=program_suffix ;;
1063   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065     program_suffix=$ac_optarg ;;
1066
1067   -program-transform-name | --program-transform-name \
1068   | --program-transform-nam | --program-transform-na \
1069   | --program-transform-n | --program-transform- \
1070   | --program-transform | --program-transfor \
1071   | --program-transfo | --program-transf \
1072   | --program-trans | --program-tran \
1073   | --progr-tra | --program-tr | --program-t)
1074     ac_prev=program_transform_name ;;
1075   -program-transform-name=* | --program-transform-name=* \
1076   | --program-transform-nam=* | --program-transform-na=* \
1077   | --program-transform-n=* | --program-transform-=* \
1078   | --program-transform=* | --program-transfor=* \
1079   | --program-transfo=* | --program-transf=* \
1080   | --program-trans=* | --program-tran=* \
1081   | --progr-tra=* | --program-tr=* | --program-t=*)
1082     program_transform_name=$ac_optarg ;;
1083
1084   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085     ac_prev=pdfdir ;;
1086   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087     pdfdir=$ac_optarg ;;
1088
1089   -psdir | --psdir | --psdi | --psd | --ps)
1090     ac_prev=psdir ;;
1091   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1092     psdir=$ac_optarg ;;
1093
1094   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095   | -silent | --silent | --silen | --sile | --sil)
1096     silent=yes ;;
1097
1098   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099     ac_prev=sbindir ;;
1100   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101   | --sbi=* | --sb=*)
1102     sbindir=$ac_optarg ;;
1103
1104   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106   | --sharedst | --shareds | --shared | --share | --shar \
1107   | --sha | --sh)
1108     ac_prev=sharedstatedir ;;
1109   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112   | --sha=* | --sh=*)
1113     sharedstatedir=$ac_optarg ;;
1114
1115   -site | --site | --sit)
1116     ac_prev=site ;;
1117   -site=* | --site=* | --sit=*)
1118     site=$ac_optarg ;;
1119
1120   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121     ac_prev=srcdir ;;
1122   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123     srcdir=$ac_optarg ;;
1124
1125   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126   | --syscon | --sysco | --sysc | --sys | --sy)
1127     ac_prev=sysconfdir ;;
1128   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130     sysconfdir=$ac_optarg ;;
1131
1132   -target | --target | --targe | --targ | --tar | --ta | --t)
1133     ac_prev=target_alias ;;
1134   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135     target_alias=$ac_optarg ;;
1136
1137   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1138     verbose=yes ;;
1139
1140   -version | --version | --versio | --versi | --vers | -V)
1141     ac_init_version=: ;;
1142
1143   -with-* | --with-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error "invalid package name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "with_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval with_$ac_useropt=\$ac_optarg ;;
1158
1159   -without-* | --without-*)
1160     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1163       as_fn_error "invalid package name: $ac_useropt"
1164     ac_useropt_orig=$ac_useropt
1165     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166     case $ac_user_opts in
1167       *"
1168 "with_$ac_useropt"
1169 "*) ;;
1170       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171          ac_unrecognized_sep=', ';;
1172     esac
1173     eval with_$ac_useropt=no ;;
1174
1175   --x)
1176     # Obsolete; use --with-x.
1177     with_x=yes ;;
1178
1179   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180   | --x-incl | --x-inc | --x-in | --x-i)
1181     ac_prev=x_includes ;;
1182   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184     x_includes=$ac_optarg ;;
1185
1186   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188     ac_prev=x_libraries ;;
1189   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191     x_libraries=$ac_optarg ;;
1192
1193   -*) as_fn_error "unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information."
1195     ;;
1196
1197   *=*)
1198     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1199     # Reject names that are not valid shell variable names.
1200     case $ac_envvar in #(
1201       '' | [0-9]* | *[!_$as_cr_alnum]* )
1202       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1203     esac
1204     eval $ac_envvar=\$ac_optarg
1205     export $ac_envvar ;;
1206
1207   *)
1208     # FIXME: should be removed in autoconf 3.0.
1209     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1211       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1213     ;;
1214
1215   esac
1216 done
1217
1218 if test -n "$ac_prev"; then
1219   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1220   as_fn_error "missing argument to $ac_option"
1221 fi
1222
1223 if test -n "$ac_unrecognized_opts"; then
1224   case $enable_option_checking in
1225     no) ;;
1226     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1227     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1228   esac
1229 fi
1230
1231 # Check all directory arguments for consistency.
1232 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233                 datadir sysconfdir sharedstatedir localstatedir includedir \
1234                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235                 libdir localedir mandir
1236 do
1237   eval ac_val=\$$ac_var
1238   # Remove trailing slashes.
1239   case $ac_val in
1240     */ )
1241       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242       eval $ac_var=\$ac_val;;
1243   esac
1244   # Be sure to have absolute directory names.
1245   case $ac_val in
1246     [\\/$]* | ?:[\\/]* )  continue;;
1247     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248   esac
1249   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1250 done
1251
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1258
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261   if test "x$build_alias" = x; then
1262     cross_compiling=maybe
1263     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264     If a cross compiler is detected then cross compile mode will be used." >&2
1265   elif test "x$build_alias" != "x$host_alias"; then
1266     cross_compiling=yes
1267   fi
1268 fi
1269
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1272
1273 test "$silent" = yes && exec 6>/dev/null
1274
1275
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279   as_fn_error "working directory cannot be determined"
1280 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1281   as_fn_error "pwd does not report name of working directory"
1282
1283
1284 # Find the source files, if location was not specified.
1285 if test -z "$srcdir"; then
1286   ac_srcdir_defaulted=yes
1287   # Try the directory containing this script, then the parent directory.
1288   ac_confdir=`$as_dirname -- "$as_myself" ||
1289 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1290          X"$as_myself" : 'X\(//\)[^/]' \| \
1291          X"$as_myself" : 'X\(//\)$' \| \
1292          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1293 $as_echo X"$as_myself" |
1294     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1295             s//\1/
1296             q
1297           }
1298           /^X\(\/\/\)[^/].*/{
1299             s//\1/
1300             q
1301           }
1302           /^X\(\/\/\)$/{
1303             s//\1/
1304             q
1305           }
1306           /^X\(\/\).*/{
1307             s//\1/
1308             q
1309           }
1310           s/.*/./; q'`
1311   srcdir=$ac_confdir
1312   if test ! -r "$srcdir/$ac_unique_file"; then
1313     srcdir=..
1314   fi
1315 else
1316   ac_srcdir_defaulted=no
1317 fi
1318 if test ! -r "$srcdir/$ac_unique_file"; then
1319   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1320   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1321 fi
1322 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1323 ac_abs_confdir=`(
1324         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1325         pwd)`
1326 # When building in place, set srcdir=.
1327 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328   srcdir=.
1329 fi
1330 # Remove unnecessary trailing slashes from srcdir.
1331 # Double slashes in file names in object file debugging info
1332 # mess up M-x gdb in Emacs.
1333 case $srcdir in
1334 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1335 esac
1336 for ac_var in $ac_precious_vars; do
1337   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1338   eval ac_env_${ac_var}_value=\$${ac_var}
1339   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1340   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1341 done
1342
1343 #
1344 # Report the --help message.
1345 #
1346 if test "$ac_init_help" = "long"; then
1347   # Omit some internal or obsolete options to make the list less imposing.
1348   # This message is too long to be a string in the A/UX 3.1 sh.
1349   cat <<_ACEOF
1350 \`configure' configures libffi 3.0.8 to adapt to many kinds of systems.
1351
1352 Usage: $0 [OPTION]... [VAR=VALUE]...
1353
1354 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1355 VAR=VALUE.  See below for descriptions of some of the useful variables.
1356
1357 Defaults for the options are specified in brackets.
1358
1359 Configuration:
1360   -h, --help              display this help and exit
1361       --help=short        display options specific to this package
1362       --help=recursive    display the short help of all the included packages
1363   -V, --version           display version information and exit
1364   -q, --quiet, --silent   do not print \`checking...' messages
1365       --cache-file=FILE   cache test results in FILE [disabled]
1366   -C, --config-cache      alias for \`--cache-file=config.cache'
1367   -n, --no-create         do not create output files
1368       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1369
1370 Installation directories:
1371   --prefix=PREFIX         install architecture-independent files in PREFIX
1372                           [$ac_default_prefix]
1373   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1374                           [PREFIX]
1375
1376 By default, \`make install' will install all the files in
1377 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1378 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1379 for instance \`--prefix=\$HOME'.
1380
1381 For better control, use the options below.
1382
1383 Fine tuning of the installation directories:
1384   --bindir=DIR            user executables [EPREFIX/bin]
1385   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1386   --libexecdir=DIR        program executables [EPREFIX/libexec]
1387   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1388   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1389   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1390   --libdir=DIR            object code libraries [EPREFIX/lib]
1391   --includedir=DIR        C header files [PREFIX/include]
1392   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1393   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1394   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1395   --infodir=DIR           info documentation [DATAROOTDIR/info]
1396   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1397   --mandir=DIR            man documentation [DATAROOTDIR/man]
1398   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1399   --htmldir=DIR           html documentation [DOCDIR]
1400   --dvidir=DIR            dvi documentation [DOCDIR]
1401   --pdfdir=DIR            pdf documentation [DOCDIR]
1402   --psdir=DIR             ps documentation [DOCDIR]
1403 _ACEOF
1404
1405   cat <<\_ACEOF
1406
1407 Program names:
1408   --program-prefix=PREFIX            prepend PREFIX to installed program names
1409   --program-suffix=SUFFIX            append SUFFIX to installed program names
1410   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1411
1412 System types:
1413   --build=BUILD     configure for building on BUILD [guessed]
1414   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1415   --target=TARGET   configure for building compilers for TARGET [HOST]
1416 _ACEOF
1417 fi
1418
1419 if test -n "$ac_init_help"; then
1420   case $ac_init_help in
1421      short | recursive ) echo "Configuration of libffi 3.0.8:";;
1422    esac
1423   cat <<\_ACEOF
1424
1425 Optional Features:
1426   --disable-option-checking  ignore unrecognized --enable/--with options
1427   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1428   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1429   --enable-multilib       build many library versions (default)
1430   --disable-dependency-tracking  speeds up one-time build
1431   --enable-dependency-tracking   do not reject slow dependency extractors
1432   --enable-shared[=PKGS]  build shared libraries [default=yes]
1433   --enable-static[=PKGS]  build static libraries [default=yes]
1434   --enable-fast-install[=PKGS]
1435                           optimize for fast installation [default=yes]
1436   --disable-libtool-lock  avoid locking (might break parallel builds)
1437   --enable-maintainer-mode  enable make rules and dependencies not useful
1438                           (and sometimes confusing) to the casual installer
1439   --enable-debug          debugging mode
1440   --disable-structs       omit code for struct support
1441   --disable-raw-api       make the raw api unavailable
1442   --enable-purify-safety  purify-safe mode
1443
1444 Optional Packages:
1445   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1446   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1447   --with-pic              try to use only PIC/non-PIC objects [default=use
1448                           both]
1449   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1450
1451 Some influential environment variables:
1452   CC          C compiler command
1453   CFLAGS      C compiler flags
1454   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1455               nonstandard directory <lib dir>
1456   LIBS        libraries to pass to the linker, e.g. -l<library>
1457   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1458               you have headers in a nonstandard directory <include dir>
1459   CCAS        assembler compiler command (defaults to CC)
1460   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1461   CPP         C preprocessor
1462
1463 Use these variables to override the choices made by `configure' or to help
1464 it to find libraries and programs with nonstandard names/locations.
1465
1466 Report bugs to <http://gcc.gnu.org/bugs.html>.
1467 _ACEOF
1468 ac_status=$?
1469 fi
1470
1471 if test "$ac_init_help" = "recursive"; then
1472   # If there are subdirs, report their specific --help.
1473   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1474     test -d "$ac_dir" ||
1475       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1476       continue
1477     ac_builddir=.
1478
1479 case "$ac_dir" in
1480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 *)
1482   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1483   # A ".." for each directory in $ac_dir_suffix.
1484   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1485   case $ac_top_builddir_sub in
1486   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1488   esac ;;
1489 esac
1490 ac_abs_top_builddir=$ac_pwd
1491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1492 # for backward compatibility:
1493 ac_top_builddir=$ac_top_build_prefix
1494
1495 case $srcdir in
1496   .)  # We are building in place.
1497     ac_srcdir=.
1498     ac_top_srcdir=$ac_top_builddir_sub
1499     ac_abs_top_srcdir=$ac_pwd ;;
1500   [\\/]* | ?:[\\/]* )  # Absolute name.
1501     ac_srcdir=$srcdir$ac_dir_suffix;
1502     ac_top_srcdir=$srcdir
1503     ac_abs_top_srcdir=$srcdir ;;
1504   *) # Relative name.
1505     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1506     ac_top_srcdir=$ac_top_build_prefix$srcdir
1507     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508 esac
1509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
1511     cd "$ac_dir" || { ac_status=$?; continue; }
1512     # Check for guested configure.
1513     if test -f "$ac_srcdir/configure.gnu"; then
1514       echo &&
1515       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1516     elif test -f "$ac_srcdir/configure"; then
1517       echo &&
1518       $SHELL "$ac_srcdir/configure" --help=recursive
1519     else
1520       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521     fi || ac_status=$?
1522     cd "$ac_pwd" || { ac_status=$?; break; }
1523   done
1524 fi
1525
1526 test -n "$ac_init_help" && exit $ac_status
1527 if $ac_init_version; then
1528   cat <<\_ACEOF
1529 libffi configure 3.0.8
1530 generated by GNU Autoconf 2.64
1531
1532 Copyright (C) 2009 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536   exit
1537 fi
1538
1539 ## ------------------------ ##
1540 ## Autoconf initialization. ##
1541 ## ------------------------ ##
1542
1543 # ac_fn_c_try_compile LINENO
1544 # --------------------------
1545 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1546 ac_fn_c_try_compile ()
1547 {
1548   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1549   rm -f conftest.$ac_objext
1550   if { { ac_try="$ac_compile"
1551 case "(($ac_try" in
1552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553   *) ac_try_echo=$ac_try;;
1554 esac
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557   (eval "$ac_compile") 2>conftest.err
1558   ac_status=$?
1559   if test -s conftest.err; then
1560     grep -v '^ *+' conftest.err >conftest.er1
1561     cat conftest.er1 >&5
1562     mv -f conftest.er1 conftest.err
1563   fi
1564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565   test $ac_status = 0; } && {
1566          test -z "$ac_c_werror_flag" ||
1567          test ! -s conftest.err
1568        } && test -s conftest.$ac_objext; then :
1569   ac_retval=0
1570 else
1571   $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1573
1574         ac_retval=1
1575 fi
1576   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1577   return $ac_retval
1578
1579 } # ac_fn_c_try_compile
1580
1581 # ac_fn_c_try_link LINENO
1582 # -----------------------
1583 # Try to link conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_link ()
1585 {
1586   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587   rm -f conftest.$ac_objext conftest$ac_exeext
1588   if { { ac_try="$ac_link"
1589 case "(($ac_try" in
1590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591   *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595   (eval "$ac_link") 2>conftest.err
1596   ac_status=$?
1597   if test -s conftest.err; then
1598     grep -v '^ *+' conftest.err >conftest.er1
1599     cat conftest.er1 >&5
1600     mv -f conftest.er1 conftest.err
1601   fi
1602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603   test $ac_status = 0; } && {
1604          test -z "$ac_c_werror_flag" ||
1605          test ! -s conftest.err
1606        } && test -s conftest$ac_exeext && {
1607          test "$cross_compiling" = yes ||
1608          $as_test_x conftest$ac_exeext
1609        }; then :
1610   ac_retval=0
1611 else
1612   $as_echo "$as_me: failed program was:" >&5
1613 sed 's/^/| /' conftest.$ac_ext >&5
1614
1615         ac_retval=1
1616 fi
1617   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1618   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1619   # interfere with the next link command; also delete a directory that is
1620   # left behind by Apple's compiler.  We do this before executing the actions.
1621   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1622   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1623   return $ac_retval
1624
1625 } # ac_fn_c_try_link
1626
1627 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1628 # -------------------------------------------------------
1629 # Tests whether HEADER exists and can be compiled using the include files in
1630 # INCLUDES, setting the cache variable VAR accordingly.
1631 ac_fn_c_check_header_compile ()
1632 {
1633   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1635 $as_echo_n "checking for $2... " >&6; }
1636 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1637   $as_echo_n "(cached) " >&6
1638 else
1639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1640 /* end confdefs.h.  */
1641 $4
1642 #include <$2>
1643 _ACEOF
1644 if ac_fn_c_try_compile "$LINENO"; then :
1645   eval "$3=yes"
1646 else
1647   eval "$3=no"
1648 fi
1649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1650 fi
1651 eval ac_res=\$$3
1652                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653 $as_echo "$ac_res" >&6; }
1654   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1655
1656 } # ac_fn_c_check_header_compile
1657
1658 # ac_fn_c_try_cpp LINENO
1659 # ----------------------
1660 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_cpp ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   if { { ac_try="$ac_cpp conftest.$ac_ext"
1665 case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1672   ac_status=$?
1673   if test -s conftest.err; then
1674     grep -v '^ *+' conftest.err >conftest.er1
1675     cat conftest.er1 >&5
1676     mv -f conftest.er1 conftest.err
1677   fi
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } >/dev/null && {
1680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1681          test ! -s conftest.err
1682        }; then :
1683   ac_retval=0
1684 else
1685   $as_echo "$as_me: failed program was:" >&5
1686 sed 's/^/| /' conftest.$ac_ext >&5
1687
1688     ac_retval=1
1689 fi
1690   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1691   return $ac_retval
1692
1693 } # ac_fn_c_try_cpp
1694
1695 # ac_fn_c_try_run LINENO
1696 # ----------------------
1697 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1698 # that executables *can* be run.
1699 ac_fn_c_try_run ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   if { { ac_try="$ac_link"
1703 case "(($ac_try" in
1704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705   *) ac_try_echo=$ac_try;;
1706 esac
1707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709   (eval "$ac_link") 2>&5
1710   ac_status=$?
1711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1713   { { case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_try") 2>&5
1720   ac_status=$?
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; }; }; then :
1723   ac_retval=0
1724 else
1725   $as_echo "$as_me: program exited with status $ac_status" >&5
1726        $as_echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729        ac_retval=$ac_status
1730 fi
1731   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1732   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1733   return $ac_retval
1734
1735 } # ac_fn_c_try_run
1736
1737 # ac_fn_c_check_func LINENO FUNC VAR
1738 # ----------------------------------
1739 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1740 ac_fn_c_check_func ()
1741 {
1742   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746   $as_echo_n "(cached) " >&6
1747 else
1748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h.  */
1750 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1751    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1752 #define $2 innocuous_$2
1753
1754 /* System header to define __stub macros and hopefully few prototypes,
1755     which can conflict with char $2 (); below.
1756     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1757     <limits.h> exists even on freestanding compilers.  */
1758
1759 #ifdef __STDC__
1760 # include <limits.h>
1761 #else
1762 # include <assert.h>
1763 #endif
1764
1765 #undef $2
1766
1767 /* Override any GCC internal prototype to avoid an error.
1768    Use char because int might match the return type of a GCC
1769    builtin and then its argument prototype would still apply.  */
1770 #ifdef __cplusplus
1771 extern "C"
1772 #endif
1773 char $2 ();
1774 /* The GNU C library defines this for functions which it implements
1775     to always fail with ENOSYS.  Some functions are actually named
1776     something starting with __ and the normal name is an alias.  */
1777 #if defined __stub_$2 || defined __stub___$2
1778 choke me
1779 #endif
1780
1781 int
1782 main ()
1783 {
1784 return $2 ();
1785   ;
1786   return 0;
1787 }
1788 _ACEOF
1789 if ac_fn_c_try_link "$LINENO"; then :
1790   eval "$3=yes"
1791 else
1792   eval "$3=no"
1793 fi
1794 rm -f core conftest.err conftest.$ac_objext \
1795     conftest$ac_exeext conftest.$ac_ext
1796 fi
1797 eval ac_res=\$$3
1798                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1800   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1801
1802 } # ac_fn_c_check_func
1803
1804 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1805 # -------------------------------------------------------
1806 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1807 # the include files in INCLUDES and setting the cache variable VAR
1808 # accordingly.
1809 ac_fn_c_check_header_mongrel ()
1810 {
1811   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1816   $as_echo_n "(cached) " >&6
1817 fi
1818 eval ac_res=\$$3
1819                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 else
1822   # Is the header compilable?
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1824 $as_echo_n "checking $2 usability... " >&6; }
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 $4
1828 #include <$2>
1829 _ACEOF
1830 if ac_fn_c_try_compile "$LINENO"; then :
1831   ac_header_compiler=yes
1832 else
1833   ac_header_compiler=no
1834 fi
1835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1837 $as_echo "$ac_header_compiler" >&6; }
1838
1839 # Is the header present?
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1841 $as_echo_n "checking $2 presence... " >&6; }
1842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1843 /* end confdefs.h.  */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_cpp "$LINENO"; then :
1847   ac_header_preproc=yes
1848 else
1849   ac_header_preproc=no
1850 fi
1851 rm -f conftest.err conftest.$ac_ext
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1853 $as_echo "$ac_header_preproc" >&6; }
1854
1855 # So?  What about this header?
1856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1857   yes:no: )
1858     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1859 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1860     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1861 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1862     ;;
1863   no:yes:* )
1864     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1865 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1867 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1869 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1870     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1871 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1873 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1874 ( cat <<\_ASBOX
1875 ## ------------------------------------------- ##
1876 ## Report this to http://gcc.gnu.org/bugs.html ##
1877 ## ------------------------------------------- ##
1878 _ASBOX
1879      ) | sed "s/^/$as_me: WARNING:     /" >&2
1880     ;;
1881 esac
1882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885   $as_echo_n "(cached) " >&6
1886 else
1887   eval "$3=\$ac_header_compiler"
1888 fi
1889 eval ac_res=\$$3
1890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1892 fi
1893   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895 } # ac_fn_c_check_header_mongrel
1896
1897 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1898 # --------------------------------------------
1899 # Tries to find the compile-time value of EXPR in a program that includes
1900 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1901 # computed
1902 ac_fn_c_compute_int ()
1903 {
1904   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905   if test "$cross_compiling" = yes; then
1906     # Depending upon the size, compute the lo and hi bounds.
1907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1908 /* end confdefs.h.  */
1909 $4
1910 int
1911 main ()
1912 {
1913 static int test_array [1 - 2 * !(($2) >= 0)];
1914 test_array [0] = 0
1915
1916   ;
1917   return 0;
1918 }
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921   ac_lo=0 ac_mid=0
1922   while :; do
1923     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h.  */
1925 $4
1926 int
1927 main ()
1928 {
1929 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1930 test_array [0] = 0
1931
1932   ;
1933   return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937   ac_hi=$ac_mid; break
1938 else
1939   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1940                         if test $ac_lo -le $ac_mid; then
1941                           ac_lo= ac_hi=
1942                           break
1943                         fi
1944                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1945 fi
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947   done
1948 else
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 $4
1952 int
1953 main ()
1954 {
1955 static int test_array [1 - 2 * !(($2) < 0)];
1956 test_array [0] = 0
1957
1958   ;
1959   return 0;
1960 }
1961 _ACEOF
1962 if ac_fn_c_try_compile "$LINENO"; then :
1963   ac_hi=-1 ac_mid=-1
1964   while :; do
1965     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1966 /* end confdefs.h.  */
1967 $4
1968 int
1969 main ()
1970 {
1971 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1972 test_array [0] = 0
1973
1974   ;
1975   return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_compile "$LINENO"; then :
1979   ac_lo=$ac_mid; break
1980 else
1981   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1982                         if test $ac_mid -le $ac_hi; then
1983                           ac_lo= ac_hi=
1984                           break
1985                         fi
1986                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1987 fi
1988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989   done
1990 else
1991   ac_lo= ac_hi=
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1996 # Binary search between lo and hi bounds.
1997 while test "x$ac_lo" != "x$ac_hi"; do
1998   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2006 test_array [0] = 0
2007
2008   ;
2009   return 0;
2010 }
2011 _ACEOF
2012 if ac_fn_c_try_compile "$LINENO"; then :
2013   ac_hi=$ac_mid
2014 else
2015   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2016 fi
2017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2018 done
2019 case $ac_lo in #((
2020 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2021 '') ac_retval=1 ;;
2022 esac
2023   else
2024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h.  */
2026 $4
2027 static long int longval () { return $2; }
2028 static unsigned long int ulongval () { return $2; }
2029 #include <stdio.h>
2030 #include <stdlib.h>
2031 int
2032 main ()
2033 {
2034
2035   FILE *f = fopen ("conftest.val", "w");
2036   if (! f)
2037     return 1;
2038   if (($2) < 0)
2039     {
2040       long int i = longval ();
2041       if (i != ($2))
2042         return 1;
2043       fprintf (f, "%ld", i);
2044     }
2045   else
2046     {
2047       unsigned long int i = ulongval ();
2048       if (i != ($2))
2049         return 1;
2050       fprintf (f, "%lu", i);
2051     }
2052   /* Do not output a trailing newline, as this causes \r\n confusion
2053      on some platforms.  */
2054   return ferror (f) || fclose (f) != 0;
2055
2056   ;
2057   return 0;
2058 }
2059 _ACEOF
2060 if ac_fn_c_try_run "$LINENO"; then :
2061   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2062 else
2063   ac_retval=1
2064 fi
2065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2066   conftest.$ac_objext conftest.beam conftest.$ac_ext
2067 rm -f conftest.val
2068
2069   fi
2070   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2071   return $ac_retval
2072
2073 } # ac_fn_c_compute_int
2074 cat >config.log <<_ACEOF
2075 This file contains any messages produced by compilers while
2076 running configure, to aid debugging if configure makes a mistake.
2077
2078 It was created by libffi $as_me 3.0.8, which was
2079 generated by GNU Autoconf 2.64.  Invocation command line was
2080
2081   $ $0 $@
2082
2083 _ACEOF
2084 exec 5>>config.log
2085 {
2086 cat <<_ASUNAME
2087 ## --------- ##
2088 ## Platform. ##
2089 ## --------- ##
2090
2091 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2099
2100 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2101 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2102 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2104 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2105 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2106 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2107
2108 _ASUNAME
2109
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111 for as_dir in $PATH
2112 do
2113   IFS=$as_save_IFS
2114   test -z "$as_dir" && as_dir=.
2115     $as_echo "PATH: $as_dir"
2116   done
2117 IFS=$as_save_IFS
2118
2119 } >&5
2120
2121 cat >&5 <<_ACEOF
2122
2123
2124 ## ----------- ##
2125 ## Core tests. ##
2126 ## ----------- ##
2127
2128 _ACEOF
2129
2130
2131 # Keep a trace of the command line.
2132 # Strip out --no-create and --no-recursion so they do not pile up.
2133 # Strip out --silent because we don't want to record it for future runs.
2134 # Also quote any args containing shell meta-characters.
2135 # Make two passes to allow for proper duplicate-argument suppression.
2136 ac_configure_args=
2137 ac_configure_args0=
2138 ac_configure_args1=
2139 ac_must_keep_next=false
2140 for ac_pass in 1 2
2141 do
2142   for ac_arg
2143   do
2144     case $ac_arg in
2145     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147     | -silent | --silent | --silen | --sile | --sil)
2148       continue ;;
2149     *\'*)
2150       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2151     esac
2152     case $ac_pass in
2153     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154     2)
2155       as_fn_append ac_configure_args1 " '$ac_arg'"
2156       if test $ac_must_keep_next = true; then
2157         ac_must_keep_next=false # Got value, back to normal.
2158       else
2159         case $ac_arg in
2160           *=* | --config-cache | -C | -disable-* | --disable-* \
2161           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163           | -with-* | --with-* | -without-* | --without-* | --x)
2164             case "$ac_configure_args0 " in
2165               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166             esac
2167             ;;
2168           -* ) ac_must_keep_next=true ;;
2169         esac
2170       fi
2171       as_fn_append ac_configure_args " '$ac_arg'"
2172       ;;
2173     esac
2174   done
2175 done
2176 { ac_configure_args0=; unset ac_configure_args0;}
2177 { ac_configure_args1=; unset ac_configure_args1;}
2178
2179 # When interrupted or exit'd, cleanup temporary files, and complete
2180 # config.log.  We remove comments because anyway the quotes in there
2181 # would cause problems or look ugly.
2182 # WARNING: Use '\'' to represent an apostrophe within the trap.
2183 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184 trap 'exit_status=$?
2185   # Save into config.log some information that might help in debugging.
2186   {
2187     echo
2188
2189     cat <<\_ASBOX
2190 ## ---------------- ##
2191 ## Cache variables. ##
2192 ## ---------------- ##
2193 _ASBOX
2194     echo
2195     # The following way of writing the cache mishandles newlines in values,
2196 (
2197   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2198     eval ac_val=\$$ac_var
2199     case $ac_val in #(
2200     *${as_nl}*)
2201       case $ac_var in #(
2202       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2203 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2204       esac
2205       case $ac_var in #(
2206       _ | IFS | as_nl) ;; #(
2207       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2208       *) { eval $ac_var=; unset $ac_var;} ;;
2209       esac ;;
2210     esac
2211   done
2212   (set) 2>&1 |
2213     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2214     *${as_nl}ac_space=\ *)
2215       sed -n \
2216         "s/'\''/'\''\\\\'\'''\''/g;
2217           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2218       ;; #(
2219     *)
2220       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2221       ;;
2222     esac |
2223     sort
2224 )
2225     echo
2226
2227     cat <<\_ASBOX
2228 ## ----------------- ##
2229 ## Output variables. ##
2230 ## ----------------- ##
2231 _ASBOX
2232     echo
2233     for ac_var in $ac_subst_vars
2234     do
2235       eval ac_val=\$$ac_var
2236       case $ac_val in
2237       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238       esac
2239       $as_echo "$ac_var='\''$ac_val'\''"
2240     done | sort
2241     echo
2242
2243     if test -n "$ac_subst_files"; then
2244       cat <<\_ASBOX
2245 ## ------------------- ##
2246 ## File substitutions. ##
2247 ## ------------------- ##
2248 _ASBOX
2249       echo
2250       for ac_var in $ac_subst_files
2251       do
2252         eval ac_val=\$$ac_var
2253         case $ac_val in
2254         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255         esac
2256         $as_echo "$ac_var='\''$ac_val'\''"
2257       done | sort
2258       echo
2259     fi
2260
2261     if test -s confdefs.h; then
2262       cat <<\_ASBOX
2263 ## ----------- ##
2264 ## confdefs.h. ##
2265 ## ----------- ##
2266 _ASBOX
2267       echo
2268       cat confdefs.h
2269       echo
2270     fi
2271     test "$ac_signal" != 0 &&
2272       $as_echo "$as_me: caught signal $ac_signal"
2273     $as_echo "$as_me: exit $exit_status"
2274   } >&5
2275   rm -f core *.core core.conftest.* &&
2276     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277     exit $exit_status
2278 ' 0
2279 for ac_signal in 1 2 13 15; do
2280   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281 done
2282 ac_signal=0
2283
2284 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2285 rm -f -r conftest* confdefs.h
2286
2287 $as_echo "/* confdefs.h */" > confdefs.h
2288
2289 # Predefined preprocessor variables.
2290
2291 cat >>confdefs.h <<_ACEOF
2292 #define PACKAGE_NAME "$PACKAGE_NAME"
2293 _ACEOF
2294
2295 cat >>confdefs.h <<_ACEOF
2296 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297 _ACEOF
2298
2299 cat >>confdefs.h <<_ACEOF
2300 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2301 _ACEOF
2302
2303 cat >>confdefs.h <<_ACEOF
2304 #define PACKAGE_STRING "$PACKAGE_STRING"
2305 _ACEOF
2306
2307 cat >>confdefs.h <<_ACEOF
2308 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309 _ACEOF
2310
2311 cat >>confdefs.h <<_ACEOF
2312 #define PACKAGE_URL "$PACKAGE_URL"
2313 _ACEOF
2314
2315
2316 # Let the site file select an alternate cache file if it wants to.
2317 # Prefer an explicitly selected file to automatically selected ones.
2318 ac_site_file1=NONE
2319 ac_site_file2=NONE
2320 if test -n "$CONFIG_SITE"; then
2321   ac_site_file1=$CONFIG_SITE
2322 elif test "x$prefix" != xNONE; then
2323   ac_site_file1=$prefix/share/config.site
2324   ac_site_file2=$prefix/etc/config.site
2325 else
2326   ac_site_file1=$ac_default_prefix/share/config.site
2327   ac_site_file2=$ac_default_prefix/etc/config.site
2328 fi
2329 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2330 do
2331   test "x$ac_site_file" = xNONE && continue
2332   if test -r "$ac_site_file"; then
2333     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2334 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2335     sed 's/^/| /' "$ac_site_file" >&5
2336     . "$ac_site_file"
2337   fi
2338 done
2339
2340 if test -r "$cache_file"; then
2341   # Some versions of bash will fail to source /dev/null (special
2342   # files actually), so we avoid doing that.
2343   if test -f "$cache_file"; then
2344     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345 $as_echo "$as_me: loading cache $cache_file" >&6;}
2346     case $cache_file in
2347       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348       *)                      . "./$cache_file";;
2349     esac
2350   fi
2351 else
2352   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353 $as_echo "$as_me: creating cache $cache_file" >&6;}
2354   >$cache_file
2355 fi
2356
2357 # Check that the precious variables saved in the cache have kept the same
2358 # value.
2359 ac_cache_corrupted=false
2360 for ac_var in $ac_precious_vars; do
2361   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362   eval ac_new_set=\$ac_env_${ac_var}_set
2363   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364   eval ac_new_val=\$ac_env_${ac_var}_value
2365   case $ac_old_set,$ac_new_set in
2366     set,)
2367       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2369       ac_cache_corrupted=: ;;
2370     ,set)
2371       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2373       ac_cache_corrupted=: ;;
2374     ,);;
2375     *)
2376       if test "x$ac_old_val" != "x$ac_new_val"; then
2377         # differences in whitespace do not lead to failure.
2378         ac_old_val_w=`echo x $ac_old_val`
2379         ac_new_val_w=`echo x $ac_new_val`
2380         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2381           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383           ac_cache_corrupted=:
2384         else
2385           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387           eval $ac_var=\$ac_old_val
2388         fi
2389         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2390 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2391         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2392 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2393       fi;;
2394   esac
2395   # Pass precious variables to config.status.
2396   if test "$ac_new_set" = set; then
2397     case $ac_new_val in
2398     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2399     *) ac_arg=$ac_var=$ac_new_val ;;
2400     esac
2401     case " $ac_configure_args " in
2402       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2403       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2404     esac
2405   fi
2406 done
2407 if $ac_cache_corrupted; then
2408   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2412   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2413 fi
2414 ## -------------------- ##
2415 ## Main body of script. ##
2416 ## -------------------- ##
2417
2418 ac_ext=c
2419 ac_cpp='$CPP $CPPFLAGS'
2420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2423
2424
2425
2426
2427
2428 ac_config_headers="$ac_config_headers fficonfig.h"
2429
2430
2431 # Default to --enable-multilib
2432 # Check whether --enable-multilib was given.
2433 if test "${enable_multilib+set}" = set; then :
2434   enableval=$enable_multilib; case "$enableval" in
2435   yes) multilib=yes ;;
2436   no)  multilib=no ;;
2437   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2438  esac
2439 else
2440   multilib=yes
2441 fi
2442
2443
2444 # We may get other options which we leave undocumented:
2445 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2446 # See config-ml.in if you want the gory details.
2447
2448 if test "$srcdir" = "."; then
2449   if test "$with_target_subdir" != "."; then
2450     multi_basedir="$srcdir/$with_multisrctop../.."
2451   else
2452     multi_basedir="$srcdir/$with_multisrctop.."
2453   fi
2454 else
2455   multi_basedir="$srcdir/.."
2456 fi
2457
2458
2459 # Even if the default multilib is not a cross compilation,
2460 # it may be that some of the other multilibs are.
2461 if test $cross_compiling = no && test $multilib = yes \
2462    && test "x${with_multisubdir}" != x ; then
2463    cross_compiling=maybe
2464 fi
2465
2466 ac_config_commands="$ac_config_commands default-1"
2467
2468
2469 ac_aux_dir=
2470 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471   for ac_t in install-sh install.sh shtool; do
2472     if test -f "$ac_dir/$ac_t"; then
2473       ac_aux_dir=$ac_dir
2474       ac_install_sh="$ac_aux_dir/$ac_t -c"
2475       break 2
2476     fi
2477   done
2478 done
2479 if test -z "$ac_aux_dir"; then
2480   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2481 fi
2482
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2490
2491
2492 # Make sure we can run config.sub.
2493 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2494   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2495
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2497 $as_echo_n "checking build system type... " >&6; }
2498 if test "${ac_cv_build+set}" = set; then :
2499   $as_echo_n "(cached) " >&6
2500 else
2501   ac_build_alias=$build_alias
2502 test "x$ac_build_alias" = x &&
2503   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2504 test "x$ac_build_alias" = x &&
2505   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2506 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2507   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2508
2509 fi
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2511 $as_echo "$ac_cv_build" >&6; }
2512 case $ac_cv_build in
2513 *-*-*) ;;
2514 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2515 esac
2516 build=$ac_cv_build
2517 ac_save_IFS=$IFS; IFS='-'
2518 set x $ac_cv_build
2519 shift
2520 build_cpu=$1
2521 build_vendor=$2
2522 shift; shift
2523 # Remember, the first character of IFS is used to create $*,
2524 # except with old shells:
2525 build_os=$*
2526 IFS=$ac_save_IFS
2527 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2528
2529
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2531 $as_echo_n "checking host system type... " >&6; }
2532 if test "${ac_cv_host+set}" = set; then :
2533   $as_echo_n "(cached) " >&6
2534 else
2535   if test "x$host_alias" = x; then
2536   ac_cv_host=$ac_cv_build
2537 else
2538   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2539     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2540 fi
2541
2542 fi
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2544 $as_echo "$ac_cv_host" >&6; }
2545 case $ac_cv_host in
2546 *-*-*) ;;
2547 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2548 esac
2549 host=$ac_cv_host
2550 ac_save_IFS=$IFS; IFS='-'
2551 set x $ac_cv_host
2552 shift
2553 host_cpu=$1
2554 host_vendor=$2
2555 shift; shift
2556 # Remember, the first character of IFS is used to create $*,
2557 # except with old shells:
2558 host_os=$*
2559 IFS=$ac_save_IFS
2560 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2561
2562
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2564 $as_echo_n "checking target system type... " >&6; }
2565 if test "${ac_cv_target+set}" = set; then :
2566   $as_echo_n "(cached) " >&6
2567 else
2568   if test "x$target_alias" = x; then
2569   ac_cv_target=$ac_cv_host
2570 else
2571   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2572     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2573 fi
2574
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2577 $as_echo "$ac_cv_target" >&6; }
2578 case $ac_cv_target in
2579 *-*-*) ;;
2580 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2581 esac
2582 target=$ac_cv_target
2583 ac_save_IFS=$IFS; IFS='-'
2584 set x $ac_cv_target
2585 shift
2586 target_cpu=$1
2587 target_vendor=$2
2588 shift; shift
2589 # Remember, the first character of IFS is used to create $*,
2590 # except with old shells:
2591 target_os=$*
2592 IFS=$ac_save_IFS
2593 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2594
2595
2596 # The aliases save the names the user supplied, while $host etc.
2597 # will get canonicalized.
2598 test -n "$target_alias" &&
2599   test "$program_prefix$program_suffix$program_transform_name" = \
2600     NONENONEs,x,x, &&
2601   program_prefix=${target_alias}-
2602
2603 target_alias=${target_alias-$host_alias}
2604
2605 . ${srcdir}/configure.host
2606
2607 am__api_version='1.11'
2608
2609 # Find a good install program.  We prefer a C program (faster),
2610 # so one script is as good as another.  But avoid the broken or
2611 # incompatible versions:
2612 # SysV /etc/install, /usr/sbin/install
2613 # SunOS /usr/etc/install
2614 # IRIX /sbin/install
2615 # AIX /bin/install
2616 # AmigaOS /C/install, which installs bootblocks on floppy discs
2617 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2618 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2619 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2620 # OS/2's system install, which has a completely different semantic
2621 # ./install, which can be erroneously created by make from ./install.sh.
2622 # Reject install programs that cannot install multiple files.
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2624 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2625 if test -z "$INSTALL"; then
2626 if test "${ac_cv_path_install+set}" = set; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     # Account for people who put trailing slashes in PATH elements.
2635 case $as_dir/ in #((
2636   ./ | .// | /[cC]/* | \
2637   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2638   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2639   /usr/ucb/* ) ;;
2640   *)
2641     # OSF1 and SCO ODT 3.0 have their own names for install.
2642     # Don't use installbsd from OSF since it installs stuff as root
2643     # by default.
2644     for ac_prog in ginstall scoinst install; do
2645       for ac_exec_ext in '' $ac_executable_extensions; do
2646         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2647           if test $ac_prog = install &&
2648             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649             # AIX install.  It has an incompatible calling convention.
2650             :
2651           elif test $ac_prog = install &&
2652             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2653             # program-specific install script used by HP pwplus--don't use.
2654             :
2655           else
2656             rm -rf conftest.one conftest.two conftest.dir
2657             echo one > conftest.one
2658             echo two > conftest.two
2659             mkdir conftest.dir
2660             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2661               test -s conftest.one && test -s conftest.two &&
2662               test -s conftest.dir/conftest.one &&
2663               test -s conftest.dir/conftest.two
2664             then
2665               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2666               break 3
2667             fi
2668           fi
2669         fi
2670       done
2671     done
2672     ;;
2673 esac
2674
2675   done
2676 IFS=$as_save_IFS
2677
2678 rm -rf conftest.one conftest.two conftest.dir
2679
2680 fi
2681   if test "${ac_cv_path_install+set}" = set; then
2682     INSTALL=$ac_cv_path_install
2683   else
2684     # As a last resort, use the slow shell script.  Don't cache a
2685     # value for INSTALL within a source directory, because that will
2686     # break other packages using the cache if that directory is
2687     # removed, or if the value is a relative name.
2688     INSTALL=$ac_install_sh
2689   fi
2690 fi
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2692 $as_echo "$INSTALL" >&6; }
2693
2694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2695 # It thinks the first close brace ends the variable substitution.
2696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2697
2698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2699
2700 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2701
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2703 $as_echo_n "checking whether build environment is sane... " >&6; }
2704 # Just in case
2705 sleep 1
2706 echo timestamp > conftest.file
2707 # Reject unsafe characters in $srcdir or the absolute working directory
2708 # name.  Accept space and tab only in the latter.
2709 am_lf='
2710 '
2711 case `pwd` in
2712   *[\\\"\#\$\&\'\`$am_lf]*)
2713     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2714 esac
2715 case $srcdir in
2716   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2717     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2718 esac
2719
2720 # Do `set' in a subshell so we don't clobber the current shell's
2721 # arguments.  Must try -L first in case configure is actually a
2722 # symlink; some systems play weird games with the mod time of symlinks
2723 # (eg FreeBSD returns the mod time of the symlink's containing
2724 # directory).
2725 if (
2726    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2727    if test "$*" = "X"; then
2728       # -L didn't work.
2729       set X `ls -t "$srcdir/configure" conftest.file`
2730    fi
2731    rm -f conftest.file
2732    if test "$*" != "X $srcdir/configure conftest.file" \
2733       && test "$*" != "X conftest.file $srcdir/configure"; then
2734
2735       # If neither matched, then we have a broken ls.  This can happen
2736       # if, for instance, CONFIG_SHELL is bash and it inherits a
2737       # broken ls alias from the environment.  This has actually
2738       # happened.  Such a system could not be considered "sane".
2739       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2740 alias in your environment" "$LINENO" 5
2741    fi
2742
2743    test "$2" = conftest.file
2744    )
2745 then
2746    # Ok.
2747    :
2748 else
2749    as_fn_error "newly created file is older than distributed files!
2750 Check your system clock" "$LINENO" 5
2751 fi
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2753 $as_echo "yes" >&6; }
2754 test "$program_prefix" != NONE &&
2755   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2756 # Use a double $ so make ignores it.
2757 test "$program_suffix" != NONE &&
2758   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2759 # Double any \ or $.
2760 # By default was `s,x,x', remove it if useless.
2761 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2762 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2763
2764 # expand $ac_aux_dir to an absolute path
2765 am_aux_dir=`cd $ac_aux_dir && pwd`
2766
2767 if test x"${MISSING+set}" != xset; then
2768   case $am_aux_dir in
2769   *\ * | *\     *)
2770     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2771   *)
2772     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2773   esac
2774 fi
2775 # Use eval to expand $SHELL
2776 if eval "$MISSING --run true"; then
2777   am_missing_run="$MISSING --run "
2778 else
2779   am_missing_run=
2780   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2781 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2782 fi
2783
2784 if test x"${install_sh}" != xset; then
2785   case $am_aux_dir in
2786   *\ * | *\     *)
2787     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2788   *)
2789     install_sh="\${SHELL} $am_aux_dir/install-sh"
2790   esac
2791 fi
2792
2793 # Installed binaries are usually stripped using `strip' when the user
2794 # run `make install-strip'.  However `strip' might not be the right
2795 # tool to use in cross-compilation environments, therefore Automake
2796 # will honor the `STRIP' environment variable to overrule this program.
2797 if test "$cross_compiling" != no; then
2798   if test -n "$ac_tool_prefix"; then
2799   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}strip; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if test "${ac_cv_prog_STRIP+set}" = set; then :
2804   $as_echo_n "(cached) " >&6
2805 else
2806   if test -n "$STRIP"; then
2807   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2811 do
2812   IFS=$as_save_IFS
2813   test -z "$as_dir" && as_dir=.
2814     for ac_exec_ext in '' $ac_executable_extensions; do
2815   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2816     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2817     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818     break 2
2819   fi
2820 done
2821   done
2822 IFS=$as_save_IFS
2823
2824 fi
2825 fi
2826 STRIP=$ac_cv_prog_STRIP
2827 if test -n "$STRIP"; then
2828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2829 $as_echo "$STRIP" >&6; }
2830 else
2831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2833 fi
2834
2835
2836 fi
2837 if test -z "$ac_cv_prog_STRIP"; then
2838   ac_ct_STRIP=$STRIP
2839   # Extract the first word of "strip", so it can be a program name with args.
2840 set dummy strip; ac_word=$2
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 $as_echo_n "checking for $ac_word... " >&6; }
2843 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2844   $as_echo_n "(cached) " >&6
2845 else
2846   if test -n "$ac_ct_STRIP"; then
2847   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2848 else
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 for as_dir in $PATH
2851 do
2852   IFS=$as_save_IFS
2853   test -z "$as_dir" && as_dir=.
2854     for ac_exec_ext in '' $ac_executable_extensions; do
2855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856     ac_cv_prog_ac_ct_STRIP="strip"
2857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2858     break 2
2859   fi
2860 done
2861   done
2862 IFS=$as_save_IFS
2863
2864 fi
2865 fi
2866 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2867 if test -n "$ac_ct_STRIP"; then
2868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2869 $as_echo "$ac_ct_STRIP" >&6; }
2870 else
2871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2872 $as_echo "no" >&6; }
2873 fi
2874
2875   if test "x$ac_ct_STRIP" = x; then
2876     STRIP=":"
2877   else
2878     case $cross_compiling:$ac_tool_warned in
2879 yes:)
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2881 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2882 ac_tool_warned=yes ;;
2883 esac
2884     STRIP=$ac_ct_STRIP
2885   fi
2886 else
2887   STRIP="$ac_cv_prog_STRIP"
2888 fi
2889
2890 fi
2891 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2892
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2894 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2895 if test -z "$MKDIR_P"; then
2896   if test "${ac_cv_path_mkdir+set}" = set; then :
2897   $as_echo_n "(cached) " >&6
2898 else
2899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2901 do
2902   IFS=$as_save_IFS
2903   test -z "$as_dir" && as_dir=.
2904     for ac_prog in mkdir gmkdir; do
2905          for ac_exec_ext in '' $ac_executable_extensions; do
2906            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2907            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2908              'mkdir (GNU coreutils) '* | \
2909              'mkdir (coreutils) '* | \
2910              'mkdir (fileutils) '4.1*)
2911                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2912                break 3;;
2913            esac
2914          done
2915        done
2916   done
2917 IFS=$as_save_IFS
2918
2919 fi
2920
2921   if test "${ac_cv_path_mkdir+set}" = set; then
2922     MKDIR_P="$ac_cv_path_mkdir -p"
2923   else
2924     # As a last resort, use the slow shell script.  Don't cache a
2925     # value for MKDIR_P within a source directory, because that will
2926     # break other packages using the cache if that directory is
2927     # removed, or if the value is a relative name.
2928     test -d ./--version && rmdir ./--version
2929     MKDIR_P="$ac_install_sh -d"
2930   fi
2931 fi
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2933 $as_echo "$MKDIR_P" >&6; }
2934
2935 mkdir_p="$MKDIR_P"
2936 case $mkdir_p in
2937   [\\/$]* | ?:[\\/]*) ;;
2938   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2939 esac
2940
2941 for ac_prog in gawk mawk nawk awk
2942 do
2943   # Extract the first word of "$ac_prog", so it can be a program name with args.
2944 set dummy $ac_prog; ac_word=$2
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2946 $as_echo_n "checking for $ac_word... " >&6; }
2947 if test "${ac_cv_prog_AWK+set}" = set; then :
2948   $as_echo_n "(cached) " >&6
2949 else
2950   if test -n "$AWK"; then
2951   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2952 else
2953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954 for as_dir in $PATH
2955 do
2956   IFS=$as_save_IFS
2957   test -z "$as_dir" && as_dir=.
2958     for ac_exec_ext in '' $ac_executable_extensions; do
2959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2960     ac_cv_prog_AWK="$ac_prog"
2961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962     break 2
2963   fi
2964 done
2965   done
2966 IFS=$as_save_IFS
2967
2968 fi
2969 fi
2970 AWK=$ac_cv_prog_AWK
2971 if test -n "$AWK"; then
2972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2973 $as_echo "$AWK" >&6; }
2974 else
2975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 fi
2978
2979
2980   test -n "$AWK" && break
2981 done
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2984 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2985 set x ${MAKE-make}
2986 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2987 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2988   $as_echo_n "(cached) " >&6
2989 else
2990   cat >conftest.make <<\_ACEOF
2991 SHELL = /bin/sh
2992 all:
2993         @echo '@@@%%%=$(MAKE)=@@@%%%'
2994 _ACEOF
2995 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2996 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2997   *@@@%%%=?*=@@@%%%*)
2998     eval ac_cv_prog_make_${ac_make}_set=yes;;
2999   *)
3000     eval ac_cv_prog_make_${ac_make}_set=no;;
3001 esac
3002 rm -f conftest.make
3003 fi
3004 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3006 $as_echo "yes" >&6; }
3007   SET_MAKE=
3008 else
3009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3010 $as_echo "no" >&6; }
3011   SET_MAKE="MAKE=${MAKE-make}"
3012 fi
3013
3014 rm -rf .tst 2>/dev/null
3015 mkdir .tst 2>/dev/null
3016 if test -d .tst; then
3017   am__leading_dot=.
3018 else
3019   am__leading_dot=_
3020 fi
3021 rmdir .tst 2>/dev/null
3022
3023 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3024   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3025   # is not polluted with repeated "-I."
3026   am__isrc=' -I$(srcdir)'
3027   # test to see if srcdir already configured
3028   if test -f $srcdir/config.status; then
3029     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3030   fi
3031 fi
3032
3033 # test whether we have cygpath
3034 if test -z "$CYGPATH_W"; then
3035   if (cygpath --version) >/dev/null 2>/dev/null; then
3036     CYGPATH_W='cygpath -w'
3037   else
3038     CYGPATH_W=echo
3039   fi
3040 fi
3041
3042
3043 # Define the identity of the package.
3044  PACKAGE='libffi'
3045  VERSION='3.0.8'
3046
3047
3048 cat >>confdefs.h <<_ACEOF
3049 #define PACKAGE "$PACKAGE"
3050 _ACEOF
3051
3052
3053 cat >>confdefs.h <<_ACEOF
3054 #define VERSION "$VERSION"
3055 _ACEOF
3056
3057 # Some tools Automake needs.
3058
3059 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3060
3061
3062 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3063
3064
3065 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3066
3067
3068 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3069
3070
3071 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3072
3073 # We need awk for the "check" target.  The system "awk" is bad on
3074 # some platforms.
3075 # Always define AMTAR for backward compatibility.
3076
3077 AMTAR=${AMTAR-"${am_missing_run}tar"}
3078
3079 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3080
3081
3082
3083
3084
3085
3086 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3087 # We must force CC to /not/ be precious variables; otherwise
3088 # the wrong, non-multilib-adjusted value will be used in multilibs.
3089 # As a side effect, we have to subst CFLAGS ourselves.
3090
3091
3092
3093 ac_ext=c
3094 ac_cpp='$CPP $CPPFLAGS'
3095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3098 if test -n "$ac_tool_prefix"; then
3099   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if test "${ac_cv_prog_CC+set}" = set; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   if test -n "$CC"; then
3107   ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114     for ac_exec_ext in '' $ac_executable_extensions; do
3115   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121   done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136 fi
3137 if test -z "$ac_cv_prog_CC"; then
3138   ac_ct_CC=$CC
3139   # Extract the first word of "gcc", so it can be a program name with args.
3140 set dummy gcc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3144   $as_echo_n "(cached) " >&6
3145 else
3146   if test -n "$ac_ct_CC"; then
3147   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3148 else
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150 for as_dir in $PATH
3151 do
3152   IFS=$as_save_IFS
3153   test -z "$as_dir" && as_dir=.
3154     for ac_exec_ext in '' $ac_executable_extensions; do
3155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156     ac_cv_prog_ac_ct_CC="gcc"
3157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158     break 2
3159   fi
3160 done
3161   done
3162 IFS=$as_save_IFS
3163
3164 fi
3165 fi
3166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3167 if test -n "$ac_ct_CC"; then
3168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3169 $as_echo "$ac_ct_CC" >&6; }
3170 else
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3173 fi
3174
3175   if test "x$ac_ct_CC" = x; then
3176     CC=""
3177   else
3178     case $cross_compiling:$ac_tool_warned in
3179 yes:)
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3182 ac_tool_warned=yes ;;
3183 esac
3184     CC=$ac_ct_CC
3185   fi
3186 else
3187   CC="$ac_cv_prog_CC"
3188 fi
3189
3190 if test -z "$CC"; then
3191           if test -n "$ac_tool_prefix"; then
3192     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}cc; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if test "${ac_cv_prog_CC+set}" = set; then :
3197   $as_echo_n "(cached) " >&6
3198 else
3199   if test -n "$CC"; then
3200   ac_cv_prog_CC="$CC" # Let the user override the test.
3201 else
3202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 for as_dir in $PATH
3204 do
3205   IFS=$as_save_IFS
3206   test -z "$as_dir" && as_dir=.
3207     for ac_exec_ext in '' $ac_executable_extensions; do
3208   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3209     ac_cv_prog_CC="${ac_tool_prefix}cc"
3210     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3211     break 2
3212   fi
3213 done
3214   done
3215 IFS=$as_save_IFS
3216
3217 fi
3218 fi
3219 CC=$ac_cv_prog_CC
3220 if test -n "$CC"; then
3221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3222 $as_echo "$CC" >&6; }
3223 else
3224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3226 fi
3227
3228
3229   fi
3230 fi
3231 if test -z "$CC"; then
3232   # Extract the first word of "cc", so it can be a program name with args.
3233 set dummy cc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CC+set}" = set; then :
3237   $as_echo_n "(cached) " >&6
3238 else
3239   if test -n "$CC"; then
3240   ac_cv_prog_CC="$CC" # Let the user override the test.
3241 else
3242   ac_prog_rejected=no
3243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 for as_dir in $PATH
3245 do
3246   IFS=$as_save_IFS
3247   test -z "$as_dir" && as_dir=.
3248     for ac_exec_ext in '' $ac_executable_extensions; do
3249   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3251        ac_prog_rejected=yes
3252        continue
3253      fi
3254     ac_cv_prog_CC="cc"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262 if test $ac_prog_rejected = yes; then
3263   # We found a bogon in the path, so make sure we never use it.
3264   set dummy $ac_cv_prog_CC
3265   shift
3266   if test $# != 0; then
3267     # We chose a different compiler from the bogus one.
3268     # However, it has the same basename, so the bogon will be chosen
3269     # first if we set CC to just the basename; use the full file name.
3270     shift
3271     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3272   fi
3273 fi
3274 fi
3275 fi
3276 CC=$ac_cv_prog_CC
3277 if test -n "$CC"; then
3278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3279 $as_echo "$CC" >&6; }
3280 else
3281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 fi
3284
3285
3286 fi
3287 if test -z "$CC"; then
3288   if test -n "$ac_tool_prefix"; then
3289   for ac_prog in cl.exe
3290   do
3291     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if test "${ac_cv_prog_CC+set}" = set; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   if test -n "$CC"; then
3299   ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313   done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 CC=$ac_cv_prog_CC
3319 if test -n "$CC"; then
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328     test -n "$CC" && break
3329   done
3330 fi
3331 if test -z "$CC"; then
3332   ac_ct_CC=$CC
3333   for ac_prog in cl.exe
3334 do
3335   # Extract the first word of "$ac_prog", so it can be a program name with args.
3336 set dummy $ac_prog; ac_word=$2
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3338 $as_echo_n "checking for $ac_word... " >&6; }
3339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3340   $as_echo_n "(cached) " >&6
3341 else
3342   if test -n "$ac_ct_CC"; then
3343   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3344 else
3345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346 for as_dir in $PATH
3347 do
3348   IFS=$as_save_IFS
3349   test -z "$as_dir" && as_dir=.
3350     for ac_exec_ext in '' $ac_executable_extensions; do
3351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352     ac_cv_prog_ac_ct_CC="$ac_prog"
3353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3354     break 2
3355   fi
3356 done
3357   done
3358 IFS=$as_save_IFS
3359
3360 fi
3361 fi
3362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3363 if test -n "$ac_ct_CC"; then
3364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3365 $as_echo "$ac_ct_CC" >&6; }
3366 else
3367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3368 $as_echo "no" >&6; }
3369 fi
3370
3371
3372   test -n "$ac_ct_CC" && break
3373 done
3374
3375   if test "x$ac_ct_CC" = x; then
3376     CC=""
3377   else
3378     case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384     CC=$ac_ct_CC
3385   fi
3386 fi
3387
3388 fi
3389
3390
3391 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3393 as_fn_error "no acceptable C compiler found in \$PATH
3394 See \`config.log' for more details." "$LINENO" 5; }
3395
3396 # Provide some information about the compiler.
3397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3398 set X $ac_compile
3399 ac_compiler=$2
3400 for ac_option in --version -v -V -qversion; do
3401   { { ac_try="$ac_compiler $ac_option >&5"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3409   ac_status=$?
3410   if test -s conftest.err; then
3411     sed '10a\
3412 ... rest of stderr output deleted ...
3413          10q' conftest.err >conftest.er1
3414     cat conftest.er1 >&5
3415     rm -f conftest.er1 conftest.err
3416   fi
3417   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3418   test $ac_status = 0; }
3419 done
3420
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h.  */
3423
3424 int
3425 main ()
3426 {
3427
3428   ;
3429   return 0;
3430 }
3431 _ACEOF
3432 ac_clean_files_save=$ac_clean_files
3433 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3434 # Try to create an executable without -o first, disregard a.out.
3435 # It will help us diagnose broken compilers, and finding out an intuition
3436 # of exeext.
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3438 $as_echo_n "checking for C compiler default output file name... " >&6; }
3439 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3440
3441 # The possible output files:
3442 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3443
3444 ac_rmfiles=
3445 for ac_file in $ac_files
3446 do
3447   case $ac_file in
3448     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3449     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3450   esac
3451 done
3452 rm -f $ac_rmfiles
3453
3454 if { { ac_try="$ac_link_default"
3455 case "(($ac_try" in
3456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457   *) ac_try_echo=$ac_try;;
3458 esac
3459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3460 $as_echo "$ac_try_echo"; } >&5
3461   (eval "$ac_link_default") 2>&5
3462   ac_status=$?
3463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3464   test $ac_status = 0; }; then :
3465   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3467 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3468 # so that the user can short-circuit this test for compilers unknown to
3469 # Autoconf.
3470 for ac_file in $ac_files ''
3471 do
3472   test -f "$ac_file" || continue
3473   case $ac_file in
3474     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3475         ;;
3476     [ab].out )
3477         # We found the default executable, but exeext='' is most
3478         # certainly right.
3479         break;;
3480     *.* )
3481         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3482         then :; else
3483            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3484         fi
3485         # We set ac_cv_exeext here because the later test for it is not
3486         # safe: cross compilers may not add the suffix if given an `-o'
3487         # argument, so we may need to know it at that point already.
3488         # Even if this section looks crufty: it has the advantage of
3489         # actually working.
3490         break;;
3491     * )
3492         break;;
3493   esac
3494 done
3495 test "$ac_cv_exeext" = no && ac_cv_exeext=
3496
3497 else
3498   ac_file=''
3499 fi
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3501 $as_echo "$ac_file" >&6; }
3502 if test -z "$ac_file"; then :
3503   $as_echo "$as_me: failed program was:" >&5
3504 sed 's/^/| /' conftest.$ac_ext >&5
3505
3506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3508 { as_fn_set_status 77
3509 as_fn_error "C compiler cannot create executables
3510 See \`config.log' for more details." "$LINENO" 5; }; }
3511 fi
3512 ac_exeext=$ac_cv_exeext
3513
3514 # Check that the compiler produces executables we can run.  If not, either
3515 # the compiler is broken, or we cross compile.
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3517 $as_echo_n "checking whether the C compiler works... " >&6; }
3518 # If not cross compiling, check that we can run a simple program.
3519 if test "$cross_compiling" != yes; then
3520   if { ac_try='./$ac_file'
3521   { { case "(($ac_try" in
3522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523   *) ac_try_echo=$ac_try;;
3524 esac
3525 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3526 $as_echo "$ac_try_echo"; } >&5
3527   (eval "$ac_try") 2>&5
3528   ac_status=$?
3529   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3530   test $ac_status = 0; }; }; then
3531     cross_compiling=no
3532   else
3533     if test "$cross_compiling" = maybe; then
3534         cross_compiling=yes
3535     else
3536         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error "cannot run C compiled programs.
3539 If you meant to cross compile, use \`--host'.
3540 See \`config.log' for more details." "$LINENO" 5; }
3541     fi
3542   fi
3543 fi
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3545 $as_echo "yes" >&6; }
3546
3547 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3548 ac_clean_files=$ac_clean_files_save
3549 # Check that the compiler produces executables we can run.  If not, either
3550 # the compiler is broken, or we cross compile.
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3552 $as_echo_n "checking whether we are cross compiling... " >&6; }
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3554 $as_echo "$cross_compiling" >&6; }
3555
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3557 $as_echo_n "checking for suffix of executables... " >&6; }
3558 if { { ac_try="$ac_link"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_link") 2>&5
3566   ac_status=$?
3567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3568   test $ac_status = 0; }; then :
3569   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3570 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3571 # work properly (i.e., refer to `conftest.exe'), while it won't with
3572 # `rm'.
3573 for ac_file in conftest.exe conftest conftest.*; do
3574   test -f "$ac_file" || continue
3575   case $ac_file in
3576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3577     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3578           break;;
3579     * ) break;;
3580   esac
3581 done
3582 else
3583   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error "cannot compute suffix of executables: cannot compile and link
3586 See \`config.log' for more details." "$LINENO" 5; }
3587 fi
3588 rm -f conftest$ac_cv_exeext
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3590 $as_echo "$ac_cv_exeext" >&6; }
3591
3592 rm -f conftest.$ac_ext
3593 EXEEXT=$ac_cv_exeext
3594 ac_exeext=$EXEEXT
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if test "${ac_cv_objext+set}" = set; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
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_compile") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }; then :
3623   for ac_file in conftest.o conftest.obj conftest.*; do
3624   test -f "$ac_file" || continue;
3625   case $ac_file in
3626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3628        break;;
3629   esac
3630 done
3631 else
3632   $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details." "$LINENO" 5; }
3639 fi
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3645 ac_objext=$OBJEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657 #ifndef __GNUC__
3658        choke me
3659 #endif
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666   ac_compiler_gnu=yes
3667 else
3668   ac_compiler_gnu=no
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3677   GCC=yes
3678 else
3679   GCC=
3680 fi
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if test "${ac_cv_prog_cc_g+set}" = set; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   ac_save_c_werror_flag=$ac_c_werror_flag
3689    ac_c_werror_flag=yes
3690    ac_cv_prog_cc_g=no
3691    CFLAGS="-g"
3692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694
3695 int
3696 main ()
3697 {
3698
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704   ac_cv_prog_cc_g=yes
3705 else
3706   CFLAGS=""
3707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719
3720 else
3721   ac_c_werror_flag=$ac_save_c_werror_flag
3722          CFLAGS="-g"
3723          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735   ac_cv_prog_cc_g=yes
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742    ac_c_werror_flag=$ac_save_c_werror_flag
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747   CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749   if test "$GCC" = yes; then
3750     CFLAGS="-g -O2"
3751   else
3752     CFLAGS="-g"
3753   fi
3754 else
3755   if test "$GCC" = yes; then
3756     CFLAGS="-O2"
3757   else
3758     CFLAGS=
3759   fi
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   ac_cv_prog_cc_c89=no
3767 ac_save_CC=$CC
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 #include <sys/types.h>
3773 #include <sys/stat.h>
3774 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3775 struct buf { int x; };
3776 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777 static char *e (p, i)
3778      char **p;
3779      int i;
3780 {
3781   return p[i];
3782 }
3783 static char *f (char * (*g) (char **, int), char **p, ...)
3784 {
3785   char *s;
3786   va_list v;
3787   va_start (v,p);
3788   s = g (p, va_arg (v,int));
3789   va_end (v);
3790   return s;
3791 }
3792
3793 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3794    function prototypes and stuff, but not '\xHH' hex character constants.
3795    These don't provoke an error unfortunately, instead are silently treated
3796    as 'x'.  The following induces an error, until -std is added to get
3797    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3798    array size at least.  It's necessary to write '\x00'==0 to get something
3799    that's true only with -std.  */
3800 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801
3802 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803    inside strings and character constants.  */
3804 #define FOO(x) 'x'
3805 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806
3807 int test (int i, double x);
3808 struct s1 {int (*f) (int a);};
3809 struct s2 {int (*f) (double a);};
3810 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811 int argc;
3812 char **argv;
3813 int
3814 main ()
3815 {
3816 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3817   ;
3818   return 0;
3819 }
3820 _ACEOF
3821 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 do
3824   CC="$ac_save_CC $ac_arg"
3825   if ac_fn_c_try_compile "$LINENO"; then :
3826   ac_cv_prog_cc_c89=$ac_arg
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext
3829   test "x$ac_cv_prog_cc_c89" != "xno" && break
3830 done
3831 rm -f conftest.$ac_ext
3832 CC=$ac_save_CC
3833
3834 fi
3835 # AC_CACHE_VAL
3836 case "x$ac_cv_prog_cc_c89" in
3837   x)
3838     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 $as_echo "none needed" >&6; } ;;
3840   xno)
3841     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 $as_echo "unsupported" >&6; } ;;
3843   *)
3844     CC="$CC $ac_cv_prog_cc_c89"
3845     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 esac
3848 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849
3850 fi
3851
3852 ac_ext=c
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 DEPDIR="${am__leading_dot}deps"
3858
3859 ac_config_commands="$ac_config_commands depfiles"
3860
3861
3862 am_make=${MAKE-make}
3863 cat > confinc << 'END'
3864 am__doit:
3865         @echo this is the am__doit target
3866 .PHONY: am__doit
3867 END
3868 # If we don't find an include directive, just comment out the code.
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3870 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3871 am__include="#"
3872 am__quote=
3873 _am_result=none
3874 # First try GNU make style include.
3875 echo "include confinc" > confmf
3876 # Ignore all kinds of additional output from `make'.
3877 case `$am_make -s -f confmf 2> /dev/null` in #(
3878 *the\ am__doit\ target*)
3879   am__include=include
3880   am__quote=
3881   _am_result=GNU
3882   ;;
3883 esac
3884 # Now try BSD make style include.
3885 if test "$am__include" = "#"; then
3886    echo '.include "confinc"' > confmf
3887    case `$am_make -s -f confmf 2> /dev/null` in #(
3888    *the\ am__doit\ target*)
3889      am__include=.include
3890      am__quote="\""
3891      _am_result=BSD
3892      ;;
3893    esac
3894 fi
3895
3896
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3898 $as_echo "$_am_result" >&6; }
3899 rm -f confinc confmf
3900
3901 # Check whether --enable-dependency-tracking was given.
3902 if test "${enable_dependency_tracking+set}" = set; then :
3903   enableval=$enable_dependency_tracking;
3904 fi
3905
3906 if test "x$enable_dependency_tracking" != xno; then
3907   am_depcomp="$ac_aux_dir/depcomp"
3908   AMDEPBACKSLASH='\'
3909 fi
3910  if test "x$enable_dependency_tracking" != xno; then
3911   AMDEP_TRUE=
3912   AMDEP_FALSE='#'
3913 else
3914   AMDEP_TRUE='#'
3915   AMDEP_FALSE=
3916 fi
3917
3918
3919
3920 depcc="$CC"   am_compiler_list=
3921
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3923 $as_echo_n "checking dependency style of $depcc... " >&6; }
3924 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3928   # We make a subdir and do the tests there.  Otherwise we can end up
3929   # making bogus files that we don't know about and never remove.  For
3930   # instance it was reported that on HP-UX the gcc test will end up
3931   # making a dummy file named `D' -- because `-MD' means `put the output
3932   # in D'.
3933   mkdir conftest.dir
3934   # Copy depcomp to subdir because otherwise we won't find it if we're
3935   # using a relative directory.
3936   cp "$am_depcomp" conftest.dir
3937   cd conftest.dir
3938   # We will build objects and dependencies in a subdirectory because
3939   # it helps to detect inapplicable dependency modes.  For instance
3940   # both Tru64's cc and ICC support -MD to output dependencies as a
3941   # side effect of compilation, but ICC will put the dependencies in
3942   # the current directory while Tru64 will put them in the object
3943   # directory.
3944   mkdir sub
3945
3946   am_cv_CC_dependencies_compiler_type=none
3947   if test "$am_compiler_list" = ""; then
3948      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3949   fi
3950   am__universal=false
3951   case " $depcc " in #(
3952      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3953      esac
3954
3955   for depmode in $am_compiler_list; do
3956     # Setup a source with many dependencies, because some compilers
3957     # like to wrap large dependency lists on column 80 (with \), and
3958     # we should not choose a depcomp mode which is confused by this.
3959     #
3960     # We need to recreate these files for each test, as the compiler may
3961     # overwrite some of them when testing with obscure command lines.
3962     # This happens at least with the AIX C compiler.
3963     : > sub/conftest.c
3964     for i in 1 2 3 4 5 6; do
3965       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3966       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3967       # Solaris 8's {/usr,}/bin/sh.
3968       touch sub/conftst$i.h
3969     done
3970     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3971
3972     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3973     # mode.  It turns out that the SunPro C++ compiler does not properly
3974     # handle `-M -o', and we need to detect this.  Also, some Intel
3975     # versions had trouble with output in subdirs
3976     am__obj=sub/conftest.${OBJEXT-o}
3977     am__minus_obj="-o $am__obj"
3978     case $depmode in
3979     gcc)
3980       # This depmode causes a compiler race in universal mode.
3981       test "$am__universal" = false || continue
3982       ;;
3983     nosideeffect)
3984       # after this tag, mechanisms are not by side-effect, so they'll
3985       # only be used when explicitly requested
3986       if test "x$enable_dependency_tracking" = xyes; then
3987         continue
3988       else
3989         break
3990       fi
3991       ;;
3992     msvisualcpp | msvcmsys)
3993       # This compiler won't grok `-c -o', but also, the minuso test has
3994       # not run yet.  These depmodes are late enough in the game, and
3995       # so weak that their functioning should not be impacted.
3996       am__obj=conftest.${OBJEXT-o}
3997       am__minus_obj=
3998       ;;
3999     none) break ;;
4000     esac
4001     if depmode=$depmode \
4002        source=sub/conftest.c object=$am__obj \
4003        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4004        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4005          >/dev/null 2>conftest.err &&
4006        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4007        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4008        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4009        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4010       # icc doesn't choke on unknown options, it will just issue warnings
4011       # or remarks (even with -Werror).  So we grep stderr for any message
4012       # that says an option was ignored or not supported.
4013       # When given -MP, icc 7.0 and 7.1 complain thusly:
4014       #   icc: Command line warning: ignoring option '-M'; no argument required
4015       # The diagnosis changed in icc 8.0:
4016       #   icc: Command line remark: option '-MP' not supported
4017       if (grep 'ignoring option' conftest.err ||
4018           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4019         am_cv_CC_dependencies_compiler_type=$depmode
4020         break
4021       fi
4022     fi
4023   done
4024
4025   cd ..
4026   rm -rf conftest.dir
4027 else
4028   am_cv_CC_dependencies_compiler_type=none
4029 fi
4030
4031 fi
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4033 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4034 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4035
4036  if
4037   test "x$enable_dependency_tracking" != xno \
4038   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4039   am__fastdepCC_TRUE=
4040   am__fastdepCC_FALSE='#'
4041 else
4042   am__fastdepCC_TRUE='#'
4043   am__fastdepCC_FALSE=
4044 fi
4045
4046
4047
4048
4049
4050
4051 # By default we simply use the C compiler to build assembly code.
4052
4053 test "${CCAS+set}" = set || CCAS=$CC
4054 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4055
4056
4057
4058 depcc="$CCAS"   am_compiler_list=
4059
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4061 $as_echo_n "checking dependency style of $depcc... " >&6; }
4062 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4063   $as_echo_n "(cached) " >&6
4064 else
4065   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4066   # We make a subdir and do the tests there.  Otherwise we can end up
4067   # making bogus files that we don't know about and never remove.  For
4068   # instance it was reported that on HP-UX the gcc test will end up
4069   # making a dummy file named `D' -- because `-MD' means `put the output
4070   # in D'.
4071   mkdir conftest.dir
4072   # Copy depcomp to subdir because otherwise we won't find it if we're
4073   # using a relative directory.
4074   cp "$am_depcomp" conftest.dir
4075   cd conftest.dir
4076   # We will build objects and dependencies in a subdirectory because
4077   # it helps to detect inapplicable dependency modes.  For instance
4078   # both Tru64's cc and ICC support -MD to output dependencies as a
4079   # side effect of compilation, but ICC will put the dependencies in
4080   # the current directory while Tru64 will put them in the object
4081   # directory.
4082   mkdir sub
4083
4084   am_cv_CCAS_dependencies_compiler_type=none
4085   if test "$am_compiler_list" = ""; then
4086      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4087   fi
4088   am__universal=false
4089
4090
4091   for depmode in $am_compiler_list; do
4092     # Setup a source with many dependencies, because some compilers
4093     # like to wrap large dependency lists on column 80 (with \), and
4094     # we should not choose a depcomp mode which is confused by this.
4095     #
4096     # We need to recreate these files for each test, as the compiler may
4097     # overwrite some of them when testing with obscure command lines.
4098     # This happens at least with the AIX C compiler.
4099     : > sub/conftest.c
4100     for i in 1 2 3 4 5 6; do
4101       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4102       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4103       # Solaris 8's {/usr,}/bin/sh.
4104       touch sub/conftst$i.h
4105     done
4106     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4107
4108     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4109     # mode.  It turns out that the SunPro C++ compiler does not properly
4110     # handle `-M -o', and we need to detect this.  Also, some Intel
4111     # versions had trouble with output in subdirs
4112     am__obj=sub/conftest.${OBJEXT-o}
4113     am__minus_obj="-o $am__obj"
4114     case $depmode in
4115     gcc)
4116       # This depmode causes a compiler race in universal mode.
4117       test "$am__universal" = false || continue
4118       ;;
4119     nosideeffect)
4120       # after this tag, mechanisms are not by side-effect, so they'll
4121       # only be used when explicitly requested
4122       if test "x$enable_dependency_tracking" = xyes; then
4123         continue
4124       else
4125         break
4126       fi
4127       ;;
4128     msvisualcpp | msvcmsys)
4129       # This compiler won't grok `-c -o', but also, the minuso test has
4130       # not run yet.  These depmodes are late enough in the game, and
4131       # so weak that their functioning should not be impacted.
4132       am__obj=conftest.${OBJEXT-o}
4133       am__minus_obj=
4134       ;;
4135     none) break ;;
4136     esac
4137     if depmode=$depmode \
4138        source=sub/conftest.c object=$am__obj \
4139        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4140        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4141          >/dev/null 2>conftest.err &&
4142        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4143        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4144        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4145        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4146       # icc doesn't choke on unknown options, it will just issue warnings
4147       # or remarks (even with -Werror).  So we grep stderr for any message
4148       # that says an option was ignored or not supported.
4149       # When given -MP, icc 7.0 and 7.1 complain thusly:
4150       #   icc: Command line warning: ignoring option '-M'; no argument required
4151       # The diagnosis changed in icc 8.0:
4152       #   icc: Command line remark: option '-MP' not supported
4153       if (grep 'ignoring option' conftest.err ||
4154           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4155         am_cv_CCAS_dependencies_compiler_type=$depmode
4156         break
4157       fi
4158     fi
4159   done
4160
4161   cd ..
4162   rm -rf conftest.dir
4163 else
4164   am_cv_CCAS_dependencies_compiler_type=none
4165 fi
4166
4167 fi
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4169 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4170 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4171
4172  if
4173   test "x$enable_dependency_tracking" != xno \
4174   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4175   am__fastdepCCAS_TRUE=
4176   am__fastdepCCAS_FALSE='#'
4177 else
4178   am__fastdepCCAS_TRUE='#'
4179   am__fastdepCCAS_FALSE=
4180 fi
4181
4182
4183 if test "x$CC" != xcc; then
4184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4185 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4186 else
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4188 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4189 fi
4190 set dummy $CC; ac_cc=`$as_echo "$2" |
4191                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4192 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4193   $as_echo_n "(cached) " >&6
4194 else
4195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h.  */
4197
4198 int
4199 main ()
4200 {
4201
4202   ;
4203   return 0;
4204 }
4205 _ACEOF
4206 # Make sure it works both with $CC and with simple cc.
4207 # We do the test twice because some compilers refuse to overwrite an
4208 # existing .o file with -o, though they will create one.
4209 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4210 rm -f conftest2.*
4211 if { { case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217   (eval "$ac_try") 2>&5
4218   ac_status=$?
4219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220   test $ac_status = 0; } &&
4221    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 $as_echo "$ac_try_echo"; } >&5
4227   (eval "$ac_try") 2>&5
4228   ac_status=$?
4229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230   test $ac_status = 0; };
4231 then
4232   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4233   if test "x$CC" != xcc; then
4234     # Test first that cc exists at all.
4235     if { ac_try='cc -c conftest.$ac_ext >&5'
4236   { { case "(($ac_try" in
4237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238   *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4241 $as_echo "$ac_try_echo"; } >&5
4242   (eval "$ac_try") 2>&5
4243   ac_status=$?
4244   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4245   test $ac_status = 0; }; }; then
4246       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4247       rm -f conftest2.*
4248       if { { case "(($ac_try" in
4249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4250   *) ac_try_echo=$ac_try;;
4251 esac
4252 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4253 $as_echo "$ac_try_echo"; } >&5
4254   (eval "$ac_try") 2>&5
4255   ac_status=$?
4256   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4257   test $ac_status = 0; } &&
4258          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4260   *) ac_try_echo=$ac_try;;
4261 esac
4262 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4263 $as_echo "$ac_try_echo"; } >&5
4264   (eval "$ac_try") 2>&5
4265   ac_status=$?
4266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4267   test $ac_status = 0; };
4268       then
4269         # cc works too.
4270         :
4271       else
4272         # cc exists but doesn't like -o.
4273         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4274       fi
4275     fi
4276   fi
4277 else
4278   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4279 fi
4280 rm -f core conftest*
4281
4282 fi
4283 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 $as_echo "yes" >&6; }
4286 else
4287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4288 $as_echo "no" >&6; }
4289
4290 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4291
4292 fi
4293
4294 # FIXME: we rely on the cache variable name because
4295 # there is no other way.
4296 set dummy $CC
4297 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4298 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4299 if test "$am_t" != yes; then
4300    # Losing compiler, so override with the script.
4301    # FIXME: It is wrong to rewrite CC.
4302    # But if we don't then we get into trouble of one sort or another.
4303    # A longer-term fix would be to have automake use am__CC in this case,
4304    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4305    CC="$am_aux_dir/compile $CC"
4306 fi
4307
4308
4309 case `pwd` in
4310   *\ * | *\     *)
4311     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4312 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4313 esac
4314
4315
4316
4317 macro_version='2.2.7a'
4318 macro_revision='1.3134'
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 ltmain="$ac_aux_dir/ltmain.sh"
4333
4334 # Backslashify metacharacters that are still active within
4335 # double-quoted strings.
4336 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4337
4338 # Same as above, but do not quote variable references.
4339 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4340
4341 # Sed substitution to delay expansion of an escaped shell variable in a
4342 # double_quote_subst'ed string.
4343 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4344
4345 # Sed substitution to delay expansion of an escaped single quote.
4346 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4347
4348 # Sed substitution to avoid accidental globbing in evaled expressions
4349 no_glob_subst='s/\*/\\\*/g'
4350
4351 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4353 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4356 $as_echo_n "checking how to print strings... " >&6; }
4357 # Test print first, because it will be a builtin if present.
4358 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4359    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4360   ECHO='print -r --'
4361 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4362   ECHO='printf %s\n'
4363 else
4364   # Use this function as a fallback that always works.
4365   func_fallback_echo ()
4366   {
4367     eval 'cat <<_LTECHO_EOF
4368 $1
4369 _LTECHO_EOF'
4370   }
4371   ECHO='func_fallback_echo'
4372 fi
4373
4374 # func_echo_all arg...
4375 # Invoke $ECHO with all args, space-separated.
4376 func_echo_all ()
4377 {
4378     $ECHO ""
4379 }
4380
4381 case "$ECHO" in
4382   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4383 $as_echo "printf" >&6; } ;;
4384   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4385 $as_echo "print -r" >&6; } ;;
4386   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4387 $as_echo "cat" >&6; } ;;
4388 esac
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4404 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4405 if test "${ac_cv_path_SED+set}" = set; then :
4406   $as_echo_n "(cached) " >&6
4407 else
4408             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4409      for ac_i in 1 2 3 4 5 6 7; do
4410        ac_script="$ac_script$as_nl$ac_script"
4411      done
4412      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4413      { ac_script=; unset ac_script;}
4414      if test -z "$SED"; then
4415   ac_path_SED_found=false
4416   # Loop through the user's path and test for each of PROGNAME-LIST
4417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4419 do
4420   IFS=$as_save_IFS
4421   test -z "$as_dir" && as_dir=.
4422     for ac_prog in sed gsed; do
4423     for ac_exec_ext in '' $ac_executable_extensions; do
4424       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4425       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4426 # Check for GNU ac_path_SED and select it if it is found.
4427   # Check for GNU $ac_path_SED
4428 case `"$ac_path_SED" --version 2>&1` in
4429 *GNU*)
4430   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4431 *)
4432   ac_count=0
4433   $as_echo_n 0123456789 >"conftest.in"
4434   while :
4435   do
4436     cat "conftest.in" "conftest.in" >"conftest.tmp"
4437     mv "conftest.tmp" "conftest.in"
4438     cp "conftest.in" "conftest.nl"
4439     $as_echo '' >> "conftest.nl"
4440     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4441     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4442     as_fn_arith $ac_count + 1 && ac_count=$as_val
4443     if test $ac_count -gt ${ac_path_SED_max-0}; then
4444       # Best one so far, save it but keep looking for a better one
4445       ac_cv_path_SED="$ac_path_SED"
4446       ac_path_SED_max=$ac_count
4447     fi
4448     # 10*(2^10) chars as input seems more than enough
4449     test $ac_count -gt 10 && break
4450   done
4451   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4452 esac
4453
4454       $ac_path_SED_found && break 3
4455     done
4456   done
4457   done
4458 IFS=$as_save_IFS
4459   if test -z "$ac_cv_path_SED"; then
4460     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4461   fi
4462 else
4463   ac_cv_path_SED=$SED
4464 fi
4465
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4468 $as_echo "$ac_cv_path_SED" >&6; }
4469  SED="$ac_cv_path_SED"
4470   rm -f conftest.sed
4471
4472 test -z "$SED" && SED=sed
4473 Xsed="$SED -e 1s/^X//"
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4486 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4487 if test "${ac_cv_path_GREP+set}" = set; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if test -z "$GREP"; then
4491   ac_path_GREP_found=false
4492   # Loop through the user's path and test for each of PROGNAME-LIST
4493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498     for ac_prog in grep ggrep; do
4499     for ac_exec_ext in '' $ac_executable_extensions; do
4500       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4501       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4502 # Check for GNU ac_path_GREP and select it if it is found.
4503   # Check for GNU $ac_path_GREP
4504 case `"$ac_path_GREP" --version 2>&1` in
4505 *GNU*)
4506   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4507 *)
4508   ac_count=0
4509   $as_echo_n 0123456789 >"conftest.in"
4510   while :
4511   do
4512     cat "conftest.in" "conftest.in" >"conftest.tmp"
4513     mv "conftest.tmp" "conftest.in"
4514     cp "conftest.in" "conftest.nl"
4515     $as_echo 'GREP' >> "conftest.nl"
4516     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518     as_fn_arith $ac_count + 1 && ac_count=$as_val
4519     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4520       # Best one so far, save it but keep looking for a better one
4521       ac_cv_path_GREP="$ac_path_GREP"
4522       ac_path_GREP_max=$ac_count
4523     fi
4524     # 10*(2^10) chars as input seems more than enough
4525     test $ac_count -gt 10 && break
4526   done
4527   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4528 esac
4529
4530       $ac_path_GREP_found && break 3
4531     done
4532   done
4533   done
4534 IFS=$as_save_IFS
4535   if test -z "$ac_cv_path_GREP"; then
4536     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4537   fi
4538 else
4539   ac_cv_path_GREP=$GREP
4540 fi
4541
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4544 $as_echo "$ac_cv_path_GREP" >&6; }
4545  GREP="$ac_cv_path_GREP"
4546
4547
4548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4549 $as_echo_n "checking for egrep... " >&6; }
4550 if test "${ac_cv_path_EGREP+set}" = set; then :
4551   $as_echo_n "(cached) " >&6
4552 else
4553   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4554    then ac_cv_path_EGREP="$GREP -E"
4555    else
4556      if test -z "$EGREP"; then
4557   ac_path_EGREP_found=false
4558   # Loop through the user's path and test for each of PROGNAME-LIST
4559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564     for ac_prog in egrep; do
4565     for ac_exec_ext in '' $ac_executable_extensions; do
4566       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4567       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4568 # Check for GNU ac_path_EGREP and select it if it is found.
4569   # Check for GNU $ac_path_EGREP
4570 case `"$ac_path_EGREP" --version 2>&1` in
4571 *GNU*)
4572   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4573 *)
4574   ac_count=0
4575   $as_echo_n 0123456789 >"conftest.in"
4576   while :
4577   do
4578     cat "conftest.in" "conftest.in" >"conftest.tmp"
4579     mv "conftest.tmp" "conftest.in"
4580     cp "conftest.in" "conftest.nl"
4581     $as_echo 'EGREP' >> "conftest.nl"
4582     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4583     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4584     as_fn_arith $ac_count + 1 && ac_count=$as_val
4585     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4586       # Best one so far, save it but keep looking for a better one
4587       ac_cv_path_EGREP="$ac_path_EGREP"
4588       ac_path_EGREP_max=$ac_count
4589     fi
4590     # 10*(2^10) chars as input seems more than enough
4591     test $ac_count -gt 10 && break
4592   done
4593   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4594 esac
4595
4596       $ac_path_EGREP_found && break 3
4597     done
4598   done
4599   done
4600 IFS=$as_save_IFS
4601   if test -z "$ac_cv_path_EGREP"; then
4602     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4603   fi
4604 else
4605   ac_cv_path_EGREP=$EGREP
4606 fi
4607
4608    fi
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4611 $as_echo "$ac_cv_path_EGREP" >&6; }
4612  EGREP="$ac_cv_path_EGREP"
4613
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4616 $as_echo_n "checking for fgrep... " >&6; }
4617 if test "${ac_cv_path_FGREP+set}" = set; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4621    then ac_cv_path_FGREP="$GREP -F"
4622    else
4623      if test -z "$FGREP"; then
4624   ac_path_FGREP_found=false
4625   # Loop through the user's path and test for each of PROGNAME-LIST
4626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631     for ac_prog in fgrep; do
4632     for ac_exec_ext in '' $ac_executable_extensions; do
4633       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4634       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4635 # Check for GNU ac_path_FGREP and select it if it is found.
4636   # Check for GNU $ac_path_FGREP
4637 case `"$ac_path_FGREP" --version 2>&1` in
4638 *GNU*)
4639   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4640 *)
4641   ac_count=0
4642   $as_echo_n 0123456789 >"conftest.in"
4643   while :
4644   do
4645     cat "conftest.in" "conftest.in" >"conftest.tmp"
4646     mv "conftest.tmp" "conftest.in"
4647     cp "conftest.in" "conftest.nl"
4648     $as_echo 'FGREP' >> "conftest.nl"
4649     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4650     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4651     as_fn_arith $ac_count + 1 && ac_count=$as_val
4652     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4653       # Best one so far, save it but keep looking for a better one
4654       ac_cv_path_FGREP="$ac_path_FGREP"
4655       ac_path_FGREP_max=$ac_count
4656     fi
4657     # 10*(2^10) chars as input seems more than enough
4658     test $ac_count -gt 10 && break
4659   done
4660   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4661 esac
4662
4663       $ac_path_FGREP_found && break 3
4664     done
4665   done
4666   done
4667 IFS=$as_save_IFS
4668   if test -z "$ac_cv_path_FGREP"; then
4669     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4670   fi
4671 else
4672   ac_cv_path_FGREP=$FGREP
4673 fi
4674
4675    fi
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4678 $as_echo "$ac_cv_path_FGREP" >&6; }
4679  FGREP="$ac_cv_path_FGREP"
4680
4681
4682 test -z "$GREP" && GREP=grep
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702 # Check whether --with-gnu-ld was given.
4703 if test "${with_gnu_ld+set}" = set; then :
4704   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4705 else
4706   with_gnu_ld=no
4707 fi
4708
4709 ac_prog=ld
4710 if test "$GCC" = yes; then
4711   # Check if gcc -print-prog-name=ld gives a path.
4712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4713 $as_echo_n "checking for ld used by $CC... " >&6; }
4714   case $host in
4715   *-*-mingw*)
4716     # gcc leaves a trailing carriage return which upsets mingw
4717     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4718   *)
4719     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4720   esac
4721   case $ac_prog in
4722     # Accept absolute paths.
4723     [\\/]* | ?:[\\/]*)
4724       re_direlt='/[^/][^/]*/\.\./'
4725       # Canonicalize the pathname of ld
4726       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4727       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4728         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4729       done
4730       test -z "$LD" && LD="$ac_prog"
4731       ;;
4732   "")
4733     # If it fails, then pretend we aren't using GCC.
4734     ac_prog=ld
4735     ;;
4736   *)
4737     # If it is relative, then search for the first ld in PATH.
4738     with_gnu_ld=unknown
4739     ;;
4740   esac
4741 elif test "$with_gnu_ld" = yes; then
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4743 $as_echo_n "checking for GNU ld... " >&6; }
4744 else
4745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4746 $as_echo_n "checking for non-GNU ld... " >&6; }
4747 fi
4748 if test "${lt_cv_path_LD+set}" = set; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751   if test -z "$LD"; then
4752   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4753   for ac_dir in $PATH; do
4754     IFS="$lt_save_ifs"
4755     test -z "$ac_dir" && ac_dir=.
4756     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4757       lt_cv_path_LD="$ac_dir/$ac_prog"
4758       # Check to see if the program is GNU ld.  I'd rather use --version,
4759       # but apparently some variants of GNU ld only accept -v.
4760       # Break only if it was the GNU/non-GNU ld that we prefer.
4761       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4762       *GNU* | *'with BFD'*)
4763         test "$with_gnu_ld" != no && break
4764         ;;
4765       *)
4766         test "$with_gnu_ld" != yes && break
4767         ;;
4768       esac
4769     fi
4770   done
4771   IFS="$lt_save_ifs"
4772 else
4773   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4774 fi
4775 fi
4776
4777 LD="$lt_cv_path_LD"
4778 if test -n "$LD"; then
4779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4780 $as_echo "$LD" >&6; }
4781 else
4782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4784 fi
4785 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4787 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4788 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4792 case `$LD -v 2>&1 </dev/null` in
4793 *GNU* | *'with BFD'*)
4794   lt_cv_prog_gnu_ld=yes
4795   ;;
4796 *)
4797   lt_cv_prog_gnu_ld=no
4798   ;;
4799 esac
4800 fi
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4802 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4803 with_gnu_ld=$lt_cv_prog_gnu_ld
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4814 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4815 if test "${lt_cv_path_NM+set}" = set; then :
4816   $as_echo_n "(cached) " >&6
4817 else
4818   if test -n "$NM"; then
4819   # Let the user override the test.
4820   lt_cv_path_NM="$NM"
4821 else
4822   lt_nm_to_check="${ac_tool_prefix}nm"
4823   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4824     lt_nm_to_check="$lt_nm_to_check nm"
4825   fi
4826   for lt_tmp_nm in $lt_nm_to_check; do
4827     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4828     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4829       IFS="$lt_save_ifs"
4830       test -z "$ac_dir" && ac_dir=.
4831       tmp_nm="$ac_dir/$lt_tmp_nm"
4832       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4833         # Check to see if the nm accepts a BSD-compat flag.
4834         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4835         #   nm: unknown option "B" ignored
4836         # Tru64's nm complains that /dev/null is an invalid object file
4837         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4838         */dev/null* | *'Invalid file or object type'*)
4839           lt_cv_path_NM="$tmp_nm -B"
4840           break
4841           ;;
4842         *)
4843           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4844           */dev/null*)
4845             lt_cv_path_NM="$tmp_nm -p"
4846             break
4847             ;;
4848           *)
4849             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4850             continue # so that we can try to find one that supports BSD flags
4851             ;;
4852           esac
4853           ;;
4854         esac
4855       fi
4856     done
4857     IFS="$lt_save_ifs"
4858   done
4859   : ${lt_cv_path_NM=no}
4860 fi
4861 fi
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4863 $as_echo "$lt_cv_path_NM" >&6; }
4864 if test "$lt_cv_path_NM" != "no"; then
4865   NM="$lt_cv_path_NM"
4866 else
4867   # Didn't find any BSD compatible name lister, look for dumpbin.
4868   if test -n "$DUMPBIN"; then :
4869     # Let the user override the test.
4870   else
4871     if test -n "$ac_tool_prefix"; then
4872   for ac_prog in dumpbin "link -dump"
4873   do
4874     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4875 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4877 $as_echo_n "checking for $ac_word... " >&6; }
4878 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4879   $as_echo_n "(cached) " >&6
4880 else
4881   if test -n "$DUMPBIN"; then
4882   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4883 else
4884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 for as_dir in $PATH
4886 do
4887   IFS=$as_save_IFS
4888   test -z "$as_dir" && as_dir=.
4889     for ac_exec_ext in '' $ac_executable_extensions; do
4890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4891     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4893     break 2
4894   fi
4895 done
4896   done
4897 IFS=$as_save_IFS
4898
4899 fi
4900 fi
4901 DUMPBIN=$ac_cv_prog_DUMPBIN
4902 if test -n "$DUMPBIN"; then
4903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4904 $as_echo "$DUMPBIN" >&6; }
4905 else
4906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4907 $as_echo "no" >&6; }
4908 fi
4909
4910
4911     test -n "$DUMPBIN" && break
4912   done
4913 fi
4914 if test -z "$DUMPBIN"; then
4915   ac_ct_DUMPBIN=$DUMPBIN
4916   for ac_prog in dumpbin "link -dump"
4917 do
4918   # Extract the first word of "$ac_prog", so it can be a program name with args.
4919 set dummy $ac_prog; ac_word=$2
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4921 $as_echo_n "checking for $ac_word... " >&6; }
4922 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4923   $as_echo_n "(cached) " >&6
4924 else
4925   if test -n "$ac_ct_DUMPBIN"; then
4926   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4927 else
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933     for ac_exec_ext in '' $ac_executable_extensions; do
4934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4936     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4937     break 2
4938   fi
4939 done
4940   done
4941 IFS=$as_save_IFS
4942
4943 fi
4944 fi
4945 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4946 if test -n "$ac_ct_DUMPBIN"; then
4947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4948 $as_echo "$ac_ct_DUMPBIN" >&6; }
4949 else
4950   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4951 $as_echo "no" >&6; }
4952 fi
4953
4954
4955   test -n "$ac_ct_DUMPBIN" && break
4956 done
4957
4958   if test "x$ac_ct_DUMPBIN" = x; then
4959     DUMPBIN=":"
4960   else
4961     case $cross_compiling:$ac_tool_warned in
4962 yes:)
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4965 ac_tool_warned=yes ;;
4966 esac
4967     DUMPBIN=$ac_ct_DUMPBIN
4968   fi
4969 fi
4970
4971     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4972     *COFF*)
4973       DUMPBIN="$DUMPBIN -symbols"
4974       ;;
4975     *)
4976       DUMPBIN=:
4977       ;;
4978     esac
4979   fi
4980
4981   if test "$DUMPBIN" != ":"; then
4982     NM="$DUMPBIN"
4983   fi
4984 fi
4985 test -z "$NM" && NM=nm
4986
4987
4988
4989
4990
4991
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4993 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4994 if test "${lt_cv_nm_interface+set}" = set; then :
4995   $as_echo_n "(cached) " >&6
4996 else
4997   lt_cv_nm_interface="BSD nm"
4998   echo "int some_variable = 0;" > conftest.$ac_ext
4999   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5000   (eval "$ac_compile" 2>conftest.err)
5001   cat conftest.err >&5
5002   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5003   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5004   cat conftest.err >&5
5005   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5006   cat conftest.out >&5
5007   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5008     lt_cv_nm_interface="MS dumpbin"
5009   fi
5010   rm -f conftest*
5011 fi
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5013 $as_echo "$lt_cv_nm_interface" >&6; }
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5016 $as_echo_n "checking whether ln -s works... " >&6; }
5017 LN_S=$as_ln_s
5018 if test "$LN_S" = "ln -s"; then
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5020 $as_echo "yes" >&6; }
5021 else
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5023 $as_echo "no, using $LN_S" >&6; }
5024 fi
5025
5026 # find the maximum length of command line arguments
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5028 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5029 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032     i=0
5033   teststring="ABCD"
5034
5035   case $build_os in
5036   msdosdjgpp*)
5037     # On DJGPP, this test can blow up pretty badly due to problems in libc
5038     # (any single argument exceeding 2000 bytes causes a buffer overrun
5039     # during glob expansion).  Even if it were fixed, the result of this
5040     # check would be larger than it should be.
5041     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5042     ;;
5043
5044   gnu*)
5045     # Under GNU Hurd, this test is not required because there is
5046     # no limit to the length of command line arguments.
5047     # Libtool will interpret -1 as no limit whatsoever
5048     lt_cv_sys_max_cmd_len=-1;
5049     ;;
5050
5051   cygwin* | mingw* | cegcc*)
5052     # On Win9x/ME, this test blows up -- it succeeds, but takes
5053     # about 5 minutes as the teststring grows exponentially.
5054     # Worse, since 9x/ME are not pre-emptively multitasking,
5055     # you end up with a "frozen" computer, even though with patience
5056     # the test eventually succeeds (with a max line length of 256k).
5057     # Instead, let's just punt: use the minimum linelength reported by
5058     # all of the supported platforms: 8192 (on NT/2K/XP).
5059     lt_cv_sys_max_cmd_len=8192;
5060     ;;
5061
5062   mint*)
5063     # On MiNT this can take a long time and run out of memory.
5064     lt_cv_sys_max_cmd_len=8192;
5065     ;;
5066
5067   amigaos*)
5068     # On AmigaOS with pdksh, this test takes hours, literally.
5069     # So we just punt and use a minimum line length of 8192.
5070     lt_cv_sys_max_cmd_len=8192;
5071     ;;
5072
5073   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5074     # This has been around since 386BSD, at least.  Likely further.
5075     if test -x /sbin/sysctl; then
5076       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5077     elif test -x /usr/sbin/sysctl; then
5078       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5079     else
5080       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5081     fi
5082     # And add a safety zone
5083     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5084     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5085     ;;
5086
5087   interix*)
5088     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5089     lt_cv_sys_max_cmd_len=196608
5090     ;;
5091
5092   osf*)
5093     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5094     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5095     # nice to cause kernel panics so lets avoid the loop below.
5096     # First set a reasonable default.
5097     lt_cv_sys_max_cmd_len=16384
5098     #
5099     if test -x /sbin/sysconfig; then
5100       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5101         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5102       esac
5103     fi
5104     ;;
5105   sco3.2v5*)
5106     lt_cv_sys_max_cmd_len=102400
5107     ;;
5108   sysv5* | sco5v6* | sysv4.2uw2*)
5109     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5110     if test -n "$kargmax"; then
5111       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5112     else
5113       lt_cv_sys_max_cmd_len=32768
5114     fi
5115     ;;
5116   *)
5117     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5118     if test -n "$lt_cv_sys_max_cmd_len"; then
5119       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5120       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5121     else
5122       # Make teststring a little bigger before we do anything with it.
5123       # a 1K string should be a reasonable start.
5124       for i in 1 2 3 4 5 6 7 8 ; do
5125         teststring=$teststring$teststring
5126       done
5127       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5128       # If test is not a shell built-in, we'll probably end up computing a
5129       # maximum length that is only half of the actual maximum length, but
5130       # we can't tell.
5131       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5132                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5133               test $i != 17 # 1/2 MB should be enough
5134       do
5135         i=`expr $i + 1`
5136         teststring=$teststring$teststring
5137       done
5138       # Only check the string length outside the loop.
5139       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5140       teststring=
5141       # Add a significant safety factor because C++ compilers can tack on
5142       # massive amounts of additional arguments before passing them to the
5143       # linker.  It appears as though 1/2 is a usable value.
5144       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5145     fi
5146     ;;
5147   esac
5148
5149 fi
5150
5151 if test -n $lt_cv_sys_max_cmd_len ; then
5152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5153 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5154 else
5155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5156 $as_echo "none" >&6; }
5157 fi
5158 max_cmd_len=$lt_cv_sys_max_cmd_len
5159
5160
5161
5162
5163
5164
5165 : ${CP="cp -f"}
5166 : ${MV="mv -f"}
5167 : ${RM="rm -f"}
5168
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5170 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5171 # Try some XSI features
5172 xsi_shell=no
5173 ( _lt_dummy="a/b/c"
5174   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5175       = c,a/b,, \
5176     && eval 'test $(( 1 + 1 )) -eq 2 \
5177     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5178   && xsi_shell=yes
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5180 $as_echo "$xsi_shell" >&6; }
5181
5182
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5184 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5185 lt_shell_append=no
5186 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5187     >/dev/null 2>&1 \
5188   && lt_shell_append=yes
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5190 $as_echo "$lt_shell_append" >&6; }
5191
5192
5193 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5194   lt_unset=unset
5195 else
5196   lt_unset=false
5197 fi
5198
5199
5200
5201
5202
5203 # test EBCDIC or ASCII
5204 case `echo X|tr X '\101'` in
5205  A) # ASCII based system
5206     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5207   lt_SP2NL='tr \040 \012'
5208   lt_NL2SP='tr \015\012 \040\040'
5209   ;;
5210  *) # EBCDIC based system
5211   lt_SP2NL='tr \100 \n'
5212   lt_NL2SP='tr \r\n \100\100'
5213   ;;
5214 esac
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5225 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5226 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229   lt_cv_ld_reload_flag='-r'
5230 fi
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5232 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5233 reload_flag=$lt_cv_ld_reload_flag
5234 case $reload_flag in
5235 "" | " "*) ;;
5236 *) reload_flag=" $reload_flag" ;;
5237 esac
5238 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5239 case $host_os in
5240   darwin*)
5241     if test "$GCC" = yes; then
5242       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5243     else
5244       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5245     fi
5246     ;;
5247 esac
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257 if test -n "$ac_tool_prefix"; then
5258   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5259 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5261 $as_echo_n "checking for $ac_word... " >&6; }
5262 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   if test -n "$OBJDUMP"; then
5266   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273     for ac_exec_ext in '' $ac_executable_extensions; do
5274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5275     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5276     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280   done
5281 IFS=$as_save_IFS
5282
5283 fi
5284 fi
5285 OBJDUMP=$ac_cv_prog_OBJDUMP
5286 if test -n "$OBJDUMP"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5288 $as_echo "$OBJDUMP" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294
5295 fi
5296 if test -z "$ac_cv_prog_OBJDUMP"; then
5297   ac_ct_OBJDUMP=$OBJDUMP
5298   # Extract the first word of "objdump", so it can be a program name with args.
5299 set dummy objdump; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5303   $as_echo_n "(cached) " >&6
5304 else
5305   if test -n "$ac_ct_OBJDUMP"; then
5306   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5307 else
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5309 for as_dir in $PATH
5310 do
5311   IFS=$as_save_IFS
5312   test -z "$as_dir" && as_dir=.
5313     for ac_exec_ext in '' $ac_executable_extensions; do
5314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5317     break 2
5318   fi
5319 done
5320   done
5321 IFS=$as_save_IFS
5322
5323 fi
5324 fi
5325 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5326 if test -n "$ac_ct_OBJDUMP"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5328 $as_echo "$ac_ct_OBJDUMP" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334   if test "x$ac_ct_OBJDUMP" = x; then
5335     OBJDUMP="false"
5336   else
5337     case $cross_compiling:$ac_tool_warned in
5338 yes:)
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341 ac_tool_warned=yes ;;
5342 esac
5343     OBJDUMP=$ac_ct_OBJDUMP
5344   fi
5345 else
5346   OBJDUMP="$ac_cv_prog_OBJDUMP"
5347 fi
5348
5349 test -z "$OBJDUMP" && OBJDUMP=objdump
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5360 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5361 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   lt_cv_file_magic_cmd='$MAGIC_CMD'
5365 lt_cv_file_magic_test_file=
5366 lt_cv_deplibs_check_method='unknown'
5367 # Need to set the preceding variable on all platforms that support
5368 # interlibrary dependencies.
5369 # 'none' -- dependencies not supported.
5370 # `unknown' -- same as none, but documents that we really don't know.
5371 # 'pass_all' -- all dependencies passed with no checks.
5372 # 'test_compile' -- check by making test program.
5373 # 'file_magic [[regex]]' -- check by looking for files in library path
5374 # which responds to the $file_magic_cmd with a given extended regex.
5375 # If you have `file' or equivalent on your system and you're not sure
5376 # whether `pass_all' will *always* work, you probably want this one.
5377
5378 case $host_os in
5379 aix[4-9]*)
5380   lt_cv_deplibs_check_method=pass_all
5381   ;;
5382
5383 beos*)
5384   lt_cv_deplibs_check_method=pass_all
5385   ;;
5386
5387 bsdi[45]*)
5388   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5389   lt_cv_file_magic_cmd='/usr/bin/file -L'
5390   lt_cv_file_magic_test_file=/shlib/libc.so
5391   ;;
5392
5393 cygwin*)
5394   # func_win32_libid is a shell function defined in ltmain.sh
5395   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5396   lt_cv_file_magic_cmd='func_win32_libid'
5397   ;;
5398
5399 mingw* | pw32*)
5400   # Base MSYS/MinGW do not provide the 'file' command needed by
5401   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5402   # unless we find 'file', for example because we are cross-compiling.
5403   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5404   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5405     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5406     lt_cv_file_magic_cmd='func_win32_libid'
5407   else
5408     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5409     lt_cv_file_magic_cmd='$OBJDUMP -f'
5410   fi
5411   ;;
5412
5413 cegcc*)
5414   # use the weaker test based on 'objdump'. See mingw*.
5415   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5416   lt_cv_file_magic_cmd='$OBJDUMP -f'
5417   ;;
5418
5419 darwin* | rhapsody*)
5420   lt_cv_deplibs_check_method=pass_all
5421   ;;
5422
5423 freebsd* | dragonfly*)
5424   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5425     case $host_cpu in
5426     i*86 )
5427       # Not sure whether the presence of OpenBSD here was a mistake.
5428       # Let's accept both of them until this is cleared up.
5429       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5430       lt_cv_file_magic_cmd=/usr/bin/file
5431       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5432       ;;
5433     esac
5434   else
5435     lt_cv_deplibs_check_method=pass_all
5436   fi
5437   ;;
5438
5439 gnu*)
5440   lt_cv_deplibs_check_method=pass_all
5441   ;;
5442
5443 haiku*)
5444   lt_cv_deplibs_check_method=pass_all
5445   ;;
5446
5447 hpux10.20* | hpux11*)
5448   lt_cv_file_magic_cmd=/usr/bin/file
5449   case $host_cpu in
5450   ia64*)
5451     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5452     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5453     ;;
5454   hppa*64*)
5455     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]'
5456     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5457     ;;
5458   *)
5459     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5460     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5461     ;;
5462   esac
5463   ;;
5464
5465 interix[3-9]*)
5466   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5467   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5468   ;;
5469
5470 irix5* | irix6* | nonstopux*)
5471   case $LD in
5472   *-32|*"-32 ") libmagic=32-bit;;
5473   *-n32|*"-n32 ") libmagic=N32;;
5474   *-64|*"-64 ") libmagic=64-bit;;
5475   *) libmagic=never-match;;
5476   esac
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 # This must be Linux ELF.
5481 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5482   lt_cv_deplibs_check_method=pass_all
5483   ;;
5484
5485 netbsd*)
5486   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5487     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5488   else
5489     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5490   fi
5491   ;;
5492
5493 newos6*)
5494   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5495   lt_cv_file_magic_cmd=/usr/bin/file
5496   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5497   ;;
5498
5499 *nto* | *qnx*)
5500   lt_cv_deplibs_check_method=pass_all
5501   ;;
5502
5503 openbsd*)
5504   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5505     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5506   else
5507     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5508   fi
5509   ;;
5510
5511 osf3* | osf4* | osf5*)
5512   lt_cv_deplibs_check_method=pass_all
5513   ;;
5514
5515 rdos*)
5516   lt_cv_deplibs_check_method=pass_all
5517   ;;
5518
5519 solaris*)
5520   lt_cv_deplibs_check_method=pass_all
5521   ;;
5522
5523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5524   lt_cv_deplibs_check_method=pass_all
5525   ;;
5526
5527 sysv4 | sysv4.3*)
5528   case $host_vendor in
5529   motorola)
5530     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]'
5531     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5532     ;;
5533   ncr)
5534     lt_cv_deplibs_check_method=pass_all
5535     ;;
5536   sequent)
5537     lt_cv_file_magic_cmd='/bin/file'
5538     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5539     ;;
5540   sni)
5541     lt_cv_file_magic_cmd='/bin/file'
5542     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5543     lt_cv_file_magic_test_file=/lib/libc.so
5544     ;;
5545   siemens)
5546     lt_cv_deplibs_check_method=pass_all
5547     ;;
5548   pc)
5549     lt_cv_deplibs_check_method=pass_all
5550     ;;
5551   esac
5552   ;;
5553
5554 tpf*)
5555   lt_cv_deplibs_check_method=pass_all
5556   ;;
5557 esac
5558
5559 fi
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5561 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5562 file_magic_cmd=$lt_cv_file_magic_cmd
5563 deplibs_check_method=$lt_cv_deplibs_check_method
5564 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577 if test -n "$ac_tool_prefix"; then
5578   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5579 set dummy ${ac_tool_prefix}ar; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_AR+set}" = set; then :
5583   $as_echo_n "(cached) " >&6
5584 else
5585   if test -n "$AR"; then
5586   ac_cv_prog_AR="$AR" # Let the user override the test.
5587 else
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589 for as_dir in $PATH
5590 do
5591   IFS=$as_save_IFS
5592   test -z "$as_dir" && as_dir=.
5593     for ac_exec_ext in '' $ac_executable_extensions; do
5594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595     ac_cv_prog_AR="${ac_tool_prefix}ar"
5596     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597     break 2
5598   fi
5599 done
5600   done
5601 IFS=$as_save_IFS
5602
5603 fi
5604 fi
5605 AR=$ac_cv_prog_AR
5606 if test -n "$AR"; then
5607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5608 $as_echo "$AR" >&6; }
5609 else
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5612 fi
5613
5614
5615 fi
5616 if test -z "$ac_cv_prog_AR"; then
5617   ac_ct_AR=$AR
5618   # Extract the first word of "ar", so it can be a program name with args.
5619 set dummy ar; ac_word=$2
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621 $as_echo_n "checking for $ac_word... " >&6; }
5622 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5623   $as_echo_n "(cached) " >&6
5624 else
5625   if test -n "$ac_ct_AR"; then
5626   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5627 else
5628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629 for as_dir in $PATH
5630 do
5631   IFS=$as_save_IFS
5632   test -z "$as_dir" && as_dir=.
5633     for ac_exec_ext in '' $ac_executable_extensions; do
5634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5635     ac_cv_prog_ac_ct_AR="ar"
5636     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637     break 2
5638   fi
5639 done
5640   done
5641 IFS=$as_save_IFS
5642
5643 fi
5644 fi
5645 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5646 if test -n "$ac_ct_AR"; then
5647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5648 $as_echo "$ac_ct_AR" >&6; }
5649 else
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651 $as_echo "no" >&6; }
5652 fi
5653
5654   if test "x$ac_ct_AR" = x; then
5655     AR="false"
5656   else
5657     case $cross_compiling:$ac_tool_warned in
5658 yes:)
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661 ac_tool_warned=yes ;;
5662 esac
5663     AR=$ac_ct_AR
5664   fi
5665 else
5666   AR="$ac_cv_prog_AR"
5667 fi
5668
5669 test -z "$AR" && AR=ar
5670 test -z "$AR_FLAGS" && AR_FLAGS=cru
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 if test -n "$ac_tool_prefix"; then
5683   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5684 set dummy ${ac_tool_prefix}strip; ac_word=$2
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5686 $as_echo_n "checking for $ac_word... " >&6; }
5687 if test "${ac_cv_prog_STRIP+set}" = set; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   if test -n "$STRIP"; then
5691   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5692 else
5693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708 fi
5709 fi
5710 STRIP=$ac_cv_prog_STRIP
5711 if test -n "$STRIP"; then
5712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5713 $as_echo "$STRIP" >&6; }
5714 else
5715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5716 $as_echo "no" >&6; }
5717 fi
5718
5719
5720 fi
5721 if test -z "$ac_cv_prog_STRIP"; then
5722   ac_ct_STRIP=$STRIP
5723   # Extract the first word of "strip", so it can be a program name with args.
5724 set dummy strip; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if test -n "$ac_ct_STRIP"; then
5731   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740     ac_cv_prog_ac_ct_STRIP="strip"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5751 if test -n "$ac_ct_STRIP"; then
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5753 $as_echo "$ac_ct_STRIP" >&6; }
5754 else
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759   if test "x$ac_ct_STRIP" = x; then
5760     STRIP=":"
5761   else
5762     case $cross_compiling:$ac_tool_warned in
5763 yes:)
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5765 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5766 ac_tool_warned=yes ;;
5767 esac
5768     STRIP=$ac_ct_STRIP
5769   fi
5770 else
5771   STRIP="$ac_cv_prog_STRIP"
5772 fi
5773
5774 test -z "$STRIP" && STRIP=:
5775
5776
5777
5778
5779
5780
5781 if test -n "$ac_tool_prefix"; then
5782   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 $as_echo_n "checking for $ac_word... " >&6; }
5786 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5787   $as_echo_n "(cached) " >&6
5788 else
5789   if test -n "$RANLIB"; then
5790   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5791 else
5792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797     for ac_exec_ext in '' $ac_executable_extensions; do
5798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5799     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804   done
5805 IFS=$as_save_IFS
5806
5807 fi
5808 fi
5809 RANLIB=$ac_cv_prog_RANLIB
5810 if test -n "$RANLIB"; then
5811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5812 $as_echo "$RANLIB" >&6; }
5813 else
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5815 $as_echo "no" >&6; }
5816 fi
5817
5818
5819 fi
5820 if test -z "$ac_cv_prog_RANLIB"; then
5821   ac_ct_RANLIB=$RANLIB
5822   # Extract the first word of "ranlib", so it can be a program name with args.
5823 set dummy ranlib; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   if test -n "$ac_ct_RANLIB"; then
5830   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837     for ac_exec_ext in '' $ac_executable_extensions; do
5838   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5839     ac_cv_prog_ac_ct_RANLIB="ranlib"
5840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844   done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5850 if test -n "$ac_ct_RANLIB"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5852 $as_echo "$ac_ct_RANLIB" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858   if test "x$ac_ct_RANLIB" = x; then
5859     RANLIB=":"
5860   else
5861     case $cross_compiling:$ac_tool_warned in
5862 yes:)
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5865 ac_tool_warned=yes ;;
5866 esac
5867     RANLIB=$ac_ct_RANLIB
5868   fi
5869 else
5870   RANLIB="$ac_cv_prog_RANLIB"
5871 fi
5872
5873 test -z "$RANLIB" && RANLIB=:
5874
5875
5876
5877
5878
5879
5880 # Determine commands to create old-style static archives.
5881 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5882 old_postinstall_cmds='chmod 644 $oldlib'
5883 old_postuninstall_cmds=
5884
5885 if test -n "$RANLIB"; then
5886   case $host_os in
5887   openbsd*)
5888     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5889     ;;
5890   *)
5891     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5892     ;;
5893   esac
5894   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5895 fi
5896
5897 case $host_os in
5898   darwin*)
5899     lock_old_archive_extraction=yes ;;
5900   *)
5901     lock_old_archive_extraction=no ;;
5902 esac
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942 # If no C compiler was specified, use CC.
5943 LTCC=${LTCC-"$CC"}
5944
5945 # If no C compiler flags were specified, use CFLAGS.
5946 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5947
5948 # Allow CC to be a program name with arguments.
5949 compiler=$CC
5950
5951
5952 # Check for command to grab the raw symbol name followed by C symbol from nm.
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5954 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5955 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958
5959 # These are sane defaults that work on at least a few old systems.
5960 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5961
5962 # Character class describing NM global symbol codes.
5963 symcode='[BCDEGRST]'
5964
5965 # Regexp to match symbols that can be accessed directly from C.
5966 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5967
5968 # Define system-specific variables.
5969 case $host_os in
5970 aix*)
5971   symcode='[BCDT]'
5972   ;;
5973 cygwin* | mingw* | pw32* | cegcc*)
5974   symcode='[ABCDGISTW]'
5975   ;;
5976 hpux*)
5977   if test "$host_cpu" = ia64; then
5978     symcode='[ABCDEGRST]'
5979   fi
5980   ;;
5981 irix* | nonstopux*)
5982   symcode='[BCDEGRST]'
5983   ;;
5984 osf*)
5985   symcode='[BCDEGQRST]'
5986   ;;
5987 solaris*)
5988   symcode='[BDRT]'
5989   ;;
5990 sco3.2v5*)
5991   symcode='[DT]'
5992   ;;
5993 sysv4.2uw2*)
5994   symcode='[DT]'
5995   ;;
5996 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5997   symcode='[ABDT]'
5998   ;;
5999 sysv4)
6000   symcode='[DFNSTU]'
6001   ;;
6002 esac
6003
6004 # If we're using GNU nm, then use its standard symbol codes.
6005 case `$NM -V 2>&1` in
6006 *GNU* | *'with BFD'*)
6007   symcode='[ABCDGIRSTW]' ;;
6008 esac
6009
6010 # Transform an extracted symbol line into a proper C declaration.
6011 # Some systems (esp. on ia64) link data and code symbols differently,
6012 # so use this general approach.
6013 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6014
6015 # Transform an extracted symbol line into symbol name and symbol address
6016 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6017 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'"
6018
6019 # Handle CRLF in mingw tool chain
6020 opt_cr=
6021 case $build_os in
6022 mingw*)
6023   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6024   ;;
6025 esac
6026
6027 # Try without a prefix underscore, then with it.
6028 for ac_symprfx in "" "_"; do
6029
6030   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6031   symxfrm="\\1 $ac_symprfx\\2 \\2"
6032
6033   # Write the raw and C identifiers.
6034   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6035     # Fake it for dumpbin and say T for any non-static function
6036     # and D for any global variable.
6037     # Also find C++ and __fastcall symbols from MSVC++,
6038     # which start with @ or ?.
6039     lt_cv_sys_global_symbol_pipe="$AWK '"\
6040 "     {last_section=section; section=\$ 3};"\
6041 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6042 "     \$ 0!~/External *\|/{next};"\
6043 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6044 "     {if(hide[section]) next};"\
6045 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6046 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6047 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6048 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6049 "     ' prfx=^$ac_symprfx"
6050   else
6051     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6052   fi
6053
6054   # Check to see that the pipe works correctly.
6055   pipe_works=no
6056
6057   rm -f conftest*
6058   cat > conftest.$ac_ext <<_LT_EOF
6059 #ifdef __cplusplus
6060 extern "C" {
6061 #endif
6062 char nm_test_var;
6063 void nm_test_func(void);
6064 void nm_test_func(void){}
6065 #ifdef __cplusplus
6066 }
6067 #endif
6068 int main(){nm_test_var='a';nm_test_func();return(0);}
6069 _LT_EOF
6070
6071   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6072   (eval $ac_compile) 2>&5
6073   ac_status=$?
6074   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6075   test $ac_status = 0; }; then
6076     # Now try to grab the symbols.
6077     nlist=conftest.nm
6078     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6079   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6080   ac_status=$?
6081   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6082   test $ac_status = 0; } && test -s "$nlist"; then
6083       # Try sorting and uniquifying the output.
6084       if sort "$nlist" | uniq > "$nlist"T; then
6085         mv -f "$nlist"T "$nlist"
6086       else
6087         rm -f "$nlist"T
6088       fi
6089
6090       # Make sure that we snagged all the symbols we need.
6091       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6092         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6093           cat <<_LT_EOF > conftest.$ac_ext
6094 #ifdef __cplusplus
6095 extern "C" {
6096 #endif
6097
6098 _LT_EOF
6099           # Now generate the symbol file.
6100           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6101
6102           cat <<_LT_EOF >> conftest.$ac_ext
6103
6104 /* The mapping between symbol names and symbols.  */
6105 const struct {
6106   const char *name;
6107   void       *address;
6108 }
6109 lt__PROGRAM__LTX_preloaded_symbols[] =
6110 {
6111   { "@PROGRAM@", (void *) 0 },
6112 _LT_EOF
6113           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6114           cat <<\_LT_EOF >> conftest.$ac_ext
6115   {0, (void *) 0}
6116 };
6117
6118 /* This works around a problem in FreeBSD linker */
6119 #ifdef FREEBSD_WORKAROUND
6120 static const void *lt_preloaded_setup() {
6121   return lt__PROGRAM__LTX_preloaded_symbols;
6122 }
6123 #endif
6124
6125 #ifdef __cplusplus
6126 }
6127 #endif
6128 _LT_EOF
6129           # Now try linking the two files.
6130           mv conftest.$ac_objext conftstm.$ac_objext
6131           lt_save_LIBS="$LIBS"
6132           lt_save_CFLAGS="$CFLAGS"
6133           LIBS="conftstm.$ac_objext"
6134           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6135           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6136   (eval $ac_link) 2>&5
6137   ac_status=$?
6138   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6139   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6140             pipe_works=yes
6141           fi
6142           LIBS="$lt_save_LIBS"
6143           CFLAGS="$lt_save_CFLAGS"
6144         else
6145           echo "cannot find nm_test_func in $nlist" >&5
6146         fi
6147       else
6148         echo "cannot find nm_test_var in $nlist" >&5
6149       fi
6150     else
6151       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6152     fi
6153   else
6154     echo "$progname: failed program was:" >&5
6155     cat conftest.$ac_ext >&5
6156   fi
6157   rm -rf conftest* conftst*
6158
6159   # Do not use the global_symbol_pipe unless it works.
6160   if test "$pipe_works" = yes; then
6161     break
6162   else
6163     lt_cv_sys_global_symbol_pipe=
6164   fi
6165 done
6166
6167 fi
6168
6169 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6170   lt_cv_sys_global_symbol_to_cdecl=
6171 fi
6172 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6174 $as_echo "failed" >&6; }
6175 else
6176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6177 $as_echo "ok" >&6; }
6178 fi
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202 # Check whether --enable-libtool-lock was given.
6203 if test "${enable_libtool_lock+set}" = set; then :
6204   enableval=$enable_libtool_lock;
6205 fi
6206
6207 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6208
6209 # Some flags need to be propagated to the compiler or linker for good
6210 # libtool support.
6211 case $host in
6212 ia64-*-hpux*)
6213   # Find out which ABI we are using.
6214   echo 'int i;' > conftest.$ac_ext
6215   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6216   (eval $ac_compile) 2>&5
6217   ac_status=$?
6218   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6219   test $ac_status = 0; }; then
6220     case `/usr/bin/file conftest.$ac_objext` in
6221       *ELF-32*)
6222         HPUX_IA64_MODE="32"
6223         ;;
6224       *ELF-64*)
6225         HPUX_IA64_MODE="64"
6226         ;;
6227     esac
6228   fi
6229   rm -rf conftest*
6230   ;;
6231 *-*-irix6*)
6232   # Find out which ABI we are using.
6233   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6234   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6235   (eval $ac_compile) 2>&5
6236   ac_status=$?
6237   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6238   test $ac_status = 0; }; then
6239     if test "$lt_cv_prog_gnu_ld" = yes; then
6240       case `/usr/bin/file conftest.$ac_objext` in
6241         *32-bit*)
6242           LD="${LD-ld} -melf32bsmip"
6243           ;;
6244         *N32*)
6245           LD="${LD-ld} -melf32bmipn32"
6246           ;;
6247         *64-bit*)
6248           LD="${LD-ld} -melf64bmip"
6249         ;;
6250       esac
6251     else
6252       case `/usr/bin/file conftest.$ac_objext` in
6253         *32-bit*)
6254           LD="${LD-ld} -32"
6255           ;;
6256         *N32*)
6257           LD="${LD-ld} -n32"
6258           ;;
6259         *64-bit*)
6260           LD="${LD-ld} -64"
6261           ;;
6262       esac
6263     fi
6264   fi
6265   rm -rf conftest*
6266   ;;
6267
6268 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6269 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6270   # Find out which ABI we are using.
6271   echo 'int i;' > conftest.$ac_ext
6272   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6273   (eval $ac_compile) 2>&5
6274   ac_status=$?
6275   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6276   test $ac_status = 0; }; then
6277     case `/usr/bin/file conftest.o` in
6278       *32-bit*)
6279         case $host in
6280           x86_64-*kfreebsd*-gnu)
6281             LD="${LD-ld} -m elf_i386_fbsd"
6282             ;;
6283           x86_64-*linux*)
6284             LD="${LD-ld} -m elf_i386"
6285             ;;
6286           ppc64-*linux*|powerpc64-*linux*)
6287             LD="${LD-ld} -m elf32ppclinux"
6288             ;;
6289           s390x-*linux*)
6290             LD="${LD-ld} -m elf_s390"
6291             ;;
6292           sparc64-*linux*)
6293             LD="${LD-ld} -m elf32_sparc"
6294             ;;
6295         esac
6296         ;;
6297       *64-bit*)
6298         case $host in
6299           x86_64-*kfreebsd*-gnu)
6300             LD="${LD-ld} -m elf_x86_64_fbsd"
6301             ;;
6302           x86_64-*linux*)
6303             LD="${LD-ld} -m elf_x86_64"
6304             ;;
6305           ppc*-*linux*|powerpc*-*linux*)
6306             LD="${LD-ld} -m elf64ppc"
6307             ;;
6308           s390*-*linux*|s390*-*tpf*)
6309             LD="${LD-ld} -m elf64_s390"
6310             ;;
6311           sparc*-*linux*)
6312             LD="${LD-ld} -m elf64_sparc"
6313             ;;
6314         esac
6315         ;;
6316     esac
6317   fi
6318   rm -rf conftest*
6319   ;;
6320
6321 *-*-sco3.2v5*)
6322   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6323   SAVE_CFLAGS="$CFLAGS"
6324   CFLAGS="$CFLAGS -belf"
6325   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6326 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6327 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6328   $as_echo_n "(cached) " >&6
6329 else
6330   ac_ext=c
6331 ac_cpp='$CPP $CPPFLAGS'
6332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6335
6336      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6337 /* end confdefs.h.  */
6338
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 if ac_fn_c_try_link "$LINENO"; then :
6348   lt_cv_cc_needs_belf=yes
6349 else
6350   lt_cv_cc_needs_belf=no
6351 fi
6352 rm -f core conftest.err conftest.$ac_objext \
6353     conftest$ac_exeext conftest.$ac_ext
6354      ac_ext=c
6355 ac_cpp='$CPP $CPPFLAGS'
6356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6359
6360 fi
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6362 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6363   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6364     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6365     CFLAGS="$SAVE_CFLAGS"
6366   fi
6367   ;;
6368 sparc*-*solaris*)
6369   # Find out which ABI we are using.
6370   echo 'int i;' > conftest.$ac_ext
6371   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372   (eval $ac_compile) 2>&5
6373   ac_status=$?
6374   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375   test $ac_status = 0; }; then
6376     case `/usr/bin/file conftest.o` in
6377     *64-bit*)
6378       case $lt_cv_prog_gnu_ld in
6379       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6380       *)
6381         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6382           LD="${LD-ld} -64"
6383         fi
6384         ;;
6385       esac
6386       ;;
6387     esac
6388   fi
6389   rm -rf conftest*
6390   ;;
6391 esac
6392
6393 need_locks="$enable_libtool_lock"
6394
6395
6396   case $host_os in
6397     rhapsody* | darwin*)
6398     if test -n "$ac_tool_prefix"; then
6399   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6400 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6402 $as_echo_n "checking for $ac_word... " >&6; }
6403 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6404   $as_echo_n "(cached) " >&6
6405 else
6406   if test -n "$DSYMUTIL"; then
6407   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6408 else
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410 for as_dir in $PATH
6411 do
6412   IFS=$as_save_IFS
6413   test -z "$as_dir" && as_dir=.
6414     for ac_exec_ext in '' $ac_executable_extensions; do
6415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6416     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6418     break 2
6419   fi
6420 done
6421   done
6422 IFS=$as_save_IFS
6423
6424 fi
6425 fi
6426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6427 if test -n "$DSYMUTIL"; then
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6429 $as_echo "$DSYMUTIL" >&6; }
6430 else
6431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432 $as_echo "no" >&6; }
6433 fi
6434
6435
6436 fi
6437 if test -z "$ac_cv_prog_DSYMUTIL"; then
6438   ac_ct_DSYMUTIL=$DSYMUTIL
6439   # Extract the first word of "dsymutil", so it can be a program name with args.
6440 set dummy dsymutil; ac_word=$2
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6442 $as_echo_n "checking for $ac_word... " >&6; }
6443 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -n "$ac_ct_DSYMUTIL"; then
6447   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6448 else
6449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6450 for as_dir in $PATH
6451 do
6452   IFS=$as_save_IFS
6453   test -z "$as_dir" && as_dir=.
6454     for ac_exec_ext in '' $ac_executable_extensions; do
6455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6456     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458     break 2
6459   fi
6460 done
6461   done
6462 IFS=$as_save_IFS
6463
6464 fi
6465 fi
6466 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6467 if test -n "$ac_ct_DSYMUTIL"; then
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6469 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6470 else
6471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6472 $as_echo "no" >&6; }
6473 fi
6474
6475   if test "x$ac_ct_DSYMUTIL" = x; then
6476     DSYMUTIL=":"
6477   else
6478     case $cross_compiling:$ac_tool_warned in
6479 yes:)
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6482 ac_tool_warned=yes ;;
6483 esac
6484     DSYMUTIL=$ac_ct_DSYMUTIL
6485   fi
6486 else
6487   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6488 fi
6489
6490     if test -n "$ac_tool_prefix"; then
6491   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if test -n "$NMEDIT"; then
6499   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 NMEDIT=$ac_cv_prog_NMEDIT
6519 if test -n "$NMEDIT"; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6521 $as_echo "$NMEDIT" >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527
6528 fi
6529 if test -z "$ac_cv_prog_NMEDIT"; then
6530   ac_ct_NMEDIT=$NMEDIT
6531   # Extract the first word of "nmedit", so it can be a program name with args.
6532 set dummy nmedit; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   if test -n "$ac_ct_NMEDIT"; then
6539   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6548     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6559 if test -n "$ac_ct_NMEDIT"; then
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6561 $as_echo "$ac_ct_NMEDIT" >&6; }
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567   if test "x$ac_ct_NMEDIT" = x; then
6568     NMEDIT=":"
6569   else
6570     case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576     NMEDIT=$ac_ct_NMEDIT
6577   fi
6578 else
6579   NMEDIT="$ac_cv_prog_NMEDIT"
6580 fi
6581
6582     if test -n "$ac_tool_prefix"; then
6583   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if test "${ac_cv_prog_LIPO+set}" = set; then :
6588   $as_echo_n "(cached) " >&6
6589 else
6590   if test -n "$LIPO"; then
6591   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598     for ac_exec_ext in '' $ac_executable_extensions; do
6599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605   done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 LIPO=$ac_cv_prog_LIPO
6611 if test -n "$LIPO"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6613 $as_echo "$LIPO" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619
6620 fi
6621 if test -z "$ac_cv_prog_LIPO"; then
6622   ac_ct_LIPO=$LIPO
6623   # Extract the first word of "lipo", so it can be a program name with args.
6624 set dummy lipo; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   if test -n "$ac_ct_LIPO"; then
6631   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638     for ac_exec_ext in '' $ac_executable_extensions; do
6639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6640     ac_cv_prog_ac_ct_LIPO="lipo"
6641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645   done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6651 if test -n "$ac_ct_LIPO"; then
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6653 $as_echo "$ac_ct_LIPO" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659   if test "x$ac_ct_LIPO" = x; then
6660     LIPO=":"
6661   else
6662     case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6667 esac
6668     LIPO=$ac_ct_LIPO
6669   fi
6670 else
6671   LIPO="$ac_cv_prog_LIPO"
6672 fi
6673
6674     if test -n "$ac_tool_prefix"; then
6675   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}otool; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   if test -n "$OTOOL"; then
6683   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697   done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 OTOOL=$ac_cv_prog_OTOOL
6703 if test -n "$OTOOL"; then
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6705 $as_echo "$OTOOL" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_OTOOL"; then
6714   ac_ct_OTOOL=$OTOOL
6715   # Extract the first word of "otool", so it can be a program name with args.
6716 set dummy otool; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   if test -n "$ac_ct_OTOOL"; then
6723   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730     for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_prog_ac_ct_OTOOL="otool"
6733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737   done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6743 if test -n "$ac_ct_OTOOL"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6745 $as_echo "$ac_ct_OTOOL" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751   if test "x$ac_ct_OTOOL" = x; then
6752     OTOOL=":"
6753   else
6754     case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758 ac_tool_warned=yes ;;
6759 esac
6760     OTOOL=$ac_ct_OTOOL
6761   fi
6762 else
6763   OTOOL="$ac_cv_prog_OTOOL"
6764 fi
6765
6766     if test -n "$ac_tool_prefix"; then
6767   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6772   $as_echo_n "(cached) " >&6
6773 else
6774   if test -n "$OTOOL64"; then
6775   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782     for ac_exec_ext in '' $ac_executable_extensions; do
6783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789   done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 OTOOL64=$ac_cv_prog_OTOOL64
6795 if test -n "$OTOOL64"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6797 $as_echo "$OTOOL64" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_OTOOL64"; then
6806   ac_ct_OTOOL64=$OTOOL64
6807   # Extract the first word of "otool64", so it can be a program name with args.
6808 set dummy otool64; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$ac_ct_OTOOL64"; then
6815   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6824     ac_cv_prog_ac_ct_OTOOL64="otool64"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6835 if test -n "$ac_ct_OTOOL64"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6837 $as_echo "$ac_ct_OTOOL64" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843   if test "x$ac_ct_OTOOL64" = x; then
6844     OTOOL64=":"
6845   else
6846     case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852     OTOOL64=$ac_ct_OTOOL64
6853   fi
6854 else
6855   OTOOL64="$ac_cv_prog_OTOOL64"
6856 fi
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6885 $as_echo_n "checking for -single_module linker flag... " >&6; }
6886 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   lt_cv_apple_cc_single_mod=no
6890       if test -z "${LT_MULTI_MODULE}"; then
6891         # By default we will add the -single_module flag. You can override
6892         # by either setting the environment variable LT_MULTI_MODULE
6893         # non-empty at configure time, or by adding -multi_module to the
6894         # link flags.
6895         rm -rf libconftest.dylib*
6896         echo "int foo(void){return 1;}" > conftest.c
6897         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6898 -dynamiclib -Wl,-single_module conftest.c" >&5
6899         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6900           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6901         _lt_result=$?
6902         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6903           lt_cv_apple_cc_single_mod=yes
6904         else
6905           cat conftest.err >&5
6906         fi
6907         rm -rf libconftest.dylib*
6908         rm -f conftest.*
6909       fi
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6912 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6913     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6914 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6915 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6916   $as_echo_n "(cached) " >&6
6917 else
6918   lt_cv_ld_exported_symbols_list=no
6919       save_LDFLAGS=$LDFLAGS
6920       echo "_main" > conftest.sym
6921       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6922       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h.  */
6924
6925 int
6926 main ()
6927 {
6928
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 if ac_fn_c_try_link "$LINENO"; then :
6934   lt_cv_ld_exported_symbols_list=yes
6935 else
6936   lt_cv_ld_exported_symbols_list=no
6937 fi
6938 rm -f core conftest.err conftest.$ac_objext \
6939     conftest$ac_exeext conftest.$ac_ext
6940         LDFLAGS="$save_LDFLAGS"
6941
6942 fi
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6944 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6945     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6946 $as_echo_n "checking for -force_load linker flag... " >&6; }
6947 if test "${lt_cv_ld_force_load+set}" = set; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   lt_cv_ld_force_load=no
6951       cat > conftest.c << _LT_EOF
6952 int forced_loaded() { return 2;}
6953 _LT_EOF
6954       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6955       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6956       echo "$AR cru libconftest.a conftest.o" >&5
6957       $AR cru libconftest.a conftest.o 2>&5
6958       cat > conftest.c << _LT_EOF
6959 int main() { return 0;}
6960 _LT_EOF
6961       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6962       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6963       _lt_result=$?
6964       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6965         lt_cv_ld_force_load=yes
6966       else
6967         cat conftest.err >&5
6968       fi
6969         rm -f conftest.err libconftest.a conftest conftest.c
6970         rm -rf conftest.dSYM
6971
6972 fi
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6974 $as_echo "$lt_cv_ld_force_load" >&6; }
6975     case $host_os in
6976     rhapsody* | darwin1.[012])
6977       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6978     darwin1.*)
6979       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6980     darwin*) # darwin 5.x on
6981       # if running on 10.5 or later, the deployment target defaults
6982       # to the OS version, if on x86, and 10.4, the deployment
6983       # target defaults to 10.4. Don't you love it?
6984       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6985         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6986           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6987         10.[012]*)
6988           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6989         10.*)
6990           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6991       esac
6992     ;;
6993   esac
6994     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6995       _lt_dar_single_mod='$single_module'
6996     fi
6997     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6998       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6999     else
7000       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7001     fi
7002     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7003       _lt_dsymutil='~$DSYMUTIL $lib || :'
7004     else
7005       _lt_dsymutil=
7006     fi
7007     ;;
7008   esac
7009
7010 ac_ext=c
7011 ac_cpp='$CPP $CPPFLAGS'
7012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7016 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7017 # On Suns, sometimes $CPP names a directory.
7018 if test -n "$CPP" && test -d "$CPP"; then
7019   CPP=
7020 fi
7021 if test -z "$CPP"; then
7022   if test "${ac_cv_prog_CPP+set}" = set; then :
7023   $as_echo_n "(cached) " >&6
7024 else
7025       # Double quotes because CPP needs to be expanded
7026     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7027     do
7028       ac_preproc_ok=false
7029 for ac_c_preproc_warn_flag in '' yes
7030 do
7031   # Use a header file that comes with gcc, so configuring glibc
7032   # with a fresh cross-compiler works.
7033   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7034   # <limits.h> exists even on freestanding compilers.
7035   # On the NeXT, cc -E runs the code through the compiler's parser,
7036   # not just through cpp. "Syntax error" is here to catch this case.
7037   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h.  */
7039 #ifdef __STDC__
7040 # include <limits.h>
7041 #else
7042 # include <assert.h>
7043 #endif
7044                      Syntax error
7045 _ACEOF
7046 if ac_fn_c_try_cpp "$LINENO"; then :
7047
7048 else
7049   # Broken: fails on valid input.
7050 continue
7051 fi
7052 rm -f conftest.err conftest.$ac_ext
7053
7054   # OK, works on sane cases.  Now check whether nonexistent headers
7055   # can be detected and how.
7056   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h.  */
7058 #include <ac_nonexistent.h>
7059 _ACEOF
7060 if ac_fn_c_try_cpp "$LINENO"; then :
7061   # Broken: success on invalid input.
7062 continue
7063 else
7064   # Passes both tests.
7065 ac_preproc_ok=:
7066 break
7067 fi
7068 rm -f conftest.err conftest.$ac_ext
7069
7070 done
7071 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7072 rm -f conftest.err conftest.$ac_ext
7073 if $ac_preproc_ok; then :
7074   break
7075 fi
7076
7077     done
7078     ac_cv_prog_CPP=$CPP
7079
7080 fi
7081   CPP=$ac_cv_prog_CPP
7082 else
7083   ac_cv_prog_CPP=$CPP
7084 fi
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7086 $as_echo "$CPP" >&6; }
7087 ac_preproc_ok=false
7088 for ac_c_preproc_warn_flag in '' yes
7089 do
7090   # Use a header file that comes with gcc, so configuring glibc
7091   # with a fresh cross-compiler works.
7092   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7093   # <limits.h> exists even on freestanding compilers.
7094   # On the NeXT, cc -E runs the code through the compiler's parser,
7095   # not just through cpp. "Syntax error" is here to catch this case.
7096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7097 /* end confdefs.h.  */
7098 #ifdef __STDC__
7099 # include <limits.h>
7100 #else
7101 # include <assert.h>
7102 #endif
7103                      Syntax error
7104 _ACEOF
7105 if ac_fn_c_try_cpp "$LINENO"; then :
7106
7107 else
7108   # Broken: fails on valid input.
7109 continue
7110 fi
7111 rm -f conftest.err conftest.$ac_ext
7112
7113   # OK, works on sane cases.  Now check whether nonexistent headers
7114   # can be detected and how.
7115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7116 /* end confdefs.h.  */
7117 #include <ac_nonexistent.h>
7118 _ACEOF
7119 if ac_fn_c_try_cpp "$LINENO"; then :
7120   # Broken: success on invalid input.
7121 continue
7122 else
7123   # Passes both tests.
7124 ac_preproc_ok=:
7125 break
7126 fi
7127 rm -f conftest.err conftest.$ac_ext
7128
7129 done
7130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7131 rm -f conftest.err conftest.$ac_ext
7132 if $ac_preproc_ok; then :
7133
7134 else
7135   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7137 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7138 See \`config.log' for more details." "$LINENO" 5; }
7139 fi
7140
7141 ac_ext=c
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146
7147
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7149 $as_echo_n "checking for ANSI C header files... " >&6; }
7150 if test "${ac_cv_header_stdc+set}" = set; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h.  */
7155 #include <stdlib.h>
7156 #include <stdarg.h>
7157 #include <string.h>
7158 #include <float.h>
7159
7160 int
7161 main ()
7162 {
7163
7164   ;
7165   return 0;
7166 }
7167 _ACEOF
7168 if ac_fn_c_try_compile "$LINENO"; then :
7169   ac_cv_header_stdc=yes
7170 else
7171   ac_cv_header_stdc=no
7172 fi
7173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7174
7175 if test $ac_cv_header_stdc = yes; then
7176   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178 /* end confdefs.h.  */
7179 #include <string.h>
7180
7181 _ACEOF
7182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7183   $EGREP "memchr" >/dev/null 2>&1; then :
7184
7185 else
7186   ac_cv_header_stdc=no
7187 fi
7188 rm -f conftest*
7189
7190 fi
7191
7192 if test $ac_cv_header_stdc = yes; then
7193   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7195 /* end confdefs.h.  */
7196 #include <stdlib.h>
7197
7198 _ACEOF
7199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7200   $EGREP "free" >/dev/null 2>&1; then :
7201
7202 else
7203   ac_cv_header_stdc=no
7204 fi
7205 rm -f conftest*
7206
7207 fi
7208
7209 if test $ac_cv_header_stdc = yes; then
7210   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7211   if test "$cross_compiling" = yes; then :
7212   :
7213 else
7214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7215 /* end confdefs.h.  */
7216 #include <ctype.h>
7217 #include <stdlib.h>
7218 #if ((' ' & 0x0FF) == 0x020)
7219 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7220 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7221 #else
7222 # define ISLOWER(c) \
7223                    (('a' <= (c) && (c) <= 'i') \
7224                      || ('j' <= (c) && (c) <= 'r') \
7225                      || ('s' <= (c) && (c) <= 'z'))
7226 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7227 #endif
7228
7229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7230 int
7231 main ()
7232 {
7233   int i;
7234   for (i = 0; i < 256; i++)
7235     if (XOR (islower (i), ISLOWER (i))
7236         || toupper (i) != TOUPPER (i))
7237       return 2;
7238   return 0;
7239 }
7240 _ACEOF
7241 if ac_fn_c_try_run "$LINENO"; then :
7242
7243 else
7244   ac_cv_header_stdc=no
7245 fi
7246 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7247   conftest.$ac_objext conftest.beam conftest.$ac_ext
7248 fi
7249
7250 fi
7251 fi
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7253 $as_echo "$ac_cv_header_stdc" >&6; }
7254 if test $ac_cv_header_stdc = yes; then
7255
7256 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7257
7258 fi
7259
7260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7261 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7262                   inttypes.h stdint.h unistd.h
7263 do :
7264   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7265 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7266 "
7267 eval as_val=\$$as_ac_Header
7268    if test "x$as_val" = x""yes; then :
7269   cat >>confdefs.h <<_ACEOF
7270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7271 _ACEOF
7272
7273 fi
7274
7275 done
7276
7277
7278 for ac_header in dlfcn.h
7279 do :
7280   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7281 "
7282 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7283   cat >>confdefs.h <<_ACEOF
7284 #define HAVE_DLFCN_H 1
7285 _ACEOF
7286
7287 fi
7288
7289 done
7290
7291
7292
7293
7294
7295 # Set options
7296
7297
7298
7299         enable_dlopen=no
7300
7301
7302   enable_win32_dll=no
7303
7304
7305             # Check whether --enable-shared was given.
7306 if test "${enable_shared+set}" = set; then :
7307   enableval=$enable_shared; p=${PACKAGE-default}
7308     case $enableval in
7309     yes) enable_shared=yes ;;
7310     no) enable_shared=no ;;
7311     *)
7312       enable_shared=no
7313       # Look at the argument we got.  We use all the common list separators.
7314       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7315       for pkg in $enableval; do
7316         IFS="$lt_save_ifs"
7317         if test "X$pkg" = "X$p"; then
7318           enable_shared=yes
7319         fi
7320       done
7321       IFS="$lt_save_ifs"
7322       ;;
7323     esac
7324 else
7325   enable_shared=yes
7326 fi
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336   # Check whether --enable-static was given.
7337 if test "${enable_static+set}" = set; then :
7338   enableval=$enable_static; p=${PACKAGE-default}
7339     case $enableval in
7340     yes) enable_static=yes ;;
7341     no) enable_static=no ;;
7342     *)
7343      enable_static=no
7344       # Look at the argument we got.  We use all the common list separators.
7345       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7346       for pkg in $enableval; do
7347         IFS="$lt_save_ifs"
7348         if test "X$pkg" = "X$p"; then
7349           enable_static=yes
7350         fi
7351       done
7352       IFS="$lt_save_ifs"
7353       ;;
7354     esac
7355 else
7356   enable_static=yes
7357 fi
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 # Check whether --with-pic was given.
7369 if test "${with_pic+set}" = set; then :
7370   withval=$with_pic; pic_mode="$withval"
7371 else
7372   pic_mode=default
7373 fi
7374
7375
7376 test -z "$pic_mode" && pic_mode=default
7377
7378
7379
7380
7381
7382
7383
7384   # Check whether --enable-fast-install was given.
7385 if test "${enable_fast_install+set}" = set; then :
7386   enableval=$enable_fast_install; p=${PACKAGE-default}
7387     case $enableval in
7388     yes) enable_fast_install=yes ;;
7389     no) enable_fast_install=no ;;
7390     *)
7391       enable_fast_install=no
7392       # Look at the argument we got.  We use all the common list separators.
7393       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7394       for pkg in $enableval; do
7395         IFS="$lt_save_ifs"
7396         if test "X$pkg" = "X$p"; then
7397           enable_fast_install=yes
7398         fi
7399       done
7400       IFS="$lt_save_ifs"
7401       ;;
7402     esac
7403 else
7404   enable_fast_install=yes
7405 fi
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 # This can be used to rebuild libtool when needed
7418 LIBTOOL_DEPS="$ltmain"
7419
7420 # Always use our own libtool.
7421 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448 test -z "$LN_S" && LN_S="ln -s"
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463 if test -n "${ZSH_VERSION+set}" ; then
7464    setopt NO_GLOB_SUBST
7465 fi
7466
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7468 $as_echo_n "checking for objdir... " >&6; }
7469 if test "${lt_cv_objdir+set}" = set; then :
7470   $as_echo_n "(cached) " >&6
7471 else
7472   rm -f .libs 2>/dev/null
7473 mkdir .libs 2>/dev/null
7474 if test -d .libs; then
7475   lt_cv_objdir=.libs
7476 else
7477   # MS-DOS does not allow filenames that begin with a dot.
7478   lt_cv_objdir=_libs
7479 fi
7480 rmdir .libs 2>/dev/null
7481 fi
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7483 $as_echo "$lt_cv_objdir" >&6; }
7484 objdir=$lt_cv_objdir
7485
7486
7487
7488
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define LT_OBJDIR "$lt_cv_objdir/"
7492 _ACEOF
7493
7494
7495
7496
7497 case $host_os in
7498 aix3*)
7499   # AIX sometimes has problems with the GCC collect2 program.  For some
7500   # reason, if we set the COLLECT_NAMES environment variable, the problems
7501   # vanish in a puff of smoke.
7502   if test "X${COLLECT_NAMES+set}" != Xset; then
7503     COLLECT_NAMES=
7504     export COLLECT_NAMES
7505   fi
7506   ;;
7507 esac
7508
7509 # Global variables:
7510 ofile=libtool
7511 can_build_shared=yes
7512
7513 # All known linkers require a `.a' archive for static linking (except MSVC,
7514 # which needs '.lib').
7515 libext=a
7516
7517 with_gnu_ld="$lt_cv_prog_gnu_ld"
7518
7519 old_CC="$CC"
7520 old_CFLAGS="$CFLAGS"
7521
7522 # Set sane defaults for various variables
7523 test -z "$CC" && CC=cc
7524 test -z "$LTCC" && LTCC=$CC
7525 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7526 test -z "$LD" && LD=ld
7527 test -z "$ac_objext" && ac_objext=o
7528
7529 for cc_temp in $compiler""; do
7530   case $cc_temp in
7531     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7532     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7533     \-*) ;;
7534     *) break;;
7535   esac
7536 done
7537 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7538
7539
7540 # Only perform the check for file, if the check method requires it
7541 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7542 case $deplibs_check_method in
7543 file_magic*)
7544   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7546 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7547 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7548   $as_echo_n "(cached) " >&6
7549 else
7550   case $MAGIC_CMD in
7551 [\\/*] |  ?:[\\/]*)
7552   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7553   ;;
7554 *)
7555   lt_save_MAGIC_CMD="$MAGIC_CMD"
7556   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7557   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7558   for ac_dir in $ac_dummy; do
7559     IFS="$lt_save_ifs"
7560     test -z "$ac_dir" && ac_dir=.
7561     if test -f $ac_dir/${ac_tool_prefix}file; then
7562       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7563       if test -n "$file_magic_test_file"; then
7564         case $deplibs_check_method in
7565         "file_magic "*)
7566           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7567           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7568           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7569             $EGREP "$file_magic_regex" > /dev/null; then
7570             :
7571           else
7572             cat <<_LT_EOF 1>&2
7573
7574 *** Warning: the command libtool uses to detect shared libraries,
7575 *** $file_magic_cmd, produces output that libtool cannot recognize.
7576 *** The result is that libtool may fail to recognize shared libraries
7577 *** as such.  This will affect the creation of libtool libraries that
7578 *** depend on shared libraries, but programs linked with such libtool
7579 *** libraries will work regardless of this problem.  Nevertheless, you
7580 *** may want to report the problem to your system manager and/or to
7581 *** bug-libtool@gnu.org
7582
7583 _LT_EOF
7584           fi ;;
7585         esac
7586       fi
7587       break
7588     fi
7589   done
7590   IFS="$lt_save_ifs"
7591   MAGIC_CMD="$lt_save_MAGIC_CMD"
7592   ;;
7593 esac
7594 fi
7595
7596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7597 if test -n "$MAGIC_CMD"; then
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7599 $as_echo "$MAGIC_CMD" >&6; }
7600 else
7601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7602 $as_echo "no" >&6; }
7603 fi
7604
7605
7606
7607
7608
7609 if test -z "$lt_cv_path_MAGIC_CMD"; then
7610   if test -n "$ac_tool_prefix"; then
7611     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7612 $as_echo_n "checking for file... " >&6; }
7613 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7614   $as_echo_n "(cached) " >&6
7615 else
7616   case $MAGIC_CMD in
7617 [\\/*] |  ?:[\\/]*)
7618   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7619   ;;
7620 *)
7621   lt_save_MAGIC_CMD="$MAGIC_CMD"
7622   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7623   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7624   for ac_dir in $ac_dummy; do
7625     IFS="$lt_save_ifs"
7626     test -z "$ac_dir" && ac_dir=.
7627     if test -f $ac_dir/file; then
7628       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7629       if test -n "$file_magic_test_file"; then
7630         case $deplibs_check_method in
7631         "file_magic "*)
7632           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7633           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7634           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7635             $EGREP "$file_magic_regex" > /dev/null; then
7636             :
7637           else
7638             cat <<_LT_EOF 1>&2
7639
7640 *** Warning: the command libtool uses to detect shared libraries,
7641 *** $file_magic_cmd, produces output that libtool cannot recognize.
7642 *** The result is that libtool may fail to recognize shared libraries
7643 *** as such.  This will affect the creation of libtool libraries that
7644 *** depend on shared libraries, but programs linked with such libtool
7645 *** libraries will work regardless of this problem.  Nevertheless, you
7646 *** may want to report the problem to your system manager and/or to
7647 *** bug-libtool@gnu.org
7648
7649 _LT_EOF
7650           fi ;;
7651         esac
7652       fi
7653       break
7654     fi
7655   done
7656   IFS="$lt_save_ifs"
7657   MAGIC_CMD="$lt_save_MAGIC_CMD"
7658   ;;
7659 esac
7660 fi
7661
7662 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7663 if test -n "$MAGIC_CMD"; then
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7665 $as_echo "$MAGIC_CMD" >&6; }
7666 else
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7668 $as_echo "no" >&6; }
7669 fi
7670
7671
7672   else
7673     MAGIC_CMD=:
7674   fi
7675 fi
7676
7677   fi
7678   ;;
7679 esac
7680
7681 # Use C for the default configuration in the libtool script
7682
7683 lt_save_CC="$CC"
7684 ac_ext=c
7685 ac_cpp='$CPP $CPPFLAGS'
7686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7689
7690
7691 # Source file extension for C test sources.
7692 ac_ext=c
7693
7694 # Object file extension for compiled C test sources.
7695 objext=o
7696 objext=$objext
7697
7698 # Code to be used in simple compile tests
7699 lt_simple_compile_test_code="int some_variable = 0;"
7700
7701 # Code to be used in simple link tests
7702 lt_simple_link_test_code='int main(){return(0);}'
7703
7704
7705
7706
7707
7708
7709
7710 # If no C compiler was specified, use CC.
7711 LTCC=${LTCC-"$CC"}
7712
7713 # If no C compiler flags were specified, use CFLAGS.
7714 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7715
7716 # Allow CC to be a program name with arguments.
7717 compiler=$CC
7718
7719 # Save the default compiler, since it gets overwritten when the other
7720 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7721 compiler_DEFAULT=$CC
7722
7723 # save warnings/boilerplate of simple test code
7724 ac_outfile=conftest.$ac_objext
7725 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7726 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7727 _lt_compiler_boilerplate=`cat conftest.err`
7728 $RM conftest*
7729
7730 ac_outfile=conftest.$ac_objext
7731 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7732 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7733 _lt_linker_boilerplate=`cat conftest.err`
7734 $RM -r conftest*
7735
7736
7737 ## CAVEAT EMPTOR:
7738 ## There is no encapsulation within the following macros, do not change
7739 ## the running order or otherwise move them around unless you know exactly
7740 ## what you are doing...
7741 if test -n "$compiler"; then
7742
7743 lt_prog_compiler_no_builtin_flag=
7744
7745 if test "$GCC" = yes; then
7746   case $cc_basename in
7747   nvcc*)
7748     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7749   *)
7750     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7751   esac
7752
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7754 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7755 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7756   $as_echo_n "(cached) " >&6
7757 else
7758   lt_cv_prog_compiler_rtti_exceptions=no
7759    ac_outfile=conftest.$ac_objext
7760    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7761    lt_compiler_flag="-fno-rtti -fno-exceptions"
7762    # Insert the option either (1) after the last *FLAGS variable, or
7763    # (2) before a word containing "conftest.", or (3) at the end.
7764    # Note that $ac_compile itself does not contain backslashes and begins
7765    # with a dollar sign (not a hyphen), so the echo should work correctly.
7766    # The option is referenced via a variable to avoid confusing sed.
7767    lt_compile=`echo "$ac_compile" | $SED \
7768    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7769    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7770    -e 's:$: $lt_compiler_flag:'`
7771    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7772    (eval "$lt_compile" 2>conftest.err)
7773    ac_status=$?
7774    cat conftest.err >&5
7775    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776    if (exit $ac_status) && test -s "$ac_outfile"; then
7777      # The compiler can only warn and ignore the option if not recognized
7778      # So say no if there are warnings other than the usual output.
7779      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7780      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7781      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7782        lt_cv_prog_compiler_rtti_exceptions=yes
7783      fi
7784    fi
7785    $RM conftest*
7786
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7789 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7790
7791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7792     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7793 else
7794     :
7795 fi
7796
7797 fi
7798
7799
7800
7801
7802
7803
7804   lt_prog_compiler_wl=
7805 lt_prog_compiler_pic=
7806 lt_prog_compiler_static=
7807
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7809 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7810
7811   if test "$GCC" = yes; then
7812     lt_prog_compiler_wl='-Wl,'
7813     lt_prog_compiler_static='-static'
7814
7815     case $host_os in
7816       aix*)
7817       # All AIX code is PIC.
7818       if test "$host_cpu" = ia64; then
7819         # AIX 5 now supports IA64 processor
7820         lt_prog_compiler_static='-Bstatic'
7821       fi
7822       ;;
7823
7824     amigaos*)
7825       case $host_cpu in
7826       powerpc)
7827             # see comment about AmigaOS4 .so support
7828             lt_prog_compiler_pic='-fPIC'
7829         ;;
7830       m68k)
7831             # FIXME: we need at least 68020 code to build shared libraries, but
7832             # adding the `-m68020' flag to GCC prevents building anything better,
7833             # like `-m68040'.
7834             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7835         ;;
7836       esac
7837       ;;
7838
7839     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7840       # PIC is the default for these OSes.
7841       ;;
7842
7843     mingw* | cygwin* | pw32* | os2* | cegcc*)
7844       # This hack is so that the source file can tell whether it is being
7845       # built for inclusion in a dll (and should export symbols for example).
7846       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7847       # (--disable-auto-import) libraries
7848       lt_prog_compiler_pic='-DDLL_EXPORT'
7849       ;;
7850
7851     darwin* | rhapsody*)
7852       # PIC is the default on this platform
7853       # Common symbols not allowed in MH_DYLIB files
7854       lt_prog_compiler_pic='-fno-common'
7855       ;;
7856
7857     haiku*)
7858       # PIC is the default for Haiku.
7859       # The "-static" flag exists, but is broken.
7860       lt_prog_compiler_static=
7861       ;;
7862
7863     hpux*)
7864       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7865       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7866       # sets the default TLS model and affects inlining.
7867       case $host_cpu in
7868       hppa*64*)
7869         # +Z the default
7870         ;;
7871       *)
7872         lt_prog_compiler_pic='-fPIC'
7873         ;;
7874       esac
7875       ;;
7876
7877     interix[3-9]*)
7878       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7879       # Instead, we relocate shared libraries at runtime.
7880       ;;
7881
7882     msdosdjgpp*)
7883       # Just because we use GCC doesn't mean we suddenly get shared libraries
7884       # on systems that don't support them.
7885       lt_prog_compiler_can_build_shared=no
7886       enable_shared=no
7887       ;;
7888
7889     *nto* | *qnx*)
7890       # QNX uses GNU C++, but need to define -shared option too, otherwise
7891       # it will coredump.
7892       lt_prog_compiler_pic='-fPIC -shared'
7893       ;;
7894
7895     sysv4*MP*)
7896       if test -d /usr/nec; then
7897         lt_prog_compiler_pic=-Kconform_pic
7898       fi
7899       ;;
7900
7901     *)
7902       lt_prog_compiler_pic='-fPIC'
7903       ;;
7904     esac
7905
7906     case $cc_basename in
7907     nvcc*) # Cuda Compiler Driver 2.2
7908       lt_prog_compiler_wl='-Xlinker '
7909       lt_prog_compiler_pic='-Xcompiler -fPIC'
7910       ;;
7911     esac
7912   else
7913     # PORTME Check for flag to pass linker flags through the system compiler.
7914     case $host_os in
7915     aix*)
7916       lt_prog_compiler_wl='-Wl,'
7917       if test "$host_cpu" = ia64; then
7918         # AIX 5 now supports IA64 processor
7919         lt_prog_compiler_static='-Bstatic'
7920       else
7921         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7922       fi
7923       ;;
7924
7925     mingw* | cygwin* | pw32* | os2* | cegcc*)
7926       # This hack is so that the source file can tell whether it is being
7927       # built for inclusion in a dll (and should export symbols for example).
7928       lt_prog_compiler_pic='-DDLL_EXPORT'
7929       ;;
7930
7931     hpux9* | hpux10* | hpux11*)
7932       lt_prog_compiler_wl='-Wl,'
7933       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7934       # not for PA HP-UX.
7935       case $host_cpu in
7936       hppa*64*|ia64*)
7937         # +Z the default
7938         ;;
7939       *)
7940         lt_prog_compiler_pic='+Z'
7941         ;;
7942       esac
7943       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7944       lt_prog_compiler_static='${wl}-a ${wl}archive'
7945       ;;
7946
7947     irix5* | irix6* | nonstopux*)
7948       lt_prog_compiler_wl='-Wl,'
7949       # PIC (with -KPIC) is the default.
7950       lt_prog_compiler_static='-non_shared'
7951       ;;
7952
7953     linux* | k*bsd*-gnu | kopensolaris*-gnu)
7954       case $cc_basename in
7955       # old Intel for x86_64 which still supported -KPIC.
7956       ecc*)
7957         lt_prog_compiler_wl='-Wl,'
7958         lt_prog_compiler_pic='-KPIC'
7959         lt_prog_compiler_static='-static'
7960         ;;
7961       # icc used to be incompatible with GCC.
7962       # ICC 10 doesn't accept -KPIC any more.
7963       icc* | ifort*)
7964         lt_prog_compiler_wl='-Wl,'
7965         lt_prog_compiler_pic='-fPIC'
7966         lt_prog_compiler_static='-static'
7967         ;;
7968       # Lahey Fortran 8.1.
7969       lf95*)
7970         lt_prog_compiler_wl='-Wl,'
7971         lt_prog_compiler_pic='--shared'
7972         lt_prog_compiler_static='--static'
7973         ;;
7974       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7975         # Portland Group compilers (*not* the Pentium gcc compiler,
7976         # which looks to be a dead project)
7977         lt_prog_compiler_wl='-Wl,'
7978         lt_prog_compiler_pic='-fpic'
7979         lt_prog_compiler_static='-Bstatic'
7980         ;;
7981       ccc*)
7982         lt_prog_compiler_wl='-Wl,'
7983         # All Alpha code is PIC.
7984         lt_prog_compiler_static='-non_shared'
7985         ;;
7986       xl* | bgxl* | bgf* | mpixl*)
7987         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7988         lt_prog_compiler_wl='-Wl,'
7989         lt_prog_compiler_pic='-qpic'
7990         lt_prog_compiler_static='-qstaticlink'
7991         ;;
7992       *)
7993         case `$CC -V 2>&1 | sed 5q` in
7994         *Sun\ F* | *Sun*Fortran*)
7995           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7996           lt_prog_compiler_pic='-KPIC'
7997           lt_prog_compiler_static='-Bstatic'
7998           lt_prog_compiler_wl=''
7999           ;;
8000         *Sun\ C*)
8001           # Sun C 5.9
8002           lt_prog_compiler_pic='-KPIC'
8003           lt_prog_compiler_static='-Bstatic'
8004           lt_prog_compiler_wl='-Wl,'
8005           ;;
8006         esac
8007         ;;
8008       esac
8009       ;;
8010
8011     newsos6)
8012       lt_prog_compiler_pic='-KPIC'
8013       lt_prog_compiler_static='-Bstatic'
8014       ;;
8015
8016     *nto* | *qnx*)
8017       # QNX uses GNU C++, but need to define -shared option too, otherwise
8018       # it will coredump.
8019       lt_prog_compiler_pic='-fPIC -shared'
8020       ;;
8021
8022     osf3* | osf4* | osf5*)
8023       lt_prog_compiler_wl='-Wl,'
8024       # All OSF/1 code is PIC.
8025       lt_prog_compiler_static='-non_shared'
8026       ;;
8027
8028     rdos*)
8029       lt_prog_compiler_static='-non_shared'
8030       ;;
8031
8032     solaris*)
8033       lt_prog_compiler_pic='-KPIC'
8034       lt_prog_compiler_static='-Bstatic'
8035       case $cc_basename in
8036       f77* | f90* | f95*)
8037         lt_prog_compiler_wl='-Qoption ld ';;
8038       *)
8039         lt_prog_compiler_wl='-Wl,';;
8040       esac
8041       ;;
8042
8043     sunos4*)
8044       lt_prog_compiler_wl='-Qoption ld '
8045       lt_prog_compiler_pic='-PIC'
8046       lt_prog_compiler_static='-Bstatic'
8047       ;;
8048
8049     sysv4 | sysv4.2uw2* | sysv4.3*)
8050       lt_prog_compiler_wl='-Wl,'
8051       lt_prog_compiler_pic='-KPIC'
8052       lt_prog_compiler_static='-Bstatic'
8053       ;;
8054
8055     sysv4*MP*)
8056       if test -d /usr/nec ;then
8057         lt_prog_compiler_pic='-Kconform_pic'
8058         lt_prog_compiler_static='-Bstatic'
8059       fi
8060       ;;
8061
8062     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8063       lt_prog_compiler_wl='-Wl,'
8064       lt_prog_compiler_pic='-KPIC'
8065       lt_prog_compiler_static='-Bstatic'
8066       ;;
8067
8068     unicos*)
8069       lt_prog_compiler_wl='-Wl,'
8070       lt_prog_compiler_can_build_shared=no
8071       ;;
8072
8073     uts4*)
8074       lt_prog_compiler_pic='-pic'
8075       lt_prog_compiler_static='-Bstatic'
8076       ;;
8077
8078     *)
8079       lt_prog_compiler_can_build_shared=no
8080       ;;
8081     esac
8082   fi
8083
8084 case $host_os in
8085   # For platforms which do not support PIC, -DPIC is meaningless:
8086   *djgpp*)
8087     lt_prog_compiler_pic=
8088     ;;
8089   *)
8090     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8091     ;;
8092 esac
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8094 $as_echo "$lt_prog_compiler_pic" >&6; }
8095
8096
8097
8098
8099
8100
8101 #
8102 # Check to make sure the PIC flag actually works.
8103 #
8104 if test -n "$lt_prog_compiler_pic"; then
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8106 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8107 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8108   $as_echo_n "(cached) " >&6
8109 else
8110   lt_cv_prog_compiler_pic_works=no
8111    ac_outfile=conftest.$ac_objext
8112    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8113    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8114    # Insert the option either (1) after the last *FLAGS variable, or
8115    # (2) before a word containing "conftest.", or (3) at the end.
8116    # Note that $ac_compile itself does not contain backslashes and begins
8117    # with a dollar sign (not a hyphen), so the echo should work correctly.
8118    # The option is referenced via a variable to avoid confusing sed.
8119    lt_compile=`echo "$ac_compile" | $SED \
8120    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8121    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8122    -e 's:$: $lt_compiler_flag:'`
8123    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8124    (eval "$lt_compile" 2>conftest.err)
8125    ac_status=$?
8126    cat conftest.err >&5
8127    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128    if (exit $ac_status) && test -s "$ac_outfile"; then
8129      # The compiler can only warn and ignore the option if not recognized
8130      # So say no if there are warnings other than the usual output.
8131      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8132      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8133      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8134        lt_cv_prog_compiler_pic_works=yes
8135      fi
8136    fi
8137    $RM conftest*
8138
8139 fi
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8141 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8142
8143 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8144     case $lt_prog_compiler_pic in
8145      "" | " "*) ;;
8146      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8147      esac
8148 else
8149     lt_prog_compiler_pic=
8150      lt_prog_compiler_can_build_shared=no
8151 fi
8152
8153 fi
8154
8155
8156
8157
8158
8159
8160 #
8161 # Check to make sure the static flag actually works.
8162 #
8163 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8165 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8166 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   lt_cv_prog_compiler_static_works=no
8170    save_LDFLAGS="$LDFLAGS"
8171    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8172    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8173    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8174      # The linker can only warn and ignore the option if not recognized
8175      # So say no if there are warnings
8176      if test -s conftest.err; then
8177        # Append any errors to the config.log.
8178        cat conftest.err 1>&5
8179        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8180        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8181        if diff conftest.exp conftest.er2 >/dev/null; then
8182          lt_cv_prog_compiler_static_works=yes
8183        fi
8184      else
8185        lt_cv_prog_compiler_static_works=yes
8186      fi
8187    fi
8188    $RM -r conftest*
8189    LDFLAGS="$save_LDFLAGS"
8190
8191 fi
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8193 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8194
8195 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8196     :
8197 else
8198     lt_prog_compiler_static=
8199 fi
8200
8201
8202
8203
8204
8205
8206
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8208 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8209 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8210   $as_echo_n "(cached) " >&6
8211 else
8212   lt_cv_prog_compiler_c_o=no
8213    $RM -r conftest 2>/dev/null
8214    mkdir conftest
8215    cd conftest
8216    mkdir out
8217    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8218
8219    lt_compiler_flag="-o out/conftest2.$ac_objext"
8220    # Insert the option either (1) after the last *FLAGS variable, or
8221    # (2) before a word containing "conftest.", or (3) at the end.
8222    # Note that $ac_compile itself does not contain backslashes and begins
8223    # with a dollar sign (not a hyphen), so the echo should work correctly.
8224    lt_compile=`echo "$ac_compile" | $SED \
8225    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8226    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8227    -e 's:$: $lt_compiler_flag:'`
8228    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8229    (eval "$lt_compile" 2>out/conftest.err)
8230    ac_status=$?
8231    cat out/conftest.err >&5
8232    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8234    then
8235      # The compiler can only warn and ignore the option if not recognized
8236      # So say no if there are warnings
8237      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8238      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8239      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8240        lt_cv_prog_compiler_c_o=yes
8241      fi
8242    fi
8243    chmod u+w . 2>&5
8244    $RM conftest*
8245    # SGI C++ compiler will create directory out/ii_files/ for
8246    # template instantiation
8247    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8248    $RM out/* && rmdir out
8249    cd ..
8250    $RM -r conftest
8251    $RM conftest*
8252
8253 fi
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8255 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8256
8257
8258
8259
8260
8261
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8263 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8264 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   lt_cv_prog_compiler_c_o=no
8268    $RM -r conftest 2>/dev/null
8269    mkdir conftest
8270    cd conftest
8271    mkdir out
8272    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8273
8274    lt_compiler_flag="-o out/conftest2.$ac_objext"
8275    # Insert the option either (1) after the last *FLAGS variable, or
8276    # (2) before a word containing "conftest.", or (3) at the end.
8277    # Note that $ac_compile itself does not contain backslashes and begins
8278    # with a dollar sign (not a hyphen), so the echo should work correctly.
8279    lt_compile=`echo "$ac_compile" | $SED \
8280    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8281    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8282    -e 's:$: $lt_compiler_flag:'`
8283    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8284    (eval "$lt_compile" 2>out/conftest.err)
8285    ac_status=$?
8286    cat out/conftest.err >&5
8287    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8289    then
8290      # The compiler can only warn and ignore the option if not recognized
8291      # So say no if there are warnings
8292      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8293      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8294      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8295        lt_cv_prog_compiler_c_o=yes
8296      fi
8297    fi
8298    chmod u+w . 2>&5
8299    $RM conftest*
8300    # SGI C++ compiler will create directory out/ii_files/ for
8301    # template instantiation
8302    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8303    $RM out/* && rmdir out
8304    cd ..
8305    $RM -r conftest
8306    $RM conftest*
8307
8308 fi
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8310 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8311
8312
8313
8314
8315 hard_links="nottested"
8316 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8317   # do not overwrite the value of need_locks provided by the user
8318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8319 $as_echo_n "checking if we can lock with hard links... " >&6; }
8320   hard_links=yes
8321   $RM conftest*
8322   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8323   touch conftest.a
8324   ln conftest.a conftest.b 2>&5 || hard_links=no
8325   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8327 $as_echo "$hard_links" >&6; }
8328   if test "$hard_links" = no; then
8329     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8330 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8331     need_locks=warn
8332   fi
8333 else
8334   need_locks=no
8335 fi
8336
8337
8338
8339
8340
8341
8342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8343 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8344
8345   runpath_var=
8346   allow_undefined_flag=
8347   always_export_symbols=no
8348   archive_cmds=
8349   archive_expsym_cmds=
8350   compiler_needs_object=no
8351   enable_shared_with_static_runtimes=no
8352   export_dynamic_flag_spec=
8353   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8354   hardcode_automatic=no
8355   hardcode_direct=no
8356   hardcode_direct_absolute=no
8357   hardcode_libdir_flag_spec=
8358   hardcode_libdir_flag_spec_ld=
8359   hardcode_libdir_separator=
8360   hardcode_minus_L=no
8361   hardcode_shlibpath_var=unsupported
8362   inherit_rpath=no
8363   link_all_deplibs=unknown
8364   module_cmds=
8365   module_expsym_cmds=
8366   old_archive_from_new_cmds=
8367   old_archive_from_expsyms_cmds=
8368   thread_safe_flag_spec=
8369   whole_archive_flag_spec=
8370   # include_expsyms should be a list of space-separated symbols to be *always*
8371   # included in the symbol list
8372   include_expsyms=
8373   # exclude_expsyms can be an extended regexp of symbols to exclude
8374   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8375   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8376   # as well as any symbol that contains `d'.
8377   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8378   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8379   # platforms (ab)use it in PIC code, but their linkers get confused if
8380   # the symbol is explicitly referenced.  Since portable code cannot
8381   # rely on this symbol name, it's probably fine to never include it in
8382   # preloaded symbol tables.
8383   # Exclude shared library initialization/finalization symbols.
8384   extract_expsyms_cmds=
8385
8386   case $host_os in
8387   cygwin* | mingw* | pw32* | cegcc*)
8388     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8389     # When not using gcc, we currently assume that we are using
8390     # Microsoft Visual C++.
8391     if test "$GCC" != yes; then
8392       with_gnu_ld=no
8393     fi
8394     ;;
8395   interix*)
8396     # we just hope/assume this is gcc and not c89 (= MSVC++)
8397     with_gnu_ld=yes
8398     ;;
8399   openbsd*)
8400     with_gnu_ld=no
8401     ;;
8402   esac
8403
8404   ld_shlibs=yes
8405
8406   # On some targets, GNU ld is compatible enough with the native linker
8407   # that we're better off using the native interface for both.
8408   lt_use_gnu_ld_interface=no
8409   if test "$with_gnu_ld" = yes; then
8410     case $host_os in
8411       aix*)
8412         # The AIX port of GNU ld has always aspired to compatibility
8413         # with the native linker.  However, as the warning in the GNU ld
8414         # block says, versions before 2.19.5* couldn't really create working
8415         # shared libraries, regardless of the interface used.
8416         case `$LD -v 2>&1` in
8417           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8418           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8419           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8420           *)
8421             lt_use_gnu_ld_interface=yes
8422             ;;
8423         esac
8424         ;;
8425       *)
8426         lt_use_gnu_ld_interface=yes
8427         ;;
8428     esac
8429   fi
8430
8431   if test "$lt_use_gnu_ld_interface" = yes; then
8432     # If archive_cmds runs LD, not CC, wlarc should be empty
8433     wlarc='${wl}'
8434
8435     # Set some defaults for GNU ld with shared library support. These
8436     # are reset later if shared libraries are not supported. Putting them
8437     # here allows them to be overridden if necessary.
8438     runpath_var=LD_RUN_PATH
8439     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8440     export_dynamic_flag_spec='${wl}--export-dynamic'
8441     # ancient GNU ld didn't support --whole-archive et. al.
8442     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8443       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8444     else
8445       whole_archive_flag_spec=
8446     fi
8447     supports_anon_versioning=no
8448     case `$LD -v 2>&1` in
8449       *GNU\ gold*) supports_anon_versioning=yes ;;
8450       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8451       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8452       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8453       *\ 2.11.*) ;; # other 2.11 versions
8454       *) supports_anon_versioning=yes ;;
8455     esac
8456
8457     # See if GNU ld supports shared libraries.
8458     case $host_os in
8459     aix[3-9]*)
8460       # On AIX/PPC, the GNU linker is very broken
8461       if test "$host_cpu" != ia64; then
8462         ld_shlibs=no
8463         cat <<_LT_EOF 1>&2
8464
8465 *** Warning: the GNU linker, at least up to release 2.19, is reported
8466 *** to be unable to reliably create shared libraries on AIX.
8467 *** Therefore, libtool is disabling shared libraries support.  If you
8468 *** really care for shared libraries, you may want to install binutils
8469 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8470 *** You will then need to restart the configuration process.
8471
8472 _LT_EOF
8473       fi
8474       ;;
8475
8476     amigaos*)
8477       case $host_cpu in
8478       powerpc)
8479             # see comment about AmigaOS4 .so support
8480             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8481             archive_expsym_cmds=''
8482         ;;
8483       m68k)
8484             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)'
8485             hardcode_libdir_flag_spec='-L$libdir'
8486             hardcode_minus_L=yes
8487         ;;
8488       esac
8489       ;;
8490
8491     beos*)
8492       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8493         allow_undefined_flag=unsupported
8494         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8495         # support --undefined.  This deserves some investigation.  FIXME
8496         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8497       else
8498         ld_shlibs=no
8499       fi
8500       ;;
8501
8502     cygwin* | mingw* | pw32* | cegcc*)
8503       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8504       # as there is no search path for DLLs.
8505       hardcode_libdir_flag_spec='-L$libdir'
8506       export_dynamic_flag_spec='${wl}--export-all-symbols'
8507       allow_undefined_flag=unsupported
8508       always_export_symbols=no
8509       enable_shared_with_static_runtimes=yes
8510       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8511
8512       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8513         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8514         # If the export-symbols file already is a .def file (1st line
8515         # is EXPORTS), use it as is; otherwise, prepend...
8516         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8517           cp $export_symbols $output_objdir/$soname.def;
8518         else
8519           echo EXPORTS > $output_objdir/$soname.def;
8520           cat $export_symbols >> $output_objdir/$soname.def;
8521         fi~
8522         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8523       else
8524         ld_shlibs=no
8525       fi
8526       ;;
8527
8528     haiku*)
8529       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8530       link_all_deplibs=yes
8531       ;;
8532
8533     interix[3-9]*)
8534       hardcode_direct=no
8535       hardcode_shlibpath_var=no
8536       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8537       export_dynamic_flag_spec='${wl}-E'
8538       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8539       # Instead, shared libraries are loaded at an image base (0x10000000 by
8540       # default) and relocated if they conflict, which is a slow very memory
8541       # consuming and fragmenting process.  To avoid this, we pick a random,
8542       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8543       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8544       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8545       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'
8546       ;;
8547
8548     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8549       tmp_diet=no
8550       if test "$host_os" = linux-dietlibc; then
8551         case $cc_basename in
8552           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8553         esac
8554       fi
8555       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8556          && test "$tmp_diet" = no
8557       then
8558         tmp_addflag=
8559         tmp_sharedflag='-shared'
8560         case $cc_basename,$host_cpu in
8561         pgcc*)                          # Portland Group C compiler
8562           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'
8563           tmp_addflag=' $pic_flag'
8564           ;;
8565         pgf77* | pgf90* | pgf95* | pgfortran*)
8566                                         # Portland Group f77 and f90 compilers
8567           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'
8568           tmp_addflag=' $pic_flag -Mnomain' ;;
8569         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8570           tmp_addflag=' -i_dynamic' ;;
8571         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8572           tmp_addflag=' -i_dynamic -nofor_main' ;;
8573         ifc* | ifort*)                  # Intel Fortran compiler
8574           tmp_addflag=' -nofor_main' ;;
8575         lf95*)                          # Lahey Fortran 8.1
8576           whole_archive_flag_spec=
8577           tmp_sharedflag='--shared' ;;
8578         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8579           tmp_sharedflag='-qmkshrobj'
8580           tmp_addflag= ;;
8581         nvcc*)  # Cuda Compiler Driver 2.2
8582           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'
8583           compiler_needs_object=yes
8584           ;;
8585         esac
8586         case `$CC -V 2>&1 | sed 5q` in
8587         *Sun\ C*)                       # Sun C 5.9
8588           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'
8589           compiler_needs_object=yes
8590           tmp_sharedflag='-G' ;;
8591         *Sun\ F*)                       # Sun Fortran 8.3
8592           tmp_sharedflag='-G' ;;
8593         esac
8594         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8595
8596         if test "x$supports_anon_versioning" = xyes; then
8597           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8598             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8599             echo "local: *; };" >> $output_objdir/$libname.ver~
8600             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8601         fi
8602
8603         case $cc_basename in
8604         xlf* | bgf* | bgxlf* | mpixlf*)
8605           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8606           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8607           hardcode_libdir_flag_spec=
8608           hardcode_libdir_flag_spec_ld='-rpath $libdir'
8609           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8610           if test "x$supports_anon_versioning" = xyes; then
8611             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8612               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8613               echo "local: *; };" >> $output_objdir/$libname.ver~
8614               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8615           fi
8616           ;;
8617         esac
8618       else
8619         ld_shlibs=no
8620       fi
8621       ;;
8622
8623     netbsd*)
8624       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8625         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8626         wlarc=
8627       else
8628         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8629         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8630       fi
8631       ;;
8632
8633     solaris*)
8634       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8635         ld_shlibs=no
8636         cat <<_LT_EOF 1>&2
8637
8638 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8639 *** create shared libraries on Solaris systems.  Therefore, libtool
8640 *** is disabling shared libraries support.  We urge you to upgrade GNU
8641 *** binutils to release 2.9.1 or newer.  Another option is to modify
8642 *** your PATH or compiler configuration so that the native linker is
8643 *** used, and then restart.
8644
8645 _LT_EOF
8646       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8647         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8649       else
8650         ld_shlibs=no
8651       fi
8652       ;;
8653
8654     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8655       case `$LD -v 2>&1` in
8656         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8657         ld_shlibs=no
8658         cat <<_LT_EOF 1>&2
8659
8660 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8661 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8662 *** is disabling shared libraries support.  We urge you to upgrade GNU
8663 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8664 *** your PATH or compiler configuration so that the native linker is
8665 *** used, and then restart.
8666
8667 _LT_EOF
8668         ;;
8669         *)
8670           # For security reasons, it is highly recommended that you always
8671           # use absolute paths for naming shared libraries, and exclude the
8672           # DT_RUNPATH tag from executables and libraries.  But doing so
8673           # requires that you compile everything twice, which is a pain.
8674           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8675             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8676             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8677             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8678           else
8679             ld_shlibs=no
8680           fi
8681         ;;
8682       esac
8683       ;;
8684
8685     sunos4*)
8686       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8687       wlarc=
8688       hardcode_direct=yes
8689       hardcode_shlibpath_var=no
8690       ;;
8691
8692     *)
8693       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8694         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8695         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8696       else
8697         ld_shlibs=no
8698       fi
8699       ;;
8700     esac
8701
8702     if test "$ld_shlibs" = no; then
8703       runpath_var=
8704       hardcode_libdir_flag_spec=
8705       export_dynamic_flag_spec=
8706       whole_archive_flag_spec=
8707     fi
8708   else
8709     # PORTME fill in a description of your system's linker (not GNU ld)
8710     case $host_os in
8711     aix3*)
8712       allow_undefined_flag=unsupported
8713       always_export_symbols=yes
8714       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'
8715       # Note: this linker hardcodes the directories in LIBPATH if there
8716       # are no directories specified by -L.
8717       hardcode_minus_L=yes
8718       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8719         # Neither direct hardcoding nor static linking is supported with a
8720         # broken collect2.
8721         hardcode_direct=unsupported
8722       fi
8723       ;;
8724
8725     aix[4-9]*)
8726       if test "$host_cpu" = ia64; then
8727         # On IA64, the linker does run time linking by default, so we don't
8728         # have to do anything special.
8729         aix_use_runtimelinking=no
8730         exp_sym_flag='-Bexport'
8731         no_entry_flag=""
8732       else
8733         # If we're using GNU nm, then we don't want the "-C" option.
8734         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8735         # Also, AIX nm treats weak defined symbols like other global
8736         # defined symbols, whereas GNU nm marks them as "W".
8737         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8738           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'
8739         else
8740           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'
8741         fi
8742         aix_use_runtimelinking=no
8743
8744         # Test if we are trying to use run time linking or normal
8745         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8746         # need to do runtime linking.
8747         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8748           for ld_flag in $LDFLAGS; do
8749           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8750             aix_use_runtimelinking=yes
8751             break
8752           fi
8753           done
8754           ;;
8755         esac
8756
8757         exp_sym_flag='-bexport'
8758         no_entry_flag='-bnoentry'
8759       fi
8760
8761       # When large executables or shared objects are built, AIX ld can
8762       # have problems creating the table of contents.  If linking a library
8763       # or program results in "error TOC overflow" add -mminimal-toc to
8764       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8765       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8766
8767       archive_cmds=''
8768       hardcode_direct=yes
8769       hardcode_direct_absolute=yes
8770       hardcode_libdir_separator=':'
8771       link_all_deplibs=yes
8772       file_list_spec='${wl}-f,'
8773
8774       if test "$GCC" = yes; then
8775         case $host_os in aix4.[012]|aix4.[012].*)
8776         # We only want to do this on AIX 4.2 and lower, the check
8777         # below for broken collect2 doesn't work under 4.3+
8778           collect2name=`${CC} -print-prog-name=collect2`
8779           if test -f "$collect2name" &&
8780            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8781           then
8782           # We have reworked collect2
8783           :
8784           else
8785           # We have old collect2
8786           hardcode_direct=unsupported
8787           # It fails to find uninstalled libraries when the uninstalled
8788           # path is not listed in the libpath.  Setting hardcode_minus_L
8789           # to unsupported forces relinking
8790           hardcode_minus_L=yes
8791           hardcode_libdir_flag_spec='-L$libdir'
8792           hardcode_libdir_separator=
8793           fi
8794           ;;
8795         esac
8796         shared_flag='-shared'
8797         if test "$aix_use_runtimelinking" = yes; then
8798           shared_flag="$shared_flag "'${wl}-G'
8799         fi
8800       else
8801         # not using gcc
8802         if test "$host_cpu" = ia64; then
8803         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8804         # chokes on -Wl,-G. The following line is correct:
8805           shared_flag='-G'
8806         else
8807           if test "$aix_use_runtimelinking" = yes; then
8808             shared_flag='${wl}-G'
8809           else
8810             shared_flag='${wl}-bM:SRE'
8811           fi
8812         fi
8813       fi
8814
8815       export_dynamic_flag_spec='${wl}-bexpall'
8816       # It seems that -bexpall does not export symbols beginning with
8817       # underscore (_), so it is better to generate a list of symbols to export.
8818       always_export_symbols=yes
8819       if test "$aix_use_runtimelinking" = yes; then
8820         # Warning - without using the other runtime loading flags (-brtl),
8821         # -berok will link without error, but may produce a broken library.
8822         allow_undefined_flag='-berok'
8823         # Determine the default libpath from the value encoded in an
8824         # empty executable.
8825         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h.  */
8827
8828 int
8829 main ()
8830 {
8831
8832   ;
8833   return 0;
8834 }
8835 _ACEOF
8836 if ac_fn_c_try_link "$LINENO"; then :
8837
8838 lt_aix_libpath_sed='
8839     /Import File Strings/,/^$/ {
8840         /^0/ {
8841             s/^0  *\(.*\)$/\1/
8842             p
8843         }
8844     }'
8845 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8846 # Check for a 64-bit object if we didn't find anything.
8847 if test -z "$aix_libpath"; then
8848   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8849 fi
8850 fi
8851 rm -f core conftest.err conftest.$ac_objext \
8852     conftest$ac_exeext conftest.$ac_ext
8853 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8854
8855         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8856         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"
8857       else
8858         if test "$host_cpu" = ia64; then
8859           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8860           allow_undefined_flag="-z nodefs"
8861           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"
8862         else
8863          # Determine the default libpath from the value encoded in an
8864          # empty executable.
8865          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8866 /* end confdefs.h.  */
8867
8868 int
8869 main ()
8870 {
8871
8872   ;
8873   return 0;
8874 }
8875 _ACEOF
8876 if ac_fn_c_try_link "$LINENO"; then :
8877
8878 lt_aix_libpath_sed='
8879     /Import File Strings/,/^$/ {
8880         /^0/ {
8881             s/^0  *\(.*\)$/\1/
8882             p
8883         }
8884     }'
8885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8886 # Check for a 64-bit object if we didn't find anything.
8887 if test -z "$aix_libpath"; then
8888   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8889 fi
8890 fi
8891 rm -f core conftest.err conftest.$ac_objext \
8892     conftest$ac_exeext conftest.$ac_ext
8893 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8894
8895          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8896           # Warning - without using the other run time loading flags,
8897           # -berok will link without error, but may produce a broken library.
8898           no_undefined_flag=' ${wl}-bernotok'
8899           allow_undefined_flag=' ${wl}-berok'
8900           if test "$with_gnu_ld" = yes; then
8901             # We only use this code for GNU lds that support --whole-archive.
8902             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8903           else
8904             # Exported symbols can be pulled into shared objects from archives
8905             whole_archive_flag_spec='$convenience'
8906           fi
8907           archive_cmds_need_lc=yes
8908           # This is similar to how AIX traditionally builds its shared libraries.
8909           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'
8910         fi
8911       fi
8912       ;;
8913
8914     amigaos*)
8915       case $host_cpu in
8916       powerpc)
8917             # see comment about AmigaOS4 .so support
8918             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919             archive_expsym_cmds=''
8920         ;;
8921       m68k)
8922             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)'
8923             hardcode_libdir_flag_spec='-L$libdir'
8924             hardcode_minus_L=yes
8925         ;;
8926       esac
8927       ;;
8928
8929     bsdi[45]*)
8930       export_dynamic_flag_spec=-rdynamic
8931       ;;
8932
8933     cygwin* | mingw* | pw32* | cegcc*)
8934       # When not using gcc, we currently assume that we are using
8935       # Microsoft Visual C++.
8936       # hardcode_libdir_flag_spec is actually meaningless, as there is
8937       # no search path for DLLs.
8938       hardcode_libdir_flag_spec=' '
8939       allow_undefined_flag=unsupported
8940       # Tell ltmain to make .lib files, not .a files.
8941       libext=lib
8942       # Tell ltmain to make .dll files, not .so files.
8943       shrext_cmds=".dll"
8944       # FIXME: Setting linknames here is a bad hack.
8945       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8946       # The linker will automatically build a .lib file if we build a DLL.
8947       old_archive_from_new_cmds='true'
8948       # FIXME: Should let the user specify the lib program.
8949       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8950       fix_srcfile_path='`cygpath -w "$srcfile"`'
8951       enable_shared_with_static_runtimes=yes
8952       ;;
8953
8954     darwin* | rhapsody*)
8955
8956
8957   archive_cmds_need_lc=no
8958   hardcode_direct=no
8959   hardcode_automatic=yes
8960   hardcode_shlibpath_var=unsupported
8961   if test "$lt_cv_ld_force_load" = "yes"; then
8962     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\"`'
8963   else
8964     whole_archive_flag_spec=''
8965   fi
8966   link_all_deplibs=yes
8967   allow_undefined_flag="$_lt_dar_allow_undefined"
8968   case $cc_basename in
8969      ifort*) _lt_dar_can_shared=yes ;;
8970      *) _lt_dar_can_shared=$GCC ;;
8971   esac
8972   if test "$_lt_dar_can_shared" = "yes"; then
8973     output_verbose_link_cmd=func_echo_all
8974     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8975     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8976     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}"
8977     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}"
8978
8979   else
8980   ld_shlibs=no
8981   fi
8982
8983       ;;
8984
8985     dgux*)
8986       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8987       hardcode_libdir_flag_spec='-L$libdir'
8988       hardcode_shlibpath_var=no
8989       ;;
8990
8991     freebsd1*)
8992       ld_shlibs=no
8993       ;;
8994
8995     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8996     # support.  Future versions do this automatically, but an explicit c++rt0.o
8997     # does not break anything, and helps significantly (at the cost of a little
8998     # extra space).
8999     freebsd2.2*)
9000       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9001       hardcode_libdir_flag_spec='-R$libdir'
9002       hardcode_direct=yes
9003       hardcode_shlibpath_var=no
9004       ;;
9005
9006     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9007     freebsd2*)
9008       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9009       hardcode_direct=yes
9010       hardcode_minus_L=yes
9011       hardcode_shlibpath_var=no
9012       ;;
9013
9014     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9015     freebsd* | dragonfly*)
9016       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9017       hardcode_libdir_flag_spec='-R$libdir'
9018       hardcode_direct=yes
9019       hardcode_shlibpath_var=no
9020       ;;
9021
9022     hpux9*)
9023       if test "$GCC" = yes; then
9024         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9025       else
9026         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'
9027       fi
9028       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9029       hardcode_libdir_separator=:
9030       hardcode_direct=yes
9031
9032       # hardcode_minus_L: Not really in the search PATH,
9033       # but as the default location of the library.
9034       hardcode_minus_L=yes
9035       export_dynamic_flag_spec='${wl}-E'
9036       ;;
9037
9038     hpux10*)
9039       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9040         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9041       else
9042         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9043       fi
9044       if test "$with_gnu_ld" = no; then
9045         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9046         hardcode_libdir_flag_spec_ld='+b $libdir'
9047         hardcode_libdir_separator=:
9048         hardcode_direct=yes
9049         hardcode_direct_absolute=yes
9050         export_dynamic_flag_spec='${wl}-E'
9051         # hardcode_minus_L: Not really in the search PATH,
9052         # but as the default location of the library.
9053         hardcode_minus_L=yes
9054       fi
9055       ;;
9056
9057     hpux11*)
9058       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9059         case $host_cpu in
9060         hppa*64*)
9061           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9062           ;;
9063         ia64*)
9064           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9065           ;;
9066         *)
9067           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9068           ;;
9069         esac
9070       else
9071         case $host_cpu in
9072         hppa*64*)
9073           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9074           ;;
9075         ia64*)
9076           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9077           ;;
9078         *)
9079
9080           # Older versions of the 11.00 compiler do not understand -b yet
9081           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9082           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9083 $as_echo_n "checking if $CC understands -b... " >&6; }
9084 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9085   $as_echo_n "(cached) " >&6
9086 else
9087   lt_cv_prog_compiler__b=no
9088    save_LDFLAGS="$LDFLAGS"
9089    LDFLAGS="$LDFLAGS -b"
9090    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9091    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9092      # The linker can only warn and ignore the option if not recognized
9093      # So say no if there are warnings
9094      if test -s conftest.err; then
9095        # Append any errors to the config.log.
9096        cat conftest.err 1>&5
9097        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9098        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9099        if diff conftest.exp conftest.er2 >/dev/null; then
9100          lt_cv_prog_compiler__b=yes
9101        fi
9102      else
9103        lt_cv_prog_compiler__b=yes
9104      fi
9105    fi
9106    $RM -r conftest*
9107    LDFLAGS="$save_LDFLAGS"
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9111 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9112
9113 if test x"$lt_cv_prog_compiler__b" = xyes; then
9114     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9115 else
9116     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9117 fi
9118
9119           ;;
9120         esac
9121       fi
9122       if test "$with_gnu_ld" = no; then
9123         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9124         hardcode_libdir_separator=:
9125
9126         case $host_cpu in
9127         hppa*64*|ia64*)
9128           hardcode_direct=no
9129           hardcode_shlibpath_var=no
9130           ;;
9131         *)
9132           hardcode_direct=yes
9133           hardcode_direct_absolute=yes
9134           export_dynamic_flag_spec='${wl}-E'
9135
9136           # hardcode_minus_L: Not really in the search PATH,
9137           # but as the default location of the library.
9138           hardcode_minus_L=yes
9139           ;;
9140         esac
9141       fi
9142       ;;
9143
9144     irix5* | irix6* | nonstopux*)
9145       if test "$GCC" = yes; then
9146         archive_cmds='$CC -shared $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'
9147         # Try to use the -exported_symbol ld option, if it does not
9148         # work, assume that -exports_file does not work either and
9149         # implicitly export all symbols.
9150         save_LDFLAGS="$LDFLAGS"
9151         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9152         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153 /* end confdefs.h.  */
9154 int foo(void) {}
9155 _ACEOF
9156 if ac_fn_c_try_link "$LINENO"; then :
9157   archive_expsym_cmds='$CC -shared $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'
9158
9159 fi
9160 rm -f core conftest.err conftest.$ac_objext \
9161     conftest$ac_exeext conftest.$ac_ext
9162         LDFLAGS="$save_LDFLAGS"
9163       else
9164         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'
9165         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'
9166       fi
9167       archive_cmds_need_lc='no'
9168       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9169       hardcode_libdir_separator=:
9170       inherit_rpath=yes
9171       link_all_deplibs=yes
9172       ;;
9173
9174     netbsd*)
9175       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9176         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9177       else
9178         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9179       fi
9180       hardcode_libdir_flag_spec='-R$libdir'
9181       hardcode_direct=yes
9182       hardcode_shlibpath_var=no
9183       ;;
9184
9185     newsos6)
9186       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9187       hardcode_direct=yes
9188       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9189       hardcode_libdir_separator=:
9190       hardcode_shlibpath_var=no
9191       ;;
9192
9193     *nto* | *qnx*)
9194       ;;
9195
9196     openbsd*)
9197       if test -f /usr/libexec/ld.so; then
9198         hardcode_direct=yes
9199         hardcode_shlibpath_var=no
9200         hardcode_direct_absolute=yes
9201         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9202           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9203           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9204           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9205           export_dynamic_flag_spec='${wl}-E'
9206         else
9207           case $host_os in
9208            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9209              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9210              hardcode_libdir_flag_spec='-R$libdir'
9211              ;;
9212            *)
9213              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9214              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9215              ;;
9216           esac
9217         fi
9218       else
9219         ld_shlibs=no
9220       fi
9221       ;;
9222
9223     os2*)
9224       hardcode_libdir_flag_spec='-L$libdir'
9225       hardcode_minus_L=yes
9226       allow_undefined_flag=unsupported
9227       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'
9228       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9229       ;;
9230
9231     osf3*)
9232       if test "$GCC" = yes; then
9233         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234         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'
9235       else
9236         allow_undefined_flag=' -expect_unresolved \*'
9237         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'
9238       fi
9239       archive_cmds_need_lc='no'
9240       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9241       hardcode_libdir_separator=:
9242       ;;
9243
9244     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9245       if test "$GCC" = yes; then
9246         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9247         archive_cmds='$CC -shared${allow_undefined_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'
9248         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9249       else
9250         allow_undefined_flag=' -expect_unresolved \*'
9251         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'
9252         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~
9253         $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'
9254
9255         # Both c and cxx compiler support -rpath directly
9256         hardcode_libdir_flag_spec='-rpath $libdir'
9257       fi
9258       archive_cmds_need_lc='no'
9259       hardcode_libdir_separator=:
9260       ;;
9261
9262     solaris*)
9263       no_undefined_flag=' -z defs'
9264       if test "$GCC" = yes; then
9265         wlarc='${wl}'
9266         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9267         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9269       else
9270         case `$CC -V 2>&1` in
9271         *"Compilers 5.0"*)
9272           wlarc=''
9273           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9274           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9275           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9276           ;;
9277         *)
9278           wlarc='${wl}'
9279           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9280           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9281           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9282           ;;
9283         esac
9284       fi
9285       hardcode_libdir_flag_spec='-R$libdir'
9286       hardcode_shlibpath_var=no
9287       case $host_os in
9288       solaris2.[0-5] | solaris2.[0-5].*) ;;
9289       *)
9290         # The compiler driver will combine and reorder linker options,
9291         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9292         # but is careful enough not to reorder.
9293         # Supported since Solaris 2.6 (maybe 2.5.1?)
9294         if test "$GCC" = yes; then
9295           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9296         else
9297           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9298         fi
9299         ;;
9300       esac
9301       link_all_deplibs=yes
9302       ;;
9303
9304     sunos4*)
9305       if test "x$host_vendor" = xsequent; then
9306         # Use $CC to link under sequent, because it throws in some extra .o
9307         # files that make .init and .fini sections work.
9308         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9309       else
9310         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9311       fi
9312       hardcode_libdir_flag_spec='-L$libdir'
9313       hardcode_direct=yes
9314       hardcode_minus_L=yes
9315       hardcode_shlibpath_var=no
9316       ;;
9317
9318     sysv4)
9319       case $host_vendor in
9320         sni)
9321           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322           hardcode_direct=yes # is this really true???
9323         ;;
9324         siemens)
9325           ## LD is ld it makes a PLAMLIB
9326           ## CC just makes a GrossModule.
9327           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9328           reload_cmds='$CC -r -o $output$reload_objs'
9329           hardcode_direct=no
9330         ;;
9331         motorola)
9332           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9334         ;;
9335       esac
9336       runpath_var='LD_RUN_PATH'
9337       hardcode_shlibpath_var=no
9338       ;;
9339
9340     sysv4.3*)
9341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9342       hardcode_shlibpath_var=no
9343       export_dynamic_flag_spec='-Bexport'
9344       ;;
9345
9346     sysv4*MP*)
9347       if test -d /usr/nec; then
9348         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9349         hardcode_shlibpath_var=no
9350         runpath_var=LD_RUN_PATH
9351         hardcode_runpath_var=yes
9352         ld_shlibs=yes
9353       fi
9354       ;;
9355
9356     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9357       no_undefined_flag='${wl}-z,text'
9358       archive_cmds_need_lc=no
9359       hardcode_shlibpath_var=no
9360       runpath_var='LD_RUN_PATH'
9361
9362       if test "$GCC" = yes; then
9363         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9365       else
9366         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9367         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9368       fi
9369       ;;
9370
9371     sysv5* | sco3.2v5* | sco5v6*)
9372       # Note: We can NOT use -z defs as we might desire, because we do not
9373       # link with -lc, and that would cause any symbols used from libc to
9374       # always be unresolved, which means just about no library would
9375       # ever link correctly.  If we're not using GNU ld we use -z text
9376       # though, which does catch some bad symbols but isn't as heavy-handed
9377       # as -z defs.
9378       no_undefined_flag='${wl}-z,text'
9379       allow_undefined_flag='${wl}-z,nodefs'
9380       archive_cmds_need_lc=no
9381       hardcode_shlibpath_var=no
9382       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9383       hardcode_libdir_separator=':'
9384       link_all_deplibs=yes
9385       export_dynamic_flag_spec='${wl}-Bexport'
9386       runpath_var='LD_RUN_PATH'
9387
9388       if test "$GCC" = yes; then
9389         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9391       else
9392         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9394       fi
9395       ;;
9396
9397     uts4*)
9398       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9399       hardcode_libdir_flag_spec='-L$libdir'
9400       hardcode_shlibpath_var=no
9401       ;;
9402
9403     *)
9404       ld_shlibs=no
9405       ;;
9406     esac
9407
9408     if test x$host_vendor = xsni; then
9409       case $host in
9410       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9411         export_dynamic_flag_spec='${wl}-Blargedynsym'
9412         ;;
9413       esac
9414     fi
9415   fi
9416
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9418 $as_echo "$ld_shlibs" >&6; }
9419 test "$ld_shlibs" = no && can_build_shared=no
9420
9421 with_gnu_ld=$with_gnu_ld
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437 #
9438 # Do we need to explicitly link libc?
9439 #
9440 case "x$archive_cmds_need_lc" in
9441 x|xyes)
9442   # Assume -lc should be added
9443   archive_cmds_need_lc=yes
9444
9445   if test "$enable_shared" = yes && test "$GCC" = yes; then
9446     case $archive_cmds in
9447     *'~'*)
9448       # FIXME: we may have to deal with multi-command sequences.
9449       ;;
9450     '$CC '*)
9451       # Test whether the compiler implicitly links with -lc since on some
9452       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9453       # to ld, don't add -lc before -lgcc.
9454       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9455 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9456 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9457   $as_echo_n "(cached) " >&6
9458 else
9459   $RM conftest*
9460         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9461
9462         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9463   (eval $ac_compile) 2>&5
9464   ac_status=$?
9465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9466   test $ac_status = 0; } 2>conftest.err; then
9467           soname=conftest
9468           lib=conftest
9469           libobjs=conftest.$ac_objext
9470           deplibs=
9471           wl=$lt_prog_compiler_wl
9472           pic_flag=$lt_prog_compiler_pic
9473           compiler_flags=-v
9474           linker_flags=-v
9475           verstring=
9476           output_objdir=.
9477           libname=conftest
9478           lt_save_allow_undefined_flag=$allow_undefined_flag
9479           allow_undefined_flag=
9480           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9481   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9482   ac_status=$?
9483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484   test $ac_status = 0; }
9485           then
9486             lt_cv_archive_cmds_need_lc=no
9487           else
9488             lt_cv_archive_cmds_need_lc=yes
9489           fi
9490           allow_undefined_flag=$lt_save_allow_undefined_flag
9491         else
9492           cat conftest.err 1>&5
9493         fi
9494         $RM conftest*
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9498 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9499       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9500       ;;
9501     esac
9502   fi
9503   ;;
9504 esac
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9664
9665 if test "$GCC" = yes; then
9666   case $host_os in
9667     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9668     *) lt_awk_arg="/^libraries:/" ;;
9669   esac
9670   case $host_os in
9671     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9672     *) lt_sed_strip_eq="s,=/,/,g" ;;
9673   esac
9674   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9675   case $lt_search_path_spec in
9676   *\;*)
9677     # if the path contains ";" then we assume it to be the separator
9678     # otherwise default to the standard path separator (i.e. ":") - it is
9679     # assumed that no part of a normal pathname contains ";" but that should
9680     # okay in the real world where ";" in dirpaths is itself problematic.
9681     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9682     ;;
9683   *)
9684     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9685     ;;
9686   esac
9687   # Ok, now we have the path, separated by spaces, we can step through it
9688   # and add multilib dir if necessary.
9689   lt_tmp_lt_search_path_spec=
9690   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9691   for lt_sys_path in $lt_search_path_spec; do
9692     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9693       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9694     else
9695       test -d "$lt_sys_path" && \
9696         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9697     fi
9698   done
9699   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9700 BEGIN {RS=" "; FS="/|\n";} {
9701   lt_foo="";
9702   lt_count=0;
9703   for (lt_i = NF; lt_i > 0; lt_i--) {
9704     if ($lt_i != "" && $lt_i != ".") {
9705       if ($lt_i == "..") {
9706         lt_count++;
9707       } else {
9708         if (lt_count == 0) {
9709           lt_foo="/" $lt_i lt_foo;
9710         } else {
9711           lt_count--;
9712         }
9713       }
9714     }
9715   }
9716   if (lt_foo != "") { lt_freq[lt_foo]++; }
9717   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9718 }'`
9719   # AWK program above erroneously prepends '/' to C:/dos/paths
9720   # for these hosts.
9721   case $host_os in
9722     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9723       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9724   esac
9725   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9726 else
9727   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9728 fi
9729 library_names_spec=
9730 libname_spec='lib$name'
9731 soname_spec=
9732 shrext_cmds=".so"
9733 postinstall_cmds=
9734 postuninstall_cmds=
9735 finish_cmds=
9736 finish_eval=
9737 shlibpath_var=
9738 shlibpath_overrides_runpath=unknown
9739 version_type=none
9740 dynamic_linker="$host_os ld.so"
9741 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9742 need_lib_prefix=unknown
9743 hardcode_into_libs=no
9744
9745 # when you set need_version to no, make sure it does not cause -set_version
9746 # flags to be left without arguments
9747 need_version=unknown
9748
9749 case $host_os in
9750 aix3*)
9751   version_type=linux
9752   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9753   shlibpath_var=LIBPATH
9754
9755   # AIX 3 has no versioning support, so we append a major version to the name.
9756   soname_spec='${libname}${release}${shared_ext}$major'
9757   ;;
9758
9759 aix[4-9]*)
9760   version_type=linux
9761   need_lib_prefix=no
9762   need_version=no
9763   hardcode_into_libs=yes
9764   if test "$host_cpu" = ia64; then
9765     # AIX 5 supports IA64
9766     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9767     shlibpath_var=LD_LIBRARY_PATH
9768   else
9769     # With GCC up to 2.95.x, collect2 would create an import file
9770     # for dependence libraries.  The import file would start with
9771     # the line `#! .'.  This would cause the generated library to
9772     # depend on `.', always an invalid library.  This was fixed in
9773     # development snapshots of GCC prior to 3.0.
9774     case $host_os in
9775       aix4 | aix4.[01] | aix4.[01].*)
9776       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9777            echo ' yes '
9778            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9779         :
9780       else
9781         can_build_shared=no
9782       fi
9783       ;;
9784     esac
9785     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9786     # soname into executable. Probably we can add versioning support to
9787     # collect2, so additional links can be useful in future.
9788     if test "$aix_use_runtimelinking" = yes; then
9789       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9790       # instead of lib<name>.a to let people know that these are not
9791       # typical AIX shared libraries.
9792       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793     else
9794       # We preserve .a as extension for shared libraries through AIX4.2
9795       # and later when we are not doing run time linking.
9796       library_names_spec='${libname}${release}.a $libname.a'
9797       soname_spec='${libname}${release}${shared_ext}$major'
9798     fi
9799     shlibpath_var=LIBPATH
9800   fi
9801   ;;
9802
9803 amigaos*)
9804   case $host_cpu in
9805   powerpc)
9806     # Since July 2007 AmigaOS4 officially supports .so libraries.
9807     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9808     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9809     ;;
9810   m68k)
9811     library_names_spec='$libname.ixlibrary $libname.a'
9812     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9813     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'
9814     ;;
9815   esac
9816   ;;
9817
9818 beos*)
9819   library_names_spec='${libname}${shared_ext}'
9820   dynamic_linker="$host_os ld.so"
9821   shlibpath_var=LIBRARY_PATH
9822   ;;
9823
9824 bsdi[45]*)
9825   version_type=linux
9826   need_version=no
9827   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9828   soname_spec='${libname}${release}${shared_ext}$major'
9829   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9830   shlibpath_var=LD_LIBRARY_PATH
9831   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9832   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9833   # the default ld.so.conf also contains /usr/contrib/lib and
9834   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9835   # libtool to hard-code these into programs
9836   ;;
9837
9838 cygwin* | mingw* | pw32* | cegcc*)
9839   version_type=windows
9840   shrext_cmds=".dll"
9841   need_version=no
9842   need_lib_prefix=no
9843
9844   case $GCC,$host_os in
9845   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9846     library_names_spec='$libname.dll.a'
9847     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9848     postinstall_cmds='base_file=`basename \${file}`~
9849       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9850       dldir=$destdir/`dirname \$dlpath`~
9851       test -d \$dldir || mkdir -p \$dldir~
9852       $install_prog $dir/$dlname \$dldir/$dlname~
9853       chmod a+x \$dldir/$dlname~
9854       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9855         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9856       fi'
9857     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9858       dlpath=$dir/\$dldll~
9859        $RM \$dlpath'
9860     shlibpath_overrides_runpath=yes
9861
9862     case $host_os in
9863     cygwin*)
9864       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9865       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9866
9867       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9868       ;;
9869     mingw* | cegcc*)
9870       # MinGW DLLs use traditional 'lib' prefix
9871       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9872       ;;
9873     pw32*)
9874       # pw32 DLLs use 'pw' prefix rather than 'lib'
9875       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9876       ;;
9877     esac
9878     ;;
9879
9880   *)
9881     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9882     ;;
9883   esac
9884   dynamic_linker='Win32 ld.exe'
9885   # FIXME: first we should search . and the directory the executable is in
9886   shlibpath_var=PATH
9887   ;;
9888
9889 darwin* | rhapsody*)
9890   dynamic_linker="$host_os dyld"
9891   version_type=darwin
9892   need_lib_prefix=no
9893   need_version=no
9894   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9895   soname_spec='${libname}${release}${major}$shared_ext'
9896   shlibpath_overrides_runpath=yes
9897   shlibpath_var=DYLD_LIBRARY_PATH
9898   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9899
9900   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9901   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9902   ;;
9903
9904 dgux*)
9905   version_type=linux
9906   need_lib_prefix=no
9907   need_version=no
9908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9909   soname_spec='${libname}${release}${shared_ext}$major'
9910   shlibpath_var=LD_LIBRARY_PATH
9911   ;;
9912
9913 freebsd1*)
9914   dynamic_linker=no
9915   ;;
9916
9917 freebsd* | dragonfly*)
9918   # DragonFly does not have aout.  When/if they implement a new
9919   # versioning mechanism, adjust this.
9920   if test -x /usr/bin/objformat; then
9921     objformat=`/usr/bin/objformat`
9922   else
9923     case $host_os in
9924     freebsd[123]*) objformat=aout ;;
9925     *) objformat=elf ;;
9926     esac
9927   fi
9928   version_type=freebsd-$objformat
9929   case $version_type in
9930     freebsd-elf*)
9931       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9932       need_version=no
9933       need_lib_prefix=no
9934       ;;
9935     freebsd-*)
9936       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9937       need_version=yes
9938       ;;
9939   esac
9940   shlibpath_var=LD_LIBRARY_PATH
9941   case $host_os in
9942   freebsd2*)
9943     shlibpath_overrides_runpath=yes
9944     ;;
9945   freebsd3.[01]* | freebsdelf3.[01]*)
9946     shlibpath_overrides_runpath=yes
9947     hardcode_into_libs=yes
9948     ;;
9949   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9950   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9951     shlibpath_overrides_runpath=no
9952     hardcode_into_libs=yes
9953     ;;
9954   *) # from 4.6 on, and DragonFly
9955     shlibpath_overrides_runpath=yes
9956     hardcode_into_libs=yes
9957     ;;
9958   esac
9959   ;;
9960
9961 gnu*)
9962   version_type=linux
9963   need_lib_prefix=no
9964   need_version=no
9965   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9966   soname_spec='${libname}${release}${shared_ext}$major'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   hardcode_into_libs=yes
9969   ;;
9970
9971 haiku*)
9972   version_type=linux
9973   need_lib_prefix=no
9974   need_version=no
9975   dynamic_linker="$host_os runtime_loader"
9976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9977   soname_spec='${libname}${release}${shared_ext}$major'
9978   shlibpath_var=LIBRARY_PATH
9979   shlibpath_overrides_runpath=yes
9980   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9981   hardcode_into_libs=yes
9982   ;;
9983
9984 hpux9* | hpux10* | hpux11*)
9985   # Give a soname corresponding to the major version so that dld.sl refuses to
9986   # link against other versions.
9987   version_type=sunos
9988   need_lib_prefix=no
9989   need_version=no
9990   case $host_cpu in
9991   ia64*)
9992     shrext_cmds='.so'
9993     hardcode_into_libs=yes
9994     dynamic_linker="$host_os dld.so"
9995     shlibpath_var=LD_LIBRARY_PATH
9996     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9998     soname_spec='${libname}${release}${shared_ext}$major'
9999     if test "X$HPUX_IA64_MODE" = X32; then
10000       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10001     else
10002       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10003     fi
10004     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10005     ;;
10006   hppa*64*)
10007     shrext_cmds='.sl'
10008     hardcode_into_libs=yes
10009     dynamic_linker="$host_os dld.sl"
10010     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10011     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10012     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013     soname_spec='${libname}${release}${shared_ext}$major'
10014     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10015     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10016     ;;
10017   *)
10018     shrext_cmds='.sl'
10019     dynamic_linker="$host_os dld.sl"
10020     shlibpath_var=SHLIB_PATH
10021     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023     soname_spec='${libname}${release}${shared_ext}$major'
10024     ;;
10025   esac
10026   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10027   postinstall_cmds='chmod 555 $lib'
10028   # or fails outright, so override atomically:
10029   install_override_mode=555
10030   ;;
10031
10032 interix[3-9]*)
10033   version_type=linux
10034   need_lib_prefix=no
10035   need_version=no
10036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10037   soname_spec='${libname}${release}${shared_ext}$major'
10038   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10039   shlibpath_var=LD_LIBRARY_PATH
10040   shlibpath_overrides_runpath=no
10041   hardcode_into_libs=yes
10042   ;;
10043
10044 irix5* | irix6* | nonstopux*)
10045   case $host_os in
10046     nonstopux*) version_type=nonstopux ;;
10047     *)
10048         if test "$lt_cv_prog_gnu_ld" = yes; then
10049                 version_type=linux
10050         else
10051                 version_type=irix
10052         fi ;;
10053   esac
10054   need_lib_prefix=no
10055   need_version=no
10056   soname_spec='${libname}${release}${shared_ext}$major'
10057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10058   case $host_os in
10059   irix5* | nonstopux*)
10060     libsuff= shlibsuff=
10061     ;;
10062   *)
10063     case $LD in # libtool.m4 will add one of these switches to LD
10064     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10065       libsuff= shlibsuff= libmagic=32-bit;;
10066     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10067       libsuff=32 shlibsuff=N32 libmagic=N32;;
10068     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10069       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10070     *) libsuff= shlibsuff= libmagic=never-match;;
10071     esac
10072     ;;
10073   esac
10074   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10075   shlibpath_overrides_runpath=no
10076   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10077   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10078   hardcode_into_libs=yes
10079   ;;
10080
10081 # No shared lib support for Linux oldld, aout, or coff.
10082 linux*oldld* | linux*aout* | linux*coff*)
10083   dynamic_linker=no
10084   ;;
10085
10086 # This must be Linux ELF.
10087 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10088   version_type=linux
10089   need_lib_prefix=no
10090   need_version=no
10091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10092   soname_spec='${libname}${release}${shared_ext}$major'
10093   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10094   shlibpath_var=LD_LIBRARY_PATH
10095   shlibpath_overrides_runpath=no
10096
10097   # Some binutils ld are patched to set DT_RUNPATH
10098   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101   lt_cv_shlibpath_overrides_runpath=no
10102     save_LDFLAGS=$LDFLAGS
10103     save_libdir=$libdir
10104     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10105          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10106     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10107 /* end confdefs.h.  */
10108
10109 int
10110 main ()
10111 {
10112
10113   ;
10114   return 0;
10115 }
10116 _ACEOF
10117 if ac_fn_c_try_link "$LINENO"; then :
10118   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10119   lt_cv_shlibpath_overrides_runpath=yes
10120 fi
10121 fi
10122 rm -f core conftest.err conftest.$ac_objext \
10123     conftest$ac_exeext conftest.$ac_ext
10124     LDFLAGS=$save_LDFLAGS
10125     libdir=$save_libdir
10126
10127 fi
10128
10129   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10130
10131   # This implies no fast_install, which is unacceptable.
10132   # Some rework will be needed to allow for fast_install
10133   # before this can be enabled.
10134   hardcode_into_libs=yes
10135
10136   # Append ld.so.conf contents to the search path
10137   if test -f /etc/ld.so.conf; then
10138     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' ' '`
10139     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10140   fi
10141
10142   # We used to test for /lib/ld.so.1 and disable shared libraries on
10143   # powerpc, because MkLinux only supported shared libraries with the
10144   # GNU dynamic linker.  Since this was broken with cross compilers,
10145   # most powerpc-linux boxes support dynamic linking these days and
10146   # people can always --disable-shared, the test was removed, and we
10147   # assume the GNU/Linux dynamic linker is in use.
10148   dynamic_linker='GNU/Linux ld.so'
10149   ;;
10150
10151 netbsd*)
10152   version_type=sunos
10153   need_lib_prefix=no
10154   need_version=no
10155   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10157     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10158     dynamic_linker='NetBSD (a.out) ld.so'
10159   else
10160     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10161     soname_spec='${libname}${release}${shared_ext}$major'
10162     dynamic_linker='NetBSD ld.elf_so'
10163   fi
10164   shlibpath_var=LD_LIBRARY_PATH
10165   shlibpath_overrides_runpath=yes
10166   hardcode_into_libs=yes
10167   ;;
10168
10169 newsos6)
10170   version_type=linux
10171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172   shlibpath_var=LD_LIBRARY_PATH
10173   shlibpath_overrides_runpath=yes
10174   ;;
10175
10176 *nto* | *qnx*)
10177   version_type=qnx
10178   need_lib_prefix=no
10179   need_version=no
10180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181   soname_spec='${libname}${release}${shared_ext}$major'
10182   shlibpath_var=LD_LIBRARY_PATH
10183   shlibpath_overrides_runpath=no
10184   hardcode_into_libs=yes
10185   dynamic_linker='ldqnx.so'
10186   ;;
10187
10188 openbsd*)
10189   version_type=sunos
10190   sys_lib_dlsearch_path_spec="/usr/lib"
10191   need_lib_prefix=no
10192   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10193   case $host_os in
10194     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10195     *)                          need_version=no  ;;
10196   esac
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10198   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10201     case $host_os in
10202       openbsd2.[89] | openbsd2.[89].*)
10203         shlibpath_overrides_runpath=no
10204         ;;
10205       *)
10206         shlibpath_overrides_runpath=yes
10207         ;;
10208       esac
10209   else
10210     shlibpath_overrides_runpath=yes
10211   fi
10212   ;;
10213
10214 os2*)
10215   libname_spec='$name'
10216   shrext_cmds=".dll"
10217   need_lib_prefix=no
10218   library_names_spec='$libname${shared_ext} $libname.a'
10219   dynamic_linker='OS/2 ld.exe'
10220   shlibpath_var=LIBPATH
10221   ;;
10222
10223 osf3* | osf4* | osf5*)
10224   version_type=osf
10225   need_lib_prefix=no
10226   need_version=no
10227   soname_spec='${libname}${release}${shared_ext}$major'
10228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10229   shlibpath_var=LD_LIBRARY_PATH
10230   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10231   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10232   ;;
10233
10234 rdos*)
10235   dynamic_linker=no
10236   ;;
10237
10238 solaris*)
10239   version_type=linux
10240   need_lib_prefix=no
10241   need_version=no
10242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10243   soname_spec='${libname}${release}${shared_ext}$major'
10244   shlibpath_var=LD_LIBRARY_PATH
10245   shlibpath_overrides_runpath=yes
10246   hardcode_into_libs=yes
10247   # ldd complains unless libraries are executable
10248   postinstall_cmds='chmod +x $lib'
10249   ;;
10250
10251 sunos4*)
10252   version_type=sunos
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10254   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   shlibpath_overrides_runpath=yes
10257   if test "$with_gnu_ld" = yes; then
10258     need_lib_prefix=no
10259   fi
10260   need_version=yes
10261   ;;
10262
10263 sysv4 | sysv4.3*)
10264   version_type=linux
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10266   soname_spec='${libname}${release}${shared_ext}$major'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   case $host_vendor in
10269     sni)
10270       shlibpath_overrides_runpath=no
10271       need_lib_prefix=no
10272       runpath_var=LD_RUN_PATH
10273       ;;
10274     siemens)
10275       need_lib_prefix=no
10276       ;;
10277     motorola)
10278       need_lib_prefix=no
10279       need_version=no
10280       shlibpath_overrides_runpath=no
10281       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10282       ;;
10283   esac
10284   ;;
10285
10286 sysv4*MP*)
10287   if test -d /usr/nec ;then
10288     version_type=linux
10289     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10290     soname_spec='$libname${shared_ext}.$major'
10291     shlibpath_var=LD_LIBRARY_PATH
10292   fi
10293   ;;
10294
10295 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10296   version_type=freebsd-elf
10297   need_lib_prefix=no
10298   need_version=no
10299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10300   soname_spec='${libname}${release}${shared_ext}$major'
10301   shlibpath_var=LD_LIBRARY_PATH
10302   shlibpath_overrides_runpath=yes
10303   hardcode_into_libs=yes
10304   if test "$with_gnu_ld" = yes; then
10305     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10306   else
10307     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10308     case $host_os in
10309       sco3.2v5*)
10310         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10311         ;;
10312     esac
10313   fi
10314   sys_lib_dlsearch_path_spec='/usr/lib'
10315   ;;
10316
10317 tpf*)
10318   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10319   version_type=linux
10320   need_lib_prefix=no
10321   need_version=no
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10323   shlibpath_var=LD_LIBRARY_PATH
10324   shlibpath_overrides_runpath=no
10325   hardcode_into_libs=yes
10326   ;;
10327
10328 uts4*)
10329   version_type=linux
10330   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10331   soname_spec='${libname}${release}${shared_ext}$major'
10332   shlibpath_var=LD_LIBRARY_PATH
10333   ;;
10334
10335 *)
10336   dynamic_linker=no
10337   ;;
10338 esac
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10340 $as_echo "$dynamic_linker" >&6; }
10341 test "$dynamic_linker" = no && can_build_shared=no
10342
10343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10344 if test "$GCC" = yes; then
10345   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10346 fi
10347
10348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10349   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10350 fi
10351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10352   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10353 fi
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
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10447 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10448 hardcode_action=
10449 if test -n "$hardcode_libdir_flag_spec" ||
10450    test -n "$runpath_var" ||
10451    test "X$hardcode_automatic" = "Xyes" ; then
10452
10453   # We can hardcode non-existent directories.
10454   if test "$hardcode_direct" != no &&
10455      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10456      # have to relink, otherwise we might link with an installed library
10457      # when we should be linking with a yet-to-be-installed one
10458      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10459      test "$hardcode_minus_L" != no; then
10460     # Linking always hardcodes the temporary library directory.
10461     hardcode_action=relink
10462   else
10463     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10464     hardcode_action=immediate
10465   fi
10466 else
10467   # We cannot hardcode anything, or else we can only hardcode existing
10468   # directories.
10469   hardcode_action=unsupported
10470 fi
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10472 $as_echo "$hardcode_action" >&6; }
10473
10474 if test "$hardcode_action" = relink ||
10475    test "$inherit_rpath" = yes; then
10476   # Fast installation is not supported
10477   enable_fast_install=no
10478 elif test "$shlibpath_overrides_runpath" = yes ||
10479      test "$enable_shared" = no; then
10480   # Fast installation is not necessary
10481   enable_fast_install=needless
10482 fi
10483
10484
10485
10486
10487
10488
10489   if test "x$enable_dlopen" != xyes; then
10490   enable_dlopen=unknown
10491   enable_dlopen_self=unknown
10492   enable_dlopen_self_static=unknown
10493 else
10494   lt_cv_dlopen=no
10495   lt_cv_dlopen_libs=
10496
10497   case $host_os in
10498   beos*)
10499     lt_cv_dlopen="load_add_on"
10500     lt_cv_dlopen_libs=
10501     lt_cv_dlopen_self=yes
10502     ;;
10503
10504   mingw* | pw32* | cegcc*)
10505     lt_cv_dlopen="LoadLibrary"
10506     lt_cv_dlopen_libs=
10507     ;;
10508
10509   cygwin*)
10510     lt_cv_dlopen="dlopen"
10511     lt_cv_dlopen_libs=
10512     ;;
10513
10514   darwin*)
10515   # if libdl is installed we need to link against it
10516     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10517 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10519   $as_echo_n "(cached) " >&6
10520 else
10521   ac_check_lib_save_LIBS=$LIBS
10522 LIBS="-ldl  $LIBS"
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h.  */
10525
10526 /* Override any GCC internal prototype to avoid an error.
10527    Use char because int might match the return type of a GCC
10528    builtin and then its argument prototype would still apply.  */
10529 #ifdef __cplusplus
10530 extern "C"
10531 #endif
10532 char dlopen ();
10533 int
10534 main ()
10535 {
10536 return dlopen ();
10537   ;
10538   return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_link "$LINENO"; then :
10542   ac_cv_lib_dl_dlopen=yes
10543 else
10544   ac_cv_lib_dl_dlopen=no
10545 fi
10546 rm -f core conftest.err conftest.$ac_objext \
10547     conftest$ac_exeext conftest.$ac_ext
10548 LIBS=$ac_check_lib_save_LIBS
10549 fi
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10551 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10552 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10553   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10554 else
10555
10556     lt_cv_dlopen="dyld"
10557     lt_cv_dlopen_libs=
10558     lt_cv_dlopen_self=yes
10559
10560 fi
10561
10562     ;;
10563
10564   *)
10565     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10566 if test "x$ac_cv_func_shl_load" = x""yes; then :
10567   lt_cv_dlopen="shl_load"
10568 else
10569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10570 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10571 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10572   $as_echo_n "(cached) " >&6
10573 else
10574   ac_check_lib_save_LIBS=$LIBS
10575 LIBS="-ldld  $LIBS"
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h.  */
10578
10579 /* Override any GCC internal prototype to avoid an error.
10580    Use char because int might match the return type of a GCC
10581    builtin and then its argument prototype would still apply.  */
10582 #ifdef __cplusplus
10583 extern "C"
10584 #endif
10585 char shl_load ();
10586 int
10587 main ()
10588 {
10589 return shl_load ();
10590   ;
10591   return 0;
10592 }
10593 _ACEOF
10594 if ac_fn_c_try_link "$LINENO"; then :
10595   ac_cv_lib_dld_shl_load=yes
10596 else
10597   ac_cv_lib_dld_shl_load=no
10598 fi
10599 rm -f core conftest.err conftest.$ac_objext \
10600     conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10602 fi
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10604 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10605 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10606   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10607 else
10608   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10609 if test "x$ac_cv_func_dlopen" = x""yes; then :
10610   lt_cv_dlopen="dlopen"
10611 else
10612   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10615   $as_echo_n "(cached) " >&6
10616 else
10617   ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-ldl  $LIBS"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h.  */
10621
10622 /* Override any GCC internal prototype to avoid an error.
10623    Use char because int might match the return type of a GCC
10624    builtin and then its argument prototype would still apply.  */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char dlopen ();
10629 int
10630 main ()
10631 {
10632 return dlopen ();
10633   ;
10634   return 0;
10635 }
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638   ac_cv_lib_dl_dlopen=yes
10639 else
10640   ac_cv_lib_dl_dlopen=no
10641 fi
10642 rm -f core conftest.err conftest.$ac_objext \
10643     conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10645 fi
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10649   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10650 else
10651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10652 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10653 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10654   $as_echo_n "(cached) " >&6
10655 else
10656   ac_check_lib_save_LIBS=$LIBS
10657 LIBS="-lsvld  $LIBS"
10658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659 /* end confdefs.h.  */
10660
10661 /* Override any GCC internal prototype to avoid an error.
10662    Use char because int might match the return type of a GCC
10663    builtin and then its argument prototype would still apply.  */
10664 #ifdef __cplusplus
10665 extern "C"
10666 #endif
10667 char dlopen ();
10668 int
10669 main ()
10670 {
10671 return dlopen ();
10672   ;
10673   return 0;
10674 }
10675 _ACEOF
10676 if ac_fn_c_try_link "$LINENO"; then :
10677   ac_cv_lib_svld_dlopen=yes
10678 else
10679   ac_cv_lib_svld_dlopen=no
10680 fi
10681 rm -f core conftest.err conftest.$ac_objext \
10682     conftest$ac_exeext conftest.$ac_ext
10683 LIBS=$ac_check_lib_save_LIBS
10684 fi
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10686 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10687 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10688   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10689 else
10690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10691 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10692 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   ac_check_lib_save_LIBS=$LIBS
10696 LIBS="-ldld  $LIBS"
10697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10698 /* end confdefs.h.  */
10699
10700 /* Override any GCC internal prototype to avoid an error.
10701    Use char because int might match the return type of a GCC
10702    builtin and then its argument prototype would still apply.  */
10703 #ifdef __cplusplus
10704 extern "C"
10705 #endif
10706 char dld_link ();
10707 int
10708 main ()
10709 {
10710 return dld_link ();
10711   ;
10712   return 0;
10713 }
10714 _ACEOF
10715 if ac_fn_c_try_link "$LINENO"; then :
10716   ac_cv_lib_dld_dld_link=yes
10717 else
10718   ac_cv_lib_dld_dld_link=no
10719 fi
10720 rm -f core conftest.err conftest.$ac_objext \
10721     conftest$ac_exeext conftest.$ac_ext
10722 LIBS=$ac_check_lib_save_LIBS
10723 fi
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10725 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10726 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10727   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10728 fi
10729
10730
10731 fi
10732
10733
10734 fi
10735
10736
10737 fi
10738
10739
10740 fi
10741
10742
10743 fi
10744
10745     ;;
10746   esac
10747
10748   if test "x$lt_cv_dlopen" != xno; then
10749     enable_dlopen=yes
10750   else
10751     enable_dlopen=no
10752   fi
10753
10754   case $lt_cv_dlopen in
10755   dlopen)
10756     save_CPPFLAGS="$CPPFLAGS"
10757     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10758
10759     save_LDFLAGS="$LDFLAGS"
10760     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10761
10762     save_LIBS="$LIBS"
10763     LIBS="$lt_cv_dlopen_libs $LIBS"
10764
10765     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10766 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10767 if test "${lt_cv_dlopen_self+set}" = set; then :
10768   $as_echo_n "(cached) " >&6
10769 else
10770           if test "$cross_compiling" = yes; then :
10771   lt_cv_dlopen_self=cross
10772 else
10773   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10774   lt_status=$lt_dlunknown
10775   cat > conftest.$ac_ext <<_LT_EOF
10776 #line 10776 "configure"
10777 #include "confdefs.h"
10778
10779 #if HAVE_DLFCN_H
10780 #include <dlfcn.h>
10781 #endif
10782
10783 #include <stdio.h>
10784
10785 #ifdef RTLD_GLOBAL
10786 #  define LT_DLGLOBAL           RTLD_GLOBAL
10787 #else
10788 #  ifdef DL_GLOBAL
10789 #    define LT_DLGLOBAL         DL_GLOBAL
10790 #  else
10791 #    define LT_DLGLOBAL         0
10792 #  endif
10793 #endif
10794
10795 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10796    find out it does not work in some platform. */
10797 #ifndef LT_DLLAZY_OR_NOW
10798 #  ifdef RTLD_LAZY
10799 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10800 #  else
10801 #    ifdef DL_LAZY
10802 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10803 #    else
10804 #      ifdef RTLD_NOW
10805 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10806 #      else
10807 #        ifdef DL_NOW
10808 #          define LT_DLLAZY_OR_NOW      DL_NOW
10809 #        else
10810 #          define LT_DLLAZY_OR_NOW      0
10811 #        endif
10812 #      endif
10813 #    endif
10814 #  endif
10815 #endif
10816
10817 /* When -fvisbility=hidden is used, assume the code has been annotated
10818    correspondingly for the symbols needed.  */
10819 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10820 void fnord () __attribute__((visibility("default")));
10821 #endif
10822
10823 void fnord () { int i=42; }
10824 int main ()
10825 {
10826   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10827   int status = $lt_dlunknown;
10828
10829   if (self)
10830     {
10831       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10832       else
10833         {
10834           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10835           else puts (dlerror ());
10836         }
10837       /* dlclose (self); */
10838     }
10839   else
10840     puts (dlerror ());
10841
10842   return status;
10843 }
10844 _LT_EOF
10845   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10846   (eval $ac_link) 2>&5
10847   ac_status=$?
10848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10849   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10850     (./conftest; exit; ) >&5 2>/dev/null
10851     lt_status=$?
10852     case x$lt_status in
10853       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10854       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10855       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10856     esac
10857   else :
10858     # compilation failed
10859     lt_cv_dlopen_self=no
10860   fi
10861 fi
10862 rm -fr conftest*
10863
10864
10865 fi
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10867 $as_echo "$lt_cv_dlopen_self" >&6; }
10868
10869     if test "x$lt_cv_dlopen_self" = xyes; then
10870       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10871       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10872 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10873 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10874   $as_echo_n "(cached) " >&6
10875 else
10876           if test "$cross_compiling" = yes; then :
10877   lt_cv_dlopen_self_static=cross
10878 else
10879   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10880   lt_status=$lt_dlunknown
10881   cat > conftest.$ac_ext <<_LT_EOF
10882 #line 10882 "configure"
10883 #include "confdefs.h"
10884
10885 #if HAVE_DLFCN_H
10886 #include <dlfcn.h>
10887 #endif
10888
10889 #include <stdio.h>
10890
10891 #ifdef RTLD_GLOBAL
10892 #  define LT_DLGLOBAL           RTLD_GLOBAL
10893 #else
10894 #  ifdef DL_GLOBAL
10895 #    define LT_DLGLOBAL         DL_GLOBAL
10896 #  else
10897 #    define LT_DLGLOBAL         0
10898 #  endif
10899 #endif
10900
10901 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10902    find out it does not work in some platform. */
10903 #ifndef LT_DLLAZY_OR_NOW
10904 #  ifdef RTLD_LAZY
10905 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10906 #  else
10907 #    ifdef DL_LAZY
10908 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10909 #    else
10910 #      ifdef RTLD_NOW
10911 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10912 #      else
10913 #        ifdef DL_NOW
10914 #          define LT_DLLAZY_OR_NOW      DL_NOW
10915 #        else
10916 #          define LT_DLLAZY_OR_NOW      0
10917 #        endif
10918 #      endif
10919 #    endif
10920 #  endif
10921 #endif
10922
10923 /* When -fvisbility=hidden is used, assume the code has been annotated
10924    correspondingly for the symbols needed.  */
10925 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10926 void fnord () __attribute__((visibility("default")));
10927 #endif
10928
10929 void fnord () { int i=42; }
10930 int main ()
10931 {
10932   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10933   int status = $lt_dlunknown;
10934
10935   if (self)
10936     {
10937       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10938       else
10939         {
10940           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
10941           else puts (dlerror ());
10942         }
10943       /* dlclose (self); */
10944     }
10945   else
10946     puts (dlerror ());
10947
10948   return status;
10949 }
10950 _LT_EOF
10951   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10952   (eval $ac_link) 2>&5
10953   ac_status=$?
10954   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10955   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10956     (./conftest; exit; ) >&5 2>/dev/null
10957     lt_status=$?
10958     case x$lt_status in
10959       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10960       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10961       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10962     esac
10963   else :
10964     # compilation failed
10965     lt_cv_dlopen_self_static=no
10966   fi
10967 fi
10968 rm -fr conftest*
10969
10970
10971 fi
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10973 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10974     fi
10975
10976     CPPFLAGS="$save_CPPFLAGS"
10977     LDFLAGS="$save_LDFLAGS"
10978     LIBS="$save_LIBS"
10979     ;;
10980   esac
10981
10982   case $lt_cv_dlopen_self in
10983   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10984   *) enable_dlopen_self=unknown ;;
10985   esac
10986
10987   case $lt_cv_dlopen_self_static in
10988   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10989   *) enable_dlopen_self_static=unknown ;;
10990   esac
10991 fi
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009 striplib=
11010 old_striplib=
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11012 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11013 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11014   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11015   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11017 $as_echo "yes" >&6; }
11018 else
11019 # FIXME - insert some real tests, host_os isn't really good enough
11020   case $host_os in
11021   darwin*)
11022     if test -n "$STRIP" ; then
11023       striplib="$STRIP -x"
11024       old_striplib="$STRIP -S"
11025       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11026 $as_echo "yes" >&6; }
11027     else
11028       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029 $as_echo "no" >&6; }
11030     fi
11031     ;;
11032   *)
11033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11034 $as_echo "no" >&6; }
11035     ;;
11036   esac
11037 fi
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050   # Report which library types will actually be built
11051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11052 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11054 $as_echo "$can_build_shared" >&6; }
11055
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11057 $as_echo_n "checking whether to build shared libraries... " >&6; }
11058   test "$can_build_shared" = "no" && enable_shared=no
11059
11060   # On AIX, shared libraries and static libraries use the same namespace, and
11061   # are all built from PIC.
11062   case $host_os in
11063   aix3*)
11064     test "$enable_shared" = yes && enable_static=no
11065     if test -n "$RANLIB"; then
11066       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11067       postinstall_cmds='$RANLIB $lib'
11068     fi
11069     ;;
11070
11071   aix[4-9]*)
11072     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11073       test "$enable_shared" = yes && enable_static=no
11074     fi
11075     ;;
11076   esac
11077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11078 $as_echo "$enable_shared" >&6; }
11079
11080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11081 $as_echo_n "checking whether to build static libraries... " >&6; }
11082   # Make sure either enable_shared or enable_static is yes.
11083   test "$enable_shared" = yes || enable_static=yes
11084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11085 $as_echo "$enable_static" >&6; }
11086
11087
11088
11089
11090 fi
11091 ac_ext=c
11092 ac_cpp='$CPP $CPPFLAGS'
11093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11096
11097 CC="$lt_save_CC"
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111         ac_config_commands="$ac_config_commands libtool"
11112
11113
11114
11115
11116 # Only expand once:
11117
11118
11119
11120
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11122 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11123     # Check whether --enable-maintainer-mode was given.
11124 if test "${enable_maintainer_mode+set}" = set; then :
11125   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11126 else
11127   USE_MAINTAINER_MODE=no
11128 fi
11129
11130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11131 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11132    if test $USE_MAINTAINER_MODE = yes; then
11133   MAINTAINER_MODE_TRUE=
11134   MAINTAINER_MODE_FALSE='#'
11135 else
11136   MAINTAINER_MODE_TRUE='#'
11137   MAINTAINER_MODE_FALSE=
11138 fi
11139
11140   MAINT=$MAINTAINER_MODE_TRUE
11141
11142
11143
11144 for ac_header in sys/mman.h
11145 do :
11146   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11147 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11148   cat >>confdefs.h <<_ACEOF
11149 #define HAVE_SYS_MMAN_H 1
11150 _ACEOF
11151
11152 fi
11153
11154 done
11155
11156 for ac_func in mmap
11157 do :
11158   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11159 if test "x$ac_cv_func_mmap" = x""yes; then :
11160   cat >>confdefs.h <<_ACEOF
11161 #define HAVE_MMAP 1
11162 _ACEOF
11163
11164 fi
11165 done
11166
11167
11168 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
11169 if test "x$ac_cv_header_sys_mman_h" = x""yes; then :
11170   libffi_header_sys_mman_h=yes
11171 else
11172   libffi_header_sys_mman_h=no
11173 fi
11174
11175
11176 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
11177 if test "x$ac_cv_func_mmap" = x""yes; then :
11178   libffi_func_mmap=yes
11179 else
11180   libffi_func_mmap=no
11181 fi
11182
11183 if test "$libffi_header_sys_mman_h" != yes \
11184  || test "$libffi_func_mmap" != yes; then
11185    ac_cv_func_mmap_file=no
11186    ac_cv_func_mmap_dev_zero=no
11187    ac_cv_func_mmap_anon=no
11188 else
11189    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
11190 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
11191 if test "${ac_cv_func_mmap_file+set}" = set; then :
11192   $as_echo_n "(cached) " >&6
11193 else
11194   # Add a system to this blacklist if
11195    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
11196    # memory area containing the same data that you'd get if you applied
11197    # read() to the same fd.  The only system known to have a problem here
11198    # is VMS, where text files have record structure.
11199    case "$host_os" in
11200      vms* | ultrix*)
11201         ac_cv_func_mmap_file=no ;;
11202      *)
11203         ac_cv_func_mmap_file=yes;;
11204    esac
11205 fi
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
11207 $as_echo "$ac_cv_func_mmap_file" >&6; }
11208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
11209 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
11210 if test "${ac_cv_func_mmap_dev_zero+set}" = set; then :
11211   $as_echo_n "(cached) " >&6
11212 else
11213   # Add a system to this blacklist if it has mmap() but /dev/zero
11214    # does not exist, or if mmapping /dev/zero does not give anonymous
11215    # zeroed pages with both the following properties:
11216    # 1. If you map N consecutive pages in with one call, and then
11217    #    unmap any subset of those pages, the pages that were not
11218    #    explicitly unmapped remain accessible.
11219    # 2. If you map two adjacent blocks of memory and then unmap them
11220    #    both at once, they must both go away.
11221    # Systems known to be in this category are Windows (all variants),
11222    # VMS, and Darwin.
11223    case "$host_os" in
11224      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
11225         ac_cv_func_mmap_dev_zero=no ;;
11226      *)
11227         ac_cv_func_mmap_dev_zero=yes;;
11228    esac
11229 fi
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
11231 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
11232
11233    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
11234    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
11235 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
11236 if test "${ac_cv_decl_map_anon+set}" = set; then :
11237   $as_echo_n "(cached) " >&6
11238 else
11239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h.  */
11241 #include <sys/types.h>
11242 #include <sys/mman.h>
11243 #include <unistd.h>
11244
11245 #ifndef MAP_ANONYMOUS
11246 #define MAP_ANONYMOUS MAP_ANON
11247 #endif
11248
11249 int
11250 main ()
11251 {
11252 int n = MAP_ANONYMOUS;
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_compile "$LINENO"; then :
11258   ac_cv_decl_map_anon=yes
11259 else
11260   ac_cv_decl_map_anon=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11263 fi
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
11265 $as_echo "$ac_cv_decl_map_anon" >&6; }
11266
11267    if test $ac_cv_decl_map_anon = no; then
11268      ac_cv_func_mmap_anon=no
11269    else
11270      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
11271 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
11272 if test "${ac_cv_func_mmap_anon+set}" = set; then :
11273   $as_echo_n "(cached) " >&6
11274 else
11275   # Add a system to this blacklist if it has mmap() and MAP_ANON or
11276    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
11277    # doesn't give anonymous zeroed pages with the same properties listed
11278    # above for use of /dev/zero.
11279    # Systems known to be in this category are Windows, VMS, and SCO Unix.
11280    case "$host_os" in
11281      vms* | cygwin* | pe | mingw* | sco* | udk* )
11282         ac_cv_func_mmap_anon=no ;;
11283      *)
11284         ac_cv_func_mmap_anon=yes;;
11285    esac
11286 fi
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
11288 $as_echo "$ac_cv_func_mmap_anon" >&6; }
11289    fi
11290 fi
11291
11292 if test $ac_cv_func_mmap_file = yes; then
11293
11294 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
11295
11296 fi
11297 if test $ac_cv_func_mmap_dev_zero = yes; then
11298
11299 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
11300
11301 fi
11302 if test $ac_cv_func_mmap_anon = yes; then
11303
11304 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
11305
11306 fi
11307
11308
11309  if test -d $srcdir/testsuite; then
11310   TESTSUBDIR_TRUE=
11311   TESTSUBDIR_FALSE='#'
11312 else
11313   TESTSUBDIR_TRUE='#'
11314   TESTSUBDIR_FALSE=
11315 fi
11316
11317
11318 TARGETDIR="unknown"
11319 case "$host" in
11320   alpha*-*-*)
11321         TARGET=ALPHA; TARGETDIR=alpha;
11322         # Support 128-bit long double, changable via command-line switch.
11323         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
11324         ;;
11325
11326   arm*-*-*)
11327         TARGET=ARM; TARGETDIR=arm
11328         ;;
11329
11330   amd64-*-freebsd*)
11331         TARGET=X86_64; TARGETDIR=x86
11332         ;;
11333
11334   avr32*-*-*)
11335         TARGET=AVR32; TARGETDIR=avr32
11336         ;;
11337
11338   cris-*-*)
11339         TARGET=LIBFFI_CRIS; TARGETDIR=cris
11340         ;;
11341
11342   frv-*-*)
11343         TARGET=FRV; TARGETDIR=frv
11344         ;;
11345
11346   hppa*-*-linux* | parisc*-*-linux*)
11347         TARGET=PA_LINUX; TARGETDIR=pa
11348         ;;
11349   hppa*64-*-hpux*)
11350         TARGET=PA64_HPUX; TARGETDIR=pa
11351         ;;
11352   hppa*-*-hpux*)
11353         TARGET=PA_HPUX; TARGETDIR=pa
11354         ;;
11355
11356   i?86-*-freebsd* | i?86-*-openbsd*)
11357         TARGET=X86_FREEBSD; TARGETDIR=x86
11358         ;;
11359   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw*)
11360         TARGET=X86_WIN32; TARGETDIR=x86
11361         ;;
11362   i?86-*-darwin*)
11363         TARGET=X86_DARWIN; TARGETDIR=x86
11364         ;;
11365   i?86-*-solaris2.1[0-9]*)
11366         TARGET=X86_64; TARGETDIR=x86
11367         ;;
11368   i?86-*-*)
11369         TARGET=X86; TARGETDIR=x86
11370         ;;
11371
11372   ia64*-*-*)
11373         TARGET=IA64; TARGETDIR=ia64
11374         ;;
11375
11376   m32r*-*-*)
11377         TARGET=M32R; TARGETDIR=m32r
11378         ;;
11379
11380   m68k-*-*)
11381         TARGET=M68K; TARGETDIR=m68k
11382         ;;
11383
11384   mips-sgi-irix5.* | mips-sgi-irix6.*)
11385         TARGET=MIPS; TARGETDIR=mips
11386         ;;
11387   mips*-*-linux*)
11388         TARGET=MIPS; TARGETDIR=mips
11389         ;;
11390
11391   powerpc*-*-linux* | powerpc-*-sysv*)
11392         TARGET=POWERPC; TARGETDIR=powerpc
11393         ;;
11394   powerpc-*-beos*)
11395         TARGET=POWERPC; TARGETDIR=powerpc
11396         ;;
11397   powerpc-*-darwin*)
11398         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
11399         ;;
11400   powerpc-*-aix* | rs6000-*-aix*)
11401         TARGET=POWERPC_AIX; TARGETDIR=powerpc
11402         ;;
11403   powerpc-*-freebsd*)
11404         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
11405         ;;
11406   powerpc*-*-rtems*)
11407         TARGET=POWERPC; TARGETDIR=powerpc
11408         ;;
11409
11410   s390-*-* | s390x-*-*)
11411         TARGET=S390; TARGETDIR=s390
11412         ;;
11413
11414   sh-*-* | sh[34]*-*-*)
11415         TARGET=SH; TARGETDIR=sh
11416         ;;
11417   sh64-*-* | sh5*-*-*)
11418         TARGET=SH64; TARGETDIR=sh64
11419         ;;
11420
11421   sparc*-*-*)
11422         TARGET=SPARC; TARGETDIR=sparc
11423         ;;
11424
11425   x86_64-*-darwin*)
11426         TARGET=X86_DARWIN; TARGETDIR=x86
11427         ;;
11428
11429   x86_64-*-cygwin* | x86_64-*-mingw*)
11430         TARGET=X86_WIN64; TARGETDIR=x86
11431         ;;
11432
11433   x86_64-*-*)
11434         TARGET=X86_64; TARGETDIR=x86
11435         ;;
11436 esac
11437
11438
11439
11440 if test $TARGETDIR = unknown; then
11441   as_fn_error "\"libffi has not been ported to $host.\"" "$LINENO" 5
11442 fi
11443
11444  if test x$TARGET = xMIPS; then
11445   MIPS_TRUE=
11446   MIPS_FALSE='#'
11447 else
11448   MIPS_TRUE='#'
11449   MIPS_FALSE=
11450 fi
11451
11452  if test x$TARGET = xSPARC; then
11453   SPARC_TRUE=
11454   SPARC_FALSE='#'
11455 else
11456   SPARC_TRUE='#'
11457   SPARC_FALSE=
11458 fi
11459
11460  if test x$TARGET = xX86; then
11461   X86_TRUE=
11462   X86_FALSE='#'
11463 else
11464   X86_TRUE='#'
11465   X86_FALSE=
11466 fi
11467
11468  if test x$TARGET = xX86_FREEBSD; then
11469   X86_FREEBSD_TRUE=
11470   X86_FREEBSD_FALSE='#'
11471 else
11472   X86_FREEBSD_TRUE='#'
11473   X86_FREEBSD_FALSE=
11474 fi
11475
11476  if test x$TARGET = xX86_WIN32; then
11477   X86_WIN32_TRUE=
11478   X86_WIN32_FALSE='#'
11479 else
11480   X86_WIN32_TRUE='#'
11481   X86_WIN32_FALSE=
11482 fi
11483
11484  if test x$TARGET = xX86_WIN64; then
11485   X86_WIN64_TRUE=
11486   X86_WIN64_FALSE='#'
11487 else
11488   X86_WIN64_TRUE='#'
11489   X86_WIN64_FALSE=
11490 fi
11491
11492  if test x$TARGET = xX86_DARWIN; then
11493   X86_DARWIN_TRUE=
11494   X86_DARWIN_FALSE='#'
11495 else
11496   X86_DARWIN_TRUE='#'
11497   X86_DARWIN_FALSE=
11498 fi
11499
11500  if test x$TARGET = xALPHA; then
11501   ALPHA_TRUE=
11502   ALPHA_FALSE='#'
11503 else
11504   ALPHA_TRUE='#'
11505   ALPHA_FALSE=
11506 fi
11507
11508  if test x$TARGET = xIA64; then
11509   IA64_TRUE=
11510   IA64_FALSE='#'
11511 else
11512   IA64_TRUE='#'
11513   IA64_FALSE=
11514 fi
11515
11516  if test x$TARGET = xM32R; then
11517   M32R_TRUE=
11518   M32R_FALSE='#'
11519 else
11520   M32R_TRUE='#'
11521   M32R_FALSE=
11522 fi
11523
11524  if test x$TARGET = xM68K; then
11525   M68K_TRUE=
11526   M68K_FALSE='#'
11527 else
11528   M68K_TRUE='#'
11529   M68K_FALSE=
11530 fi
11531
11532  if test x$TARGET = xPOWERPC; then
11533   POWERPC_TRUE=
11534   POWERPC_FALSE='#'
11535 else
11536   POWERPC_TRUE='#'
11537   POWERPC_FALSE=
11538 fi
11539
11540  if test x$TARGET = xPOWERPC_AIX; then
11541   POWERPC_AIX_TRUE=
11542   POWERPC_AIX_FALSE='#'
11543 else
11544   POWERPC_AIX_TRUE='#'
11545   POWERPC_AIX_FALSE=
11546 fi
11547
11548  if test x$TARGET = xPOWERPC_DARWIN; then
11549   POWERPC_DARWIN_TRUE=
11550   POWERPC_DARWIN_FALSE='#'
11551 else
11552   POWERPC_DARWIN_TRUE='#'
11553   POWERPC_DARWIN_FALSE=
11554 fi
11555
11556  if test x$TARGET = xPOWERPC_FREEBSD; then
11557   POWERPC_FREEBSD_TRUE=
11558   POWERPC_FREEBSD_FALSE='#'
11559 else
11560   POWERPC_FREEBSD_TRUE='#'
11561   POWERPC_FREEBSD_FALSE=
11562 fi
11563
11564  if test x$TARGET = xARM; then
11565   ARM_TRUE=
11566   ARM_FALSE='#'
11567 else
11568   ARM_TRUE='#'
11569   ARM_FALSE=
11570 fi
11571
11572  if test x$TARGET = xAVR32; then
11573   AVR32_TRUE=
11574   AVR32_FALSE='#'
11575 else
11576   AVR32_TRUE='#'
11577   AVR32_FALSE=
11578 fi
11579
11580  if test x$TARGET = xLIBFFI_CRIS; then
11581   LIBFFI_CRIS_TRUE=
11582   LIBFFI_CRIS_FALSE='#'
11583 else
11584   LIBFFI_CRIS_TRUE='#'
11585   LIBFFI_CRIS_FALSE=
11586 fi
11587
11588  if test x$TARGET = xFRV; then
11589   FRV_TRUE=
11590   FRV_FALSE='#'
11591 else
11592   FRV_TRUE='#'
11593   FRV_FALSE=
11594 fi
11595
11596  if test x$TARGET = xS390; then
11597   S390_TRUE=
11598   S390_FALSE='#'
11599 else
11600   S390_TRUE='#'
11601   S390_FALSE=
11602 fi
11603
11604  if test x$TARGET = xX86_64; then
11605   X86_64_TRUE=
11606   X86_64_FALSE='#'
11607 else
11608   X86_64_TRUE='#'
11609   X86_64_FALSE=
11610 fi
11611
11612  if test x$TARGET = xSH; then
11613   SH_TRUE=
11614   SH_FALSE='#'
11615 else
11616   SH_TRUE='#'
11617   SH_FALSE=
11618 fi
11619
11620  if test x$TARGET = xSH64; then
11621   SH64_TRUE=
11622   SH64_FALSE='#'
11623 else
11624   SH64_TRUE='#'
11625   SH64_FALSE=
11626 fi
11627
11628  if test x$TARGET = xPA_LINUX; then
11629   PA_LINUX_TRUE=
11630   PA_LINUX_FALSE='#'
11631 else
11632   PA_LINUX_TRUE='#'
11633   PA_LINUX_FALSE=
11634 fi
11635
11636  if test x$TARGET = xPA_HPUX; then
11637   PA_HPUX_TRUE=
11638   PA_HPUX_FALSE='#'
11639 else
11640   PA_HPUX_TRUE='#'
11641   PA_HPUX_FALSE=
11642 fi
11643
11644  if test x$TARGET = xPA64_HPUX; then
11645   PA64_HPUX_TRUE=
11646   PA64_HPUX_FALSE='#'
11647 else
11648   PA64_HPUX_TRUE='#'
11649   PA64_HPUX_FALSE=
11650 fi
11651
11652
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11654 $as_echo_n "checking for ANSI C header files... " >&6; }
11655 if test "${ac_cv_header_stdc+set}" = set; then :
11656   $as_echo_n "(cached) " >&6
11657 else
11658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h.  */
11660 #include <stdlib.h>
11661 #include <stdarg.h>
11662 #include <string.h>
11663 #include <float.h>
11664
11665 int
11666 main ()
11667 {
11668
11669   ;
11670   return 0;
11671 }
11672 _ACEOF
11673 if ac_fn_c_try_compile "$LINENO"; then :
11674   ac_cv_header_stdc=yes
11675 else
11676   ac_cv_header_stdc=no
11677 fi
11678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11679
11680 if test $ac_cv_header_stdc = yes; then
11681   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h.  */
11684 #include <string.h>
11685
11686 _ACEOF
11687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11688   $EGREP "memchr" >/dev/null 2>&1; then :
11689
11690 else
11691   ac_cv_header_stdc=no
11692 fi
11693 rm -f conftest*
11694
11695 fi
11696
11697 if test $ac_cv_header_stdc = yes; then
11698   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h.  */
11701 #include <stdlib.h>
11702
11703 _ACEOF
11704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11705   $EGREP "free" >/dev/null 2>&1; then :
11706
11707 else
11708   ac_cv_header_stdc=no
11709 fi
11710 rm -f conftest*
11711
11712 fi
11713
11714 if test $ac_cv_header_stdc = yes; then
11715   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11716   if test "$cross_compiling" = yes; then :
11717   :
11718 else
11719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h.  */
11721 #include <ctype.h>
11722 #include <stdlib.h>
11723 #if ((' ' & 0x0FF) == 0x020)
11724 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11725 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11726 #else
11727 # define ISLOWER(c) \
11728                    (('a' <= (c) && (c) <= 'i') \
11729                      || ('j' <= (c) && (c) <= 'r') \
11730                      || ('s' <= (c) && (c) <= 'z'))
11731 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11732 #endif
11733
11734 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11735 int
11736 main ()
11737 {
11738   int i;
11739   for (i = 0; i < 256; i++)
11740     if (XOR (islower (i), ISLOWER (i))
11741         || toupper (i) != TOUPPER (i))
11742       return 2;
11743   return 0;
11744 }
11745 _ACEOF
11746 if ac_fn_c_try_run "$LINENO"; then :
11747
11748 else
11749   ac_cv_header_stdc=no
11750 fi
11751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11752   conftest.$ac_objext conftest.beam conftest.$ac_ext
11753 fi
11754
11755 fi
11756 fi
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11758 $as_echo "$ac_cv_header_stdc" >&6; }
11759 if test $ac_cv_header_stdc = yes; then
11760
11761 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11762
11763 fi
11764
11765 for ac_func in memcpy
11766 do :
11767   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
11768 if test "x$ac_cv_func_memcpy" = x""yes; then :
11769   cat >>confdefs.h <<_ACEOF
11770 #define HAVE_MEMCPY 1
11771 _ACEOF
11772
11773 fi
11774 done
11775
11776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11777 # for constant arguments.  Useless!
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
11779 $as_echo_n "checking for working alloca.h... " >&6; }
11780 if test "${ac_cv_working_alloca_h+set}" = set; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11784 /* end confdefs.h.  */
11785 #include <alloca.h>
11786 int
11787 main ()
11788 {
11789 char *p = (char *) alloca (2 * sizeof (int));
11790                           if (p) return 0;
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 if ac_fn_c_try_link "$LINENO"; then :
11796   ac_cv_working_alloca_h=yes
11797 else
11798   ac_cv_working_alloca_h=no
11799 fi
11800 rm -f core conftest.err conftest.$ac_objext \
11801     conftest$ac_exeext conftest.$ac_ext
11802 fi
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
11804 $as_echo "$ac_cv_working_alloca_h" >&6; }
11805 if test $ac_cv_working_alloca_h = yes; then
11806
11807 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
11808
11809 fi
11810
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
11812 $as_echo_n "checking for alloca... " >&6; }
11813 if test "${ac_cv_func_alloca_works+set}" = set; then :
11814   $as_echo_n "(cached) " >&6
11815 else
11816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11817 /* end confdefs.h.  */
11818 #ifdef __GNUC__
11819 # define alloca __builtin_alloca
11820 #else
11821 # ifdef _MSC_VER
11822 #  include <malloc.h>
11823 #  define alloca _alloca
11824 # else
11825 #  ifdef HAVE_ALLOCA_H
11826 #   include <alloca.h>
11827 #  else
11828 #   ifdef _AIX
11829  #pragma alloca
11830 #   else
11831 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11832 char *alloca ();
11833 #    endif
11834 #   endif
11835 #  endif
11836 # endif
11837 #endif
11838
11839 int
11840 main ()
11841 {
11842 char *p = (char *) alloca (1);
11843                                     if (p) return 0;
11844   ;
11845   return 0;
11846 }
11847 _ACEOF
11848 if ac_fn_c_try_link "$LINENO"; then :
11849   ac_cv_func_alloca_works=yes
11850 else
11851   ac_cv_func_alloca_works=no
11852 fi
11853 rm -f core conftest.err conftest.$ac_objext \
11854     conftest$ac_exeext conftest.$ac_ext
11855 fi
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
11857 $as_echo "$ac_cv_func_alloca_works" >&6; }
11858
11859 if test $ac_cv_func_alloca_works = yes; then
11860
11861 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
11862
11863 else
11864   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11865 # that cause trouble.  Some versions do not even contain alloca or
11866 # contain a buggy version.  If you still want to use their alloca,
11867 # use ar to extract alloca.o from them instead of compiling alloca.c.
11868
11869 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
11870
11871 $as_echo "#define C_ALLOCA 1" >>confdefs.h
11872
11873
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
11875 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
11876 if test "${ac_cv_os_cray+set}" = set; then :
11877   $as_echo_n "(cached) " >&6
11878 else
11879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11880 /* end confdefs.h.  */
11881 #if defined CRAY && ! defined CRAY2
11882 webecray
11883 #else
11884 wenotbecray
11885 #endif
11886
11887 _ACEOF
11888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11889   $EGREP "webecray" >/dev/null 2>&1; then :
11890   ac_cv_os_cray=yes
11891 else
11892   ac_cv_os_cray=no
11893 fi
11894 rm -f conftest*
11895
11896 fi
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
11898 $as_echo "$ac_cv_os_cray" >&6; }
11899 if test $ac_cv_os_cray = yes; then
11900   for ac_func in _getb67 GETB67 getb67; do
11901     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11903 eval as_val=\$$as_ac_var
11904    if test "x$as_val" = x""yes; then :
11905
11906 cat >>confdefs.h <<_ACEOF
11907 #define CRAY_STACKSEG_END $ac_func
11908 _ACEOF
11909
11910     break
11911 fi
11912
11913   done
11914 fi
11915
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
11917 $as_echo_n "checking stack direction for C alloca... " >&6; }
11918 if test "${ac_cv_c_stack_direction+set}" = set; then :
11919   $as_echo_n "(cached) " >&6
11920 else
11921   if test "$cross_compiling" = yes; then :
11922   ac_cv_c_stack_direction=0
11923 else
11924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h.  */
11926 $ac_includes_default
11927 int
11928 find_stack_direction ()
11929 {
11930   static char *addr = 0;
11931   auto char dummy;
11932   if (addr == 0)
11933     {
11934       addr = &dummy;
11935       return find_stack_direction ();
11936     }
11937   else
11938     return (&dummy > addr) ? 1 : -1;
11939 }
11940
11941 int
11942 main ()
11943 {
11944   return find_stack_direction () < 0;
11945 }
11946 _ACEOF
11947 if ac_fn_c_try_run "$LINENO"; then :
11948   ac_cv_c_stack_direction=1
11949 else
11950   ac_cv_c_stack_direction=-1
11951 fi
11952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11953   conftest.$ac_objext conftest.beam conftest.$ac_ext
11954 fi
11955
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
11958 $as_echo "$ac_cv_c_stack_direction" >&6; }
11959 cat >>confdefs.h <<_ACEOF
11960 #define STACK_DIRECTION $ac_cv_c_stack_direction
11961 _ACEOF
11962
11963
11964 fi
11965
11966
11967 # The cast to long int works around a bug in the HP C Compiler
11968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11970 # This bug is HP SR number 8606223364.
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11972 $as_echo_n "checking size of double... " >&6; }
11973 if test "${ac_cv_sizeof_double+set}" = set; then :
11974   $as_echo_n "(cached) " >&6
11975 else
11976   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
11977
11978 else
11979   if test "$ac_cv_type_double" = yes; then
11980      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11982 { as_fn_set_status 77
11983 as_fn_error "cannot compute sizeof (double)
11984 See \`config.log' for more details." "$LINENO" 5; }; }
11985    else
11986      ac_cv_sizeof_double=0
11987    fi
11988 fi
11989
11990 fi
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11992 $as_echo "$ac_cv_sizeof_double" >&6; }
11993
11994
11995
11996 cat >>confdefs.h <<_ACEOF
11997 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11998 _ACEOF
11999
12000
12001 # The cast to long int works around a bug in the HP C Compiler
12002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12004 # This bug is HP SR number 8606223364.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12006 $as_echo_n "checking size of long double... " >&6; }
12007 if test "${ac_cv_sizeof_long_double+set}" = set; then :
12008   $as_echo_n "(cached) " >&6
12009 else
12010   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
12011
12012 else
12013   if test "$ac_cv_type_long_double" = yes; then
12014      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12016 { as_fn_set_status 77
12017 as_fn_error "cannot compute sizeof (long double)
12018 See \`config.log' for more details." "$LINENO" 5; }; }
12019    else
12020      ac_cv_sizeof_long_double=0
12021    fi
12022 fi
12023
12024 fi
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12026 $as_echo "$ac_cv_sizeof_long_double" >&6; }
12027
12028
12029
12030 cat >>confdefs.h <<_ACEOF
12031 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12032 _ACEOF
12033
12034
12035
12036 # Also AC_SUBST this variable for ffi.h.
12037 if test -z "$HAVE_LONG_DOUBLE"; then
12038   HAVE_LONG_DOUBLE=0
12039   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
12040     if test $ac_cv_sizeof_long_double != 0; then
12041       HAVE_LONG_DOUBLE=1
12042
12043 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12044
12045     fi
12046   fi
12047 fi
12048
12049
12050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12051 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12052 if test "${ac_cv_c_bigendian+set}" = set; then :
12053   $as_echo_n "(cached) " >&6
12054 else
12055   ac_cv_c_bigendian=unknown
12056     # See if we're dealing with a universal compiler.
12057     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h.  */
12059 #ifndef __APPLE_CC__
12060                not a universal capable compiler
12061              #endif
12062              typedef int dummy;
12063
12064 _ACEOF
12065 if ac_fn_c_try_compile "$LINENO"; then :
12066
12067         # Check for potential -arch flags.  It is not universal unless
12068         # there are at least two -arch flags with different values.
12069         ac_arch=
12070         ac_prev=
12071         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12072          if test -n "$ac_prev"; then
12073            case $ac_word in
12074              i?86 | x86_64 | ppc | ppc64)
12075                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12076                  ac_arch=$ac_word
12077                else
12078                  ac_cv_c_bigendian=universal
12079                  break
12080                fi
12081                ;;
12082            esac
12083            ac_prev=
12084          elif test "x$ac_word" = "x-arch"; then
12085            ac_prev=arch
12086          fi
12087        done
12088 fi
12089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090     if test $ac_cv_c_bigendian = unknown; then
12091       # See if sys/param.h defines the BYTE_ORDER macro.
12092       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094 #include <sys/types.h>
12095              #include <sys/param.h>
12096
12097 int
12098 main ()
12099 {
12100 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12101                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12102                      && LITTLE_ENDIAN)
12103               bogus endian macros
12104              #endif
12105
12106   ;
12107   return 0;
12108 }
12109 _ACEOF
12110 if ac_fn_c_try_compile "$LINENO"; then :
12111   # It does; now see whether it defined to BIG_ENDIAN or not.
12112          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h.  */
12114 #include <sys/types.h>
12115                 #include <sys/param.h>
12116
12117 int
12118 main ()
12119 {
12120 #if BYTE_ORDER != BIG_ENDIAN
12121                  not big endian
12122                 #endif
12123
12124   ;
12125   return 0;
12126 }
12127 _ACEOF
12128 if ac_fn_c_try_compile "$LINENO"; then :
12129   ac_cv_c_bigendian=yes
12130 else
12131   ac_cv_c_bigendian=no
12132 fi
12133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12134 fi
12135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12136     fi
12137     if test $ac_cv_c_bigendian = unknown; then
12138       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12139       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140 /* end confdefs.h.  */
12141 #include <limits.h>
12142
12143 int
12144 main ()
12145 {
12146 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12147               bogus endian macros
12148              #endif
12149
12150   ;
12151   return 0;
12152 }
12153 _ACEOF
12154 if ac_fn_c_try_compile "$LINENO"; then :
12155   # It does; now see whether it defined to _BIG_ENDIAN or not.
12156          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158 #include <limits.h>
12159
12160 int
12161 main ()
12162 {
12163 #ifndef _BIG_ENDIAN
12164                  not big endian
12165                 #endif
12166
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172   ac_cv_c_bigendian=yes
12173 else
12174   ac_cv_c_bigendian=no
12175 fi
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179     fi
12180     if test $ac_cv_c_bigendian = unknown; then
12181       # Compile a test program.
12182       if test "$cross_compiling" = yes; then :
12183   # Try to guess by grepping values from an object file.
12184          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12185 /* end confdefs.h.  */
12186 short int ascii_mm[] =
12187                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12188                 short int ascii_ii[] =
12189                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12190                 int use_ascii (int i) {
12191                   return ascii_mm[i] + ascii_ii[i];
12192                 }
12193                 short int ebcdic_ii[] =
12194                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12195                 short int ebcdic_mm[] =
12196                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12197                 int use_ebcdic (int i) {
12198                   return ebcdic_mm[i] + ebcdic_ii[i];
12199                 }
12200                 extern int foo;
12201
12202 int
12203 main ()
12204 {
12205 return use_ascii (foo) == use_ebcdic (foo);
12206   ;
12207   return 0;
12208 }
12209 _ACEOF
12210 if ac_fn_c_try_compile "$LINENO"; then :
12211   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12212               ac_cv_c_bigendian=yes
12213             fi
12214             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12215               if test "$ac_cv_c_bigendian" = unknown; then
12216                 ac_cv_c_bigendian=no
12217               else
12218                 # finding both strings is unlikely to happen, but who knows?
12219                 ac_cv_c_bigendian=unknown
12220               fi
12221             fi
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12224 else
12225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12226 /* end confdefs.h.  */
12227 $ac_includes_default
12228 int
12229 main ()
12230 {
12231
12232              /* Are we little or big endian?  From Harbison&Steele.  */
12233              union
12234              {
12235                long int l;
12236                char c[sizeof (long int)];
12237              } u;
12238              u.l = 1;
12239              return u.c[sizeof (long int) - 1] == 1;
12240
12241   ;
12242   return 0;
12243 }
12244 _ACEOF
12245 if ac_fn_c_try_run "$LINENO"; then :
12246   ac_cv_c_bigendian=no
12247 else
12248   ac_cv_c_bigendian=yes
12249 fi
12250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12251   conftest.$ac_objext conftest.beam conftest.$ac_ext
12252 fi
12253
12254     fi
12255 fi
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12257 $as_echo "$ac_cv_c_bigendian" >&6; }
12258  case $ac_cv_c_bigendian in #(
12259    yes)
12260      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12261 ;; #(
12262    no)
12263       ;; #(
12264    universal)
12265
12266 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12267
12268      ;; #(
12269    *)
12270      as_fn_error "unknown endianness
12271  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12272  esac
12273
12274
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
12276 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
12277 if test "${libffi_cv_as_cfi_pseudo_op+set}" = set; then :
12278   $as_echo_n "(cached) " >&6
12279 else
12280
12281     libffi_cv_as_cfi_pseudo_op=unknown
12282     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h.  */
12284 asm (".cfi_startproc\n\t.cfi_endproc");
12285 int
12286 main ()
12287 {
12288
12289   ;
12290   return 0;
12291 }
12292 _ACEOF
12293 if ac_fn_c_try_compile "$LINENO"; then :
12294   libffi_cv_as_cfi_pseudo_op=yes
12295 else
12296   libffi_cv_as_cfi_pseudo_op=no
12297 fi
12298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12299
12300 fi
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_cfi_pseudo_op" >&5
12302 $as_echo "$libffi_cv_as_cfi_pseudo_op" >&6; }
12303 if test "x$libffi_cv_as_cfi_pseudo_op" = xyes; then
12304
12305 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
12306
12307 fi
12308
12309 if test x$TARGET = xSPARC; then
12310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
12311 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
12312 if test "${libffi_cv_as_sparc_ua_pcrel+set}" = set; then :
12313   $as_echo_n "(cached) " >&6
12314 else
12315
12316         save_CFLAGS="$CFLAGS"
12317         save_LDFLAGS="$LDFLAGS"
12318         CFLAGS="$CFLAGS -fpic"
12319         LDFLAGS="$LDFLAGS -shared"
12320         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h.  */
12322 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
12323 int
12324 main ()
12325 {
12326
12327   ;
12328   return 0;
12329 }
12330 _ACEOF
12331 if ac_fn_c_try_link "$LINENO"; then :
12332   libffi_cv_as_sparc_ua_pcrel=yes
12333 else
12334   libffi_cv_as_sparc_ua_pcrel=no
12335 fi
12336 rm -f core conftest.err conftest.$ac_objext \
12337     conftest$ac_exeext conftest.$ac_ext
12338         CFLAGS="$save_CFLAGS"
12339         LDFLAGS="$save_LDFLAGS"
12340 fi
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
12342 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
12343     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
12344
12345 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
12346
12347     fi
12348
12349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
12350 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
12351 if test "${libffi_cv_as_register_pseudo_op+set}" = set; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354
12355        libffi_cv_as_register_pseudo_op=unknown
12356        # Check if we have .register
12357        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12358 /* end confdefs.h.  */
12359 asm (".register %g2, #scratch");
12360 int
12361 main ()
12362 {
12363
12364   ;
12365   return 0;
12366 }
12367 _ACEOF
12368 if ac_fn_c_try_compile "$LINENO"; then :
12369   libffi_cv_as_register_pseudo_op=yes
12370 else
12371   libffi_cv_as_register_pseudo_op=no
12372 fi
12373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374
12375 fi
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
12377 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
12378     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
12379
12380 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
12381
12382     fi
12383 fi
12384
12385 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
12386     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
12387 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
12388 if test "${libffi_cv_as_x86_pcrel+set}" = set; then :
12389   $as_echo_n "(cached) " >&6
12390 else
12391
12392         libffi_cv_as_x86_pcrel=yes
12393         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
12394         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
12395             libffi_cv_as_x86_pcrel=no
12396         fi
12397
12398 fi
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
12400 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
12401     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
12402
12403 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
12404
12405     fi
12406 fi
12407
12408 case "$target" in
12409      *-apple-darwin10* | *-*-freebsd* | *-*-openbsd* | *-pc-solaris*)
12410
12411 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
12412
12413      ;;
12414 esac
12415
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
12417 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
12418 if test "${libffi_cv_ro_eh_frame+set}" = set; then :
12419   $as_echo_n "(cached) " >&6
12420 else
12421
12422         libffi_cv_ro_eh_frame=no
12423         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
12424         if $CC $CFLAGS -S -fpic -fexceptions -o conftest.s conftest.c > /dev/null 2>&1; then
12425             if grep '.section.*eh_frame.*"a"' conftest.s > /dev/null; then
12426                 libffi_cv_ro_eh_frame=yes
12427             elif grep '.section.*eh_frame.*#alloc' conftest.c \
12428                  | grep -v '#write' > /dev/null; then
12429                 libffi_cv_ro_eh_frame=yes
12430             fi
12431         fi
12432         rm -f conftest.*
12433
12434 fi
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
12436 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
12437 if test "x$libffi_cv_ro_eh_frame" = xyes; then
12438
12439 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
12440
12441
12442 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
12443
12444 else
12445
12446 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
12447
12448 fi
12449
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
12451 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
12452 if test "${libffi_cv_hidden_visibility_attribute+set}" = set; then :
12453   $as_echo_n "(cached) " >&6
12454 else
12455
12456         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1; }' > conftest.c
12457         libffi_cv_hidden_visibility_attribute=no
12458         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
12459   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12460   (eval $ac_try) 2>&5
12461   ac_status=$?
12462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12463   test $ac_status = 0; }; }; then
12464             if grep '\.hidden.*foo' conftest.s >/dev/null; then
12465                 libffi_cv_hidden_visibility_attribute=yes
12466             fi
12467         fi
12468         rm -f conftest.*
12469
12470 fi
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
12472 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
12473 if test $libffi_cv_hidden_visibility_attribute = yes; then
12474
12475 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
12476
12477 fi
12478
12479
12480
12481
12482
12483
12484
12485
12486 # Check whether --enable-debug was given.
12487 if test "${enable_debug+set}" = set; then :
12488   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
12489
12490 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
12491
12492   fi
12493 fi
12494
12495
12496 # Check whether --enable-structs was given.
12497 if test "${enable_structs+set}" = set; then :
12498   enableval=$enable_structs; if test "$enable_structs" = "no"; then
12499
12500 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
12501
12502   fi
12503 fi
12504
12505
12506 # Check whether --enable-raw-api was given.
12507 if test "${enable_raw_api+set}" = set; then :
12508   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
12509
12510 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
12511
12512   fi
12513 fi
12514
12515
12516 # Check whether --enable-purify-safety was given.
12517 if test "${enable_purify_safety+set}" = set; then :
12518   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
12519
12520 $as_echo "#define USING_PURIFY 1" >>confdefs.h
12521
12522   fi
12523 fi
12524
12525
12526 if test -n "$with_cross_host" &&
12527    test x"$with_cross_host" != x"no"; then
12528   toolexecdir='$(exec_prefix)/$(target_alias)'
12529   toolexeclibdir='$(toolexecdir)/lib'
12530 else
12531   toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
12532   toolexeclibdir='$(libdir)'
12533 fi
12534 multi_os_directory=`$CC -print-multi-os-directory`
12535 case $multi_os_directory in
12536   .) ;; # Avoid trailing /.
12537   *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
12538 esac
12539
12540
12541
12542 if test "${multilib}" = "yes"; then
12543   multilib_arg="--enable-multilib"
12544 else
12545   multilib_arg=
12546 fi
12547
12548 ac_config_commands="$ac_config_commands include"
12549
12550 ac_config_commands="$ac_config_commands src"
12551
12552
12553 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
12554
12555
12556 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile"
12557
12558
12559 cat >confcache <<\_ACEOF
12560 # This file is a shell script that caches the results of configure
12561 # tests run on this system so they can be shared between configure
12562 # scripts and configure runs, see configure's option --config-cache.
12563 # It is not useful on other systems.  If it contains results you don't
12564 # want to keep, you may remove or edit it.
12565 #
12566 # config.status only pays attention to the cache file if you give it
12567 # the --recheck option to rerun configure.
12568 #
12569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12571 # following values.
12572
12573 _ACEOF
12574
12575 # The following way of writing the cache mishandles newlines in values,
12576 # but we know of no workaround that is simple, portable, and efficient.
12577 # So, we kill variables containing newlines.
12578 # Ultrix sh set writes to stderr and can't be redirected directly,
12579 # and sets the high bit in the cache file unless we assign to the vars.
12580 (
12581   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12582     eval ac_val=\$$ac_var
12583     case $ac_val in #(
12584     *${as_nl}*)
12585       case $ac_var in #(
12586       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12587 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12588       esac
12589       case $ac_var in #(
12590       _ | IFS | as_nl) ;; #(
12591       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12592       *) { eval $ac_var=; unset $ac_var;} ;;
12593       esac ;;
12594     esac
12595   done
12596
12597   (set) 2>&1 |
12598     case $as_nl`(ac_space=' '; set) 2>&1` in #(
12599     *${as_nl}ac_space=\ *)
12600       # `set' does not quote correctly, so add quotes: double-quote
12601       # substitution turns \\\\ into \\, and sed turns \\ into \.
12602       sed -n \
12603         "s/'/'\\\\''/g;
12604           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12605       ;; #(
12606     *)
12607       # `set' quotes correctly as required by POSIX, so do not add quotes.
12608       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12609       ;;
12610     esac |
12611     sort
12612 ) |
12613   sed '
12614      /^ac_cv_env_/b end
12615      t clear
12616      :clear
12617      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12618      t end
12619      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12620      :end' >>confcache
12621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12622   if test -w "$cache_file"; then
12623     test "x$cache_file" != "x/dev/null" &&
12624       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12625 $as_echo "$as_me: updating cache $cache_file" >&6;}
12626     cat confcache >$cache_file
12627   else
12628     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12629 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12630   fi
12631 fi
12632 rm -f confcache
12633
12634 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12635 # Let make expand exec_prefix.
12636 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12637
12638 DEFS=-DHAVE_CONFIG_H
12639
12640 ac_libobjs=
12641 ac_ltlibobjs=
12642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12643   # 1. Remove the extension, and $U if already installed.
12644   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12645   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12646   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12647   #    will be set to the directory where LIBOBJS objects are built.
12648   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12649   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12650 done
12651 LIBOBJS=$ac_libobjs
12652
12653 LTLIBOBJS=$ac_ltlibobjs
12654
12655
12656  if test -n "$EXEEXT"; then
12657   am__EXEEXT_TRUE=
12658   am__EXEEXT_FALSE='#'
12659 else
12660   am__EXEEXT_TRUE='#'
12661   am__EXEEXT_FALSE=
12662 fi
12663
12664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12665   as_fn_error "conditional \"AMDEP\" was never defined.
12666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12667 fi
12668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12669   as_fn_error "conditional \"am__fastdepCC\" was never defined.
12670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12671 fi
12672 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
12673   as_fn_error "conditional \"am__fastdepCCAS\" was never defined.
12674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12675 fi
12676 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12677   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12679 fi
12680 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
12681   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
12682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12683 fi
12684 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
12685   as_fn_error "conditional \"MIPS\" was never defined.
12686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12687 fi
12688 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
12689   as_fn_error "conditional \"SPARC\" was never defined.
12690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12691 fi
12692 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
12693   as_fn_error "conditional \"X86\" was never defined.
12694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12695 fi
12696 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
12697   as_fn_error "conditional \"X86_FREEBSD\" was never defined.
12698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12699 fi
12700 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
12701   as_fn_error "conditional \"X86_WIN32\" was never defined.
12702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12703 fi
12704 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
12705   as_fn_error "conditional \"X86_WIN64\" was never defined.
12706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12707 fi
12708 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
12709   as_fn_error "conditional \"X86_DARWIN\" was never defined.
12710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12711 fi
12712 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
12713   as_fn_error "conditional \"ALPHA\" was never defined.
12714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12715 fi
12716 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
12717   as_fn_error "conditional \"IA64\" was never defined.
12718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12719 fi
12720 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
12721   as_fn_error "conditional \"M32R\" was never defined.
12722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12723 fi
12724 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
12725   as_fn_error "conditional \"M68K\" was never defined.
12726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12727 fi
12728 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
12729   as_fn_error "conditional \"POWERPC\" was never defined.
12730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12731 fi
12732 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
12733   as_fn_error "conditional \"POWERPC_AIX\" was never defined.
12734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12735 fi
12736 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
12737   as_fn_error "conditional \"POWERPC_DARWIN\" was never defined.
12738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12739 fi
12740 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
12741   as_fn_error "conditional \"POWERPC_FREEBSD\" was never defined.
12742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12743 fi
12744 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
12745   as_fn_error "conditional \"ARM\" was never defined.
12746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12747 fi
12748 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
12749   as_fn_error "conditional \"AVR32\" was never defined.
12750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12751 fi
12752 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
12753   as_fn_error "conditional \"LIBFFI_CRIS\" was never defined.
12754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12755 fi
12756 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
12757   as_fn_error "conditional \"FRV\" was never defined.
12758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12759 fi
12760 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
12761   as_fn_error "conditional \"S390\" was never defined.
12762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12763 fi
12764 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
12765   as_fn_error "conditional \"X86_64\" was never defined.
12766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12767 fi
12768 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
12769   as_fn_error "conditional \"SH\" was never defined.
12770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12771 fi
12772 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
12773   as_fn_error "conditional \"SH64\" was never defined.
12774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12775 fi
12776 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
12777   as_fn_error "conditional \"PA_LINUX\" was never defined.
12778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12779 fi
12780 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
12781   as_fn_error "conditional \"PA_HPUX\" was never defined.
12782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12783 fi
12784 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
12785   as_fn_error "conditional \"PA64_HPUX\" was never defined.
12786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
12787 fi
12788
12789
12790 : ${CONFIG_STATUS=./config.status}
12791 ac_write_fail=0
12792 ac_clean_files_save=$ac_clean_files
12793 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12794 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12795 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12796 as_write_fail=0
12797 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12798 #! $SHELL
12799 # Generated by $as_me.
12800 # Run this file to recreate the current configuration.
12801 # Compiler output produced by configure, useful for debugging
12802 # configure, is in config.log if it exists.
12803
12804 debug=false
12805 ac_cs_recheck=false
12806 ac_cs_silent=false
12807
12808 SHELL=\${CONFIG_SHELL-$SHELL}
12809 export SHELL
12810 _ASEOF
12811 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12812 ## -------------------- ##
12813 ## M4sh Initialization. ##
12814 ## -------------------- ##
12815
12816 # Be more Bourne compatible
12817 DUALCASE=1; export DUALCASE # for MKS sh
12818 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12819   emulate sh
12820   NULLCMD=:
12821   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12822   # is contrary to our usage.  Disable this feature.
12823   alias -g '${1+"$@"}'='"$@"'
12824   setopt NO_GLOB_SUBST
12825 else
12826   case `(set -o) 2>/dev/null` in #(
12827   *posix*) :
12828     set -o posix ;; #(
12829   *) :
12830      ;;
12831 esac
12832 fi
12833
12834
12835 as_nl='
12836 '
12837 export as_nl
12838 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12839 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12841 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12842 # Prefer a ksh shell builtin over an external printf program on Solaris,
12843 # but without wasting forks for bash or zsh.
12844 if test -z "$BASH_VERSION$ZSH_VERSION" \
12845     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12846   as_echo='print -r --'
12847   as_echo_n='print -rn --'
12848 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12849   as_echo='printf %s\n'
12850   as_echo_n='printf %s'
12851 else
12852   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12853     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12854     as_echo_n='/usr/ucb/echo -n'
12855   else
12856     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12857     as_echo_n_body='eval
12858       arg=$1;
12859       case $arg in #(
12860       *"$as_nl"*)
12861         expr "X$arg" : "X\\(.*\\)$as_nl";
12862         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12863       esac;
12864       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12865     '
12866     export as_echo_n_body
12867     as_echo_n='sh -c $as_echo_n_body as_echo'
12868   fi
12869   export as_echo_body
12870   as_echo='sh -c $as_echo_body as_echo'
12871 fi
12872
12873 # The user is always right.
12874 if test "${PATH_SEPARATOR+set}" != set; then
12875   PATH_SEPARATOR=:
12876   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12877     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12878       PATH_SEPARATOR=';'
12879   }
12880 fi
12881
12882
12883 # IFS
12884 # We need space, tab and new line, in precisely that order.  Quoting is
12885 # there to prevent editors from complaining about space-tab.
12886 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12887 # splitting by setting IFS to empty value.)
12888 IFS=" ""        $as_nl"
12889
12890 # Find who we are.  Look in the path if we contain no directory separator.
12891 case $0 in #((
12892   *[\\/]* ) as_myself=$0 ;;
12893   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894 for as_dir in $PATH
12895 do
12896   IFS=$as_save_IFS
12897   test -z "$as_dir" && as_dir=.
12898     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12899   done
12900 IFS=$as_save_IFS
12901
12902      ;;
12903 esac
12904 # We did not find ourselves, most probably we were run as `sh COMMAND'
12905 # in which case we are not to be found in the path.
12906 if test "x$as_myself" = x; then
12907   as_myself=$0
12908 fi
12909 if test ! -f "$as_myself"; then
12910   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12911   exit 1
12912 fi
12913
12914 # Unset variables that we do not need and which cause bugs (e.g. in
12915 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12916 # suppresses any "Segmentation fault" message there.  '((' could
12917 # trigger a bug in pdksh 5.2.14.
12918 for as_var in BASH_ENV ENV MAIL MAILPATH
12919 do eval test x\${$as_var+set} = xset \
12920   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12921 done
12922 PS1='$ '
12923 PS2='> '
12924 PS4='+ '
12925
12926 # NLS nuisances.
12927 LC_ALL=C
12928 export LC_ALL
12929 LANGUAGE=C
12930 export LANGUAGE
12931
12932 # CDPATH.
12933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12934
12935
12936 # as_fn_error ERROR [LINENO LOG_FD]
12937 # ---------------------------------
12938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12940 # script with status $?, using 1 if that was 0.
12941 as_fn_error ()
12942 {
12943   as_status=$?; test $as_status -eq 0 && as_status=1
12944   if test "$3"; then
12945     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12946     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12947   fi
12948   $as_echo "$as_me: error: $1" >&2
12949   as_fn_exit $as_status
12950 } # as_fn_error
12951
12952
12953 # as_fn_set_status STATUS
12954 # -----------------------
12955 # Set $? to STATUS, without forking.
12956 as_fn_set_status ()
12957 {
12958   return $1
12959 } # as_fn_set_status
12960
12961 # as_fn_exit STATUS
12962 # -----------------
12963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12964 as_fn_exit ()
12965 {
12966   set +e
12967   as_fn_set_status $1
12968   exit $1
12969 } # as_fn_exit
12970
12971 # as_fn_unset VAR
12972 # ---------------
12973 # Portably unset VAR.
12974 as_fn_unset ()
12975 {
12976   { eval $1=; unset $1;}
12977 }
12978 as_unset=as_fn_unset
12979 # as_fn_append VAR VALUE
12980 # ----------------------
12981 # Append the text in VALUE to the end of the definition contained in VAR. Take
12982 # advantage of any shell optimizations that allow amortized linear growth over
12983 # repeated appends, instead of the typical quadratic growth present in naive
12984 # implementations.
12985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12986   eval 'as_fn_append ()
12987   {
12988     eval $1+=\$2
12989   }'
12990 else
12991   as_fn_append ()
12992   {
12993     eval $1=\$$1\$2
12994   }
12995 fi # as_fn_append
12996
12997 # as_fn_arith ARG...
12998 # ------------------
12999 # Perform arithmetic evaluation on the ARGs, and store the result in the
13000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13001 # must be portable across $(()) and expr.
13002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13003   eval 'as_fn_arith ()
13004   {
13005     as_val=$(( $* ))
13006   }'
13007 else
13008   as_fn_arith ()
13009   {
13010     as_val=`expr "$@" || test $? -eq 1`
13011   }
13012 fi # as_fn_arith
13013
13014
13015 if expr a : '\(a\)' >/dev/null 2>&1 &&
13016    test "X`expr 00001 : '.*\(...\)'`" = X001; then
13017   as_expr=expr
13018 else
13019   as_expr=false
13020 fi
13021
13022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13023   as_basename=basename
13024 else
13025   as_basename=false
13026 fi
13027
13028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13029   as_dirname=dirname
13030 else
13031   as_dirname=false
13032 fi
13033
13034 as_me=`$as_basename -- "$0" ||
13035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13036          X"$0" : 'X\(//\)$' \| \
13037          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13038 $as_echo X/"$0" |
13039     sed '/^.*\/\([^/][^/]*\)\/*$/{
13040             s//\1/
13041             q
13042           }
13043           /^X\/\(\/\/\)$/{
13044             s//\1/
13045             q
13046           }
13047           /^X\/\(\/\).*/{
13048             s//\1/
13049             q
13050           }
13051           s/.*/./; q'`
13052
13053 # Avoid depending upon Character Ranges.
13054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13057 as_cr_digits='0123456789'
13058 as_cr_alnum=$as_cr_Letters$as_cr_digits
13059
13060 ECHO_C= ECHO_N= ECHO_T=
13061 case `echo -n x` in #(((((
13062 -n*)
13063   case `echo 'xy\c'` in
13064   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
13065   xy)  ECHO_C='\c';;
13066   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13067        ECHO_T=' ';;
13068   esac;;
13069 *)
13070   ECHO_N='-n';;
13071 esac
13072
13073 rm -f conf$$ conf$$.exe conf$$.file
13074 if test -d conf$$.dir; then
13075   rm -f conf$$.dir/conf$$.file
13076 else
13077   rm -f conf$$.dir
13078   mkdir conf$$.dir 2>/dev/null
13079 fi
13080 if (echo >conf$$.file) 2>/dev/null; then
13081   if ln -s conf$$.file conf$$ 2>/dev/null; then
13082     as_ln_s='ln -s'
13083     # ... but there are two gotchas:
13084     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13085     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13086     # In both cases, we have to default to `cp -p'.
13087     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13088       as_ln_s='cp -p'
13089   elif ln conf$$.file conf$$ 2>/dev/null; then
13090     as_ln_s=ln
13091   else
13092     as_ln_s='cp -p'
13093   fi
13094 else
13095   as_ln_s='cp -p'
13096 fi
13097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13098 rmdir conf$$.dir 2>/dev/null
13099
13100
13101 # as_fn_mkdir_p
13102 # -------------
13103 # Create "$as_dir" as a directory, including parents if necessary.
13104 as_fn_mkdir_p ()
13105 {
13106
13107   case $as_dir in #(
13108   -*) as_dir=./$as_dir;;
13109   esac
13110   test -d "$as_dir" || eval $as_mkdir_p || {
13111     as_dirs=
13112     while :; do
13113       case $as_dir in #(
13114       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13115       *) as_qdir=$as_dir;;
13116       esac
13117       as_dirs="'$as_qdir' $as_dirs"
13118       as_dir=`$as_dirname -- "$as_dir" ||
13119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13120          X"$as_dir" : 'X\(//\)[^/]' \| \
13121          X"$as_dir" : 'X\(//\)$' \| \
13122          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13123 $as_echo X"$as_dir" |
13124     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13125             s//\1/
13126             q
13127           }
13128           /^X\(\/\/\)[^/].*/{
13129             s//\1/
13130             q
13131           }
13132           /^X\(\/\/\)$/{
13133             s//\1/
13134             q
13135           }
13136           /^X\(\/\).*/{
13137             s//\1/
13138             q
13139           }
13140           s/.*/./; q'`
13141       test -d "$as_dir" && break
13142     done
13143     test -z "$as_dirs" || eval "mkdir $as_dirs"
13144   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13145
13146
13147 } # as_fn_mkdir_p
13148 if mkdir -p . 2>/dev/null; then
13149   as_mkdir_p='mkdir -p "$as_dir"'
13150 else
13151   test -d ./-p && rmdir ./-p
13152   as_mkdir_p=false
13153 fi
13154
13155 if test -x / >/dev/null 2>&1; then
13156   as_test_x='test -x'
13157 else
13158   if ls -dL / >/dev/null 2>&1; then
13159     as_ls_L_option=L
13160   else
13161     as_ls_L_option=
13162   fi
13163   as_test_x='
13164     eval sh -c '\''
13165       if test -d "$1"; then
13166         test -d "$1/.";
13167       else
13168         case $1 in #(
13169         -*)set "./$1";;
13170         esac;
13171         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13172         ???[sx]*):;;*)false;;esac;fi
13173     '\'' sh
13174   '
13175 fi
13176 as_executable_p=$as_test_x
13177
13178 # Sed expression to map a string onto a valid CPP name.
13179 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13180
13181 # Sed expression to map a string onto a valid variable name.
13182 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13183
13184
13185 exec 6>&1
13186 ## ----------------------------------- ##
13187 ## Main body of $CONFIG_STATUS script. ##
13188 ## ----------------------------------- ##
13189 _ASEOF
13190 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13191
13192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13193 # Save the log message, to keep $0 and so on meaningful, and to
13194 # report actual input values of CONFIG_FILES etc. instead of their
13195 # values after options handling.
13196 ac_log="
13197 This file was extended by libffi $as_me 3.0.8, which was
13198 generated by GNU Autoconf 2.64.  Invocation command line was
13199
13200   CONFIG_FILES    = $CONFIG_FILES
13201   CONFIG_HEADERS  = $CONFIG_HEADERS
13202   CONFIG_LINKS    = $CONFIG_LINKS
13203   CONFIG_COMMANDS = $CONFIG_COMMANDS
13204   $ $0 $@
13205
13206 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13207 "
13208
13209 _ACEOF
13210
13211 case $ac_config_files in *"
13212 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13213 esac
13214
13215 case $ac_config_headers in *"
13216 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13217 esac
13218
13219
13220 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13221 # Files that config.status was made for.
13222 config_files="$ac_config_files"
13223 config_headers="$ac_config_headers"
13224 config_links="$ac_config_links"
13225 config_commands="$ac_config_commands"
13226
13227 _ACEOF
13228
13229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13230 ac_cs_usage="\
13231 \`$as_me' instantiates files and other configuration actions
13232 from templates according to the current configuration.  Unless the files
13233 and actions are specified as TAGs, all are instantiated by default.
13234
13235 Usage: $0 [OPTION]... [TAG]...
13236
13237   -h, --help       print this help, then exit
13238   -V, --version    print version number and configuration settings, then exit
13239   -q, --quiet, --silent
13240                    do not print progress messages
13241   -d, --debug      don't remove temporary files
13242       --recheck    update $as_me by reconfiguring in the same conditions
13243       --file=FILE[:TEMPLATE]
13244                    instantiate the configuration file FILE
13245       --header=FILE[:TEMPLATE]
13246                    instantiate the configuration header FILE
13247
13248 Configuration files:
13249 $config_files
13250
13251 Configuration headers:
13252 $config_headers
13253
13254 Configuration links:
13255 $config_links
13256
13257 Configuration commands:
13258 $config_commands
13259
13260 Report bugs to <http://gcc.gnu.org/bugs.html>."
13261
13262 _ACEOF
13263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13264 ac_cs_version="\\
13265 libffi config.status 3.0.8
13266 configured by $0, generated by GNU Autoconf 2.64,
13267   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13268
13269 Copyright (C) 2009 Free Software Foundation, Inc.
13270 This config.status script is free software; the Free Software Foundation
13271 gives unlimited permission to copy, distribute and modify it."
13272
13273 ac_pwd='$ac_pwd'
13274 srcdir='$srcdir'
13275 INSTALL='$INSTALL'
13276 MKDIR_P='$MKDIR_P'
13277 AWK='$AWK'
13278 test -n "\$AWK" || AWK=awk
13279 _ACEOF
13280
13281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13282 # The default lists apply if the user does not specify any file.
13283 ac_need_defaults=:
13284 while test $# != 0
13285 do
13286   case $1 in
13287   --*=*)
13288     ac_option=`expr "X$1" : 'X\([^=]*\)='`
13289     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13290     ac_shift=:
13291     ;;
13292   *)
13293     ac_option=$1
13294     ac_optarg=$2
13295     ac_shift=shift
13296     ;;
13297   esac
13298
13299   case $ac_option in
13300   # Handling of the options.
13301   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13302     ac_cs_recheck=: ;;
13303   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13304     $as_echo "$ac_cs_version"; exit ;;
13305   --debug | --debu | --deb | --de | --d | -d )
13306     debug=: ;;
13307   --file | --fil | --fi | --f )
13308     $ac_shift
13309     case $ac_optarg in
13310     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13311     esac
13312     as_fn_append CONFIG_FILES " '$ac_optarg'"
13313     ac_need_defaults=false;;
13314   --header | --heade | --head | --hea )
13315     $ac_shift
13316     case $ac_optarg in
13317     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13318     esac
13319     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13320     ac_need_defaults=false;;
13321   --he | --h)
13322     # Conflict between --help and --header
13323     as_fn_error "ambiguous option: \`$1'
13324 Try \`$0 --help' for more information.";;
13325   --help | --hel | -h )
13326     $as_echo "$ac_cs_usage"; exit ;;
13327   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13328   | -silent | --silent | --silen | --sile | --sil | --si | --s)
13329     ac_cs_silent=: ;;
13330
13331   # This is an error.
13332   -*) as_fn_error "unrecognized option: \`$1'
13333 Try \`$0 --help' for more information." ;;
13334
13335   *) as_fn_append ac_config_targets " $1"
13336      ac_need_defaults=false ;;
13337
13338   esac
13339   shift
13340 done
13341
13342 ac_configure_extra_args=
13343
13344 if $ac_cs_silent; then
13345   exec 6>/dev/null
13346   ac_configure_extra_args="$ac_configure_extra_args --silent"
13347 fi
13348
13349 _ACEOF
13350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13351 if \$ac_cs_recheck; then
13352   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13353   shift
13354   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13355   CONFIG_SHELL='$SHELL'
13356   export CONFIG_SHELL
13357   exec "\$@"
13358 fi
13359
13360 _ACEOF
13361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13362 exec 5>>config.log
13363 {
13364   echo
13365   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13366 ## Running $as_me. ##
13367 _ASBOX
13368   $as_echo "$ac_log"
13369 } >&5
13370
13371 _ACEOF
13372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13373 #
13374 # INIT-COMMANDS
13375 #
13376
13377 srcdir="$srcdir"
13378 host="$host"
13379 target="$target"
13380 with_multisubdir="$with_multisubdir"
13381 with_multisrctop="$with_multisrctop"
13382 with_target_subdir="$with_target_subdir"
13383 ac_configure_args="${multilib_arg} ${ac_configure_args}"
13384 multi_basedir="$multi_basedir"
13385 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
13386 CC="$CC"
13387 CXX="$CXX"
13388 GFORTRAN="$GFORTRAN"
13389 GCJ="$GCJ"
13390 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13391
13392
13393 # The HP-UX ksh and POSIX shell print the target directory to stdout
13394 # if CDPATH is set.
13395 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13396
13397 sed_quote_subst='$sed_quote_subst'
13398 double_quote_subst='$double_quote_subst'
13399 delay_variable_subst='$delay_variable_subst'
13400 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13401 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13402 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13403 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13404 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13405 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13406 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13407 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13408 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13409 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13410 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13411 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13412 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13413 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13414 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13415 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13416 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13417 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13418 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13419 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13420 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13421 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13422 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13423 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13424 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13425 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13426 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13427 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13428 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13429 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13430 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13431 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13432 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13433 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13434 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13435 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13436 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13437 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13438 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13439 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13440 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13441 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13442 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13443 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13444 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13445 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13446 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13447 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13448 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"`'
13449 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13450 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13451 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13452 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13453 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13454 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13455 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13456 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13457 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13458 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13459 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13460 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13461 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13462 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13463 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13464 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13465 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13466 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13467 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13468 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13469 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13470 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13471 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13472 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13473 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13474 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13475 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13476 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13477 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13478 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13479 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13480 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
13481 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13482 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13483 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13484 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13485 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13486 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13487 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13488 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13489 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
13490 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13491 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13492 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13493 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13494 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13495 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13496 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13497 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13498 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13499 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13500 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13501 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13502 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13503 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13504 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13505 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13506 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13507 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13508 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13509 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13510 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13511 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13512 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13513 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13514 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13515 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13516 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13517 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13518 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13519 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13520
13521 LTCC='$LTCC'
13522 LTCFLAGS='$LTCFLAGS'
13523 compiler='$compiler_DEFAULT'
13524
13525 # A function that is used when there is no print builtin or printf.
13526 func_fallback_echo ()
13527 {
13528   eval 'cat <<_LTECHO_EOF
13529 \$1
13530 _LTECHO_EOF'
13531 }
13532
13533 # Quote evaled strings.
13534 for var in SHELL \
13535 ECHO \
13536 SED \
13537 GREP \
13538 EGREP \
13539 FGREP \
13540 LD \
13541 NM \
13542 LN_S \
13543 lt_SP2NL \
13544 lt_NL2SP \
13545 reload_flag \
13546 OBJDUMP \
13547 deplibs_check_method \
13548 file_magic_cmd \
13549 AR \
13550 AR_FLAGS \
13551 STRIP \
13552 RANLIB \
13553 CC \
13554 CFLAGS \
13555 compiler \
13556 lt_cv_sys_global_symbol_pipe \
13557 lt_cv_sys_global_symbol_to_cdecl \
13558 lt_cv_sys_global_symbol_to_c_name_address \
13559 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13560 lt_prog_compiler_no_builtin_flag \
13561 lt_prog_compiler_wl \
13562 lt_prog_compiler_pic \
13563 lt_prog_compiler_static \
13564 lt_cv_prog_compiler_c_o \
13565 need_locks \
13566 DSYMUTIL \
13567 NMEDIT \
13568 LIPO \
13569 OTOOL \
13570 OTOOL64 \
13571 shrext_cmds \
13572 export_dynamic_flag_spec \
13573 whole_archive_flag_spec \
13574 compiler_needs_object \
13575 with_gnu_ld \
13576 allow_undefined_flag \
13577 no_undefined_flag \
13578 hardcode_libdir_flag_spec \
13579 hardcode_libdir_flag_spec_ld \
13580 hardcode_libdir_separator \
13581 fix_srcfile_path \
13582 exclude_expsyms \
13583 include_expsyms \
13584 file_list_spec \
13585 variables_saved_for_relink \
13586 libname_spec \
13587 library_names_spec \
13588 soname_spec \
13589 install_override_mode \
13590 finish_eval \
13591 old_striplib \
13592 striplib; do
13593     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13594     *[\\\\\\\`\\"\\\$]*)
13595       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13596       ;;
13597     *)
13598       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13599       ;;
13600     esac
13601 done
13602
13603 # Double-quote double-evaled strings.
13604 for var in reload_cmds \
13605 old_postinstall_cmds \
13606 old_postuninstall_cmds \
13607 old_archive_cmds \
13608 extract_expsyms_cmds \
13609 old_archive_from_new_cmds \
13610 old_archive_from_expsyms_cmds \
13611 archive_cmds \
13612 archive_expsym_cmds \
13613 module_cmds \
13614 module_expsym_cmds \
13615 export_symbols_cmds \
13616 prelink_cmds \
13617 postinstall_cmds \
13618 postuninstall_cmds \
13619 finish_cmds \
13620 sys_lib_search_path_spec \
13621 sys_lib_dlsearch_path_spec; do
13622     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13623     *[\\\\\\\`\\"\\\$]*)
13624       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13625       ;;
13626     *)
13627       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13628       ;;
13629     esac
13630 done
13631
13632 ac_aux_dir='$ac_aux_dir'
13633 xsi_shell='$xsi_shell'
13634 lt_shell_append='$lt_shell_append'
13635
13636 # See if we are running on zsh, and set the options which allow our
13637 # commands through without removal of \ escapes INIT.
13638 if test -n "\${ZSH_VERSION+set}" ; then
13639    setopt NO_GLOB_SUBST
13640 fi
13641
13642
13643     PACKAGE='$PACKAGE'
13644     VERSION='$VERSION'
13645     TIMESTAMP='$TIMESTAMP'
13646     RM='$RM'
13647     ofile='$ofile'
13648
13649
13650
13651 TARGETDIR="$TARGETDIR"
13652
13653 _ACEOF
13654
13655 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13656
13657 # Handling of arguments.
13658 for ac_config_target in $ac_config_targets
13659 do
13660   case $ac_config_target in
13661     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
13662     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13663     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13664     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13665     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
13666     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
13667     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
13668     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
13669     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
13670     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13671     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
13672     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
13673
13674   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13675   esac
13676 done
13677
13678
13679 # If the user did not use the arguments to specify the items to instantiate,
13680 # then the envvar interface is used.  Set only those that are not.
13681 # We use the long form for the default assignment because of an extremely
13682 # bizarre bug on SunOS 4.1.3.
13683 if $ac_need_defaults; then
13684   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13685   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13686   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
13687   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13688 fi
13689
13690 # Have a temporary directory for convenience.  Make it in the build tree
13691 # simply because there is no reason against having it here, and in addition,
13692 # creating and moving files from /tmp can sometimes cause problems.
13693 # Hook for its removal unless debugging.
13694 # Note that there is a small window in which the directory will not be cleaned:
13695 # after its creation but before its name has been assigned to `$tmp'.
13696 $debug ||
13697 {
13698   tmp=
13699   trap 'exit_status=$?
13700   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13701 ' 0
13702   trap 'as_fn_exit 1' 1 2 13 15
13703 }
13704 # Create a (secure) tmp directory for tmp files.
13705
13706 {
13707   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13708   test -n "$tmp" && test -d "$tmp"
13709 }  ||
13710 {
13711   tmp=./conf$$-$RANDOM
13712   (umask 077 && mkdir "$tmp")
13713 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13714
13715 # Set up the scripts for CONFIG_FILES section.
13716 # No need to generate them if there are no CONFIG_FILES.
13717 # This happens for instance with `./config.status config.h'.
13718 if test -n "$CONFIG_FILES"; then
13719
13720
13721 ac_cr=`echo X | tr X '\015'`
13722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13723 # But we know of no other shell where ac_cr would be empty at this
13724 # point, so we can use a bashism as a fallback.
13725 if test "x$ac_cr" = x; then
13726   eval ac_cr=\$\'\\r\'
13727 fi
13728 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13730   ac_cs_awk_cr='\r'
13731 else
13732   ac_cs_awk_cr=$ac_cr
13733 fi
13734
13735 echo 'BEGIN {' >"$tmp/subs1.awk" &&
13736 _ACEOF
13737
13738
13739 {
13740   echo "cat >conf$$subs.awk <<_ACEOF" &&
13741   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13742   echo "_ACEOF"
13743 } >conf$$subs.sh ||
13744   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13745 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13746 ac_delim='%!_!# '
13747 for ac_last_try in false false false false false :; do
13748   . ./conf$$subs.sh ||
13749     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13750
13751   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13752   if test $ac_delim_n = $ac_delim_num; then
13753     break
13754   elif $ac_last_try; then
13755     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13756   else
13757     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13758   fi
13759 done
13760 rm -f conf$$subs.sh
13761
13762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13763 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13764 _ACEOF
13765 sed -n '
13766 h
13767 s/^/S["/; s/!.*/"]=/
13768 p
13769 g
13770 s/^[^!]*!//
13771 :repl
13772 t repl
13773 s/'"$ac_delim"'$//
13774 t delim
13775 :nl
13776 h
13777 s/\(.\{148\}\).*/\1/
13778 t more1
13779 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13780 p
13781 n
13782 b repl
13783 :more1
13784 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13785 p
13786 g
13787 s/.\{148\}//
13788 t nl
13789 :delim
13790 h
13791 s/\(.\{148\}\).*/\1/
13792 t more2
13793 s/["\\]/\\&/g; s/^/"/; s/$/"/
13794 p
13795 b
13796 :more2
13797 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13798 p
13799 g
13800 s/.\{148\}//
13801 t delim
13802 ' <conf$$subs.awk | sed '
13803 /^[^""]/{
13804   N
13805   s/\n//
13806 }
13807 ' >>$CONFIG_STATUS || ac_write_fail=1
13808 rm -f conf$$subs.awk
13809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13810 _ACAWK
13811 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13812   for (key in S) S_is_set[key] = 1
13813   FS = "\a"
13814
13815 }
13816 {
13817   line = $ 0
13818   nfields = split(line, field, "@")
13819   substed = 0
13820   len = length(field[1])
13821   for (i = 2; i < nfields; i++) {
13822     key = field[i]
13823     keylen = length(key)
13824     if (S_is_set[key]) {
13825       value = S[key]
13826       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13827       len += length(value) + length(field[++i])
13828       substed = 1
13829     } else
13830       len += 1 + keylen
13831   }
13832
13833   print line
13834 }
13835
13836 _ACAWK
13837 _ACEOF
13838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13839 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13840   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13841 else
13842   cat
13843 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13844   || as_fn_error "could not setup config files machinery" "$LINENO" 5
13845 _ACEOF
13846
13847 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13848 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13849 # trailing colons and then remove the whole line if VPATH becomes empty
13850 # (actually we leave an empty line to preserve line numbers).
13851 if test "x$srcdir" = x.; then
13852   ac_vpsub='/^[  ]*VPATH[        ]*=/{
13853 s/:*\$(srcdir):*/:/
13854 s/:*\${srcdir}:*/:/
13855 s/:*@srcdir@:*/:/
13856 s/^\([^=]*=[     ]*\):*/\1/
13857 s/:*$//
13858 s/^[^=]*=[       ]*$//
13859 }'
13860 fi
13861
13862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13863 fi # test -n "$CONFIG_FILES"
13864
13865 # Set up the scripts for CONFIG_HEADERS section.
13866 # No need to generate them if there are no CONFIG_HEADERS.
13867 # This happens for instance with `./config.status Makefile'.
13868 if test -n "$CONFIG_HEADERS"; then
13869 cat >"$tmp/defines.awk" <<\_ACAWK ||
13870 BEGIN {
13871 _ACEOF
13872
13873 # Transform confdefs.h into an awk script `defines.awk', embedded as
13874 # here-document in config.status, that substitutes the proper values into
13875 # config.h.in to produce config.h.
13876
13877 # Create a delimiter string that does not exist in confdefs.h, to ease
13878 # handling of long lines.
13879 ac_delim='%!_!# '
13880 for ac_last_try in false false :; do
13881   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13882   if test -z "$ac_t"; then
13883     break
13884   elif $ac_last_try; then
13885     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13886   else
13887     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13888   fi
13889 done
13890
13891 # For the awk script, D is an array of macro values keyed by name,
13892 # likewise P contains macro parameters if any.  Preserve backslash
13893 # newline sequences.
13894
13895 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13896 sed -n '
13897 s/.\{148\}/&'"$ac_delim"'/g
13898 t rset
13899 :rset
13900 s/^[     ]*#[    ]*define[       ][      ]*/ /
13901 t def
13902 d
13903 :def
13904 s/\\$//
13905 t bsnl
13906 s/["\\]/\\&/g
13907 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13908 D["\1"]=" \3"/p
13909 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13910 d
13911 :bsnl
13912 s/["\\]/\\&/g
13913 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13914 D["\1"]=" \3\\\\\\n"\\/p
13915 t cont
13916 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13917 t cont
13918 d
13919 :cont
13920 n
13921 s/.\{148\}/&'"$ac_delim"'/g
13922 t clear
13923 :clear
13924 s/\\$//
13925 t bsnlc
13926 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13927 d
13928 :bsnlc
13929 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13930 b cont
13931 ' <confdefs.h | sed '
13932 s/'"$ac_delim"'/"\\\
13933 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13934
13935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936   for (key in D) D_is_set[key] = 1
13937   FS = "\a"
13938 }
13939 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13940   line = \$ 0
13941   split(line, arg, " ")
13942   if (arg[1] == "#") {
13943     defundef = arg[2]
13944     mac1 = arg[3]
13945   } else {
13946     defundef = substr(arg[1], 2)
13947     mac1 = arg[2]
13948   }
13949   split(mac1, mac2, "(") #)
13950   macro = mac2[1]
13951   prefix = substr(line, 1, index(line, defundef) - 1)
13952   if (D_is_set[macro]) {
13953     # Preserve the white space surrounding the "#".
13954     print prefix "define", macro P[macro] D[macro]
13955     next
13956   } else {
13957     # Replace #undef with comments.  This is necessary, for example,
13958     # in the case of _POSIX_SOURCE, which is predefined and required
13959     # on some systems where configure will not decide to define it.
13960     if (defundef == "undef") {
13961       print "/*", prefix defundef, macro, "*/"
13962       next
13963     }
13964   }
13965 }
13966 { print }
13967 _ACAWK
13968 _ACEOF
13969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13970   as_fn_error "could not setup config headers machinery" "$LINENO" 5
13971 fi # test -n "$CONFIG_HEADERS"
13972
13973
13974 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
13975 shift
13976 for ac_tag
13977 do
13978   case $ac_tag in
13979   :[FHLC]) ac_mode=$ac_tag; continue;;
13980   esac
13981   case $ac_mode$ac_tag in
13982   :[FHL]*:*);;
13983   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13984   :[FH]-) ac_tag=-:-;;
13985   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13986   esac
13987   ac_save_IFS=$IFS
13988   IFS=:
13989   set x $ac_tag
13990   IFS=$ac_save_IFS
13991   shift
13992   ac_file=$1
13993   shift
13994
13995   case $ac_mode in
13996   :L) ac_source=$1;;
13997   :[FH])
13998     ac_file_inputs=
13999     for ac_f
14000     do
14001       case $ac_f in
14002       -) ac_f="$tmp/stdin";;
14003       *) # Look for the file first in the build tree, then in the source tree
14004          # (if the path is not absolute).  The absolute path cannot be DOS-style,
14005          # because $ac_f cannot contain `:'.
14006          test -f "$ac_f" ||
14007            case $ac_f in
14008            [\\/$]*) false;;
14009            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14010            esac ||
14011            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14012       esac
14013       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14014       as_fn_append ac_file_inputs " '$ac_f'"
14015     done
14016
14017     # Let's still pretend it is `configure' which instantiates (i.e., don't
14018     # use $as_me), people would be surprised to read:
14019     #    /* config.h.  Generated by config.status.  */
14020     configure_input='Generated from '`
14021           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14022         `' by configure.'
14023     if test x"$ac_file" != x-; then
14024       configure_input="$ac_file.  $configure_input"
14025       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14026 $as_echo "$as_me: creating $ac_file" >&6;}
14027     fi
14028     # Neutralize special characters interpreted by sed in replacement strings.
14029     case $configure_input in #(
14030     *\&* | *\|* | *\\* )
14031        ac_sed_conf_input=`$as_echo "$configure_input" |
14032        sed 's/[\\\\&|]/\\\\&/g'`;; #(
14033     *) ac_sed_conf_input=$configure_input;;
14034     esac
14035
14036     case $ac_tag in
14037     *:-:* | *:-) cat >"$tmp/stdin" \
14038       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14039     esac
14040     ;;
14041   esac
14042
14043   ac_dir=`$as_dirname -- "$ac_file" ||
14044 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14045          X"$ac_file" : 'X\(//\)[^/]' \| \
14046          X"$ac_file" : 'X\(//\)$' \| \
14047          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14048 $as_echo X"$ac_file" |
14049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14050             s//\1/
14051             q
14052           }
14053           /^X\(\/\/\)[^/].*/{
14054             s//\1/
14055             q
14056           }
14057           /^X\(\/\/\)$/{
14058             s//\1/
14059             q
14060           }
14061           /^X\(\/\).*/{
14062             s//\1/
14063             q
14064           }
14065           s/.*/./; q'`
14066   as_dir="$ac_dir"; as_fn_mkdir_p
14067   ac_builddir=.
14068
14069 case "$ac_dir" in
14070 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14071 *)
14072   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14073   # A ".." for each directory in $ac_dir_suffix.
14074   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14075   case $ac_top_builddir_sub in
14076   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14077   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14078   esac ;;
14079 esac
14080 ac_abs_top_builddir=$ac_pwd
14081 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14082 # for backward compatibility:
14083 ac_top_builddir=$ac_top_build_prefix
14084
14085 case $srcdir in
14086   .)  # We are building in place.
14087     ac_srcdir=.
14088     ac_top_srcdir=$ac_top_builddir_sub
14089     ac_abs_top_srcdir=$ac_pwd ;;
14090   [\\/]* | ?:[\\/]* )  # Absolute name.
14091     ac_srcdir=$srcdir$ac_dir_suffix;
14092     ac_top_srcdir=$srcdir
14093     ac_abs_top_srcdir=$srcdir ;;
14094   *) # Relative name.
14095     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14096     ac_top_srcdir=$ac_top_build_prefix$srcdir
14097     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14098 esac
14099 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14100
14101
14102   case $ac_mode in
14103   :F)
14104   #
14105   # CONFIG_FILE
14106   #
14107
14108   case $INSTALL in
14109   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14110   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14111   esac
14112   ac_MKDIR_P=$MKDIR_P
14113   case $MKDIR_P in
14114   [\\/$]* | ?:[\\/]* ) ;;
14115   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14116   esac
14117 _ACEOF
14118
14119 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14120 # If the template does not know about datarootdir, expand it.
14121 # FIXME: This hack should be removed a few years after 2.60.
14122 ac_datarootdir_hack=; ac_datarootdir_seen=
14123 ac_sed_dataroot='
14124 /datarootdir/ {
14125   p
14126   q
14127 }
14128 /@datadir@/p
14129 /@docdir@/p
14130 /@infodir@/p
14131 /@localedir@/p
14132 /@mandir@/p'
14133 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14134 *datarootdir*) ac_datarootdir_seen=yes;;
14135 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14136   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14137 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14138 _ACEOF
14139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14140   ac_datarootdir_hack='
14141   s&@datadir@&$datadir&g
14142   s&@docdir@&$docdir&g
14143   s&@infodir@&$infodir&g
14144   s&@localedir@&$localedir&g
14145   s&@mandir@&$mandir&g
14146   s&\\\${datarootdir}&$datarootdir&g' ;;
14147 esac
14148 _ACEOF
14149
14150 # Neutralize VPATH when `$srcdir' = `.'.
14151 # Shell code in configure.ac might set extrasub.
14152 # FIXME: do we really want to maintain this feature?
14153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14154 ac_sed_extra="$ac_vpsub
14155 $extrasub
14156 _ACEOF
14157 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14158 :t
14159 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14160 s|@configure_input@|$ac_sed_conf_input|;t t
14161 s&@top_builddir@&$ac_top_builddir_sub&;t t
14162 s&@top_build_prefix@&$ac_top_build_prefix&;t t
14163 s&@srcdir@&$ac_srcdir&;t t
14164 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14165 s&@top_srcdir@&$ac_top_srcdir&;t t
14166 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14167 s&@builddir@&$ac_builddir&;t t
14168 s&@abs_builddir@&$ac_abs_builddir&;t t
14169 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14170 s&@INSTALL@&$ac_INSTALL&;t t
14171 s&@MKDIR_P@&$ac_MKDIR_P&;t t
14172 $ac_datarootdir_hack
14173 "
14174 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14175   || as_fn_error "could not create $ac_file" "$LINENO" 5
14176
14177 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14178   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14179   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14181 which seems to be undefined.  Please make sure it is defined." >&5
14182 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14183 which seems to be undefined.  Please make sure it is defined." >&2;}
14184
14185   rm -f "$tmp/stdin"
14186   case $ac_file in
14187   -) cat "$tmp/out" && rm -f "$tmp/out";;
14188   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14189   esac \
14190   || as_fn_error "could not create $ac_file" "$LINENO" 5
14191  ;;
14192   :H)
14193   #
14194   # CONFIG_HEADER
14195   #
14196   if test x"$ac_file" != x-; then
14197     {
14198       $as_echo "/* $configure_input  */" \
14199       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14200     } >"$tmp/config.h" \
14201       || as_fn_error "could not create $ac_file" "$LINENO" 5
14202     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14203       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14204 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14205     else
14206       rm -f "$ac_file"
14207       mv "$tmp/config.h" "$ac_file" \
14208         || as_fn_error "could not create $ac_file" "$LINENO" 5
14209     fi
14210   else
14211     $as_echo "/* $configure_input  */" \
14212       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14213       || as_fn_error "could not create -" "$LINENO" 5
14214   fi
14215 # Compute "$ac_file"'s index in $config_headers.
14216 _am_arg="$ac_file"
14217 _am_stamp_count=1
14218 for _am_header in $config_headers :; do
14219   case $_am_header in
14220     $_am_arg | $_am_arg:* )
14221       break ;;
14222     * )
14223       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14224   esac
14225 done
14226 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14227 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14228          X"$_am_arg" : 'X\(//\)[^/]' \| \
14229          X"$_am_arg" : 'X\(//\)$' \| \
14230          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14231 $as_echo X"$_am_arg" |
14232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14233             s//\1/
14234             q
14235           }
14236           /^X\(\/\/\)[^/].*/{
14237             s//\1/
14238             q
14239           }
14240           /^X\(\/\/\)$/{
14241             s//\1/
14242             q
14243           }
14244           /^X\(\/\).*/{
14245             s//\1/
14246             q
14247           }
14248           s/.*/./; q'`/stamp-h$_am_stamp_count
14249  ;;
14250   :L)
14251   #
14252   # CONFIG_LINK
14253   #
14254
14255   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
14256     :
14257   else
14258     # Prefer the file from the source tree if names are identical.
14259     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
14260       ac_source=$srcdir/$ac_source
14261     fi
14262
14263     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
14264 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
14265
14266     if test ! -r "$ac_source"; then
14267       as_fn_error "$ac_source: file not found" "$LINENO" 5
14268     fi
14269     rm -f "$ac_file"
14270
14271     # Try a relative symlink, then a hard link, then a copy.
14272     case $srcdir in
14273     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
14274         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
14275     esac
14276     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
14277       ln "$ac_source" "$ac_file" 2>/dev/null ||
14278       cp -p "$ac_source" "$ac_file" ||
14279       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
14280   fi
14281  ;;
14282   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14283 $as_echo "$as_me: executing $ac_file commands" >&6;}
14284  ;;
14285   esac
14286
14287
14288   case $ac_file$ac_mode in
14289     "default-1":C)
14290 # Only add multilib support code if we just rebuilt the top-level
14291 # Makefile.
14292 case " $CONFIG_FILES " in
14293  *" Makefile "*)
14294    ac_file=Makefile . ${multi_basedir}/config-ml.in
14295    ;;
14296 esac ;;
14297     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14298   # Autoconf 2.62 quotes --file arguments for eval, but not when files
14299   # are listed without --file.  Let's play safe and only enable the eval
14300   # if we detect the quoting.
14301   case $CONFIG_FILES in
14302   *\'*) eval set x "$CONFIG_FILES" ;;
14303   *)   set x $CONFIG_FILES ;;
14304   esac
14305   shift
14306   for mf
14307   do
14308     # Strip MF so we end up with the name of the file.
14309     mf=`echo "$mf" | sed -e 's/:.*$//'`
14310     # Check whether this is an Automake generated Makefile or not.
14311     # We used to match only the files named `Makefile.in', but
14312     # some people rename them; so instead we look at the file content.
14313     # Grep'ing the first line is not enough: some people post-process
14314     # each Makefile.in and add a new line on top of each file to say so.
14315     # Grep'ing the whole file is not good either: AIX grep has a line
14316     # limit of 2048, but all sed's we know have understand at least 4000.
14317     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14318       dirpart=`$as_dirname -- "$mf" ||
14319 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14320          X"$mf" : 'X\(//\)[^/]' \| \
14321          X"$mf" : 'X\(//\)$' \| \
14322          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14323 $as_echo X"$mf" |
14324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14325             s//\1/
14326             q
14327           }
14328           /^X\(\/\/\)[^/].*/{
14329             s//\1/
14330             q
14331           }
14332           /^X\(\/\/\)$/{
14333             s//\1/
14334             q
14335           }
14336           /^X\(\/\).*/{
14337             s//\1/
14338             q
14339           }
14340           s/.*/./; q'`
14341     else
14342       continue
14343     fi
14344     # Extract the definition of DEPDIR, am__include, and am__quote
14345     # from the Makefile without running `make'.
14346     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14347     test -z "$DEPDIR" && continue
14348     am__include=`sed -n 's/^am__include = //p' < "$mf"`
14349     test -z "am__include" && continue
14350     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14351     # When using ansi2knr, U may be empty or an underscore; expand it
14352     U=`sed -n 's/^U = //p' < "$mf"`
14353     # Find all dependency output files, they are included files with
14354     # $(DEPDIR) in their names.  We invoke sed twice because it is the
14355     # simplest approach to changing $(DEPDIR) to its actual value in the
14356     # expansion.
14357     for file in `sed -n "
14358       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14359          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14360       # Make sure the directory exists.
14361       test -f "$dirpart/$file" && continue
14362       fdir=`$as_dirname -- "$file" ||
14363 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14364          X"$file" : 'X\(//\)[^/]' \| \
14365          X"$file" : 'X\(//\)$' \| \
14366          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14367 $as_echo X"$file" |
14368     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14369             s//\1/
14370             q
14371           }
14372           /^X\(\/\/\)[^/].*/{
14373             s//\1/
14374             q
14375           }
14376           /^X\(\/\/\)$/{
14377             s//\1/
14378             q
14379           }
14380           /^X\(\/\).*/{
14381             s//\1/
14382             q
14383           }
14384           s/.*/./; q'`
14385       as_dir=$dirpart/$fdir; as_fn_mkdir_p
14386       # echo "creating $dirpart/$file"
14387       echo '# dummy' > "$dirpart/$file"
14388     done
14389   done
14390 }
14391  ;;
14392     "libtool":C)
14393
14394     # See if we are running on zsh, and set the options which allow our
14395     # commands through without removal of \ escapes.
14396     if test -n "${ZSH_VERSION+set}" ; then
14397       setopt NO_GLOB_SUBST
14398     fi
14399
14400     cfgfile="${ofile}T"
14401     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14402     $RM "$cfgfile"
14403
14404     cat <<_LT_EOF >> "$cfgfile"
14405 #! $SHELL
14406
14407 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14408 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14409 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14410 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14411 #
14412 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14413 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
14414 #   Written by Gordon Matzigkeit, 1996
14415 #
14416 #   This file is part of GNU Libtool.
14417 #
14418 # GNU Libtool is free software; you can redistribute it and/or
14419 # modify it under the terms of the GNU General Public License as
14420 # published by the Free Software Foundation; either version 2 of
14421 # the License, or (at your option) any later version.
14422 #
14423 # As a special exception to the GNU General Public License,
14424 # if you distribute this file as part of a program or library that
14425 # is built using GNU Libtool, you may include this file under the
14426 # same distribution terms that you use for the rest of that program.
14427 #
14428 # GNU Libtool is distributed in the hope that it will be useful,
14429 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14430 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14431 # GNU General Public License for more details.
14432 #
14433 # You should have received a copy of the GNU General Public License
14434 # along with GNU Libtool; see the file COPYING.  If not, a copy
14435 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14436 # obtained by writing to the Free Software Foundation, Inc.,
14437 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14438
14439
14440 # The names of the tagged configurations supported by this script.
14441 available_tags=""
14442
14443 # ### BEGIN LIBTOOL CONFIG
14444
14445 # Which release of libtool.m4 was used?
14446 macro_version=$macro_version
14447 macro_revision=$macro_revision
14448
14449 # Whether or not to build shared libraries.
14450 build_libtool_libs=$enable_shared
14451
14452 # Whether or not to build static libraries.
14453 build_old_libs=$enable_static
14454
14455 # What type of objects to build.
14456 pic_mode=$pic_mode
14457
14458 # Whether or not to optimize for fast installation.
14459 fast_install=$enable_fast_install
14460
14461 # Shell to use when invoking shell scripts.
14462 SHELL=$lt_SHELL
14463
14464 # An echo program that protects backslashes.
14465 ECHO=$lt_ECHO
14466
14467 # The host system.
14468 host_alias=$host_alias
14469 host=$host
14470 host_os=$host_os
14471
14472 # The build system.
14473 build_alias=$build_alias
14474 build=$build
14475 build_os=$build_os
14476
14477 # A sed program that does not truncate output.
14478 SED=$lt_SED
14479
14480 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14481 Xsed="\$SED -e 1s/^X//"
14482
14483 # A grep program that handles long lines.
14484 GREP=$lt_GREP
14485
14486 # An ERE matcher.
14487 EGREP=$lt_EGREP
14488
14489 # A literal string matcher.
14490 FGREP=$lt_FGREP
14491
14492 # A BSD- or MS-compatible name lister.
14493 NM=$lt_NM
14494
14495 # Whether we need soft or hard links.
14496 LN_S=$lt_LN_S
14497
14498 # What is the maximum length of a command?
14499 max_cmd_len=$max_cmd_len
14500
14501 # Object file suffix (normally "o").
14502 objext=$ac_objext
14503
14504 # Executable file suffix (normally "").
14505 exeext=$exeext
14506
14507 # whether the shell understands "unset".
14508 lt_unset=$lt_unset
14509
14510 # turn spaces into newlines.
14511 SP2NL=$lt_lt_SP2NL
14512
14513 # turn newlines into spaces.
14514 NL2SP=$lt_lt_NL2SP
14515
14516 # An object symbol dumper.
14517 OBJDUMP=$lt_OBJDUMP
14518
14519 # Method to check whether dependent libraries are shared objects.
14520 deplibs_check_method=$lt_deplibs_check_method
14521
14522 # Command to use when deplibs_check_method == "file_magic".
14523 file_magic_cmd=$lt_file_magic_cmd
14524
14525 # The archiver.
14526 AR=$lt_AR
14527 AR_FLAGS=$lt_AR_FLAGS
14528
14529 # A symbol stripping program.
14530 STRIP=$lt_STRIP
14531
14532 # Commands used to install an old-style archive.
14533 RANLIB=$lt_RANLIB
14534 old_postinstall_cmds=$lt_old_postinstall_cmds
14535 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14536
14537 # Whether to use a lock for old archive extraction.
14538 lock_old_archive_extraction=$lock_old_archive_extraction
14539
14540 # A C compiler.
14541 LTCC=$lt_CC
14542
14543 # LTCC compiler flags.
14544 LTCFLAGS=$lt_CFLAGS
14545
14546 # Take the output of nm and produce a listing of raw symbols and C names.
14547 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14548
14549 # Transform the output of nm in a proper C declaration.
14550 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14551
14552 # Transform the output of nm in a C name address pair.
14553 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14554
14555 # Transform the output of nm in a C name address pair when lib prefix is needed.
14556 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14557
14558 # The name of the directory that contains temporary libtool files.
14559 objdir=$objdir
14560
14561 # Used to examine libraries when file_magic_cmd begins with "file".
14562 MAGIC_CMD=$MAGIC_CMD
14563
14564 # Must we lock files when doing compilation?
14565 need_locks=$lt_need_locks
14566
14567 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14568 DSYMUTIL=$lt_DSYMUTIL
14569
14570 # Tool to change global to local symbols on Mac OS X.
14571 NMEDIT=$lt_NMEDIT
14572
14573 # Tool to manipulate fat objects and archives on Mac OS X.
14574 LIPO=$lt_LIPO
14575
14576 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14577 OTOOL=$lt_OTOOL
14578
14579 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14580 OTOOL64=$lt_OTOOL64
14581
14582 # Old archive suffix (normally "a").
14583 libext=$libext
14584
14585 # Shared library suffix (normally ".so").
14586 shrext_cmds=$lt_shrext_cmds
14587
14588 # The commands to extract the exported symbol list from a shared archive.
14589 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14590
14591 # Variables whose values should be saved in libtool wrapper scripts and
14592 # restored at link time.
14593 variables_saved_for_relink=$lt_variables_saved_for_relink
14594
14595 # Do we need the "lib" prefix for modules?
14596 need_lib_prefix=$need_lib_prefix
14597
14598 # Do we need a version for libraries?
14599 need_version=$need_version
14600
14601 # Library versioning type.
14602 version_type=$version_type
14603
14604 # Shared library runtime path variable.
14605 runpath_var=$runpath_var
14606
14607 # Shared library path variable.
14608 shlibpath_var=$shlibpath_var
14609
14610 # Is shlibpath searched before the hard-coded library search path?
14611 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14612
14613 # Format of library name prefix.
14614 libname_spec=$lt_libname_spec
14615
14616 # List of archive names.  First name is the real one, the rest are links.
14617 # The last name is the one that the linker finds with -lNAME
14618 library_names_spec=$lt_library_names_spec
14619
14620 # The coded name of the library, if different from the real name.
14621 soname_spec=$lt_soname_spec
14622
14623 # Permission mode override for installation of shared libraries.
14624 install_override_mode=$lt_install_override_mode
14625
14626 # Command to use after installation of a shared archive.
14627 postinstall_cmds=$lt_postinstall_cmds
14628
14629 # Command to use after uninstallation of a shared archive.
14630 postuninstall_cmds=$lt_postuninstall_cmds
14631
14632 # Commands used to finish a libtool library installation in a directory.
14633 finish_cmds=$lt_finish_cmds
14634
14635 # As "finish_cmds", except a single script fragment to be evaled but
14636 # not shown.
14637 finish_eval=$lt_finish_eval
14638
14639 # Whether we should hardcode library paths into libraries.
14640 hardcode_into_libs=$hardcode_into_libs
14641
14642 # Compile-time system search path for libraries.
14643 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14644
14645 # Run-time system search path for libraries.
14646 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14647
14648 # Whether dlopen is supported.
14649 dlopen_support=$enable_dlopen
14650
14651 # Whether dlopen of programs is supported.
14652 dlopen_self=$enable_dlopen_self
14653
14654 # Whether dlopen of statically linked programs is supported.
14655 dlopen_self_static=$enable_dlopen_self_static
14656
14657 # Commands to strip libraries.
14658 old_striplib=$lt_old_striplib
14659 striplib=$lt_striplib
14660
14661
14662 # The linker used to build libraries.
14663 LD=$lt_LD
14664
14665 # How to create reloadable object files.
14666 reload_flag=$lt_reload_flag
14667 reload_cmds=$lt_reload_cmds
14668
14669 # Commands used to build an old-style archive.
14670 old_archive_cmds=$lt_old_archive_cmds
14671
14672 # A language specific compiler.
14673 CC=$lt_compiler
14674
14675 # Is the compiler the GNU compiler?
14676 with_gcc=$GCC
14677
14678 # Compiler flag to turn off builtin functions.
14679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14680
14681 # How to pass a linker flag through the compiler.
14682 wl=$lt_lt_prog_compiler_wl
14683
14684 # Additional compiler flags for building library objects.
14685 pic_flag=$lt_lt_prog_compiler_pic
14686
14687 # Compiler flag to prevent dynamic linking.
14688 link_static_flag=$lt_lt_prog_compiler_static
14689
14690 # Does compiler simultaneously support -c and -o options?
14691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14692
14693 # Whether or not to add -lc for building shared libraries.
14694 build_libtool_need_lc=$archive_cmds_need_lc
14695
14696 # Whether or not to disallow shared libs when runtime libs are static.
14697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14698
14699 # Compiler flag to allow reflexive dlopens.
14700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14701
14702 # Compiler flag to generate shared objects directly from archives.
14703 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14704
14705 # Whether the compiler copes with passing no objects directly.
14706 compiler_needs_object=$lt_compiler_needs_object
14707
14708 # Create an old-style archive from a shared archive.
14709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14710
14711 # Create a temporary old-style archive to link instead of a shared archive.
14712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14713
14714 # Commands used to build a shared archive.
14715 archive_cmds=$lt_archive_cmds
14716 archive_expsym_cmds=$lt_archive_expsym_cmds
14717
14718 # Commands used to build a loadable module if different from building
14719 # a shared archive.
14720 module_cmds=$lt_module_cmds
14721 module_expsym_cmds=$lt_module_expsym_cmds
14722
14723 # Whether we are building with GNU ld or not.
14724 with_gnu_ld=$lt_with_gnu_ld
14725
14726 # Flag that allows shared libraries with undefined symbols to be built.
14727 allow_undefined_flag=$lt_allow_undefined_flag
14728
14729 # Flag that enforces no undefined symbols.
14730 no_undefined_flag=$lt_no_undefined_flag
14731
14732 # Flag to hardcode \$libdir into a binary during linking.
14733 # This must work even if \$libdir does not exist
14734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14735
14736 # If ld is used when linking, flag to hardcode \$libdir into a binary
14737 # during linking.  This must work even if \$libdir does not exist.
14738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14739
14740 # Whether we need a single "-rpath" flag with a separated argument.
14741 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14742
14743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14744 # DIR into the resulting binary.
14745 hardcode_direct=$hardcode_direct
14746
14747 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14748 # DIR into the resulting binary and the resulting library dependency is
14749 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14750 # library is relocated.
14751 hardcode_direct_absolute=$hardcode_direct_absolute
14752
14753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14754 # into the resulting binary.
14755 hardcode_minus_L=$hardcode_minus_L
14756
14757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14758 # into the resulting binary.
14759 hardcode_shlibpath_var=$hardcode_shlibpath_var
14760
14761 # Set to "yes" if building a shared library automatically hardcodes DIR
14762 # into the library and all subsequent libraries and executables linked
14763 # against it.
14764 hardcode_automatic=$hardcode_automatic
14765
14766 # Set to yes if linker adds runtime paths of dependent libraries
14767 # to runtime path list.
14768 inherit_rpath=$inherit_rpath
14769
14770 # Whether libtool must link a program against all its dependency libraries.
14771 link_all_deplibs=$link_all_deplibs
14772
14773 # Fix the shell variable \$srcfile for the compiler.
14774 fix_srcfile_path=$lt_fix_srcfile_path
14775
14776 # Set to "yes" if exported symbols are required.
14777 always_export_symbols=$always_export_symbols
14778
14779 # The commands to list exported symbols.
14780 export_symbols_cmds=$lt_export_symbols_cmds
14781
14782 # Symbols that should not be listed in the preloaded symbols.
14783 exclude_expsyms=$lt_exclude_expsyms
14784
14785 # Symbols that must always be exported.
14786 include_expsyms=$lt_include_expsyms
14787
14788 # Commands necessary for linking programs (against libraries) with templates.
14789 prelink_cmds=$lt_prelink_cmds
14790
14791 # Specify filename containing input files.
14792 file_list_spec=$lt_file_list_spec
14793
14794 # How to hardcode a shared library path into an executable.
14795 hardcode_action=$hardcode_action
14796
14797 # ### END LIBTOOL CONFIG
14798
14799 _LT_EOF
14800
14801   case $host_os in
14802   aix3*)
14803     cat <<\_LT_EOF >> "$cfgfile"
14804 # AIX sometimes has problems with the GCC collect2 program.  For some
14805 # reason, if we set the COLLECT_NAMES environment variable, the problems
14806 # vanish in a puff of smoke.
14807 if test "X${COLLECT_NAMES+set}" != Xset; then
14808   COLLECT_NAMES=
14809   export COLLECT_NAMES
14810 fi
14811 _LT_EOF
14812     ;;
14813   esac
14814
14815
14816 ltmain="$ac_aux_dir/ltmain.sh"
14817
14818
14819   # We use sed instead of cat because bash on DJGPP gets confused if
14820   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14821   # text mode, it properly converts lines to CR/LF.  This bash problem
14822   # is reportedly fixed, but why not run on old versions too?
14823   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14824     || (rm -f "$cfgfile"; exit 1)
14825
14826   case $xsi_shell in
14827   yes)
14828     cat << \_LT_EOF >> "$cfgfile"
14829
14830 # func_dirname file append nondir_replacement
14831 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14832 # otherwise set result to NONDIR_REPLACEMENT.
14833 func_dirname ()
14834 {
14835   case ${1} in
14836     */*) func_dirname_result="${1%/*}${2}" ;;
14837     *  ) func_dirname_result="${3}" ;;
14838   esac
14839 }
14840
14841 # func_basename file
14842 func_basename ()
14843 {
14844   func_basename_result="${1##*/}"
14845 }
14846
14847 # func_dirname_and_basename file append nondir_replacement
14848 # perform func_basename and func_dirname in a single function
14849 # call:
14850 #   dirname:  Compute the dirname of FILE.  If nonempty,
14851 #             add APPEND to the result, otherwise set result
14852 #             to NONDIR_REPLACEMENT.
14853 #             value returned in "$func_dirname_result"
14854 #   basename: Compute filename of FILE.
14855 #             value retuned in "$func_basename_result"
14856 # Implementation must be kept synchronized with func_dirname
14857 # and func_basename. For efficiency, we do not delegate to
14858 # those functions but instead duplicate the functionality here.
14859 func_dirname_and_basename ()
14860 {
14861   case ${1} in
14862     */*) func_dirname_result="${1%/*}${2}" ;;
14863     *  ) func_dirname_result="${3}" ;;
14864   esac
14865   func_basename_result="${1##*/}"
14866 }
14867
14868 # func_stripname prefix suffix name
14869 # strip PREFIX and SUFFIX off of NAME.
14870 # PREFIX and SUFFIX must not contain globbing or regex special
14871 # characters, hashes, percent signs, but SUFFIX may contain a leading
14872 # dot (in which case that matches only a dot).
14873 func_stripname ()
14874 {
14875   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14876   # positional parameters, so assign one to ordinary parameter first.
14877   func_stripname_result=${3}
14878   func_stripname_result=${func_stripname_result#"${1}"}
14879   func_stripname_result=${func_stripname_result%"${2}"}
14880 }
14881
14882 # func_opt_split
14883 func_opt_split ()
14884 {
14885   func_opt_split_opt=${1%%=*}
14886   func_opt_split_arg=${1#*=}
14887 }
14888
14889 # func_lo2o object
14890 func_lo2o ()
14891 {
14892   case ${1} in
14893     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14894     *)    func_lo2o_result=${1} ;;
14895   esac
14896 }
14897
14898 # func_xform libobj-or-source
14899 func_xform ()
14900 {
14901   func_xform_result=${1%.*}.lo
14902 }
14903
14904 # func_arith arithmetic-term...
14905 func_arith ()
14906 {
14907   func_arith_result=$(( $* ))
14908 }
14909
14910 # func_len string
14911 # STRING may not start with a hyphen.
14912 func_len ()
14913 {
14914   func_len_result=${#1}
14915 }
14916
14917 _LT_EOF
14918     ;;
14919   *) # Bourne compatible functions.
14920     cat << \_LT_EOF >> "$cfgfile"
14921
14922 # func_dirname file append nondir_replacement
14923 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14924 # otherwise set result to NONDIR_REPLACEMENT.
14925 func_dirname ()
14926 {
14927   # Extract subdirectory from the argument.
14928   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14929   if test "X$func_dirname_result" = "X${1}"; then
14930     func_dirname_result="${3}"
14931   else
14932     func_dirname_result="$func_dirname_result${2}"
14933   fi
14934 }
14935
14936 # func_basename file
14937 func_basename ()
14938 {
14939   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14940 }
14941
14942
14943 # func_stripname prefix suffix name
14944 # strip PREFIX and SUFFIX off of NAME.
14945 # PREFIX and SUFFIX must not contain globbing or regex special
14946 # characters, hashes, percent signs, but SUFFIX may contain a leading
14947 # dot (in which case that matches only a dot).
14948 # func_strip_suffix prefix name
14949 func_stripname ()
14950 {
14951   case ${2} in
14952     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14953     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14954   esac
14955 }
14956
14957 # sed scripts:
14958 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14959 my_sed_long_arg='1s/^-[^=]*=//'
14960
14961 # func_opt_split
14962 func_opt_split ()
14963 {
14964   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14965   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14966 }
14967
14968 # func_lo2o object
14969 func_lo2o ()
14970 {
14971   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14972 }
14973
14974 # func_xform libobj-or-source
14975 func_xform ()
14976 {
14977   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14978 }
14979
14980 # func_arith arithmetic-term...
14981 func_arith ()
14982 {
14983   func_arith_result=`expr "$@"`
14984 }
14985
14986 # func_len string
14987 # STRING may not start with a hyphen.
14988 func_len ()
14989 {
14990   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14991 }
14992
14993 _LT_EOF
14994 esac
14995
14996 case $lt_shell_append in
14997   yes)
14998     cat << \_LT_EOF >> "$cfgfile"
14999
15000 # func_append var value
15001 # Append VALUE to the end of shell variable VAR.
15002 func_append ()
15003 {
15004   eval "$1+=\$2"
15005 }
15006 _LT_EOF
15007     ;;
15008   *)
15009     cat << \_LT_EOF >> "$cfgfile"
15010
15011 # func_append var value
15012 # Append VALUE to the end of shell variable VAR.
15013 func_append ()
15014 {
15015   eval "$1=\$$1\$2"
15016 }
15017
15018 _LT_EOF
15019     ;;
15020   esac
15021
15022
15023   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15024     || (rm -f "$cfgfile"; exit 1)
15025
15026   mv -f "$cfgfile" "$ofile" ||
15027     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15028   chmod +x "$ofile"
15029
15030  ;;
15031     "include":C) test -d include || mkdir include ;;
15032     "src":C)
15033 test -d src || mkdir src
15034 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
15035  ;;
15036
15037   esac
15038 done # for ac_tag
15039
15040
15041 as_fn_exit 0
15042 _ACEOF
15043 ac_clean_files=$ac_clean_files_save
15044
15045 test $ac_write_fail = 0 ||
15046   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15047
15048
15049 # configure is writing to config.log, and then calls config.status.
15050 # config.status does its own redirection, appending to config.log.
15051 # Unfortunately, on DOS this fails, as config.log is still kept open
15052 # by configure, so config.status won't be able to write to it; its
15053 # output is simply discarded.  So we exec the FD to /dev/null,
15054 # effectively closing config.log, so it can be properly (re)opened and
15055 # appended to by config.status.  When coming back to configure, we
15056 # need to make the FD available again.
15057 if test "$no_create" != yes; then
15058   ac_cs_success=:
15059   ac_config_status_args=
15060   test "$silent" = yes &&
15061     ac_config_status_args="$ac_config_status_args --quiet"
15062   exec 5>/dev/null
15063   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15064   exec 5>>config.log
15065   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15066   # would make configure fail if this is the last instruction.
15067   $ac_cs_success || as_fn_exit $?
15068 fi
15069 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15070   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15071 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15072 fi
15073