Rebuild for ARC additions
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.0.13.
4 #
5 # Report bugs to <http://github.com/atgreen/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
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 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://github.com/atgreen/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.0.13'
594 PACKAGE_STRING='libffi 3.0.13'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/libffi/issues'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 #  include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 #  include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 toolexeclibdir
639 toolexecdir
640 FFI_DEBUG_FALSE
641 FFI_DEBUG_TRUE
642 TARGETDIR
643 TARGET
644 FFI_EXEC_TRAMPOLINE_TABLE
645 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
646 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
647 sys_symbol_underscore
648 HAVE_LONG_DOUBLE
649 ALLOCA
650 XTENSA_FALSE
651 XTENSA_TRUE
652 TILE_FALSE
653 TILE_TRUE
654 PA64_HPUX_FALSE
655 PA64_HPUX_TRUE
656 PA_HPUX_FALSE
657 PA_HPUX_TRUE
658 PA_LINUX_FALSE
659 PA_LINUX_TRUE
660 SH64_FALSE
661 SH64_TRUE
662 SH_FALSE
663 SH_TRUE
664 X86_64_FALSE
665 X86_64_TRUE
666 S390_FALSE
667 S390_TRUE
668 FRV_FALSE
669 FRV_TRUE
670 LIBFFI_CRIS_FALSE
671 LIBFFI_CRIS_TRUE
672 AVR32_FALSE
673 AVR32_TRUE
674 ARM_FALSE
675 ARM_TRUE
676 ARC_FALSE
677 ARC_TRUE
678 AARCH64_FALSE
679 AARCH64_TRUE
680 POWERPC_FREEBSD_FALSE
681 POWERPC_FREEBSD_TRUE
682 POWERPC_DARWIN_FALSE
683 POWERPC_DARWIN_TRUE
684 POWERPC_AIX_FALSE
685 POWERPC_AIX_TRUE
686 POWERPC_FALSE
687 POWERPC_TRUE
688 MOXIE_FALSE
689 MOXIE_TRUE
690 METAG_FALSE
691 METAG_TRUE
692 MICROBLAZE_FALSE
693 MICROBLAZE_TRUE
694 M68K_FALSE
695 M68K_TRUE
696 M32R_FALSE
697 M32R_TRUE
698 IA64_FALSE
699 IA64_TRUE
700 ALPHA_FALSE
701 ALPHA_TRUE
702 X86_DARWIN_FALSE
703 X86_DARWIN_TRUE
704 X86_WIN64_FALSE
705 X86_WIN64_TRUE
706 X86_WIN32_FALSE
707 X86_WIN32_TRUE
708 X86_FREEBSD_FALSE
709 X86_FREEBSD_TRUE
710 X86_FALSE
711 X86_TRUE
712 SPARC_FALSE
713 SPARC_TRUE
714 BFIN_FALSE
715 BFIN_TRUE
716 MIPS_FALSE
717 MIPS_TRUE
718 AM_LTLDFLAGS
719 AM_RUNTESTFLAGS
720 TESTSUBDIR_FALSE
721 TESTSUBDIR_TRUE
722 MAINT
723 MAINTAINER_MODE_FALSE
724 MAINTAINER_MODE_TRUE
725 PRTDIAG
726 CPP
727 OTOOL64
728 OTOOL
729 LIPO
730 NMEDIT
731 DSYMUTIL
732 MANIFEST_TOOL
733 RANLIB
734 ac_ct_AR
735 AR
736 DLLTOOL
737 OBJDUMP
738 LN_S
739 NM
740 ac_ct_DUMPBIN
741 DUMPBIN
742 LD
743 FGREP
744 EGREP
745 GREP
746 SED
747 LIBTOOL
748 am__fastdepCCAS_FALSE
749 am__fastdepCCAS_TRUE
750 CCASDEPMODE
751 CCASFLAGS
752 CCAS
753 am__fastdepCC_FALSE
754 am__fastdepCC_TRUE
755 CCDEPMODE
756 am__nodep
757 AMDEPBACKSLASH
758 AMDEP_FALSE
759 AMDEP_TRUE
760 am__quote
761 am__include
762 DEPDIR
763 OBJEXT
764 EXEEXT
765 ac_ct_CC
766 CPPFLAGS
767 LDFLAGS
768 CFLAGS
769 CC
770 am__untar
771 am__tar
772 AMTAR
773 am__leading_dot
774 SET_MAKE
775 AWK
776 mkdir_p
777 MKDIR_P
778 INSTALL_STRIP_PROGRAM
779 STRIP
780 install_sh
781 MAKEINFO
782 AUTOHEADER
783 AUTOMAKE
784 AUTOCONF
785 ACLOCAL
786 VERSION
787 PACKAGE
788 CYGPATH_W
789 am__isrc
790 INSTALL_DATA
791 INSTALL_SCRIPT
792 INSTALL_PROGRAM
793 ax_enable_builddir_sed
794 target_os
795 target_vendor
796 target_cpu
797 target
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 target_alias
807 host_alias
808 build_alias
809 LIBS
810 ECHO_T
811 ECHO_N
812 ECHO_C
813 DEFS
814 mandir
815 localedir
816 libdir
817 psdir
818 pdfdir
819 dvidir
820 htmldir
821 infodir
822 docdir
823 oldincludedir
824 includedir
825 localstatedir
826 sharedstatedir
827 sysconfdir
828 datadir
829 datarootdir
830 libexecdir
831 sbindir
832 bindir
833 program_transform_name
834 prefix
835 exec_prefix
836 PACKAGE_URL
837 PACKAGE_BUGREPORT
838 PACKAGE_STRING
839 PACKAGE_VERSION
840 PACKAGE_TARNAME
841 PACKAGE_NAME
842 PATH_SEPARATOR
843 SHELL'
844 ac_subst_files=''
845 ac_user_opts='
846 enable_option_checking
847 enable_builddir
848 enable_dependency_tracking
849 enable_shared
850 enable_static
851 with_pic
852 enable_fast_install
853 with_gnu_ld
854 with_sysroot
855 enable_libtool_lock
856 enable_portable_binary
857 with_gcc_arch
858 enable_maintainer_mode
859 enable_pax_emutramp
860 enable_debug
861 enable_structs
862 enable_raw_api
863 enable_purify_safety
864 '
865       ac_precious_vars='build_alias
866 host_alias
867 target_alias
868 CCAS
869 CCASFLAGS
870 CPP
871 CPPFLAGS'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926   # If the previous option needs an argument, assign it.
927   if test -n "$ac_prev"; then
928     eval $ac_prev=\$ac_option
929     ac_prev=
930     continue
931   fi
932
933   case $ac_option in
934   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935   *=)   ac_optarg= ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error $? "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163     ac_prev=sbindir ;;
1164   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165   | --sbi=* | --sb=*)
1166     sbindir=$ac_optarg ;;
1167
1168   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1169   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1170   | --sharedst | --shareds | --shared | --share | --shar \
1171   | --sha | --sh)
1172     ac_prev=sharedstatedir ;;
1173   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1174   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1175   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176   | --sha=* | --sh=*)
1177     sharedstatedir=$ac_optarg ;;
1178
1179   -site | --site | --sit)
1180     ac_prev=site ;;
1181   -site=* | --site=* | --sit=*)
1182     site=$ac_optarg ;;
1183
1184   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185     ac_prev=srcdir ;;
1186   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1187     srcdir=$ac_optarg ;;
1188
1189   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1190   | --syscon | --sysco | --sysc | --sys | --sy)
1191     ac_prev=sysconfdir ;;
1192   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1193   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1194     sysconfdir=$ac_optarg ;;
1195
1196   -target | --target | --targe | --targ | --tar | --ta | --t)
1197     ac_prev=target_alias ;;
1198   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1199     target_alias=$ac_optarg ;;
1200
1201   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1202     verbose=yes ;;
1203
1204   -version | --version | --versio | --versi | --vers | -V)
1205     ac_init_version=: ;;
1206
1207   -with-* | --with-*)
1208     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1209     # Reject names that are not valid shell variable names.
1210     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1211       as_fn_error $? "invalid package name: $ac_useropt"
1212     ac_useropt_orig=$ac_useropt
1213     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1214     case $ac_user_opts in
1215       *"
1216 "with_$ac_useropt"
1217 "*) ;;
1218       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1219          ac_unrecognized_sep=', ';;
1220     esac
1221     eval with_$ac_useropt=\$ac_optarg ;;
1222
1223   -without-* | --without-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=no ;;
1238
1239   --x)
1240     # Obsolete; use --with-x.
1241     with_x=yes ;;
1242
1243   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1244   | --x-incl | --x-inc | --x-in | --x-i)
1245     ac_prev=x_includes ;;
1246   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1247   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1248     x_includes=$ac_optarg ;;
1249
1250   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1251   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1252     ac_prev=x_libraries ;;
1253   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1254   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1255     x_libraries=$ac_optarg ;;
1256
1257   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1258 Try \`$0 --help' for more information"
1259     ;;
1260
1261   *=*)
1262     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1263     # Reject names that are not valid shell variable names.
1264     case $ac_envvar in #(
1265       '' | [0-9]* | *[!_$as_cr_alnum]* )
1266       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267     esac
1268     eval $ac_envvar=\$ac_optarg
1269     export $ac_envvar ;;
1270
1271   *)
1272     # FIXME: should be removed in autoconf 3.0.
1273     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1274     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1275       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1276     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1277     ;;
1278
1279   esac
1280 done
1281
1282 if test -n "$ac_prev"; then
1283   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1284   as_fn_error $? "missing argument to $ac_option"
1285 fi
1286
1287 if test -n "$ac_unrecognized_opts"; then
1288   case $enable_option_checking in
1289     no) ;;
1290     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1291     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292   esac
1293 fi
1294
1295 # Check all directory arguments for consistency.
1296 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297                 datadir sysconfdir sharedstatedir localstatedir includedir \
1298                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299                 libdir localedir mandir
1300 do
1301   eval ac_val=\$$ac_var
1302   # Remove trailing slashes.
1303   case $ac_val in
1304     */ )
1305       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306       eval $ac_var=\$ac_val;;
1307   esac
1308   # Be sure to have absolute directory names.
1309   case $ac_val in
1310     [\\/$]* | ?:[\\/]* )  continue;;
1311     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312   esac
1313   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1314 done
1315
1316 # There might be people who depend on the old broken behavior: `$host'
1317 # used to hold the argument of --host etc.
1318 # FIXME: To remove some day.
1319 build=$build_alias
1320 host=$host_alias
1321 target=$target_alias
1322
1323 # FIXME: To remove some day.
1324 if test "x$host_alias" != x; then
1325   if test "x$build_alias" = x; then
1326     cross_compiling=maybe
1327   elif test "x$build_alias" != "x$host_alias"; then
1328     cross_compiling=yes
1329   fi
1330 fi
1331
1332 ac_tool_prefix=
1333 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1334
1335 test "$silent" = yes && exec 6>/dev/null
1336
1337
1338 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1339 ac_ls_di=`ls -di .` &&
1340 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1341   as_fn_error $? "working directory cannot be determined"
1342 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1343   as_fn_error $? "pwd does not report name of working directory"
1344
1345
1346 # Find the source files, if location was not specified.
1347 if test -z "$srcdir"; then
1348   ac_srcdir_defaulted=yes
1349   # Try the directory containing this script, then the parent directory.
1350   ac_confdir=`$as_dirname -- "$as_myself" ||
1351 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352          X"$as_myself" : 'X\(//\)[^/]' \| \
1353          X"$as_myself" : 'X\(//\)$' \| \
1354          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355 $as_echo X"$as_myself" |
1356     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)[^/].*/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\/\)$/{
1365             s//\1/
1366             q
1367           }
1368           /^X\(\/\).*/{
1369             s//\1/
1370             q
1371           }
1372           s/.*/./; q'`
1373   srcdir=$ac_confdir
1374   if test ! -r "$srcdir/$ac_unique_file"; then
1375     srcdir=..
1376   fi
1377 else
1378   ac_srcdir_defaulted=no
1379 fi
1380 if test ! -r "$srcdir/$ac_unique_file"; then
1381   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1382   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1383 fi
1384 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1385 ac_abs_confdir=`(
1386         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1387         pwd)`
1388 # When building in place, set srcdir=.
1389 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390   srcdir=.
1391 fi
1392 # Remove unnecessary trailing slashes from srcdir.
1393 # Double slashes in file names in object file debugging info
1394 # mess up M-x gdb in Emacs.
1395 case $srcdir in
1396 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 esac
1398 for ac_var in $ac_precious_vars; do
1399   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_env_${ac_var}_value=\$${ac_var}
1401   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1402   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1403 done
1404
1405 #
1406 # Report the --help message.
1407 #
1408 if test "$ac_init_help" = "long"; then
1409   # Omit some internal or obsolete options to make the list less imposing.
1410   # This message is too long to be a string in the A/UX 3.1 sh.
1411   cat <<_ACEOF
1412 \`configure' configures libffi 3.0.13 to adapt to many kinds of systems.
1413
1414 Usage: $0 [OPTION]... [VAR=VALUE]...
1415
1416 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1417 VAR=VALUE.  See below for descriptions of some of the useful variables.
1418
1419 Defaults for the options are specified in brackets.
1420
1421 Configuration:
1422   -h, --help              display this help and exit
1423       --help=short        display options specific to this package
1424       --help=recursive    display the short help of all the included packages
1425   -V, --version           display version information and exit
1426   -q, --quiet, --silent   do not print \`checking ...' messages
1427       --cache-file=FILE   cache test results in FILE [disabled]
1428   -C, --config-cache      alias for \`--cache-file=config.cache'
1429   -n, --no-create         do not create output files
1430       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1431
1432 Installation directories:
1433   --prefix=PREFIX         install architecture-independent files in PREFIX
1434                           [$ac_default_prefix]
1435   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1436                           [PREFIX]
1437
1438 By default, \`make install' will install all the files in
1439 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1440 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1441 for instance \`--prefix=\$HOME'.
1442
1443 For better control, use the options below.
1444
1445 Fine tuning of the installation directories:
1446   --bindir=DIR            user executables [EPREFIX/bin]
1447   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1448   --libexecdir=DIR        program executables [EPREFIX/libexec]
1449   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1450   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1451   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1452   --libdir=DIR            object code libraries [EPREFIX/lib]
1453   --includedir=DIR        C header files [PREFIX/include]
1454   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1455   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1456   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1457   --infodir=DIR           info documentation [DATAROOTDIR/info]
1458   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1459   --mandir=DIR            man documentation [DATAROOTDIR/man]
1460   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1461   --htmldir=DIR           html documentation [DOCDIR]
1462   --dvidir=DIR            dvi documentation [DOCDIR]
1463   --pdfdir=DIR            pdf documentation [DOCDIR]
1464   --psdir=DIR             ps documentation [DOCDIR]
1465 _ACEOF
1466
1467   cat <<\_ACEOF
1468
1469 Program names:
1470   --program-prefix=PREFIX            prepend PREFIX to installed program names
1471   --program-suffix=SUFFIX            append SUFFIX to installed program names
1472   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477   --target=TARGET   configure for building compilers for TARGET [HOST]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of libffi 3.0.13:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-option-checking  ignore unrecognized --enable/--with options
1489   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1490   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1491   --disable-builddir      disable automatic build in subdir of sources
1492
1493   --enable-dependency-tracking
1494                           do not reject slow dependency extractors
1495   --disable-dependency-tracking
1496                           speeds up one-time build
1497   --enable-shared[=PKGS]  build shared libraries [default=yes]
1498   --enable-static[=PKGS]  build static libraries [default=yes]
1499   --enable-fast-install[=PKGS]
1500                           optimize for fast installation [default=yes]
1501   --disable-libtool-lock  avoid locking (might break parallel builds)
1502   --enable-portable-binary
1503                           disable compiler optimizations that would produce
1504                           unportable binaries
1505   --enable-maintainer-mode
1506                           enable make rules and dependencies not useful (and
1507                           sometimes confusing) to the casual installer
1508   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1509   --enable-debug          debugging mode
1510   --disable-structs       omit code for struct support
1511   --disable-raw-api       make the raw api unavailable
1512   --enable-purify-safety  purify-safe mode
1513
1514 Optional Packages:
1515   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1516   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1517   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1518                           both]
1519   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1520   --with-sysroot=DIR Search for dependent libraries within DIR
1521                         (or the compiler's sysroot if not specified).
1522   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1523                           instead of guessing
1524
1525 Some influential environment variables:
1526   CC          C compiler command
1527   CFLAGS      C compiler flags
1528   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1529               nonstandard directory <lib dir>
1530   LIBS        libraries to pass to the linker, e.g. -l<library>
1531   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1532               you have headers in a nonstandard directory <include dir>
1533   CCAS        assembler compiler command (defaults to CC)
1534   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1535   CPP         C preprocessor
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to <http://github.com/atgreen/libffi/issues>.
1541 _ACEOF
1542 ac_status=$?
1543 fi
1544
1545 if test "$ac_init_help" = "recursive"; then
1546   # If there are subdirs, report their specific --help.
1547   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548     test -d "$ac_dir" ||
1549       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550       continue
1551     ac_builddir=.
1552
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555 *)
1556   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557   # A ".." for each directory in $ac_dir_suffix.
1558   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559   case $ac_top_builddir_sub in
1560   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562   esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1568
1569 case $srcdir in
1570   .)  # We are building in place.
1571     ac_srcdir=.
1572     ac_top_srcdir=$ac_top_builddir_sub
1573     ac_abs_top_srcdir=$ac_pwd ;;
1574   [\\/]* | ?:[\\/]* )  # Absolute name.
1575     ac_srcdir=$srcdir$ac_dir_suffix;
1576     ac_top_srcdir=$srcdir
1577     ac_abs_top_srcdir=$srcdir ;;
1578   *) # Relative name.
1579     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580     ac_top_srcdir=$ac_top_build_prefix$srcdir
1581     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1584
1585     cd "$ac_dir" || { ac_status=$?; continue; }
1586     # Check for guested configure.
1587     if test -f "$ac_srcdir/configure.gnu"; then
1588       echo &&
1589       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590     elif test -f "$ac_srcdir/configure"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure" --help=recursive
1593     else
1594       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595     fi || ac_status=$?
1596     cd "$ac_pwd" || { ac_status=$?; break; }
1597   done
1598 fi
1599
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602   cat <<\_ACEOF
1603 libffi configure 3.0.13
1604 generated by GNU Autoconf 2.69
1605
1606 Copyright (C) 2012 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610   exit
1611 fi
1612
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1616
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1621 {
1622   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623   rm -f conftest.$ac_objext
1624   if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627   *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631   (eval "$ac_compile") 2>conftest.err
1632   ac_status=$?
1633   if test -s conftest.err; then
1634     grep -v '^ *+' conftest.err >conftest.er1
1635     cat conftest.er1 >&5
1636     mv -f conftest.er1 conftest.err
1637   fi
1638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639   test $ac_status = 0; } && {
1640          test -z "$ac_c_werror_flag" ||
1641          test ! -s conftest.err
1642        } && test -s conftest.$ac_objext; then :
1643   ac_retval=0
1644 else
1645   $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1647
1648         ac_retval=1
1649 fi
1650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1651   as_fn_set_status $ac_retval
1652
1653 } # ac_fn_c_try_compile
1654
1655 # ac_fn_c_try_link LINENO
1656 # -----------------------
1657 # Try to link conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_link ()
1659 {
1660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661   rm -f conftest.$ac_objext conftest$ac_exeext
1662   if { { ac_try="$ac_link"
1663 case "(($ac_try" in
1664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1665   *) ac_try_echo=$ac_try;;
1666 esac
1667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1668 $as_echo "$ac_try_echo"; } >&5
1669   (eval "$ac_link") 2>conftest.err
1670   ac_status=$?
1671   if test -s conftest.err; then
1672     grep -v '^ *+' conftest.err >conftest.er1
1673     cat conftest.er1 >&5
1674     mv -f conftest.er1 conftest.err
1675   fi
1676   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1677   test $ac_status = 0; } && {
1678          test -z "$ac_c_werror_flag" ||
1679          test ! -s conftest.err
1680        } && test -s conftest$ac_exeext && {
1681          test "$cross_compiling" = yes ||
1682          test -x conftest$ac_exeext
1683        }; then :
1684   ac_retval=0
1685 else
1686   $as_echo "$as_me: failed program was:" >&5
1687 sed 's/^/| /' conftest.$ac_ext >&5
1688
1689         ac_retval=1
1690 fi
1691   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1692   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1693   # interfere with the next link command; also delete a directory that is
1694   # left behind by Apple's compiler.  We do this before executing the actions.
1695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697   as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_link
1700
1701 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1702 # -------------------------------------------------------
1703 # Tests whether HEADER exists and can be compiled using the include files in
1704 # INCLUDES, setting the cache variable VAR accordingly.
1705 ac_fn_c_check_header_compile ()
1706 {
1707   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1709 $as_echo_n "checking for $2... " >&6; }
1710 if eval \${$3+:} false; then :
1711   $as_echo_n "(cached) " >&6
1712 else
1713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h.  */
1715 $4
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719   eval "$3=yes"
1720 else
1721   eval "$3=no"
1722 fi
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 fi
1725 eval ac_res=\$$3
1726                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1729
1730 } # ac_fn_c_check_header_compile
1731
1732 # ac_fn_c_try_cpp LINENO
1733 # ----------------------
1734 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1735 ac_fn_c_try_cpp ()
1736 {
1737   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738   if { { ac_try="$ac_cpp conftest.$ac_ext"
1739 case "(($ac_try" in
1740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741   *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1746   ac_status=$?
1747   if test -s conftest.err; then
1748     grep -v '^ *+' conftest.err >conftest.er1
1749     cat conftest.er1 >&5
1750     mv -f conftest.er1 conftest.err
1751   fi
1752   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753   test $ac_status = 0; } > conftest.i && {
1754          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1755          test ! -s conftest.err
1756        }; then :
1757   ac_retval=0
1758 else
1759   $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1761
1762     ac_retval=1
1763 fi
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765   as_fn_set_status $ac_retval
1766
1767 } # ac_fn_c_try_cpp
1768
1769 # ac_fn_c_try_run LINENO
1770 # ----------------------
1771 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1772 # that executables *can* be run.
1773 ac_fn_c_try_run ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   if { { ac_try="$ac_link"
1777 case "(($ac_try" in
1778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1779   *) ac_try_echo=$ac_try;;
1780 esac
1781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1782 $as_echo "$ac_try_echo"; } >&5
1783   (eval "$ac_link") 2>&5
1784   ac_status=$?
1785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1786   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1787   { { case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_try") 2>&5
1794   ac_status=$?
1795   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796   test $ac_status = 0; }; }; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: program exited with status $ac_status" >&5
1800        $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1802
1803        ac_retval=$ac_status
1804 fi
1805   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1806   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807   as_fn_set_status $ac_retval
1808
1809 } # ac_fn_c_try_run
1810
1811 # ac_fn_c_check_func LINENO FUNC VAR
1812 # ----------------------------------
1813 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1814 ac_fn_c_check_func ()
1815 {
1816   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if eval \${$3+:} false; then :
1820   $as_echo_n "(cached) " >&6
1821 else
1822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h.  */
1824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1825    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1826 #define $2 innocuous_$2
1827
1828 /* System header to define __stub macros and hopefully few prototypes,
1829     which can conflict with char $2 (); below.
1830     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1831     <limits.h> exists even on freestanding compilers.  */
1832
1833 #ifdef __STDC__
1834 # include <limits.h>
1835 #else
1836 # include <assert.h>
1837 #endif
1838
1839 #undef $2
1840
1841 /* Override any GCC internal prototype to avoid an error.
1842    Use char because int might match the return type of a GCC
1843    builtin and then its argument prototype would still apply.  */
1844 #ifdef __cplusplus
1845 extern "C"
1846 #endif
1847 char $2 ();
1848 /* The GNU C library defines this for functions which it implements
1849     to always fail with ENOSYS.  Some functions are actually named
1850     something starting with __ and the normal name is an alias.  */
1851 #if defined __stub_$2 || defined __stub___$2
1852 choke me
1853 #endif
1854
1855 int
1856 main ()
1857 {
1858 return $2 ();
1859   ;
1860   return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_link "$LINENO"; then :
1864   eval "$3=yes"
1865 else
1866   eval "$3=no"
1867 fi
1868 rm -f core conftest.err conftest.$ac_objext \
1869     conftest$ac_exeext conftest.$ac_ext
1870 fi
1871 eval ac_res=\$$3
1872                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875
1876 } # ac_fn_c_check_func
1877
1878 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1879 # --------------------------------------------
1880 # Tries to find the compile-time value of EXPR in a program that includes
1881 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1882 # computed
1883 ac_fn_c_compute_int ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   if test "$cross_compiling" = yes; then
1887     # Depending upon the size, compute the lo and hi bounds.
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 int
1892 main ()
1893 {
1894 static int test_array [1 - 2 * !(($2) >= 0)];
1895 test_array [0] = 0;
1896 return test_array [0];
1897
1898   ;
1899   return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"; then :
1903   ac_lo=0 ac_mid=0
1904   while :; do
1905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h.  */
1907 $4
1908 int
1909 main ()
1910 {
1911 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1912 test_array [0] = 0;
1913 return test_array [0];
1914
1915   ;
1916   return 0;
1917 }
1918 _ACEOF
1919 if ac_fn_c_try_compile "$LINENO"; then :
1920   ac_hi=$ac_mid; break
1921 else
1922   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1923                         if test $ac_lo -le $ac_mid; then
1924                           ac_lo= ac_hi=
1925                           break
1926                         fi
1927                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1928 fi
1929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930   done
1931 else
1932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h.  */
1934 $4
1935 int
1936 main ()
1937 {
1938 static int test_array [1 - 2 * !(($2) < 0)];
1939 test_array [0] = 0;
1940 return test_array [0];
1941
1942   ;
1943   return 0;
1944 }
1945 _ACEOF
1946 if ac_fn_c_try_compile "$LINENO"; then :
1947   ac_hi=-1 ac_mid=-1
1948   while :; do
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) >= $ac_mid)];
1956 test_array [0] = 0;
1957 return test_array [0];
1958
1959   ;
1960   return 0;
1961 }
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964   ac_lo=$ac_mid; break
1965 else
1966   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1967                         if test $ac_mid -le $ac_hi; then
1968                           ac_lo= ac_hi=
1969                           break
1970                         fi
1971                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1972 fi
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974   done
1975 else
1976   ac_lo= ac_hi=
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 # Binary search between lo and hi bounds.
1982 while test "x$ac_lo" != "x$ac_hi"; do
1983   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h.  */
1986 $4
1987 int
1988 main ()
1989 {
1990 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1991 test_array [0] = 0;
1992 return test_array [0];
1993
1994   ;
1995   return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   ac_hi=$ac_mid
2000 else
2001   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 done
2005 case $ac_lo in #((
2006 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2007 '') ac_retval=1 ;;
2008 esac
2009   else
2010     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 $4
2013 static long int longval () { return $2; }
2014 static unsigned long int ulongval () { return $2; }
2015 #include <stdio.h>
2016 #include <stdlib.h>
2017 int
2018 main ()
2019 {
2020
2021   FILE *f = fopen ("conftest.val", "w");
2022   if (! f)
2023     return 1;
2024   if (($2) < 0)
2025     {
2026       long int i = longval ();
2027       if (i != ($2))
2028         return 1;
2029       fprintf (f, "%ld", i);
2030     }
2031   else
2032     {
2033       unsigned long int i = ulongval ();
2034       if (i != ($2))
2035         return 1;
2036       fprintf (f, "%lu", i);
2037     }
2038   /* Do not output a trailing newline, as this causes \r\n confusion
2039      on some platforms.  */
2040   return ferror (f) || fclose (f) != 0;
2041
2042   ;
2043   return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_run "$LINENO"; then :
2047   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2048 else
2049   ac_retval=1
2050 fi
2051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2052   conftest.$ac_objext conftest.beam conftest.$ac_ext
2053 rm -f conftest.val
2054
2055   fi
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057   as_fn_set_status $ac_retval
2058
2059 } # ac_fn_c_compute_int
2060
2061 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2062 # -------------------------------------------------------
2063 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2064 # the include files in INCLUDES and setting the cache variable VAR
2065 # accordingly.
2066 ac_fn_c_check_header_mongrel ()
2067 {
2068   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069   if eval \${$3+:} false; then :
2070   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073   $as_echo_n "(cached) " >&6
2074 fi
2075 eval ac_res=\$$3
2076                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077 $as_echo "$ac_res" >&6; }
2078 else
2079   # Is the header compilable?
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2081 $as_echo_n "checking $2 usability... " >&6; }
2082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083 /* end confdefs.h.  */
2084 $4
2085 #include <$2>
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088   ac_header_compiler=yes
2089 else
2090   ac_header_compiler=no
2091 fi
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2094 $as_echo "$ac_header_compiler" >&6; }
2095
2096 # Is the header present?
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2098 $as_echo_n "checking $2 presence... " >&6; }
2099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100 /* end confdefs.h.  */
2101 #include <$2>
2102 _ACEOF
2103 if ac_fn_c_try_cpp "$LINENO"; then :
2104   ac_header_preproc=yes
2105 else
2106   ac_header_preproc=no
2107 fi
2108 rm -f conftest.err conftest.i conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2110 $as_echo "$ac_header_preproc" >&6; }
2111
2112 # So?  What about this header?
2113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2114   yes:no: )
2115     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2116 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119     ;;
2120   no:yes:* )
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2122 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2124 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2126 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2128 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2129     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2130 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131 ( $as_echo "## ------------------------------------------------------ ##
2132 ## Report this to http://github.com/atgreen/libffi/issues ##
2133 ## ------------------------------------------------------ ##"
2134      ) | sed "s/^/$as_me: WARNING:     /" >&2
2135     ;;
2136 esac
2137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140   $as_echo_n "(cached) " >&6
2141 else
2142   eval "$3=\$ac_header_compiler"
2143 fi
2144 eval ac_res=\$$3
2145                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 fi
2148   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149
2150 } # ac_fn_c_check_header_mongrel
2151
2152 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2153 # -------------------------------------------
2154 # Tests whether TYPE exists after having included INCLUDES, setting cache
2155 # variable VAR accordingly.
2156 ac_fn_c_check_type ()
2157 {
2158   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162   $as_echo_n "(cached) " >&6
2163 else
2164   eval "$3=no"
2165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h.  */
2167 $4
2168 int
2169 main ()
2170 {
2171 if (sizeof ($2))
2172          return 0;
2173   ;
2174   return 0;
2175 }
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 $4
2181 int
2182 main ()
2183 {
2184 if (sizeof (($2)))
2185             return 0;
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191
2192 else
2193   eval "$3=yes"
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 eval ac_res=\$$3
2200                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203
2204 } # ac_fn_c_check_type
2205 cat >config.log <<_ACEOF
2206 This file contains any messages produced by compilers while
2207 running configure, to aid debugging if configure makes a mistake.
2208
2209 It was created by libffi $as_me 3.0.13, which was
2210 generated by GNU Autoconf 2.69.  Invocation command line was
2211
2212   $ $0 $@
2213
2214 _ACEOF
2215 exec 5>>config.log
2216 {
2217 cat <<_ASUNAME
2218 ## --------- ##
2219 ## Platform. ##
2220 ## --------- ##
2221
2222 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2223 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2224 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2225 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2226 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2227
2228 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2229 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2230
2231 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2232 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2233 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2234 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2235 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2236 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2237 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2238
2239 _ASUNAME
2240
2241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242 for as_dir in $PATH
2243 do
2244   IFS=$as_save_IFS
2245   test -z "$as_dir" && as_dir=.
2246     $as_echo "PATH: $as_dir"
2247   done
2248 IFS=$as_save_IFS
2249
2250 } >&5
2251
2252 cat >&5 <<_ACEOF
2253
2254
2255 ## ----------- ##
2256 ## Core tests. ##
2257 ## ----------- ##
2258
2259 _ACEOF
2260
2261
2262 # Keep a trace of the command line.
2263 # Strip out --no-create and --no-recursion so they do not pile up.
2264 # Strip out --silent because we don't want to record it for future runs.
2265 # Also quote any args containing shell meta-characters.
2266 # Make two passes to allow for proper duplicate-argument suppression.
2267 ac_configure_args=
2268 ac_configure_args0=
2269 ac_configure_args1=
2270 ac_must_keep_next=false
2271 for ac_pass in 1 2
2272 do
2273   for ac_arg
2274   do
2275     case $ac_arg in
2276     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2277     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2278     | -silent | --silent | --silen | --sile | --sil)
2279       continue ;;
2280     *\'*)
2281       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2282     esac
2283     case $ac_pass in
2284     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2285     2)
2286       as_fn_append ac_configure_args1 " '$ac_arg'"
2287       if test $ac_must_keep_next = true; then
2288         ac_must_keep_next=false # Got value, back to normal.
2289       else
2290         case $ac_arg in
2291           *=* | --config-cache | -C | -disable-* | --disable-* \
2292           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2293           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2294           | -with-* | --with-* | -without-* | --without-* | --x)
2295             case "$ac_configure_args0 " in
2296               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2297             esac
2298             ;;
2299           -* ) ac_must_keep_next=true ;;
2300         esac
2301       fi
2302       as_fn_append ac_configure_args " '$ac_arg'"
2303       ;;
2304     esac
2305   done
2306 done
2307 { ac_configure_args0=; unset ac_configure_args0;}
2308 { ac_configure_args1=; unset ac_configure_args1;}
2309
2310 # When interrupted or exit'd, cleanup temporary files, and complete
2311 # config.log.  We remove comments because anyway the quotes in there
2312 # would cause problems or look ugly.
2313 # WARNING: Use '\'' to represent an apostrophe within the trap.
2314 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2315 trap 'exit_status=$?
2316   # Save into config.log some information that might help in debugging.
2317   {
2318     echo
2319
2320     $as_echo "## ---------------- ##
2321 ## Cache variables. ##
2322 ## ---------------- ##"
2323     echo
2324     # The following way of writing the cache mishandles newlines in values,
2325 (
2326   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2327     eval ac_val=\$$ac_var
2328     case $ac_val in #(
2329     *${as_nl}*)
2330       case $ac_var in #(
2331       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2332 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2333       esac
2334       case $ac_var in #(
2335       _ | IFS | as_nl) ;; #(
2336       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2337       *) { eval $ac_var=; unset $ac_var;} ;;
2338       esac ;;
2339     esac
2340   done
2341   (set) 2>&1 |
2342     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2343     *${as_nl}ac_space=\ *)
2344       sed -n \
2345         "s/'\''/'\''\\\\'\'''\''/g;
2346           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2347       ;; #(
2348     *)
2349       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2350       ;;
2351     esac |
2352     sort
2353 )
2354     echo
2355
2356     $as_echo "## ----------------- ##
2357 ## Output variables. ##
2358 ## ----------------- ##"
2359     echo
2360     for ac_var in $ac_subst_vars
2361     do
2362       eval ac_val=\$$ac_var
2363       case $ac_val in
2364       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2365       esac
2366       $as_echo "$ac_var='\''$ac_val'\''"
2367     done | sort
2368     echo
2369
2370     if test -n "$ac_subst_files"; then
2371       $as_echo "## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##"
2374       echo
2375       for ac_var in $ac_subst_files
2376       do
2377         eval ac_val=\$$ac_var
2378         case $ac_val in
2379         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2380         esac
2381         $as_echo "$ac_var='\''$ac_val'\''"
2382       done | sort
2383       echo
2384     fi
2385
2386     if test -s confdefs.h; then
2387       $as_echo "## ----------- ##
2388 ## confdefs.h. ##
2389 ## ----------- ##"
2390       echo
2391       cat confdefs.h
2392       echo
2393     fi
2394     test "$ac_signal" != 0 &&
2395       $as_echo "$as_me: caught signal $ac_signal"
2396     $as_echo "$as_me: exit $exit_status"
2397   } >&5
2398   rm -f core *.core core.conftest.* &&
2399     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2400     exit $exit_status
2401 ' 0
2402 for ac_signal in 1 2 13 15; do
2403   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2404 done
2405 ac_signal=0
2406
2407 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2408 rm -f -r conftest* confdefs.h
2409
2410 $as_echo "/* confdefs.h */" > confdefs.h
2411
2412 # Predefined preprocessor variables.
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_NAME "$PACKAGE_NAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_STRING "$PACKAGE_STRING"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_URL "$PACKAGE_URL"
2436 _ACEOF
2437
2438
2439 # Let the site file select an alternate cache file if it wants to.
2440 # Prefer an explicitly selected file to automatically selected ones.
2441 ac_site_file1=NONE
2442 ac_site_file2=NONE
2443 if test -n "$CONFIG_SITE"; then
2444   # We do not want a PATH search for config.site.
2445   case $CONFIG_SITE in #((
2446     -*)  ac_site_file1=./$CONFIG_SITE;;
2447     */*) ac_site_file1=$CONFIG_SITE;;
2448     *)   ac_site_file1=./$CONFIG_SITE;;
2449   esac
2450 elif test "x$prefix" != xNONE; then
2451   ac_site_file1=$prefix/share/config.site
2452   ac_site_file2=$prefix/etc/config.site
2453 else
2454   ac_site_file1=$ac_default_prefix/share/config.site
2455   ac_site_file2=$ac_default_prefix/etc/config.site
2456 fi
2457 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2458 do
2459   test "x$ac_site_file" = xNONE && continue
2460   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2461     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2462 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2463     sed 's/^/| /' "$ac_site_file" >&5
2464     . "$ac_site_file" \
2465       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 as_fn_error $? "failed to load site script $ac_site_file
2468 See \`config.log' for more details" "$LINENO" 5; }
2469   fi
2470 done
2471
2472 if test -r "$cache_file"; then
2473   # Some versions of bash will fail to source /dev/null (special files
2474   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2475   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2476     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2477 $as_echo "$as_me: loading cache $cache_file" >&6;}
2478     case $cache_file in
2479       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2480       *)                      . "./$cache_file";;
2481     esac
2482   fi
2483 else
2484   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2485 $as_echo "$as_me: creating cache $cache_file" >&6;}
2486   >$cache_file
2487 fi
2488
2489 # Check that the precious variables saved in the cache have kept the same
2490 # value.
2491 ac_cache_corrupted=false
2492 for ac_var in $ac_precious_vars; do
2493   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2494   eval ac_new_set=\$ac_env_${ac_var}_set
2495   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2496   eval ac_new_val=\$ac_env_${ac_var}_value
2497   case $ac_old_set,$ac_new_set in
2498     set,)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,set)
2503       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2504 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2505       ac_cache_corrupted=: ;;
2506     ,);;
2507     *)
2508       if test "x$ac_old_val" != "x$ac_new_val"; then
2509         # differences in whitespace do not lead to failure.
2510         ac_old_val_w=`echo x $ac_old_val`
2511         ac_new_val_w=`echo x $ac_new_val`
2512         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2514 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2515           ac_cache_corrupted=:
2516         else
2517           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2518 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2519           eval $ac_var=\$ac_old_val
2520         fi
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2522 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2523         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2524 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2525       fi;;
2526   esac
2527   # Pass precious variables to config.status.
2528   if test "$ac_new_set" = set; then
2529     case $ac_new_val in
2530     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2531     *) ac_arg=$ac_var=$ac_new_val ;;
2532     esac
2533     case " $ac_configure_args " in
2534       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2535       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2536     esac
2537   fi
2538 done
2539 if $ac_cache_corrupted; then
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2543 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2544   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2545 fi
2546 ## -------------------- ##
2547 ## Main body of script. ##
2548 ## -------------------- ##
2549
2550 ac_ext=c
2551 ac_cpp='$CPP $CPPFLAGS'
2552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2555
2556
2557 ac_config_headers="$ac_config_headers fficonfig.h"
2558
2559
2560 ac_aux_dir=
2561 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2562   if test -f "$ac_dir/install-sh"; then
2563     ac_aux_dir=$ac_dir
2564     ac_install_sh="$ac_aux_dir/install-sh -c"
2565     break
2566   elif test -f "$ac_dir/install.sh"; then
2567     ac_aux_dir=$ac_dir
2568     ac_install_sh="$ac_aux_dir/install.sh -c"
2569     break
2570   elif test -f "$ac_dir/shtool"; then
2571     ac_aux_dir=$ac_dir
2572     ac_install_sh="$ac_aux_dir/shtool install -c"
2573     break
2574   fi
2575 done
2576 if test -z "$ac_aux_dir"; then
2577   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2578 fi
2579
2580 # These three variables are undocumented and unsupported,
2581 # and are intended to be withdrawn in a future Autoconf release.
2582 # They can cause serious problems if a builder's source tree is in a directory
2583 # whose full name contains unusual characters.
2584 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2585 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2586 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2587
2588
2589 # Make sure we can run config.sub.
2590 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2591   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2592
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2594 $as_echo_n "checking build system type... " >&6; }
2595 if ${ac_cv_build+:} false; then :
2596   $as_echo_n "(cached) " >&6
2597 else
2598   ac_build_alias=$build_alias
2599 test "x$ac_build_alias" = x &&
2600   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2601 test "x$ac_build_alias" = x &&
2602   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2603 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2604   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2605
2606 fi
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2608 $as_echo "$ac_cv_build" >&6; }
2609 case $ac_cv_build in
2610 *-*-*) ;;
2611 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2612 esac
2613 build=$ac_cv_build
2614 ac_save_IFS=$IFS; IFS='-'
2615 set x $ac_cv_build
2616 shift
2617 build_cpu=$1
2618 build_vendor=$2
2619 shift; shift
2620 # Remember, the first character of IFS is used to create $*,
2621 # except with old shells:
2622 build_os=$*
2623 IFS=$ac_save_IFS
2624 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2625
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2628 $as_echo_n "checking host system type... " >&6; }
2629 if ${ac_cv_host+:} false; then :
2630   $as_echo_n "(cached) " >&6
2631 else
2632   if test "x$host_alias" = x; then
2633   ac_cv_host=$ac_cv_build
2634 else
2635   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2636     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2637 fi
2638
2639 fi
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2641 $as_echo "$ac_cv_host" >&6; }
2642 case $ac_cv_host in
2643 *-*-*) ;;
2644 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2645 esac
2646 host=$ac_cv_host
2647 ac_save_IFS=$IFS; IFS='-'
2648 set x $ac_cv_host
2649 shift
2650 host_cpu=$1
2651 host_vendor=$2
2652 shift; shift
2653 # Remember, the first character of IFS is used to create $*,
2654 # except with old shells:
2655 host_os=$*
2656 IFS=$ac_save_IFS
2657 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2658
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2661 $as_echo_n "checking target system type... " >&6; }
2662 if ${ac_cv_target+:} false; then :
2663   $as_echo_n "(cached) " >&6
2664 else
2665   if test "x$target_alias" = x; then
2666   ac_cv_target=$ac_cv_host
2667 else
2668   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2669     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2670 fi
2671
2672 fi
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2674 $as_echo "$ac_cv_target" >&6; }
2675 case $ac_cv_target in
2676 *-*-*) ;;
2677 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2678 esac
2679 target=$ac_cv_target
2680 ac_save_IFS=$IFS; IFS='-'
2681 set x $ac_cv_target
2682 shift
2683 target_cpu=$1
2684 target_vendor=$2
2685 shift; shift
2686 # Remember, the first character of IFS is used to create $*,
2687 # except with old shells:
2688 target_os=$*
2689 IFS=$ac_save_IFS
2690 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2691
2692
2693 # The aliases save the names the user supplied, while $host etc.
2694 # will get canonicalized.
2695 test -n "$target_alias" &&
2696   test "$program_prefix$program_suffix$program_transform_name" = \
2697     NONENONEs,x,x, &&
2698   program_prefix=${target_alias}-
2699
2700 target_alias=${target_alias-$host_alias}
2701
2702 . ${srcdir}/configure.host
2703
2704
2705    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2706    if test "${ac_configure_args+set}" != "set" ; then
2707       ac_configure_args=
2708       for ac_arg in ${1+"$@"}; do
2709          ac_configure_args="$ac_configure_args '$ac_arg'"
2710       done
2711    fi
2712
2713 # expand $ac_aux_dir to an absolute path
2714 am_aux_dir=`cd $ac_aux_dir && pwd`
2715
2716
2717 ax_enable_builddir="."
2718 # Check whether --enable-builddir was given.
2719 if test "${enable_builddir+set}" = set; then :
2720   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2721 else
2722   ax_enable_builddir="auto"
2723 fi
2724
2725 if test ".$ac_srcdir_defaulted" != ".no" ; then
2726 if test ".$srcdir" = ".." ; then
2727   if test -f config.status ; then
2728     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2729 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2730   else
2731     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2732     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2733     test ".$TARGET" = "." && TARGET="$target"
2734     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2735     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2736       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2737       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2738       cd $ax_enable_builddir
2739       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2740         rm conftest.tmp
2741         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2742 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2743       else
2744         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2745       fi
2746       srcdir=`echo "$ax_enable_builddir" |
2747               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2748       # going to restart from subdirectory location
2749       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2750       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2751       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2752       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2753       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2754 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2755       case "$0" in # restart
2756        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2757        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2758       esac ; exit $?
2759     fi
2760   fi
2761 fi fi
2762 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2763 # Extract the first word of "gsed sed", so it can be a program name with args.
2764 set dummy gsed sed; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2768   $as_echo_n "(cached) " >&6
2769 else
2770   case $ax_enable_builddir_sed in
2771   [\\/]* | ?:[\\/]*)
2772   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2773   ;;
2774   *)
2775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2777 do
2778   IFS=$as_save_IFS
2779   test -z "$as_dir" && as_dir=.
2780     for ac_exec_ext in '' $ac_executable_extensions; do
2781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2782     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784     break 2
2785   fi
2786 done
2787   done
2788 IFS=$as_save_IFS
2789
2790   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2791   ;;
2792 esac
2793 fi
2794 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2795 if test -n "$ax_enable_builddir_sed"; then
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2797 $as_echo "$ax_enable_builddir_sed" >&6; }
2798 else
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 ax_enable_builddir_auxdir="$am_aux_dir"
2805 ac_config_commands="$ac_config_commands buildir"
2806
2807
2808 am__api_version='1.12'
2809
2810 # Find a good install program.  We prefer a C program (faster),
2811 # so one script is as good as another.  But avoid the broken or
2812 # incompatible versions:
2813 # SysV /etc/install, /usr/sbin/install
2814 # SunOS /usr/etc/install
2815 # IRIX /sbin/install
2816 # AIX /bin/install
2817 # AmigaOS /C/install, which installs bootblocks on floppy discs
2818 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2819 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2820 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2821 # OS/2's system install, which has a completely different semantic
2822 # ./install, which can be erroneously created by make from ./install.sh.
2823 # Reject install programs that cannot install multiple files.
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2825 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2826 if test -z "$INSTALL"; then
2827 if ${ac_cv_path_install+:} false; then :
2828   $as_echo_n "(cached) " >&6
2829 else
2830   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2832 do
2833   IFS=$as_save_IFS
2834   test -z "$as_dir" && as_dir=.
2835     # Account for people who put trailing slashes in PATH elements.
2836 case $as_dir/ in #((
2837   ./ | .// | /[cC]/* | \
2838   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2839   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2840   /usr/ucb/* ) ;;
2841   *)
2842     # OSF1 and SCO ODT 3.0 have their own names for install.
2843     # Don't use installbsd from OSF since it installs stuff as root
2844     # by default.
2845     for ac_prog in ginstall scoinst install; do
2846       for ac_exec_ext in '' $ac_executable_extensions; do
2847         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2848           if test $ac_prog = install &&
2849             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850             # AIX install.  It has an incompatible calling convention.
2851             :
2852           elif test $ac_prog = install &&
2853             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2854             # program-specific install script used by HP pwplus--don't use.
2855             :
2856           else
2857             rm -rf conftest.one conftest.two conftest.dir
2858             echo one > conftest.one
2859             echo two > conftest.two
2860             mkdir conftest.dir
2861             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2862               test -s conftest.one && test -s conftest.two &&
2863               test -s conftest.dir/conftest.one &&
2864               test -s conftest.dir/conftest.two
2865             then
2866               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2867               break 3
2868             fi
2869           fi
2870         fi
2871       done
2872     done
2873     ;;
2874 esac
2875
2876   done
2877 IFS=$as_save_IFS
2878
2879 rm -rf conftest.one conftest.two conftest.dir
2880
2881 fi
2882   if test "${ac_cv_path_install+set}" = set; then
2883     INSTALL=$ac_cv_path_install
2884   else
2885     # As a last resort, use the slow shell script.  Don't cache a
2886     # value for INSTALL within a source directory, because that will
2887     # break other packages using the cache if that directory is
2888     # removed, or if the value is a relative name.
2889     INSTALL=$ac_install_sh
2890   fi
2891 fi
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2893 $as_echo "$INSTALL" >&6; }
2894
2895 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2896 # It thinks the first close brace ends the variable substitution.
2897 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2898
2899 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2900
2901 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2902
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2904 $as_echo_n "checking whether build environment is sane... " >&6; }
2905 # Reject unsafe characters in $srcdir or the absolute working directory
2906 # name.  Accept space and tab only in the latter.
2907 am_lf='
2908 '
2909 case `pwd` in
2910   *[\\\"\#\$\&\'\`$am_lf]*)
2911     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2912 esac
2913 case $srcdir in
2914   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2915     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2916 esac
2917
2918 # Do 'set' in a subshell so we don't clobber the current shell's
2919 # arguments.  Must try -L first in case configure is actually a
2920 # symlink; some systems play weird games with the mod time of symlinks
2921 # (eg FreeBSD returns the mod time of the symlink's containing
2922 # directory).
2923 if (
2924    am_has_slept=no
2925    for am_try in 1 2; do
2926      echo "timestamp, slept: $am_has_slept" > conftest.file
2927      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2928      if test "$*" = "X"; then
2929         # -L didn't work.
2930         set X `ls -t "$srcdir/configure" conftest.file`
2931      fi
2932      if test "$*" != "X $srcdir/configure conftest.file" \
2933         && test "$*" != "X conftest.file $srcdir/configure"; then
2934
2935         # If neither matched, then we have a broken ls.  This can happen
2936         # if, for instance, CONFIG_SHELL is bash and it inherits a
2937         # broken ls alias from the environment.  This has actually
2938         # happened.  Such a system could not be considered "sane".
2939         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2940   alias in your environment" "$LINENO" 5
2941      fi
2942      if test "$2" = conftest.file || test $am_try -eq 2; then
2943        break
2944      fi
2945      # Just in case.
2946      sleep 1
2947      am_has_slept=yes
2948    done
2949    test "$2" = conftest.file
2950    )
2951 then
2952    # Ok.
2953    :
2954 else
2955    as_fn_error $? "newly created file is older than distributed files!
2956 Check your system clock" "$LINENO" 5
2957 fi
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2959 $as_echo "yes" >&6; }
2960 # If we didn't sleep, we still need to ensure time stamps of config.status and
2961 # generated files are strictly newer.
2962 am_sleep_pid=
2963 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2964   ( sleep 1 ) &
2965   am_sleep_pid=$!
2966 fi
2967
2968 rm -f conftest.file
2969
2970 test "$program_prefix" != NONE &&
2971   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2972 # Use a double $ so make ignores it.
2973 test "$program_suffix" != NONE &&
2974   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2975 # Double any \ or $.
2976 # By default was `s,x,x', remove it if useless.
2977 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2978 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2979
2980 if test x"${MISSING+set}" != xset; then
2981   case $am_aux_dir in
2982   *\ * | *\     *)
2983     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2984   *)
2985     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2986   esac
2987 fi
2988 # Use eval to expand $SHELL
2989 if eval "$MISSING --run true"; then
2990   am_missing_run="$MISSING --run "
2991 else
2992   am_missing_run=
2993   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2994 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2995 fi
2996
2997 if test x"${install_sh}" != xset; then
2998   case $am_aux_dir in
2999   *\ * | *\     *)
3000     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3001   *)
3002     install_sh="\${SHELL} $am_aux_dir/install-sh"
3003   esac
3004 fi
3005
3006 # Installed binaries are usually stripped using 'strip' when the user
3007 # run "make install-strip".  However 'strip' might not be the right
3008 # tool to use in cross-compilation environments, therefore Automake
3009 # will honor the 'STRIP' environment variable to overrule this program.
3010 if test "$cross_compiling" != no; then
3011   if test -n "$ac_tool_prefix"; then
3012   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3013 set dummy ${ac_tool_prefix}strip; ac_word=$2
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3015 $as_echo_n "checking for $ac_word... " >&6; }
3016 if ${ac_cv_prog_STRIP+:} false; then :
3017   $as_echo_n "(cached) " >&6
3018 else
3019   if test -n "$STRIP"; then
3020   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3021 else
3022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 for as_dir in $PATH
3024 do
3025   IFS=$as_save_IFS
3026   test -z "$as_dir" && as_dir=.
3027     for ac_exec_ext in '' $ac_executable_extensions; do
3028   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3029     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3030     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031     break 2
3032   fi
3033 done
3034   done
3035 IFS=$as_save_IFS
3036
3037 fi
3038 fi
3039 STRIP=$ac_cv_prog_STRIP
3040 if test -n "$STRIP"; then
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3042 $as_echo "$STRIP" >&6; }
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3045 $as_echo "no" >&6; }
3046 fi
3047
3048
3049 fi
3050 if test -z "$ac_cv_prog_STRIP"; then
3051   ac_ct_STRIP=$STRIP
3052   # Extract the first word of "strip", so it can be a program name with args.
3053 set dummy strip; ac_word=$2
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3055 $as_echo_n "checking for $ac_word... " >&6; }
3056 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3057   $as_echo_n "(cached) " >&6
3058 else
3059   if test -n "$ac_ct_STRIP"; then
3060   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065   IFS=$as_save_IFS
3066   test -z "$as_dir" && as_dir=.
3067     for ac_exec_ext in '' $ac_executable_extensions; do
3068   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069     ac_cv_prog_ac_ct_STRIP="strip"
3070     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3071     break 2
3072   fi
3073 done
3074   done
3075 IFS=$as_save_IFS
3076
3077 fi
3078 fi
3079 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3080 if test -n "$ac_ct_STRIP"; then
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3082 $as_echo "$ac_ct_STRIP" >&6; }
3083 else
3084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3085 $as_echo "no" >&6; }
3086 fi
3087
3088   if test "x$ac_ct_STRIP" = x; then
3089     STRIP=":"
3090   else
3091     case $cross_compiling:$ac_tool_warned in
3092 yes:)
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3095 ac_tool_warned=yes ;;
3096 esac
3097     STRIP=$ac_ct_STRIP
3098   fi
3099 else
3100   STRIP="$ac_cv_prog_STRIP"
3101 fi
3102
3103 fi
3104 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3107 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3108 if test -z "$MKDIR_P"; then
3109   if ${ac_cv_path_mkdir+:} false; then :
3110   $as_echo_n "(cached) " >&6
3111 else
3112   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3114 do
3115   IFS=$as_save_IFS
3116   test -z "$as_dir" && as_dir=.
3117     for ac_prog in mkdir gmkdir; do
3118          for ac_exec_ext in '' $ac_executable_extensions; do
3119            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3120            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3121              'mkdir (GNU coreutils) '* | \
3122              'mkdir (coreutils) '* | \
3123              'mkdir (fileutils) '4.1*)
3124                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3125                break 3;;
3126            esac
3127          done
3128        done
3129   done
3130 IFS=$as_save_IFS
3131
3132 fi
3133
3134   test -d ./--version && rmdir ./--version
3135   if test "${ac_cv_path_mkdir+set}" = set; then
3136     MKDIR_P="$ac_cv_path_mkdir -p"
3137   else
3138     # As a last resort, use the slow shell script.  Don't cache a
3139     # value for MKDIR_P within a source directory, because that will
3140     # break other packages using the cache if that directory is
3141     # removed, or if the value is a relative name.
3142     MKDIR_P="$ac_install_sh -d"
3143   fi
3144 fi
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3146 $as_echo "$MKDIR_P" >&6; }
3147
3148 for ac_prog in gawk mawk nawk awk
3149 do
3150   # Extract the first word of "$ac_prog", so it can be a program name with args.
3151 set dummy $ac_prog; ac_word=$2
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3153 $as_echo_n "checking for $ac_word... " >&6; }
3154 if ${ac_cv_prog_AWK+:} false; then :
3155   $as_echo_n "(cached) " >&6
3156 else
3157   if test -n "$AWK"; then
3158   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3159 else
3160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161 for as_dir in $PATH
3162 do
3163   IFS=$as_save_IFS
3164   test -z "$as_dir" && as_dir=.
3165     for ac_exec_ext in '' $ac_executable_extensions; do
3166   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167     ac_cv_prog_AWK="$ac_prog"
3168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3169     break 2
3170   fi
3171 done
3172   done
3173 IFS=$as_save_IFS
3174
3175 fi
3176 fi
3177 AWK=$ac_cv_prog_AWK
3178 if test -n "$AWK"; then
3179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3180 $as_echo "$AWK" >&6; }
3181 else
3182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3184 fi
3185
3186
3187   test -n "$AWK" && break
3188 done
3189
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3191 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3192 set x ${MAKE-make}
3193 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3194 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3195   $as_echo_n "(cached) " >&6
3196 else
3197   cat >conftest.make <<\_ACEOF
3198 SHELL = /bin/sh
3199 all:
3200         @echo '@@@%%%=$(MAKE)=@@@%%%'
3201 _ACEOF
3202 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3203 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3204   *@@@%%%=?*=@@@%%%*)
3205     eval ac_cv_prog_make_${ac_make}_set=yes;;
3206   *)
3207     eval ac_cv_prog_make_${ac_make}_set=no;;
3208 esac
3209 rm -f conftest.make
3210 fi
3211 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3213 $as_echo "yes" >&6; }
3214   SET_MAKE=
3215 else
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3218   SET_MAKE="MAKE=${MAKE-make}"
3219 fi
3220
3221 rm -rf .tst 2>/dev/null
3222 mkdir .tst 2>/dev/null
3223 if test -d .tst; then
3224   am__leading_dot=.
3225 else
3226   am__leading_dot=_
3227 fi
3228 rmdir .tst 2>/dev/null
3229
3230 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3231   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3232   # is not polluted with repeated "-I."
3233   am__isrc=' -I$(srcdir)'
3234   # test to see if srcdir already configured
3235   if test -f $srcdir/config.status; then
3236     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3237   fi
3238 fi
3239
3240 # test whether we have cygpath
3241 if test -z "$CYGPATH_W"; then
3242   if (cygpath --version) >/dev/null 2>/dev/null; then
3243     CYGPATH_W='cygpath -w'
3244   else
3245     CYGPATH_W=echo
3246   fi
3247 fi
3248
3249
3250 # Define the identity of the package.
3251  PACKAGE='libffi'
3252  VERSION='3.0.13'
3253
3254
3255 cat >>confdefs.h <<_ACEOF
3256 #define PACKAGE "$PACKAGE"
3257 _ACEOF
3258
3259
3260 cat >>confdefs.h <<_ACEOF
3261 #define VERSION "$VERSION"
3262 _ACEOF
3263
3264 # Some tools Automake needs.
3265
3266 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3267
3268
3269 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3270
3271
3272 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3273
3274
3275 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3276
3277
3278 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3279
3280 # For better backward compatibility.  To be removed once Automake 1.9.x
3281 # dies out for good.  For more background, see:
3282 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3283 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3284 mkdir_p='$(MKDIR_P)'
3285
3286 # We need awk for the "check" target.  The system "awk" is bad on
3287 # some platforms.
3288 # Always define AMTAR for backward compatibility.  Yes, it's still used
3289 # in the wild :-(  We should find a proper way to deprecate it ...
3290 AMTAR='$${TAR-tar}'
3291
3292 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3293
3294
3295
3296
3297
3298
3299 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3300 # We must force CC to /not/ be precious variables; otherwise
3301 # the wrong, non-multilib-adjusted value will be used in multilibs.
3302 # As a side effect, we have to subst CFLAGS ourselves.
3303 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3304 # defaults of its own if none are provided.
3305
3306
3307
3308 save_CFLAGS=$CFLAGS
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3316 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318 $as_echo_n "checking for $ac_word... " >&6; }
3319 if ${ac_cv_prog_CC+:} false; then :
3320   $as_echo_n "(cached) " >&6
3321 else
3322   if test -n "$CC"; then
3323   ac_cv_prog_CC="$CC" # Let the user override the test.
3324 else
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334     break 2
3335   fi
3336 done
3337   done
3338 IFS=$as_save_IFS
3339
3340 fi
3341 fi
3342 CC=$ac_cv_prog_CC
3343 if test -n "$CC"; then
3344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3345 $as_echo "$CC" >&6; }
3346 else
3347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 fi
3350
3351
3352 fi
3353 if test -z "$ac_cv_prog_CC"; then
3354   ac_ct_CC=$CC
3355   # Extract the first word of "gcc", so it can be a program name with args.
3356 set dummy gcc; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3360   $as_echo_n "(cached) " >&6
3361 else
3362   if test -n "$ac_ct_CC"; then
3363   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3364 else
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366 for as_dir in $PATH
3367 do
3368   IFS=$as_save_IFS
3369   test -z "$as_dir" && as_dir=.
3370     for ac_exec_ext in '' $ac_executable_extensions; do
3371   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372     ac_cv_prog_ac_ct_CC="gcc"
3373     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374     break 2
3375   fi
3376 done
3377   done
3378 IFS=$as_save_IFS
3379
3380 fi
3381 fi
3382 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3383 if test -n "$ac_ct_CC"; then
3384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3385 $as_echo "$ac_ct_CC" >&6; }
3386 else
3387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388 $as_echo "no" >&6; }
3389 fi
3390
3391   if test "x$ac_ct_CC" = x; then
3392     CC=""
3393   else
3394     case $cross_compiling:$ac_tool_warned in
3395 yes:)
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3398 ac_tool_warned=yes ;;
3399 esac
3400     CC=$ac_ct_CC
3401   fi
3402 else
3403   CC="$ac_cv_prog_CC"
3404 fi
3405
3406 if test -z "$CC"; then
3407           if test -n "$ac_tool_prefix"; then
3408     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3409 set dummy ${ac_tool_prefix}cc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$CC"; then
3416   ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     ac_cv_prog_CC="${ac_tool_prefix}cc"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445   fi
3446 fi
3447 if test -z "$CC"; then
3448   # Extract the first word of "cc", so it can be a program name with args.
3449 set dummy cc; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if ${ac_cv_prog_CC+:} false; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test -n "$CC"; then
3456   ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458   ac_prog_rejected=no
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462   IFS=$as_save_IFS
3463   test -z "$as_dir" && as_dir=.
3464     for ac_exec_ext in '' $ac_executable_extensions; do
3465   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3467        ac_prog_rejected=yes
3468        continue
3469      fi
3470     ac_cv_prog_CC="cc"
3471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472     break 2
3473   fi
3474 done
3475   done
3476 IFS=$as_save_IFS
3477
3478 if test $ac_prog_rejected = yes; then
3479   # We found a bogon in the path, so make sure we never use it.
3480   set dummy $ac_cv_prog_CC
3481   shift
3482   if test $# != 0; then
3483     # We chose a different compiler from the bogus one.
3484     # However, it has the same basename, so the bogon will be chosen
3485     # first if we set CC to just the basename; use the full file name.
3486     shift
3487     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3488   fi
3489 fi
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3499 fi
3500
3501
3502 fi
3503 if test -z "$CC"; then
3504   if test -n "$ac_tool_prefix"; then
3505   for ac_prog in cl.exe
3506   do
3507     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3508 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if ${ac_cv_prog_CC+:} false; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$CC"; then
3515   ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3518 for as_dir in $PATH
3519 do
3520   IFS=$as_save_IFS
3521   test -z "$as_dir" && as_dir=.
3522     for ac_exec_ext in '' $ac_executable_extensions; do
3523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526     break 2
3527   fi
3528 done
3529   done
3530 IFS=$as_save_IFS
3531
3532 fi
3533 fi
3534 CC=$ac_cv_prog_CC
3535 if test -n "$CC"; then
3536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3538 else
3539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 fi
3542
3543
3544     test -n "$CC" && break
3545   done
3546 fi
3547 if test -z "$CC"; then
3548   ac_ct_CC=$CC
3549   for ac_prog in cl.exe
3550 do
3551   # Extract the first word of "$ac_prog", so it can be a program name with args.
3552 set dummy $ac_prog; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3556   $as_echo_n "(cached) " >&6
3557 else
3558   if test -n "$ac_ct_CC"; then
3559   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3563 do
3564   IFS=$as_save_IFS
3565   test -z "$as_dir" && as_dir=.
3566     for ac_exec_ext in '' $ac_executable_extensions; do
3567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568     ac_cv_prog_ac_ct_CC="$ac_prog"
3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570     break 2
3571   fi
3572 done
3573   done
3574 IFS=$as_save_IFS
3575
3576 fi
3577 fi
3578 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3579 if test -n "$ac_ct_CC"; then
3580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3581 $as_echo "$ac_ct_CC" >&6; }
3582 else
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 fi
3586
3587
3588   test -n "$ac_ct_CC" && break
3589 done
3590
3591   if test "x$ac_ct_CC" = x; then
3592     CC=""
3593   else
3594     case $cross_compiling:$ac_tool_warned in
3595 yes:)
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3598 ac_tool_warned=yes ;;
3599 esac
3600     CC=$ac_ct_CC
3601   fi
3602 fi
3603
3604 fi
3605
3606
3607 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "no acceptable C compiler found in \$PATH
3610 See \`config.log' for more details" "$LINENO" 5; }
3611
3612 # Provide some information about the compiler.
3613 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3614 set X $ac_compile
3615 ac_compiler=$2
3616 for ac_option in --version -v -V -qversion; do
3617   { { ac_try="$ac_compiler $ac_option >&5"
3618 case "(($ac_try" in
3619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3620   *) ac_try_echo=$ac_try;;
3621 esac
3622 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3623 $as_echo "$ac_try_echo"; } >&5
3624   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3625   ac_status=$?
3626   if test -s conftest.err; then
3627     sed '10a\
3628 ... rest of stderr output deleted ...
3629          10q' conftest.err >conftest.er1
3630     cat conftest.er1 >&5
3631   fi
3632   rm -f conftest.er1 conftest.err
3633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3634   test $ac_status = 0; }
3635 done
3636
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h.  */
3639
3640 int
3641 main ()
3642 {
3643
3644   ;
3645   return 0;
3646 }
3647 _ACEOF
3648 ac_clean_files_save=$ac_clean_files
3649 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3650 # Try to create an executable without -o first, disregard a.out.
3651 # It will help us diagnose broken compilers, and finding out an intuition
3652 # of exeext.
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3654 $as_echo_n "checking whether the C compiler works... " >&6; }
3655 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3656
3657 # The possible output files:
3658 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3659
3660 ac_rmfiles=
3661 for ac_file in $ac_files
3662 do
3663   case $ac_file in
3664     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3665     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3666   esac
3667 done
3668 rm -f $ac_rmfiles
3669
3670 if { { ac_try="$ac_link_default"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677   (eval "$ac_link_default") 2>&5
3678   ac_status=$?
3679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680   test $ac_status = 0; }; then :
3681   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3682 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3683 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3684 # so that the user can short-circuit this test for compilers unknown to
3685 # Autoconf.
3686 for ac_file in $ac_files ''
3687 do
3688   test -f "$ac_file" || continue
3689   case $ac_file in
3690     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3691         ;;
3692     [ab].out )
3693         # We found the default executable, but exeext='' is most
3694         # certainly right.
3695         break;;
3696     *.* )
3697         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3698         then :; else
3699            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3700         fi
3701         # We set ac_cv_exeext here because the later test for it is not
3702         # safe: cross compilers may not add the suffix if given an `-o'
3703         # argument, so we may need to know it at that point already.
3704         # Even if this section looks crufty: it has the advantage of
3705         # actually working.
3706         break;;
3707     * )
3708         break;;
3709   esac
3710 done
3711 test "$ac_cv_exeext" = no && ac_cv_exeext=
3712
3713 else
3714   ac_file=''
3715 fi
3716 if test -z "$ac_file"; then :
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error 77 "C compiler cannot create executables
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 else
3727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3728 $as_echo "yes" >&6; }
3729 fi
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3731 $as_echo_n "checking for C compiler default output file name... " >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3733 $as_echo "$ac_file" >&6; }
3734 ac_exeext=$ac_cv_exeext
3735
3736 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3737 ac_clean_files=$ac_clean_files_save
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3739 $as_echo_n "checking for suffix of executables... " >&6; }
3740 if { { ac_try="$ac_link"
3741 case "(($ac_try" in
3742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743   *) ac_try_echo=$ac_try;;
3744 esac
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747   (eval "$ac_link") 2>&5
3748   ac_status=$?
3749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750   test $ac_status = 0; }; then :
3751   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3752 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3753 # work properly (i.e., refer to `conftest.exe'), while it won't with
3754 # `rm'.
3755 for ac_file in conftest.exe conftest conftest.*; do
3756   test -f "$ac_file" || continue
3757   case $ac_file in
3758     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3759     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3760           break;;
3761     * ) break;;
3762   esac
3763 done
3764 else
3765   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3768 See \`config.log' for more details" "$LINENO" 5; }
3769 fi
3770 rm -f conftest conftest$ac_cv_exeext
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3772 $as_echo "$ac_cv_exeext" >&6; }
3773
3774 rm -f conftest.$ac_ext
3775 EXEEXT=$ac_cv_exeext
3776 ac_exeext=$EXEEXT
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h.  */
3779 #include <stdio.h>
3780 int
3781 main ()
3782 {
3783 FILE *f = fopen ("conftest.out", "w");
3784  return ferror (f) || fclose (f) != 0;
3785
3786   ;
3787   return 0;
3788 }
3789 _ACEOF
3790 ac_clean_files="$ac_clean_files conftest.out"
3791 # Check that the compiler produces executables we can run.  If not, either
3792 # the compiler is broken, or we cross compile.
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3794 $as_echo_n "checking whether we are cross compiling... " >&6; }
3795 if test "$cross_compiling" != yes; then
3796   { { ac_try="$ac_link"
3797 case "(($ac_try" in
3798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799   *) ac_try_echo=$ac_try;;
3800 esac
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803   (eval "$ac_link") 2>&5
3804   ac_status=$?
3805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806   test $ac_status = 0; }
3807   if { ac_try='./conftest$ac_cv_exeext'
3808   { { case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814   (eval "$ac_try") 2>&5
3815   ac_status=$?
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }; }; then
3818     cross_compiling=no
3819   else
3820     if test "$cross_compiling" = maybe; then
3821         cross_compiling=yes
3822     else
3823         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 as_fn_error $? "cannot run C compiled programs.
3826 If you meant to cross compile, use \`--host'.
3827 See \`config.log' for more details" "$LINENO" 5; }
3828     fi
3829   fi
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3832 $as_echo "$cross_compiling" >&6; }
3833
3834 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3835 ac_clean_files=$ac_clean_files_save
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3837 $as_echo_n "checking for suffix of object files... " >&6; }
3838 if ${ac_cv_objext+:} false; then :
3839   $as_echo_n "(cached) " >&6
3840 else
3841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h.  */
3843
3844 int
3845 main ()
3846 {
3847
3848   ;
3849   return 0;
3850 }
3851 _ACEOF
3852 rm -f conftest.o conftest.obj
3853 if { { ac_try="$ac_compile"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860   (eval "$ac_compile") 2>&5
3861   ac_status=$?
3862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863   test $ac_status = 0; }; then :
3864   for ac_file in conftest.o conftest.obj conftest.*; do
3865   test -f "$ac_file" || continue;
3866   case $ac_file in
3867     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3868     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3869        break;;
3870   esac
3871 done
3872 else
3873   $as_echo "$as_me: failed program was:" >&5
3874 sed 's/^/| /' conftest.$ac_ext >&5
3875
3876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot compute suffix of object files: cannot compile
3879 See \`config.log' for more details" "$LINENO" 5; }
3880 fi
3881 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3882 fi
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3884 $as_echo "$ac_cv_objext" >&6; }
3885 OBJEXT=$ac_cv_objext
3886 ac_objext=$OBJEXT
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3888 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3889 if ${ac_cv_c_compiler_gnu+:} false; then :
3890   $as_echo_n "(cached) " >&6
3891 else
3892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h.  */
3894
3895 int
3896 main ()
3897 {
3898 #ifndef __GNUC__
3899        choke me
3900 #endif
3901
3902   ;
3903   return 0;
3904 }
3905 _ACEOF
3906 if ac_fn_c_try_compile "$LINENO"; then :
3907   ac_compiler_gnu=yes
3908 else
3909   ac_compiler_gnu=no
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3913
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3916 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3917 if test $ac_compiler_gnu = yes; then
3918   GCC=yes
3919 else
3920   GCC=
3921 fi
3922 ac_test_CFLAGS=${CFLAGS+set}
3923 ac_save_CFLAGS=$CFLAGS
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3925 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3926 if ${ac_cv_prog_cc_g+:} false; then :
3927   $as_echo_n "(cached) " >&6
3928 else
3929   ac_save_c_werror_flag=$ac_c_werror_flag
3930    ac_c_werror_flag=yes
3931    ac_cv_prog_cc_g=no
3932    CFLAGS="-g"
3933    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h.  */
3935
3936 int
3937 main ()
3938 {
3939
3940   ;
3941   return 0;
3942 }
3943 _ACEOF
3944 if ac_fn_c_try_compile "$LINENO"; then :
3945   ac_cv_prog_cc_g=yes
3946 else
3947   CFLAGS=""
3948       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960
3961 else
3962   ac_c_werror_flag=$ac_save_c_werror_flag
3963          CFLAGS="-g"
3964          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h.  */
3966
3967 int
3968 main ()
3969 {
3970
3971   ;
3972   return 0;
3973 }
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976   ac_cv_prog_cc_g=yes
3977 fi
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 fi
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983    ac_c_werror_flag=$ac_save_c_werror_flag
3984 fi
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3986 $as_echo "$ac_cv_prog_cc_g" >&6; }
3987 if test "$ac_test_CFLAGS" = set; then
3988   CFLAGS=$ac_save_CFLAGS
3989 elif test $ac_cv_prog_cc_g = yes; then
3990   if test "$GCC" = yes; then
3991     CFLAGS="-g -O2"
3992   else
3993     CFLAGS="-g"
3994   fi
3995 else
3996   if test "$GCC" = yes; then
3997     CFLAGS="-O2"
3998   else
3999     CFLAGS=
4000   fi
4001 fi
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4003 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4004 if ${ac_cv_prog_cc_c89+:} false; then :
4005   $as_echo_n "(cached) " >&6
4006 else
4007   ac_cv_prog_cc_c89=no
4008 ac_save_CC=$CC
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h.  */
4011 #include <stdarg.h>
4012 #include <stdio.h>
4013 struct stat;
4014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4015 struct buf { int x; };
4016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4017 static char *e (p, i)
4018      char **p;
4019      int i;
4020 {
4021   return p[i];
4022 }
4023 static char *f (char * (*g) (char **, int), char **p, ...)
4024 {
4025   char *s;
4026   va_list v;
4027   va_start (v,p);
4028   s = g (p, va_arg (v,int));
4029   va_end (v);
4030   return s;
4031 }
4032
4033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4034    function prototypes and stuff, but not '\xHH' hex character constants.
4035    These don't provoke an error unfortunately, instead are silently treated
4036    as 'x'.  The following induces an error, until -std is added to get
4037    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4038    array size at least.  It's necessary to write '\x00'==0 to get something
4039    that's true only with -std.  */
4040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4041
4042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4043    inside strings and character constants.  */
4044 #define FOO(x) 'x'
4045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4046
4047 int test (int i, double x);
4048 struct s1 {int (*f) (int a);};
4049 struct s2 {int (*f) (double a);};
4050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4051 int argc;
4052 char **argv;
4053 int
4054 main ()
4055 {
4056 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4057   ;
4058   return 0;
4059 }
4060 _ACEOF
4061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4062         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4063 do
4064   CC="$ac_save_CC $ac_arg"
4065   if ac_fn_c_try_compile "$LINENO"; then :
4066   ac_cv_prog_cc_c89=$ac_arg
4067 fi
4068 rm -f core conftest.err conftest.$ac_objext
4069   test "x$ac_cv_prog_cc_c89" != "xno" && break
4070 done
4071 rm -f conftest.$ac_ext
4072 CC=$ac_save_CC
4073
4074 fi
4075 # AC_CACHE_VAL
4076 case "x$ac_cv_prog_cc_c89" in
4077   x)
4078     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4079 $as_echo "none needed" >&6; } ;;
4080   xno)
4081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4082 $as_echo "unsupported" >&6; } ;;
4083   *)
4084     CC="$CC $ac_cv_prog_cc_c89"
4085     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4086 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4087 esac
4088 if test "x$ac_cv_prog_cc_c89" != xno; then :
4089
4090 fi
4091
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 DEPDIR="${am__leading_dot}deps"
4098
4099 ac_config_commands="$ac_config_commands depfiles"
4100
4101
4102 am_make=${MAKE-make}
4103 cat > confinc << 'END'
4104 am__doit:
4105         @echo this is the am__doit target
4106 .PHONY: am__doit
4107 END
4108 # If we don't find an include directive, just comment out the code.
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4110 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4111 am__include="#"
4112 am__quote=
4113 _am_result=none
4114 # First try GNU make style include.
4115 echo "include confinc" > confmf
4116 # Ignore all kinds of additional output from 'make'.
4117 case `$am_make -s -f confmf 2> /dev/null` in #(
4118 *the\ am__doit\ target*)
4119   am__include=include
4120   am__quote=
4121   _am_result=GNU
4122   ;;
4123 esac
4124 # Now try BSD make style include.
4125 if test "$am__include" = "#"; then
4126    echo '.include "confinc"' > confmf
4127    case `$am_make -s -f confmf 2> /dev/null` in #(
4128    *the\ am__doit\ target*)
4129      am__include=.include
4130      am__quote="\""
4131      _am_result=BSD
4132      ;;
4133    esac
4134 fi
4135
4136
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4138 $as_echo "$_am_result" >&6; }
4139 rm -f confinc confmf
4140
4141 # Check whether --enable-dependency-tracking was given.
4142 if test "${enable_dependency_tracking+set}" = set; then :
4143   enableval=$enable_dependency_tracking;
4144 fi
4145
4146 if test "x$enable_dependency_tracking" != xno; then
4147   am_depcomp="$ac_aux_dir/depcomp"
4148   AMDEPBACKSLASH='\'
4149   am__nodep='_no'
4150 fi
4151  if test "x$enable_dependency_tracking" != xno; then
4152   AMDEP_TRUE=
4153   AMDEP_FALSE='#'
4154 else
4155   AMDEP_TRUE='#'
4156   AMDEP_FALSE=
4157 fi
4158
4159
4160
4161 depcc="$CC"   am_compiler_list=
4162
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4164 $as_echo_n "checking dependency style of $depcc... " >&6; }
4165 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4166   $as_echo_n "(cached) " >&6
4167 else
4168   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4169   # We make a subdir and do the tests there.  Otherwise we can end up
4170   # making bogus files that we don't know about and never remove.  For
4171   # instance it was reported that on HP-UX the gcc test will end up
4172   # making a dummy file named 'D' -- because '-MD' means "put the output
4173   # in D".
4174   rm -rf conftest.dir
4175   mkdir conftest.dir
4176   # Copy depcomp to subdir because otherwise we won't find it if we're
4177   # using a relative directory.
4178   cp "$am_depcomp" conftest.dir
4179   cd conftest.dir
4180   # We will build objects and dependencies in a subdirectory because
4181   # it helps to detect inapplicable dependency modes.  For instance
4182   # both Tru64's cc and ICC support -MD to output dependencies as a
4183   # side effect of compilation, but ICC will put the dependencies in
4184   # the current directory while Tru64 will put them in the object
4185   # directory.
4186   mkdir sub
4187
4188   am_cv_CC_dependencies_compiler_type=none
4189   if test "$am_compiler_list" = ""; then
4190      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191   fi
4192   am__universal=false
4193   case " $depcc " in #(
4194      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4195      esac
4196
4197   for depmode in $am_compiler_list; do
4198     # Setup a source with many dependencies, because some compilers
4199     # like to wrap large dependency lists on column 80 (with \), and
4200     # we should not choose a depcomp mode which is confused by this.
4201     #
4202     # We need to recreate these files for each test, as the compiler may
4203     # overwrite some of them when testing with obscure command lines.
4204     # This happens at least with the AIX C compiler.
4205     : > sub/conftest.c
4206     for i in 1 2 3 4 5 6; do
4207       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4208       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4209       # Solaris 10 /bin/sh.
4210       echo '/* dummy */' > sub/conftst$i.h
4211     done
4212     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4213
4214     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4215     # mode.  It turns out that the SunPro C++ compiler does not properly
4216     # handle '-M -o', and we need to detect this.  Also, some Intel
4217     # versions had trouble with output in subdirs.
4218     am__obj=sub/conftest.${OBJEXT-o}
4219     am__minus_obj="-o $am__obj"
4220     case $depmode in
4221     gcc)
4222       # This depmode causes a compiler race in universal mode.
4223       test "$am__universal" = false || continue
4224       ;;
4225     nosideeffect)
4226       # After this tag, mechanisms are not by side-effect, so they'll
4227       # only be used when explicitly requested.
4228       if test "x$enable_dependency_tracking" = xyes; then
4229         continue
4230       else
4231         break
4232       fi
4233       ;;
4234     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4235       # This compiler won't grok '-c -o', but also, the minuso test has
4236       # not run yet.  These depmodes are late enough in the game, and
4237       # so weak that their functioning should not be impacted.
4238       am__obj=conftest.${OBJEXT-o}
4239       am__minus_obj=
4240       ;;
4241     none) break ;;
4242     esac
4243     if depmode=$depmode \
4244        source=sub/conftest.c object=$am__obj \
4245        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4246        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4247          >/dev/null 2>conftest.err &&
4248        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4250        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4252       # icc doesn't choke on unknown options, it will just issue warnings
4253       # or remarks (even with -Werror).  So we grep stderr for any message
4254       # that says an option was ignored or not supported.
4255       # When given -MP, icc 7.0 and 7.1 complain thusly:
4256       #   icc: Command line warning: ignoring option '-M'; no argument required
4257       # The diagnosis changed in icc 8.0:
4258       #   icc: Command line remark: option '-MP' not supported
4259       if (grep 'ignoring option' conftest.err ||
4260           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4261         am_cv_CC_dependencies_compiler_type=$depmode
4262         break
4263       fi
4264     fi
4265   done
4266
4267   cd ..
4268   rm -rf conftest.dir
4269 else
4270   am_cv_CC_dependencies_compiler_type=none
4271 fi
4272
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277
4278  if
4279   test "x$enable_dependency_tracking" != xno \
4280   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4281   am__fastdepCC_TRUE=
4282   am__fastdepCC_FALSE='#'
4283 else
4284   am__fastdepCC_TRUE='#'
4285   am__fastdepCC_FALSE=
4286 fi
4287
4288
4289 CFLAGS=$save_CFLAGS
4290
4291
4292
4293
4294
4295 # By default we simply use the C compiler to build assembly code.
4296
4297 test "${CCAS+set}" = set || CCAS=$CC
4298 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4299
4300
4301
4302 depcc="$CCAS"   am_compiler_list=
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4305 $as_echo_n "checking dependency style of $depcc... " >&6; }
4306 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4307   $as_echo_n "(cached) " >&6
4308 else
4309   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4310   # We make a subdir and do the tests there.  Otherwise we can end up
4311   # making bogus files that we don't know about and never remove.  For
4312   # instance it was reported that on HP-UX the gcc test will end up
4313   # making a dummy file named 'D' -- because '-MD' means "put the output
4314   # in D".
4315   rm -rf conftest.dir
4316   mkdir conftest.dir
4317   # Copy depcomp to subdir because otherwise we won't find it if we're
4318   # using a relative directory.
4319   cp "$am_depcomp" conftest.dir
4320   cd conftest.dir
4321   # We will build objects and dependencies in a subdirectory because
4322   # it helps to detect inapplicable dependency modes.  For instance
4323   # both Tru64's cc and ICC support -MD to output dependencies as a
4324   # side effect of compilation, but ICC will put the dependencies in
4325   # the current directory while Tru64 will put them in the object
4326   # directory.
4327   mkdir sub
4328
4329   am_cv_CCAS_dependencies_compiler_type=none
4330   if test "$am_compiler_list" = ""; then
4331      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332   fi
4333   am__universal=false
4334
4335
4336   for depmode in $am_compiler_list; do
4337     # Setup a source with many dependencies, because some compilers
4338     # like to wrap large dependency lists on column 80 (with \), and
4339     # we should not choose a depcomp mode which is confused by this.
4340     #
4341     # We need to recreate these files for each test, as the compiler may
4342     # overwrite some of them when testing with obscure command lines.
4343     # This happens at least with the AIX C compiler.
4344     : > sub/conftest.c
4345     for i in 1 2 3 4 5 6; do
4346       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4347       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4348       # Solaris 10 /bin/sh.
4349       echo '/* dummy */' > sub/conftst$i.h
4350     done
4351     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4352
4353     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4354     # mode.  It turns out that the SunPro C++ compiler does not properly
4355     # handle '-M -o', and we need to detect this.  Also, some Intel
4356     # versions had trouble with output in subdirs.
4357     am__obj=sub/conftest.${OBJEXT-o}
4358     am__minus_obj="-o $am__obj"
4359     case $depmode in
4360     gcc)
4361       # This depmode causes a compiler race in universal mode.
4362       test "$am__universal" = false || continue
4363       ;;
4364     nosideeffect)
4365       # After this tag, mechanisms are not by side-effect, so they'll
4366       # only be used when explicitly requested.
4367       if test "x$enable_dependency_tracking" = xyes; then
4368         continue
4369       else
4370         break
4371       fi
4372       ;;
4373     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4374       # This compiler won't grok '-c -o', but also, the minuso test has
4375       # not run yet.  These depmodes are late enough in the game, and
4376       # so weak that their functioning should not be impacted.
4377       am__obj=conftest.${OBJEXT-o}
4378       am__minus_obj=
4379       ;;
4380     none) break ;;
4381     esac
4382     if depmode=$depmode \
4383        source=sub/conftest.c object=$am__obj \
4384        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4385        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4386          >/dev/null 2>conftest.err &&
4387        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4388        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4389        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4390        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4391       # icc doesn't choke on unknown options, it will just issue warnings
4392       # or remarks (even with -Werror).  So we grep stderr for any message
4393       # that says an option was ignored or not supported.
4394       # When given -MP, icc 7.0 and 7.1 complain thusly:
4395       #   icc: Command line warning: ignoring option '-M'; no argument required
4396       # The diagnosis changed in icc 8.0:
4397       #   icc: Command line remark: option '-MP' not supported
4398       if (grep 'ignoring option' conftest.err ||
4399           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4400         am_cv_CCAS_dependencies_compiler_type=$depmode
4401         break
4402       fi
4403     fi
4404   done
4405
4406   cd ..
4407   rm -rf conftest.dir
4408 else
4409   am_cv_CCAS_dependencies_compiler_type=none
4410 fi
4411
4412 fi
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4414 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4415 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4416
4417  if
4418   test "x$enable_dependency_tracking" != xno \
4419   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4420   am__fastdepCCAS_TRUE=
4421   am__fastdepCCAS_FALSE='#'
4422 else
4423   am__fastdepCCAS_TRUE='#'
4424   am__fastdepCCAS_FALSE=
4425 fi
4426
4427
4428 if test "x$CC" != xcc; then
4429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4430 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4431 else
4432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4433 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4434 fi
4435 set dummy $CC; ac_cc=`$as_echo "$2" |
4436                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4437 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4438   $as_echo_n "(cached) " >&6
4439 else
4440   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h.  */
4442
4443 int
4444 main ()
4445 {
4446
4447   ;
4448   return 0;
4449 }
4450 _ACEOF
4451 # Make sure it works both with $CC and with simple cc.
4452 # We do the test twice because some compilers refuse to overwrite an
4453 # existing .o file with -o, though they will create one.
4454 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4455 rm -f conftest2.*
4456 if { { case "(($ac_try" in
4457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458   *) ac_try_echo=$ac_try;;
4459 esac
4460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4461 $as_echo "$ac_try_echo"; } >&5
4462   (eval "$ac_try") 2>&5
4463   ac_status=$?
4464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4465   test $ac_status = 0; } &&
4466    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4468   *) ac_try_echo=$ac_try;;
4469 esac
4470 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4471 $as_echo "$ac_try_echo"; } >&5
4472   (eval "$ac_try") 2>&5
4473   ac_status=$?
4474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4475   test $ac_status = 0; };
4476 then
4477   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4478   if test "x$CC" != xcc; then
4479     # Test first that cc exists at all.
4480     if { ac_try='cc -c conftest.$ac_ext >&5'
4481   { { case "(($ac_try" in
4482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483   *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487   (eval "$ac_try") 2>&5
4488   ac_status=$?
4489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4490   test $ac_status = 0; }; }; then
4491       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4492       rm -f conftest2.*
4493       if { { case "(($ac_try" in
4494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4495   *) ac_try_echo=$ac_try;;
4496 esac
4497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4498 $as_echo "$ac_try_echo"; } >&5
4499   (eval "$ac_try") 2>&5
4500   ac_status=$?
4501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4502   test $ac_status = 0; } &&
4503          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505   *) ac_try_echo=$ac_try;;
4506 esac
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509   (eval "$ac_try") 2>&5
4510   ac_status=$?
4511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512   test $ac_status = 0; };
4513       then
4514         # cc works too.
4515         :
4516       else
4517         # cc exists but doesn't like -o.
4518         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4519       fi
4520     fi
4521   fi
4522 else
4523   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4524 fi
4525 rm -f core conftest*
4526
4527 fi
4528 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4530 $as_echo "yes" >&6; }
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534
4535 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4536
4537 fi
4538
4539 # FIXME: we rely on the cache variable name because
4540 # there is no other way.
4541 set dummy $CC
4542 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4543 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4544 if test "$am_t" != yes; then
4545    # Losing compiler, so override with the script.
4546    # FIXME: It is wrong to rewrite CC.
4547    # But if we don't then we get into trouble of one sort or another.
4548    # A longer-term fix would be to have automake use am__CC in this case,
4549    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4550    CC="$am_aux_dir/compile $CC"
4551 fi
4552
4553
4554 case `pwd` in
4555   *\ * | *\     *)
4556     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4557 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4558 esac
4559
4560
4561
4562 macro_version='2.4.2'
4563 macro_revision='1.3337'
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577 ltmain="$ac_aux_dir/ltmain.sh"
4578
4579 # Backslashify metacharacters that are still active within
4580 # double-quoted strings.
4581 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4582
4583 # Same as above, but do not quote variable references.
4584 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4585
4586 # Sed substitution to delay expansion of an escaped shell variable in a
4587 # double_quote_subst'ed string.
4588 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4589
4590 # Sed substitution to delay expansion of an escaped single quote.
4591 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4592
4593 # Sed substitution to avoid accidental globbing in evaled expressions
4594 no_glob_subst='s/\*/\\\*/g'
4595
4596 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4598 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4601 $as_echo_n "checking how to print strings... " >&6; }
4602 # Test print first, because it will be a builtin if present.
4603 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4604    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4605   ECHO='print -r --'
4606 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4607   ECHO='printf %s\n'
4608 else
4609   # Use this function as a fallback that always works.
4610   func_fallback_echo ()
4611   {
4612     eval 'cat <<_LTECHO_EOF
4613 $1
4614 _LTECHO_EOF'
4615   }
4616   ECHO='func_fallback_echo'
4617 fi
4618
4619 # func_echo_all arg...
4620 # Invoke $ECHO with all args, space-separated.
4621 func_echo_all ()
4622 {
4623     $ECHO ""
4624 }
4625
4626 case "$ECHO" in
4627   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4628 $as_echo "printf" >&6; } ;;
4629   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4630 $as_echo "print -r" >&6; } ;;
4631   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4632 $as_echo "cat" >&6; } ;;
4633 esac
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4649 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4650 if ${ac_cv_path_SED+:} false; then :
4651   $as_echo_n "(cached) " >&6
4652 else
4653             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4654      for ac_i in 1 2 3 4 5 6 7; do
4655        ac_script="$ac_script$as_nl$ac_script"
4656      done
4657      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4658      { ac_script=; unset ac_script;}
4659      if test -z "$SED"; then
4660   ac_path_SED_found=false
4661   # Loop through the user's path and test for each of PROGNAME-LIST
4662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667     for ac_prog in sed gsed; do
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4670       as_fn_executable_p "$ac_path_SED" || continue
4671 # Check for GNU ac_path_SED and select it if it is found.
4672   # Check for GNU $ac_path_SED
4673 case `"$ac_path_SED" --version 2>&1` in
4674 *GNU*)
4675   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4676 *)
4677   ac_count=0
4678   $as_echo_n 0123456789 >"conftest.in"
4679   while :
4680   do
4681     cat "conftest.in" "conftest.in" >"conftest.tmp"
4682     mv "conftest.tmp" "conftest.in"
4683     cp "conftest.in" "conftest.nl"
4684     $as_echo '' >> "conftest.nl"
4685     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687     as_fn_arith $ac_count + 1 && ac_count=$as_val
4688     if test $ac_count -gt ${ac_path_SED_max-0}; then
4689       # Best one so far, save it but keep looking for a better one
4690       ac_cv_path_SED="$ac_path_SED"
4691       ac_path_SED_max=$ac_count
4692     fi
4693     # 10*(2^10) chars as input seems more than enough
4694     test $ac_count -gt 10 && break
4695   done
4696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 esac
4698
4699       $ac_path_SED_found && break 3
4700     done
4701   done
4702   done
4703 IFS=$as_save_IFS
4704   if test -z "$ac_cv_path_SED"; then
4705     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4706   fi
4707 else
4708   ac_cv_path_SED=$SED
4709 fi
4710
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4713 $as_echo "$ac_cv_path_SED" >&6; }
4714  SED="$ac_cv_path_SED"
4715   rm -f conftest.sed
4716
4717 test -z "$SED" && SED=sed
4718 Xsed="$SED -e 1s/^X//"
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4731 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4732 if ${ac_cv_path_GREP+:} false; then :
4733   $as_echo_n "(cached) " >&6
4734 else
4735   if test -z "$GREP"; then
4736   ac_path_GREP_found=false
4737   # Loop through the user's path and test for each of PROGNAME-LIST
4738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_prog in grep ggrep; do
4744     for ac_exec_ext in '' $ac_executable_extensions; do
4745       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4746       as_fn_executable_p "$ac_path_GREP" || continue
4747 # Check for GNU ac_path_GREP and select it if it is found.
4748   # Check for GNU $ac_path_GREP
4749 case `"$ac_path_GREP" --version 2>&1` in
4750 *GNU*)
4751   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4752 *)
4753   ac_count=0
4754   $as_echo_n 0123456789 >"conftest.in"
4755   while :
4756   do
4757     cat "conftest.in" "conftest.in" >"conftest.tmp"
4758     mv "conftest.tmp" "conftest.in"
4759     cp "conftest.in" "conftest.nl"
4760     $as_echo 'GREP' >> "conftest.nl"
4761     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4762     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4763     as_fn_arith $ac_count + 1 && ac_count=$as_val
4764     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4765       # Best one so far, save it but keep looking for a better one
4766       ac_cv_path_GREP="$ac_path_GREP"
4767       ac_path_GREP_max=$ac_count
4768     fi
4769     # 10*(2^10) chars as input seems more than enough
4770     test $ac_count -gt 10 && break
4771   done
4772   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4773 esac
4774
4775       $ac_path_GREP_found && break 3
4776     done
4777   done
4778   done
4779 IFS=$as_save_IFS
4780   if test -z "$ac_cv_path_GREP"; then
4781     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4782   fi
4783 else
4784   ac_cv_path_GREP=$GREP
4785 fi
4786
4787 fi
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4789 $as_echo "$ac_cv_path_GREP" >&6; }
4790  GREP="$ac_cv_path_GREP"
4791
4792
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4794 $as_echo_n "checking for egrep... " >&6; }
4795 if ${ac_cv_path_EGREP+:} false; then :
4796   $as_echo_n "(cached) " >&6
4797 else
4798   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4799    then ac_cv_path_EGREP="$GREP -E"
4800    else
4801      if test -z "$EGREP"; then
4802   ac_path_EGREP_found=false
4803   # Loop through the user's path and test for each of PROGNAME-LIST
4804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4806 do
4807   IFS=$as_save_IFS
4808   test -z "$as_dir" && as_dir=.
4809     for ac_prog in egrep; do
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4812       as_fn_executable_p "$ac_path_EGREP" || continue
4813 # Check for GNU ac_path_EGREP and select it if it is found.
4814   # Check for GNU $ac_path_EGREP
4815 case `"$ac_path_EGREP" --version 2>&1` in
4816 *GNU*)
4817   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4818 *)
4819   ac_count=0
4820   $as_echo_n 0123456789 >"conftest.in"
4821   while :
4822   do
4823     cat "conftest.in" "conftest.in" >"conftest.tmp"
4824     mv "conftest.tmp" "conftest.in"
4825     cp "conftest.in" "conftest.nl"
4826     $as_echo 'EGREP' >> "conftest.nl"
4827     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4828     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4829     as_fn_arith $ac_count + 1 && ac_count=$as_val
4830     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4831       # Best one so far, save it but keep looking for a better one
4832       ac_cv_path_EGREP="$ac_path_EGREP"
4833       ac_path_EGREP_max=$ac_count
4834     fi
4835     # 10*(2^10) chars as input seems more than enough
4836     test $ac_count -gt 10 && break
4837   done
4838   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4839 esac
4840
4841       $ac_path_EGREP_found && break 3
4842     done
4843   done
4844   done
4845 IFS=$as_save_IFS
4846   if test -z "$ac_cv_path_EGREP"; then
4847     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4848   fi
4849 else
4850   ac_cv_path_EGREP=$EGREP
4851 fi
4852
4853    fi
4854 fi
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4856 $as_echo "$ac_cv_path_EGREP" >&6; }
4857  EGREP="$ac_cv_path_EGREP"
4858
4859
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4861 $as_echo_n "checking for fgrep... " >&6; }
4862 if ${ac_cv_path_FGREP+:} false; then :
4863   $as_echo_n "(cached) " >&6
4864 else
4865   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4866    then ac_cv_path_FGREP="$GREP -F"
4867    else
4868      if test -z "$FGREP"; then
4869   ac_path_FGREP_found=false
4870   # Loop through the user's path and test for each of PROGNAME-LIST
4871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4872 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4873 do
4874   IFS=$as_save_IFS
4875   test -z "$as_dir" && as_dir=.
4876     for ac_prog in fgrep; do
4877     for ac_exec_ext in '' $ac_executable_extensions; do
4878       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4879       as_fn_executable_p "$ac_path_FGREP" || continue
4880 # Check for GNU ac_path_FGREP and select it if it is found.
4881   # Check for GNU $ac_path_FGREP
4882 case `"$ac_path_FGREP" --version 2>&1` in
4883 *GNU*)
4884   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4885 *)
4886   ac_count=0
4887   $as_echo_n 0123456789 >"conftest.in"
4888   while :
4889   do
4890     cat "conftest.in" "conftest.in" >"conftest.tmp"
4891     mv "conftest.tmp" "conftest.in"
4892     cp "conftest.in" "conftest.nl"
4893     $as_echo 'FGREP' >> "conftest.nl"
4894     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4896     as_fn_arith $ac_count + 1 && ac_count=$as_val
4897     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4898       # Best one so far, save it but keep looking for a better one
4899       ac_cv_path_FGREP="$ac_path_FGREP"
4900       ac_path_FGREP_max=$ac_count
4901     fi
4902     # 10*(2^10) chars as input seems more than enough
4903     test $ac_count -gt 10 && break
4904   done
4905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4906 esac
4907
4908       $ac_path_FGREP_found && break 3
4909     done
4910   done
4911   done
4912 IFS=$as_save_IFS
4913   if test -z "$ac_cv_path_FGREP"; then
4914     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4915   fi
4916 else
4917   ac_cv_path_FGREP=$FGREP
4918 fi
4919
4920    fi
4921 fi
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4923 $as_echo "$ac_cv_path_FGREP" >&6; }
4924  FGREP="$ac_cv_path_FGREP"
4925
4926
4927 test -z "$GREP" && GREP=grep
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947 # Check whether --with-gnu-ld was given.
4948 if test "${with_gnu_ld+set}" = set; then :
4949   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4950 else
4951   with_gnu_ld=no
4952 fi
4953
4954 ac_prog=ld
4955 if test "$GCC" = yes; then
4956   # Check if gcc -print-prog-name=ld gives a path.
4957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4958 $as_echo_n "checking for ld used by $CC... " >&6; }
4959   case $host in
4960   *-*-mingw*)
4961     # gcc leaves a trailing carriage return which upsets mingw
4962     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4963   *)
4964     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4965   esac
4966   case $ac_prog in
4967     # Accept absolute paths.
4968     [\\/]* | ?:[\\/]*)
4969       re_direlt='/[^/][^/]*/\.\./'
4970       # Canonicalize the pathname of ld
4971       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4972       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4973         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4974       done
4975       test -z "$LD" && LD="$ac_prog"
4976       ;;
4977   "")
4978     # If it fails, then pretend we aren't using GCC.
4979     ac_prog=ld
4980     ;;
4981   *)
4982     # If it is relative, then search for the first ld in PATH.
4983     with_gnu_ld=unknown
4984     ;;
4985   esac
4986 elif test "$with_gnu_ld" = yes; then
4987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4988 $as_echo_n "checking for GNU ld... " >&6; }
4989 else
4990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4991 $as_echo_n "checking for non-GNU ld... " >&6; }
4992 fi
4993 if ${lt_cv_path_LD+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   if test -z "$LD"; then
4997   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4998   for ac_dir in $PATH; do
4999     IFS="$lt_save_ifs"
5000     test -z "$ac_dir" && ac_dir=.
5001     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5002       lt_cv_path_LD="$ac_dir/$ac_prog"
5003       # Check to see if the program is GNU ld.  I'd rather use --version,
5004       # but apparently some variants of GNU ld only accept -v.
5005       # Break only if it was the GNU/non-GNU ld that we prefer.
5006       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5007       *GNU* | *'with BFD'*)
5008         test "$with_gnu_ld" != no && break
5009         ;;
5010       *)
5011         test "$with_gnu_ld" != yes && break
5012         ;;
5013       esac
5014     fi
5015   done
5016   IFS="$lt_save_ifs"
5017 else
5018   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5019 fi
5020 fi
5021
5022 LD="$lt_cv_path_LD"
5023 if test -n "$LD"; then
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5025 $as_echo "$LD" >&6; }
5026 else
5027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5028 $as_echo "no" >&6; }
5029 fi
5030 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5032 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5033 if ${lt_cv_prog_gnu_ld+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5037 case `$LD -v 2>&1 </dev/null` in
5038 *GNU* | *'with BFD'*)
5039   lt_cv_prog_gnu_ld=yes
5040   ;;
5041 *)
5042   lt_cv_prog_gnu_ld=no
5043   ;;
5044 esac
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5047 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5048 with_gnu_ld=$lt_cv_prog_gnu_ld
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5059 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5060 if ${lt_cv_path_NM+:} false; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   if test -n "$NM"; then
5064   # Let the user override the test.
5065   lt_cv_path_NM="$NM"
5066 else
5067   lt_nm_to_check="${ac_tool_prefix}nm"
5068   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5069     lt_nm_to_check="$lt_nm_to_check nm"
5070   fi
5071   for lt_tmp_nm in $lt_nm_to_check; do
5072     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5073     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5074       IFS="$lt_save_ifs"
5075       test -z "$ac_dir" && ac_dir=.
5076       tmp_nm="$ac_dir/$lt_tmp_nm"
5077       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5078         # Check to see if the nm accepts a BSD-compat flag.
5079         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5080         #   nm: unknown option "B" ignored
5081         # Tru64's nm complains that /dev/null is an invalid object file
5082         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5083         */dev/null* | *'Invalid file or object type'*)
5084           lt_cv_path_NM="$tmp_nm -B"
5085           break
5086           ;;
5087         *)
5088           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5089           */dev/null*)
5090             lt_cv_path_NM="$tmp_nm -p"
5091             break
5092             ;;
5093           *)
5094             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5095             continue # so that we can try to find one that supports BSD flags
5096             ;;
5097           esac
5098           ;;
5099         esac
5100       fi
5101     done
5102     IFS="$lt_save_ifs"
5103   done
5104   : ${lt_cv_path_NM=no}
5105 fi
5106 fi
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5108 $as_echo "$lt_cv_path_NM" >&6; }
5109 if test "$lt_cv_path_NM" != "no"; then
5110   NM="$lt_cv_path_NM"
5111 else
5112   # Didn't find any BSD compatible name lister, look for dumpbin.
5113   if test -n "$DUMPBIN"; then :
5114     # Let the user override the test.
5115   else
5116     if test -n "$ac_tool_prefix"; then
5117   for ac_prog in dumpbin "link -dump"
5118   do
5119     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5120 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5122 $as_echo_n "checking for $ac_word... " >&6; }
5123 if ${ac_cv_prog_DUMPBIN+:} false; then :
5124   $as_echo_n "(cached) " >&6
5125 else
5126   if test -n "$DUMPBIN"; then
5127   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5128 else
5129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 for as_dir in $PATH
5131 do
5132   IFS=$as_save_IFS
5133   test -z "$as_dir" && as_dir=.
5134     for ac_exec_ext in '' $ac_executable_extensions; do
5135   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5136     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5137     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138     break 2
5139   fi
5140 done
5141   done
5142 IFS=$as_save_IFS
5143
5144 fi
5145 fi
5146 DUMPBIN=$ac_cv_prog_DUMPBIN
5147 if test -n "$DUMPBIN"; then
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5149 $as_echo "$DUMPBIN" >&6; }
5150 else
5151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5152 $as_echo "no" >&6; }
5153 fi
5154
5155
5156     test -n "$DUMPBIN" && break
5157   done
5158 fi
5159 if test -z "$DUMPBIN"; then
5160   ac_ct_DUMPBIN=$DUMPBIN
5161   for ac_prog in dumpbin "link -dump"
5162 do
5163   # Extract the first word of "$ac_prog", so it can be a program name with args.
5164 set dummy $ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5168   $as_echo_n "(cached) " >&6
5169 else
5170   if test -n "$ac_ct_DUMPBIN"; then
5171   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176   IFS=$as_save_IFS
5177   test -z "$as_dir" && as_dir=.
5178     for ac_exec_ext in '' $ac_executable_extensions; do
5179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182     break 2
5183   fi
5184 done
5185   done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5191 if test -n "$ac_ct_DUMPBIN"; then
5192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5193 $as_echo "$ac_ct_DUMPBIN" >&6; }
5194 else
5195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200   test -n "$ac_ct_DUMPBIN" && break
5201 done
5202
5203   if test "x$ac_ct_DUMPBIN" = x; then
5204     DUMPBIN=":"
5205   else
5206     case $cross_compiling:$ac_tool_warned in
5207 yes:)
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5210 ac_tool_warned=yes ;;
5211 esac
5212     DUMPBIN=$ac_ct_DUMPBIN
5213   fi
5214 fi
5215
5216     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5217     *COFF*)
5218       DUMPBIN="$DUMPBIN -symbols"
5219       ;;
5220     *)
5221       DUMPBIN=:
5222       ;;
5223     esac
5224   fi
5225
5226   if test "$DUMPBIN" != ":"; then
5227     NM="$DUMPBIN"
5228   fi
5229 fi
5230 test -z "$NM" && NM=nm
5231
5232
5233
5234
5235
5236
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5238 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5239 if ${lt_cv_nm_interface+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   lt_cv_nm_interface="BSD nm"
5243   echo "int some_variable = 0;" > conftest.$ac_ext
5244   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5245   (eval "$ac_compile" 2>conftest.err)
5246   cat conftest.err >&5
5247   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5248   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5249   cat conftest.err >&5
5250   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5251   cat conftest.out >&5
5252   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5253     lt_cv_nm_interface="MS dumpbin"
5254   fi
5255   rm -f conftest*
5256 fi
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5258 $as_echo "$lt_cv_nm_interface" >&6; }
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5261 $as_echo_n "checking whether ln -s works... " >&6; }
5262 LN_S=$as_ln_s
5263 if test "$LN_S" = "ln -s"; then
5264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5265 $as_echo "yes" >&6; }
5266 else
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5268 $as_echo "no, using $LN_S" >&6; }
5269 fi
5270
5271 # find the maximum length of command line arguments
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5273 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5274 if ${lt_cv_sys_max_cmd_len+:} false; then :
5275   $as_echo_n "(cached) " >&6
5276 else
5277     i=0
5278   teststring="ABCD"
5279
5280   case $build_os in
5281   msdosdjgpp*)
5282     # On DJGPP, this test can blow up pretty badly due to problems in libc
5283     # (any single argument exceeding 2000 bytes causes a buffer overrun
5284     # during glob expansion).  Even if it were fixed, the result of this
5285     # check would be larger than it should be.
5286     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5287     ;;
5288
5289   gnu*)
5290     # Under GNU Hurd, this test is not required because there is
5291     # no limit to the length of command line arguments.
5292     # Libtool will interpret -1 as no limit whatsoever
5293     lt_cv_sys_max_cmd_len=-1;
5294     ;;
5295
5296   cygwin* | mingw* | cegcc*)
5297     # On Win9x/ME, this test blows up -- it succeeds, but takes
5298     # about 5 minutes as the teststring grows exponentially.
5299     # Worse, since 9x/ME are not pre-emptively multitasking,
5300     # you end up with a "frozen" computer, even though with patience
5301     # the test eventually succeeds (with a max line length of 256k).
5302     # Instead, let's just punt: use the minimum linelength reported by
5303     # all of the supported platforms: 8192 (on NT/2K/XP).
5304     lt_cv_sys_max_cmd_len=8192;
5305     ;;
5306
5307   mint*)
5308     # On MiNT this can take a long time and run out of memory.
5309     lt_cv_sys_max_cmd_len=8192;
5310     ;;
5311
5312   amigaos*)
5313     # On AmigaOS with pdksh, this test takes hours, literally.
5314     # So we just punt and use a minimum line length of 8192.
5315     lt_cv_sys_max_cmd_len=8192;
5316     ;;
5317
5318   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5319     # This has been around since 386BSD, at least.  Likely further.
5320     if test -x /sbin/sysctl; then
5321       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5322     elif test -x /usr/sbin/sysctl; then
5323       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5324     else
5325       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5326     fi
5327     # And add a safety zone
5328     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5329     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5330     ;;
5331
5332   interix*)
5333     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5334     lt_cv_sys_max_cmd_len=196608
5335     ;;
5336
5337   os2*)
5338     # The test takes a long time on OS/2.
5339     lt_cv_sys_max_cmd_len=8192
5340     ;;
5341
5342   osf*)
5343     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5344     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5345     # nice to cause kernel panics so lets avoid the loop below.
5346     # First set a reasonable default.
5347     lt_cv_sys_max_cmd_len=16384
5348     #
5349     if test -x /sbin/sysconfig; then
5350       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5351         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5352       esac
5353     fi
5354     ;;
5355   sco3.2v5*)
5356     lt_cv_sys_max_cmd_len=102400
5357     ;;
5358   sysv5* | sco5v6* | sysv4.2uw2*)
5359     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5360     if test -n "$kargmax"; then
5361       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5362     else
5363       lt_cv_sys_max_cmd_len=32768
5364     fi
5365     ;;
5366   *)
5367     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5368     if test -n "$lt_cv_sys_max_cmd_len" && \
5369       test undefined != "$lt_cv_sys_max_cmd_len"; then
5370       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5371       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5372     else
5373       # Make teststring a little bigger before we do anything with it.
5374       # a 1K string should be a reasonable start.
5375       for i in 1 2 3 4 5 6 7 8 ; do
5376         teststring=$teststring$teststring
5377       done
5378       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5379       # If test is not a shell built-in, we'll probably end up computing a
5380       # maximum length that is only half of the actual maximum length, but
5381       # we can't tell.
5382       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5383                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5384               test $i != 17 # 1/2 MB should be enough
5385       do
5386         i=`expr $i + 1`
5387         teststring=$teststring$teststring
5388       done
5389       # Only check the string length outside the loop.
5390       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5391       teststring=
5392       # Add a significant safety factor because C++ compilers can tack on
5393       # massive amounts of additional arguments before passing them to the
5394       # linker.  It appears as though 1/2 is a usable value.
5395       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5396     fi
5397     ;;
5398   esac
5399
5400 fi
5401
5402 if test -n $lt_cv_sys_max_cmd_len ; then
5403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5404 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5405 else
5406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5407 $as_echo "none" >&6; }
5408 fi
5409 max_cmd_len=$lt_cv_sys_max_cmd_len
5410
5411
5412
5413
5414
5415
5416 : ${CP="cp -f"}
5417 : ${MV="mv -f"}
5418 : ${RM="rm -f"}
5419
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5421 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5422 # Try some XSI features
5423 xsi_shell=no
5424 ( _lt_dummy="a/b/c"
5425   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5426       = c,a/b,b/c, \
5427     && eval 'test $(( 1 + 1 )) -eq 2 \
5428     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5429   && xsi_shell=yes
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5431 $as_echo "$xsi_shell" >&6; }
5432
5433
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5435 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5436 lt_shell_append=no
5437 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5438     >/dev/null 2>&1 \
5439   && lt_shell_append=yes
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5441 $as_echo "$lt_shell_append" >&6; }
5442
5443
5444 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5445   lt_unset=unset
5446 else
5447   lt_unset=false
5448 fi
5449
5450
5451
5452
5453
5454 # test EBCDIC or ASCII
5455 case `echo X|tr X '\101'` in
5456  A) # ASCII based system
5457     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5458   lt_SP2NL='tr \040 \012'
5459   lt_NL2SP='tr \015\012 \040\040'
5460   ;;
5461  *) # EBCDIC based system
5462   lt_SP2NL='tr \100 \n'
5463   lt_NL2SP='tr \r\n \100\100'
5464   ;;
5465 esac
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5476 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5477 if ${lt_cv_to_host_file_cmd+:} false; then :
5478   $as_echo_n "(cached) " >&6
5479 else
5480   case $host in
5481   *-*-mingw* )
5482     case $build in
5483       *-*-mingw* ) # actually msys
5484         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5485         ;;
5486       *-*-cygwin* )
5487         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5488         ;;
5489       * ) # otherwise, assume *nix
5490         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5491         ;;
5492     esac
5493     ;;
5494   *-*-cygwin* )
5495     case $build in
5496       *-*-mingw* ) # actually msys
5497         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5498         ;;
5499       *-*-cygwin* )
5500         lt_cv_to_host_file_cmd=func_convert_file_noop
5501         ;;
5502       * ) # otherwise, assume *nix
5503         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5504         ;;
5505     esac
5506     ;;
5507   * ) # unhandled hosts (and "normal" native builds)
5508     lt_cv_to_host_file_cmd=func_convert_file_noop
5509     ;;
5510 esac
5511
5512 fi
5513
5514 to_host_file_cmd=$lt_cv_to_host_file_cmd
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5516 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5517
5518
5519
5520
5521
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5523 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5524 if ${lt_cv_to_tool_file_cmd+:} false; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   #assume ordinary cross tools, or native build.
5528 lt_cv_to_tool_file_cmd=func_convert_file_noop
5529 case $host in
5530   *-*-mingw* )
5531     case $build in
5532       *-*-mingw* ) # actually msys
5533         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5534         ;;
5535     esac
5536     ;;
5537 esac
5538
5539 fi
5540
5541 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5543 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5550 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5551 if ${lt_cv_ld_reload_flag+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   lt_cv_ld_reload_flag='-r'
5555 fi
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5557 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5558 reload_flag=$lt_cv_ld_reload_flag
5559 case $reload_flag in
5560 "" | " "*) ;;
5561 *) reload_flag=" $reload_flag" ;;
5562 esac
5563 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5564 case $host_os in
5565   cygwin* | mingw* | pw32* | cegcc*)
5566     if test "$GCC" != yes; then
5567       reload_cmds=false
5568     fi
5569     ;;
5570   darwin*)
5571     if test "$GCC" = yes; then
5572       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5573     else
5574       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5575     fi
5576     ;;
5577 esac
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587 if test -n "$ac_tool_prefix"; then
5588   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5589 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_prog_OBJDUMP+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   if test -n "$OBJDUMP"; then
5596   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5597 else
5598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5599 for as_dir in $PATH
5600 do
5601   IFS=$as_save_IFS
5602   test -z "$as_dir" && as_dir=.
5603     for ac_exec_ext in '' $ac_executable_extensions; do
5604   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5605     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5606     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607     break 2
5608   fi
5609 done
5610   done
5611 IFS=$as_save_IFS
5612
5613 fi
5614 fi
5615 OBJDUMP=$ac_cv_prog_OBJDUMP
5616 if test -n "$OBJDUMP"; then
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5618 $as_echo "$OBJDUMP" >&6; }
5619 else
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621 $as_echo "no" >&6; }
5622 fi
5623
5624
5625 fi
5626 if test -z "$ac_cv_prog_OBJDUMP"; then
5627   ac_ct_OBJDUMP=$OBJDUMP
5628   # Extract the first word of "objdump", so it can be a program name with args.
5629 set dummy objdump; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   if test -n "$ac_ct_OBJDUMP"; then
5636   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5637 else
5638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5639 for as_dir in $PATH
5640 do
5641   IFS=$as_save_IFS
5642   test -z "$as_dir" && as_dir=.
5643     for ac_exec_ext in '' $ac_executable_extensions; do
5644   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5645     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5647     break 2
5648   fi
5649 done
5650   done
5651 IFS=$as_save_IFS
5652
5653 fi
5654 fi
5655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5656 if test -n "$ac_ct_OBJDUMP"; then
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5658 $as_echo "$ac_ct_OBJDUMP" >&6; }
5659 else
5660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661 $as_echo "no" >&6; }
5662 fi
5663
5664   if test "x$ac_ct_OBJDUMP" = x; then
5665     OBJDUMP="false"
5666   else
5667     case $cross_compiling:$ac_tool_warned in
5668 yes:)
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5671 ac_tool_warned=yes ;;
5672 esac
5673     OBJDUMP=$ac_ct_OBJDUMP
5674   fi
5675 else
5676   OBJDUMP="$ac_cv_prog_OBJDUMP"
5677 fi
5678
5679 test -z "$OBJDUMP" && OBJDUMP=objdump
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5690 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5691 if ${lt_cv_deplibs_check_method+:} false; then :
5692   $as_echo_n "(cached) " >&6
5693 else
5694   lt_cv_file_magic_cmd='$MAGIC_CMD'
5695 lt_cv_file_magic_test_file=
5696 lt_cv_deplibs_check_method='unknown'
5697 # Need to set the preceding variable on all platforms that support
5698 # interlibrary dependencies.
5699 # 'none' -- dependencies not supported.
5700 # `unknown' -- same as none, but documents that we really don't know.
5701 # 'pass_all' -- all dependencies passed with no checks.
5702 # 'test_compile' -- check by making test program.
5703 # 'file_magic [[regex]]' -- check by looking for files in library path
5704 # which responds to the $file_magic_cmd with a given extended regex.
5705 # If you have `file' or equivalent on your system and you're not sure
5706 # whether `pass_all' will *always* work, you probably want this one.
5707
5708 case $host_os in
5709 aix[4-9]*)
5710   lt_cv_deplibs_check_method=pass_all
5711   ;;
5712
5713 beos*)
5714   lt_cv_deplibs_check_method=pass_all
5715   ;;
5716
5717 bsdi[45]*)
5718   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5719   lt_cv_file_magic_cmd='/usr/bin/file -L'
5720   lt_cv_file_magic_test_file=/shlib/libc.so
5721   ;;
5722
5723 cygwin*)
5724   # func_win32_libid is a shell function defined in ltmain.sh
5725   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5726   lt_cv_file_magic_cmd='func_win32_libid'
5727   ;;
5728
5729 mingw* | pw32*)
5730   # Base MSYS/MinGW do not provide the 'file' command needed by
5731   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5732   # unless we find 'file', for example because we are cross-compiling.
5733   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5734   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5735     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5736     lt_cv_file_magic_cmd='func_win32_libid'
5737   else
5738     # Keep this pattern in sync with the one in func_win32_libid.
5739     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5740     lt_cv_file_magic_cmd='$OBJDUMP -f'
5741   fi
5742   ;;
5743
5744 cegcc*)
5745   # use the weaker test based on 'objdump'. See mingw*.
5746   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5747   lt_cv_file_magic_cmd='$OBJDUMP -f'
5748   ;;
5749
5750 darwin* | rhapsody*)
5751   lt_cv_deplibs_check_method=pass_all
5752   ;;
5753
5754 freebsd* | dragonfly*)
5755   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5756     case $host_cpu in
5757     i*86 )
5758       # Not sure whether the presence of OpenBSD here was a mistake.
5759       # Let's accept both of them until this is cleared up.
5760       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5761       lt_cv_file_magic_cmd=/usr/bin/file
5762       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5763       ;;
5764     esac
5765   else
5766     lt_cv_deplibs_check_method=pass_all
5767   fi
5768   ;;
5769
5770 gnu*)
5771   lt_cv_deplibs_check_method=pass_all
5772   ;;
5773
5774 haiku*)
5775   lt_cv_deplibs_check_method=pass_all
5776   ;;
5777
5778 hpux10.20* | hpux11*)
5779   lt_cv_file_magic_cmd=/usr/bin/file
5780   case $host_cpu in
5781   ia64*)
5782     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5783     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5784     ;;
5785   hppa*64*)
5786     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]'
5787     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5788     ;;
5789   *)
5790     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5791     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5792     ;;
5793   esac
5794   ;;
5795
5796 interix[3-9]*)
5797   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5798   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5799   ;;
5800
5801 irix5* | irix6* | nonstopux*)
5802   case $LD in
5803   *-32|*"-32 ") libmagic=32-bit;;
5804   *-n32|*"-n32 ") libmagic=N32;;
5805   *-64|*"-64 ") libmagic=64-bit;;
5806   *) libmagic=never-match;;
5807   esac
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 # This must be glibc/ELF.
5812 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5813   lt_cv_deplibs_check_method=pass_all
5814   ;;
5815
5816 netbsd*)
5817   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5818     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5819   else
5820     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5821   fi
5822   ;;
5823
5824 newos6*)
5825   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5826   lt_cv_file_magic_cmd=/usr/bin/file
5827   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5828   ;;
5829
5830 *nto* | *qnx*)
5831   lt_cv_deplibs_check_method=pass_all
5832   ;;
5833
5834 openbsd*)
5835   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5836     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5837   else
5838     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5839   fi
5840   ;;
5841
5842 osf3* | osf4* | osf5*)
5843   lt_cv_deplibs_check_method=pass_all
5844   ;;
5845
5846 rdos*)
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5849
5850 solaris*)
5851   lt_cv_deplibs_check_method=pass_all
5852   ;;
5853
5854 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5855   lt_cv_deplibs_check_method=pass_all
5856   ;;
5857
5858 sysv4 | sysv4.3*)
5859   case $host_vendor in
5860   motorola)
5861     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]'
5862     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5863     ;;
5864   ncr)
5865     lt_cv_deplibs_check_method=pass_all
5866     ;;
5867   sequent)
5868     lt_cv_file_magic_cmd='/bin/file'
5869     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5870     ;;
5871   sni)
5872     lt_cv_file_magic_cmd='/bin/file'
5873     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5874     lt_cv_file_magic_test_file=/lib/libc.so
5875     ;;
5876   siemens)
5877     lt_cv_deplibs_check_method=pass_all
5878     ;;
5879   pc)
5880     lt_cv_deplibs_check_method=pass_all
5881     ;;
5882   esac
5883   ;;
5884
5885 tpf*)
5886   lt_cv_deplibs_check_method=pass_all
5887   ;;
5888 esac
5889
5890 fi
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5892 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5893
5894 file_magic_glob=
5895 want_nocaseglob=no
5896 if test "$build" = "$host"; then
5897   case $host_os in
5898   mingw* | pw32*)
5899     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5900       want_nocaseglob=yes
5901     else
5902       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5903     fi
5904     ;;
5905   esac
5906 fi
5907
5908 file_magic_cmd=$lt_cv_file_magic_cmd
5909 deplibs_check_method=$lt_cv_deplibs_check_method
5910 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933 if test -n "$ac_tool_prefix"; then
5934   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if ${ac_cv_prog_DLLTOOL+:} false; then :
5939   $as_echo_n "(cached) " >&6
5940 else
5941   if test -n "$DLLTOOL"; then
5942   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5946 do
5947   IFS=$as_save_IFS
5948   test -z "$as_dir" && as_dir=.
5949     for ac_exec_ext in '' $ac_executable_extensions; do
5950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953     break 2
5954   fi
5955 done
5956   done
5957 IFS=$as_save_IFS
5958
5959 fi
5960 fi
5961 DLLTOOL=$ac_cv_prog_DLLTOOL
5962 if test -n "$DLLTOOL"; then
5963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5964 $as_echo "$DLLTOOL" >&6; }
5965 else
5966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5968 fi
5969
5970
5971 fi
5972 if test -z "$ac_cv_prog_DLLTOOL"; then
5973   ac_ct_DLLTOOL=$DLLTOOL
5974   # Extract the first word of "dlltool", so it can be a program name with args.
5975 set dummy dlltool; ac_word=$2
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5977 $as_echo_n "checking for $ac_word... " >&6; }
5978 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5979   $as_echo_n "(cached) " >&6
5980 else
5981   if test -n "$ac_ct_DLLTOOL"; then
5982   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5983 else
5984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5985 for as_dir in $PATH
5986 do
5987   IFS=$as_save_IFS
5988   test -z "$as_dir" && as_dir=.
5989     for ac_exec_ext in '' $ac_executable_extensions; do
5990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5991     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5993     break 2
5994   fi
5995 done
5996   done
5997 IFS=$as_save_IFS
5998
5999 fi
6000 fi
6001 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6002 if test -n "$ac_ct_DLLTOOL"; then
6003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6004 $as_echo "$ac_ct_DLLTOOL" >&6; }
6005 else
6006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007 $as_echo "no" >&6; }
6008 fi
6009
6010   if test "x$ac_ct_DLLTOOL" = x; then
6011     DLLTOOL="false"
6012   else
6013     case $cross_compiling:$ac_tool_warned in
6014 yes:)
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6017 ac_tool_warned=yes ;;
6018 esac
6019     DLLTOOL=$ac_ct_DLLTOOL
6020   fi
6021 else
6022   DLLTOOL="$ac_cv_prog_DLLTOOL"
6023 fi
6024
6025 test -z "$DLLTOOL" && DLLTOOL=dlltool
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6037 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6038 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041   lt_cv_sharedlib_from_linklib_cmd='unknown'
6042
6043 case $host_os in
6044 cygwin* | mingw* | pw32* | cegcc*)
6045   # two different shell functions defined in ltmain.sh
6046   # decide which to use based on capabilities of $DLLTOOL
6047   case `$DLLTOOL --help 2>&1` in
6048   *--identify-strict*)
6049     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6050     ;;
6051   *)
6052     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6053     ;;
6054   esac
6055   ;;
6056 *)
6057   # fallback: assume linklib IS sharedlib
6058   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6059   ;;
6060 esac
6061
6062 fi
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6064 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6065 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6066 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6067
6068
6069
6070
6071
6072
6073
6074
6075 if test -n "$ac_tool_prefix"; then
6076   for ac_prog in ar
6077   do
6078     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6079 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_AR+:} false; then :
6083   $as_echo_n "(cached) " >&6
6084 else
6085   if test -n "$AR"; then
6086   ac_cv_prog_AR="$AR" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091   IFS=$as_save_IFS
6092   test -z "$as_dir" && as_dir=.
6093     for ac_exec_ext in '' $ac_executable_extensions; do
6094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097     break 2
6098   fi
6099 done
6100   done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 AR=$ac_cv_prog_AR
6106 if test -n "$AR"; then
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6108 $as_echo "$AR" >&6; }
6109 else
6110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115     test -n "$AR" && break
6116   done
6117 fi
6118 if test -z "$AR"; then
6119   ac_ct_AR=$AR
6120   for ac_prog in ar
6121 do
6122   # Extract the first word of "$ac_prog", so it can be a program name with args.
6123 set dummy $ac_prog; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$ac_ct_AR"; then
6130   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6139     ac_cv_prog_ac_ct_AR="$ac_prog"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6150 if test -n "$ac_ct_AR"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6152 $as_echo "$ac_ct_AR" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159   test -n "$ac_ct_AR" && break
6160 done
6161
6162   if test "x$ac_ct_AR" = x; then
6163     AR="false"
6164   else
6165     case $cross_compiling:$ac_tool_warned in
6166 yes:)
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6169 ac_tool_warned=yes ;;
6170 esac
6171     AR=$ac_ct_AR
6172   fi
6173 fi
6174
6175 : ${AR=ar}
6176 : ${AR_FLAGS=cru}
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6189 $as_echo_n "checking for archiver @FILE support... " >&6; }
6190 if ${lt_cv_ar_at_file+:} false; then :
6191   $as_echo_n "(cached) " >&6
6192 else
6193   lt_cv_ar_at_file=no
6194    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h.  */
6196
6197 int
6198 main ()
6199 {
6200
6201   ;
6202   return 0;
6203 }
6204 _ACEOF
6205 if ac_fn_c_try_compile "$LINENO"; then :
6206   echo conftest.$ac_objext > conftest.lst
6207       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6208       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6209   (eval $lt_ar_try) 2>&5
6210   ac_status=$?
6211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6212   test $ac_status = 0; }
6213       if test "$ac_status" -eq 0; then
6214         # Ensure the archiver fails upon bogus file names.
6215         rm -f conftest.$ac_objext libconftest.a
6216         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6217   (eval $lt_ar_try) 2>&5
6218   ac_status=$?
6219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220   test $ac_status = 0; }
6221         if test "$ac_status" -ne 0; then
6222           lt_cv_ar_at_file=@
6223         fi
6224       fi
6225       rm -f conftest.* libconftest.a
6226
6227 fi
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229
6230 fi
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6232 $as_echo "$lt_cv_ar_at_file" >&6; }
6233
6234 if test "x$lt_cv_ar_at_file" = xno; then
6235   archiver_list_spec=
6236 else
6237   archiver_list_spec=$lt_cv_ar_at_file
6238 fi
6239
6240
6241
6242
6243
6244
6245
6246 if test -n "$ac_tool_prefix"; then
6247   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6248 set dummy ${ac_tool_prefix}strip; ac_word=$2
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250 $as_echo_n "checking for $ac_word... " >&6; }
6251 if ${ac_cv_prog_STRIP+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   if test -n "$STRIP"; then
6255   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6256 else
6257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6258 for as_dir in $PATH
6259 do
6260   IFS=$as_save_IFS
6261   test -z "$as_dir" && as_dir=.
6262     for ac_exec_ext in '' $ac_executable_extensions; do
6263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6264     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6266     break 2
6267   fi
6268 done
6269   done
6270 IFS=$as_save_IFS
6271
6272 fi
6273 fi
6274 STRIP=$ac_cv_prog_STRIP
6275 if test -n "$STRIP"; then
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6277 $as_echo "$STRIP" >&6; }
6278 else
6279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6280 $as_echo "no" >&6; }
6281 fi
6282
6283
6284 fi
6285 if test -z "$ac_cv_prog_STRIP"; then
6286   ac_ct_STRIP=$STRIP
6287   # Extract the first word of "strip", so it can be a program name with args.
6288 set dummy strip; ac_word=$2
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6290 $as_echo_n "checking for $ac_word... " >&6; }
6291 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   if test -n "$ac_ct_STRIP"; then
6295   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300   IFS=$as_save_IFS
6301   test -z "$as_dir" && as_dir=.
6302     for ac_exec_ext in '' $ac_executable_extensions; do
6303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304     ac_cv_prog_ac_ct_STRIP="strip"
6305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6306     break 2
6307   fi
6308 done
6309   done
6310 IFS=$as_save_IFS
6311
6312 fi
6313 fi
6314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315 if test -n "$ac_ct_STRIP"; then
6316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6317 $as_echo "$ac_ct_STRIP" >&6; }
6318 else
6319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 $as_echo "no" >&6; }
6321 fi
6322
6323   if test "x$ac_ct_STRIP" = x; then
6324     STRIP=":"
6325   else
6326     case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332     STRIP=$ac_ct_STRIP
6333   fi
6334 else
6335   STRIP="$ac_cv_prog_STRIP"
6336 fi
6337
6338 test -z "$STRIP" && STRIP=:
6339
6340
6341
6342
6343
6344
6345 if test -n "$ac_tool_prefix"; then
6346   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6347 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6349 $as_echo_n "checking for $ac_word... " >&6; }
6350 if ${ac_cv_prog_RANLIB+:} false; then :
6351   $as_echo_n "(cached) " >&6
6352 else
6353   if test -n "$RANLIB"; then
6354   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6355 else
6356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6357 for as_dir in $PATH
6358 do
6359   IFS=$as_save_IFS
6360   test -z "$as_dir" && as_dir=.
6361     for ac_exec_ext in '' $ac_executable_extensions; do
6362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6363     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6365     break 2
6366   fi
6367 done
6368   done
6369 IFS=$as_save_IFS
6370
6371 fi
6372 fi
6373 RANLIB=$ac_cv_prog_RANLIB
6374 if test -n "$RANLIB"; then
6375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6376 $as_echo "$RANLIB" >&6; }
6377 else
6378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6379 $as_echo "no" >&6; }
6380 fi
6381
6382
6383 fi
6384 if test -z "$ac_cv_prog_RANLIB"; then
6385   ac_ct_RANLIB=$RANLIB
6386   # Extract the first word of "ranlib", so it can be a program name with args.
6387 set dummy ranlib; ac_word=$2
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6389 $as_echo_n "checking for $ac_word... " >&6; }
6390 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   if test -n "$ac_ct_RANLIB"; then
6394   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6395 else
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397 for as_dir in $PATH
6398 do
6399   IFS=$as_save_IFS
6400   test -z "$as_dir" && as_dir=.
6401     for ac_exec_ext in '' $ac_executable_extensions; do
6402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6403     ac_cv_prog_ac_ct_RANLIB="ranlib"
6404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6405     break 2
6406   fi
6407 done
6408   done
6409 IFS=$as_save_IFS
6410
6411 fi
6412 fi
6413 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6414 if test -n "$ac_ct_RANLIB"; then
6415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6416 $as_echo "$ac_ct_RANLIB" >&6; }
6417 else
6418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6419 $as_echo "no" >&6; }
6420 fi
6421
6422   if test "x$ac_ct_RANLIB" = x; then
6423     RANLIB=":"
6424   else
6425     case $cross_compiling:$ac_tool_warned in
6426 yes:)
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6429 ac_tool_warned=yes ;;
6430 esac
6431     RANLIB=$ac_ct_RANLIB
6432   fi
6433 else
6434   RANLIB="$ac_cv_prog_RANLIB"
6435 fi
6436
6437 test -z "$RANLIB" && RANLIB=:
6438
6439
6440
6441
6442
6443
6444 # Determine commands to create old-style static archives.
6445 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6446 old_postinstall_cmds='chmod 644 $oldlib'
6447 old_postuninstall_cmds=
6448
6449 if test -n "$RANLIB"; then
6450   case $host_os in
6451   openbsd*)
6452     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6453     ;;
6454   *)
6455     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6456     ;;
6457   esac
6458   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6459 fi
6460
6461 case $host_os in
6462   darwin*)
6463     lock_old_archive_extraction=yes ;;
6464   *)
6465     lock_old_archive_extraction=no ;;
6466 esac
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506 # If no C compiler was specified, use CC.
6507 LTCC=${LTCC-"$CC"}
6508
6509 # If no C compiler flags were specified, use CFLAGS.
6510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6511
6512 # Allow CC to be a program name with arguments.
6513 compiler=$CC
6514
6515
6516 # Check for command to grab the raw symbol name followed by C symbol from nm.
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6518 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6519 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522
6523 # These are sane defaults that work on at least a few old systems.
6524 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6525
6526 # Character class describing NM global symbol codes.
6527 symcode='[BCDEGRST]'
6528
6529 # Regexp to match symbols that can be accessed directly from C.
6530 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6531
6532 # Define system-specific variables.
6533 case $host_os in
6534 aix*)
6535   symcode='[BCDT]'
6536   ;;
6537 cygwin* | mingw* | pw32* | cegcc*)
6538   symcode='[ABCDGISTW]'
6539   ;;
6540 hpux*)
6541   if test "$host_cpu" = ia64; then
6542     symcode='[ABCDEGRST]'
6543   fi
6544   ;;
6545 irix* | nonstopux*)
6546   symcode='[BCDEGRST]'
6547   ;;
6548 osf*)
6549   symcode='[BCDEGQRST]'
6550   ;;
6551 solaris*)
6552   symcode='[BDRT]'
6553   ;;
6554 sco3.2v5*)
6555   symcode='[DT]'
6556   ;;
6557 sysv4.2uw2*)
6558   symcode='[DT]'
6559   ;;
6560 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6561   symcode='[ABDT]'
6562   ;;
6563 sysv4)
6564   symcode='[DFNSTU]'
6565   ;;
6566 esac
6567
6568 # If we're using GNU nm, then use its standard symbol codes.
6569 case `$NM -V 2>&1` in
6570 *GNU* | *'with BFD'*)
6571   symcode='[ABCDGIRSTW]' ;;
6572 esac
6573
6574 # Transform an extracted symbol line into a proper C declaration.
6575 # Some systems (esp. on ia64) link data and code symbols differently,
6576 # so use this general approach.
6577 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6578
6579 # Transform an extracted symbol line into symbol name and symbol address
6580 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6581 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'"
6582
6583 # Handle CRLF in mingw tool chain
6584 opt_cr=
6585 case $build_os in
6586 mingw*)
6587   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6588   ;;
6589 esac
6590
6591 # Try without a prefix underscore, then with it.
6592 for ac_symprfx in "" "_"; do
6593
6594   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6595   symxfrm="\\1 $ac_symprfx\\2 \\2"
6596
6597   # Write the raw and C identifiers.
6598   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6599     # Fake it for dumpbin and say T for any non-static function
6600     # and D for any global variable.
6601     # Also find C++ and __fastcall symbols from MSVC++,
6602     # which start with @ or ?.
6603     lt_cv_sys_global_symbol_pipe="$AWK '"\
6604 "     {last_section=section; section=\$ 3};"\
6605 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6606 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6607 "     \$ 0!~/External *\|/{next};"\
6608 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6609 "     {if(hide[section]) next};"\
6610 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6611 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6612 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6613 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6614 "     ' prfx=^$ac_symprfx"
6615   else
6616     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6617   fi
6618   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6619
6620   # Check to see that the pipe works correctly.
6621   pipe_works=no
6622
6623   rm -f conftest*
6624   cat > conftest.$ac_ext <<_LT_EOF
6625 #ifdef __cplusplus
6626 extern "C" {
6627 #endif
6628 char nm_test_var;
6629 void nm_test_func(void);
6630 void nm_test_func(void){}
6631 #ifdef __cplusplus
6632 }
6633 #endif
6634 int main(){nm_test_var='a';nm_test_func();return(0);}
6635 _LT_EOF
6636
6637   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6638   (eval $ac_compile) 2>&5
6639   ac_status=$?
6640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641   test $ac_status = 0; }; then
6642     # Now try to grab the symbols.
6643     nlist=conftest.nm
6644     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6645   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6646   ac_status=$?
6647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648   test $ac_status = 0; } && test -s "$nlist"; then
6649       # Try sorting and uniquifying the output.
6650       if sort "$nlist" | uniq > "$nlist"T; then
6651         mv -f "$nlist"T "$nlist"
6652       else
6653         rm -f "$nlist"T
6654       fi
6655
6656       # Make sure that we snagged all the symbols we need.
6657       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6658         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6659           cat <<_LT_EOF > conftest.$ac_ext
6660 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6661 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6662 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6663    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6664 # define LT_DLSYM_CONST
6665 #elif defined(__osf__)
6666 /* This system does not cope well with relocations in const data.  */
6667 # define LT_DLSYM_CONST
6668 #else
6669 # define LT_DLSYM_CONST const
6670 #endif
6671
6672 #ifdef __cplusplus
6673 extern "C" {
6674 #endif
6675
6676 _LT_EOF
6677           # Now generate the symbol file.
6678           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6679
6680           cat <<_LT_EOF >> conftest.$ac_ext
6681
6682 /* The mapping between symbol names and symbols.  */
6683 LT_DLSYM_CONST struct {
6684   const char *name;
6685   void       *address;
6686 }
6687 lt__PROGRAM__LTX_preloaded_symbols[] =
6688 {
6689   { "@PROGRAM@", (void *) 0 },
6690 _LT_EOF
6691           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6692           cat <<\_LT_EOF >> conftest.$ac_ext
6693   {0, (void *) 0}
6694 };
6695
6696 /* This works around a problem in FreeBSD linker */
6697 #ifdef FREEBSD_WORKAROUND
6698 static const void *lt_preloaded_setup() {
6699   return lt__PROGRAM__LTX_preloaded_symbols;
6700 }
6701 #endif
6702
6703 #ifdef __cplusplus
6704 }
6705 #endif
6706 _LT_EOF
6707           # Now try linking the two files.
6708           mv conftest.$ac_objext conftstm.$ac_objext
6709           lt_globsym_save_LIBS=$LIBS
6710           lt_globsym_save_CFLAGS=$CFLAGS
6711           LIBS="conftstm.$ac_objext"
6712           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6713           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6714   (eval $ac_link) 2>&5
6715   ac_status=$?
6716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6717   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6718             pipe_works=yes
6719           fi
6720           LIBS=$lt_globsym_save_LIBS
6721           CFLAGS=$lt_globsym_save_CFLAGS
6722         else
6723           echo "cannot find nm_test_func in $nlist" >&5
6724         fi
6725       else
6726         echo "cannot find nm_test_var in $nlist" >&5
6727       fi
6728     else
6729       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6730     fi
6731   else
6732     echo "$progname: failed program was:" >&5
6733     cat conftest.$ac_ext >&5
6734   fi
6735   rm -rf conftest* conftst*
6736
6737   # Do not use the global_symbol_pipe unless it works.
6738   if test "$pipe_works" = yes; then
6739     break
6740   else
6741     lt_cv_sys_global_symbol_pipe=
6742   fi
6743 done
6744
6745 fi
6746
6747 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6748   lt_cv_sys_global_symbol_to_cdecl=
6749 fi
6750 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6752 $as_echo "failed" >&6; }
6753 else
6754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6755 $as_echo "ok" >&6; }
6756 fi
6757
6758 # Response file support.
6759 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6760   nm_file_list_spec='@'
6761 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6762   nm_file_list_spec='@'
6763 fi
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6792 $as_echo_n "checking for sysroot... " >&6; }
6793
6794 # Check whether --with-sysroot was given.
6795 if test "${with_sysroot+set}" = set; then :
6796   withval=$with_sysroot;
6797 else
6798   with_sysroot=no
6799 fi
6800
6801
6802 lt_sysroot=
6803 case ${with_sysroot} in #(
6804  yes)
6805    if test "$GCC" = yes; then
6806      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6807    fi
6808    ;; #(
6809  /*)
6810    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6811    ;; #(
6812  no|'')
6813    ;; #(
6814  *)
6815    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6816 $as_echo "${with_sysroot}" >&6; }
6817    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6818    ;;
6819 esac
6820
6821  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6822 $as_echo "${lt_sysroot:-no}" >&6; }
6823
6824
6825
6826
6827
6828 # Check whether --enable-libtool-lock was given.
6829 if test "${enable_libtool_lock+set}" = set; then :
6830   enableval=$enable_libtool_lock;
6831 fi
6832
6833 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6834
6835 # Some flags need to be propagated to the compiler or linker for good
6836 # libtool support.
6837 case $host in
6838 ia64-*-hpux*)
6839   # Find out which ABI we are using.
6840   echo 'int i;' > conftest.$ac_ext
6841   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6842   (eval $ac_compile) 2>&5
6843   ac_status=$?
6844   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6845   test $ac_status = 0; }; then
6846     case `/usr/bin/file conftest.$ac_objext` in
6847       *ELF-32*)
6848         HPUX_IA64_MODE="32"
6849         ;;
6850       *ELF-64*)
6851         HPUX_IA64_MODE="64"
6852         ;;
6853     esac
6854   fi
6855   rm -rf conftest*
6856   ;;
6857 *-*-irix6*)
6858   # Find out which ABI we are using.
6859   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6860   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6861   (eval $ac_compile) 2>&5
6862   ac_status=$?
6863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6864   test $ac_status = 0; }; then
6865     if test "$lt_cv_prog_gnu_ld" = yes; then
6866       case `/usr/bin/file conftest.$ac_objext` in
6867         *32-bit*)
6868           LD="${LD-ld} -melf32bsmip"
6869           ;;
6870         *N32*)
6871           LD="${LD-ld} -melf32bmipn32"
6872           ;;
6873         *64-bit*)
6874           LD="${LD-ld} -melf64bmip"
6875         ;;
6876       esac
6877     else
6878       case `/usr/bin/file conftest.$ac_objext` in
6879         *32-bit*)
6880           LD="${LD-ld} -32"
6881           ;;
6882         *N32*)
6883           LD="${LD-ld} -n32"
6884           ;;
6885         *64-bit*)
6886           LD="${LD-ld} -64"
6887           ;;
6888       esac
6889     fi
6890   fi
6891   rm -rf conftest*
6892   ;;
6893
6894 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6895 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6896   # Find out which ABI we are using.
6897   echo 'int i;' > conftest.$ac_ext
6898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899   (eval $ac_compile) 2>&5
6900   ac_status=$?
6901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902   test $ac_status = 0; }; then
6903     case `/usr/bin/file conftest.o` in
6904       *32-bit*)
6905         case $host in
6906           x86_64-*kfreebsd*-gnu)
6907             LD="${LD-ld} -m elf_i386_fbsd"
6908             ;;
6909           x86_64-*linux*)
6910             case `/usr/bin/file conftest.o` in
6911               *x86-64*)
6912                  LD="${LD-ld} -m elf32_x86_64"
6913                  ;;
6914               *)
6915                  LD="${LD-ld} -m elf_i386"
6916                  ;;
6917             esac
6918             ;;
6919           ppc64-*linux*|powerpc64-*linux*)
6920             LD="${LD-ld} -m elf32ppclinux"
6921             ;;
6922           s390x-*linux*)
6923             LD="${LD-ld} -m elf_s390"
6924             ;;
6925           sparc64-*linux*)
6926             LD="${LD-ld} -m elf32_sparc"
6927             ;;
6928         esac
6929         ;;
6930       *64-bit*)
6931         case $host in
6932           x86_64-*kfreebsd*-gnu)
6933             LD="${LD-ld} -m elf_x86_64_fbsd"
6934             ;;
6935           x86_64-*linux*)
6936             LD="${LD-ld} -m elf_x86_64"
6937             ;;
6938           ppc*-*linux*|powerpc*-*linux*)
6939             LD="${LD-ld} -m elf64ppc"
6940             ;;
6941           s390*-*linux*|s390*-*tpf*)
6942             LD="${LD-ld} -m elf64_s390"
6943             ;;
6944           sparc*-*linux*)
6945             LD="${LD-ld} -m elf64_sparc"
6946             ;;
6947         esac
6948         ;;
6949     esac
6950   fi
6951   rm -rf conftest*
6952   ;;
6953
6954 *-*-sco3.2v5*)
6955   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6956   SAVE_CFLAGS="$CFLAGS"
6957   CFLAGS="$CFLAGS -belf"
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6959 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6960 if ${lt_cv_cc_needs_belf+:} false; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963   ac_ext=c
6964 ac_cpp='$CPP $CPPFLAGS'
6965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6968
6969      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6970 /* end confdefs.h.  */
6971
6972 int
6973 main ()
6974 {
6975
6976   ;
6977   return 0;
6978 }
6979 _ACEOF
6980 if ac_fn_c_try_link "$LINENO"; then :
6981   lt_cv_cc_needs_belf=yes
6982 else
6983   lt_cv_cc_needs_belf=no
6984 fi
6985 rm -f core conftest.err conftest.$ac_objext \
6986     conftest$ac_exeext conftest.$ac_ext
6987      ac_ext=c
6988 ac_cpp='$CPP $CPPFLAGS'
6989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6992
6993 fi
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6995 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6996   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6997     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6998     CFLAGS="$SAVE_CFLAGS"
6999   fi
7000   ;;
7001 *-*solaris*)
7002   # Find out which ABI we are using.
7003   echo 'int i;' > conftest.$ac_ext
7004   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7005   (eval $ac_compile) 2>&5
7006   ac_status=$?
7007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7008   test $ac_status = 0; }; then
7009     case `/usr/bin/file conftest.o` in
7010     *64-bit*)
7011       case $lt_cv_prog_gnu_ld in
7012       yes*)
7013         case $host in
7014         i?86-*-solaris*)
7015           LD="${LD-ld} -m elf_x86_64"
7016           ;;
7017         sparc*-*-solaris*)
7018           LD="${LD-ld} -m elf64_sparc"
7019           ;;
7020         esac
7021         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7022         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7023           LD="${LD-ld}_sol2"
7024         fi
7025         ;;
7026       *)
7027         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7028           LD="${LD-ld} -64"
7029         fi
7030         ;;
7031       esac
7032       ;;
7033     esac
7034   fi
7035   rm -rf conftest*
7036   ;;
7037 esac
7038
7039 need_locks="$enable_libtool_lock"
7040
7041 if test -n "$ac_tool_prefix"; then
7042   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7043 set dummy ${ac_tool_prefix}mt; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test -n "$MANIFEST_TOOL"; then
7050   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7059     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064   done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7070 if test -n "$MANIFEST_TOOL"; then
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7072 $as_echo "$MANIFEST_TOOL" >&6; }
7073 else
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078
7079 fi
7080 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7081   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7082   # Extract the first word of "mt", so it can be a program name with args.
7083 set dummy mt; ac_word=$2
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7085 $as_echo_n "checking for $ac_word... " >&6; }
7086 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7087   $as_echo_n "(cached) " >&6
7088 else
7089   if test -n "$ac_ct_MANIFEST_TOOL"; then
7090   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7091 else
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7093 for as_dir in $PATH
7094 do
7095   IFS=$as_save_IFS
7096   test -z "$as_dir" && as_dir=.
7097     for ac_exec_ext in '' $ac_executable_extensions; do
7098   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7099     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7100     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7101     break 2
7102   fi
7103 done
7104   done
7105 IFS=$as_save_IFS
7106
7107 fi
7108 fi
7109 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7110 if test -n "$ac_ct_MANIFEST_TOOL"; then
7111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7112 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7113 else
7114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7115 $as_echo "no" >&6; }
7116 fi
7117
7118   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7119     MANIFEST_TOOL=":"
7120   else
7121     case $cross_compiling:$ac_tool_warned in
7122 yes:)
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7125 ac_tool_warned=yes ;;
7126 esac
7127     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7128   fi
7129 else
7130   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7131 fi
7132
7133 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7135 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7136 if ${lt_cv_path_mainfest_tool+:} false; then :
7137   $as_echo_n "(cached) " >&6
7138 else
7139   lt_cv_path_mainfest_tool=no
7140   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7141   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7142   cat conftest.err >&5
7143   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7144     lt_cv_path_mainfest_tool=yes
7145   fi
7146   rm -f conftest*
7147 fi
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7149 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7150 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7151   MANIFEST_TOOL=:
7152 fi
7153
7154
7155
7156
7157
7158
7159   case $host_os in
7160     rhapsody* | darwin*)
7161     if test -n "$ac_tool_prefix"; then
7162   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$DSYMUTIL"; then
7170   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7190 if test -n "$DSYMUTIL"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7192 $as_echo "$DSYMUTIL" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_DSYMUTIL"; then
7201   ac_ct_DSYMUTIL=$DSYMUTIL
7202   # Extract the first word of "dsymutil", so it can be a program name with args.
7203 set dummy dsymutil; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$ac_ct_DSYMUTIL"; then
7210   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7230 if test -n "$ac_ct_DSYMUTIL"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7232 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238   if test "x$ac_ct_DSYMUTIL" = x; then
7239     DSYMUTIL=":"
7240   else
7241     case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247     DSYMUTIL=$ac_ct_DSYMUTIL
7248   fi
7249 else
7250   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7251 fi
7252
7253     if test -n "$ac_tool_prefix"; then
7254   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7255 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257 $as_echo_n "checking for $ac_word... " >&6; }
7258 if ${ac_cv_prog_NMEDIT+:} false; then :
7259   $as_echo_n "(cached) " >&6
7260 else
7261   if test -n "$NMEDIT"; then
7262   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7263 else
7264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265 for as_dir in $PATH
7266 do
7267   IFS=$as_save_IFS
7268   test -z "$as_dir" && as_dir=.
7269     for ac_exec_ext in '' $ac_executable_extensions; do
7270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273     break 2
7274   fi
7275 done
7276   done
7277 IFS=$as_save_IFS
7278
7279 fi
7280 fi
7281 NMEDIT=$ac_cv_prog_NMEDIT
7282 if test -n "$NMEDIT"; then
7283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7284 $as_echo "$NMEDIT" >&6; }
7285 else
7286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287 $as_echo "no" >&6; }
7288 fi
7289
7290
7291 fi
7292 if test -z "$ac_cv_prog_NMEDIT"; then
7293   ac_ct_NMEDIT=$NMEDIT
7294   # Extract the first word of "nmedit", so it can be a program name with args.
7295 set dummy nmedit; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   if test -n "$ac_ct_NMEDIT"; then
7302   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7303 else
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305 for as_dir in $PATH
7306 do
7307   IFS=$as_save_IFS
7308   test -z "$as_dir" && as_dir=.
7309     for ac_exec_ext in '' $ac_executable_extensions; do
7310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313     break 2
7314   fi
7315 done
7316   done
7317 IFS=$as_save_IFS
7318
7319 fi
7320 fi
7321 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7322 if test -n "$ac_ct_NMEDIT"; then
7323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7324 $as_echo "$ac_ct_NMEDIT" >&6; }
7325 else
7326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7328 fi
7329
7330   if test "x$ac_ct_NMEDIT" = x; then
7331     NMEDIT=":"
7332   else
7333     case $cross_compiling:$ac_tool_warned in
7334 yes:)
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337 ac_tool_warned=yes ;;
7338 esac
7339     NMEDIT=$ac_ct_NMEDIT
7340   fi
7341 else
7342   NMEDIT="$ac_cv_prog_NMEDIT"
7343 fi
7344
7345     if test -n "$ac_tool_prefix"; then
7346   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7347 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7349 $as_echo_n "checking for $ac_word... " >&6; }
7350 if ${ac_cv_prog_LIPO+:} false; then :
7351   $as_echo_n "(cached) " >&6
7352 else
7353   if test -n "$LIPO"; then
7354   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7355 else
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7357 for as_dir in $PATH
7358 do
7359   IFS=$as_save_IFS
7360   test -z "$as_dir" && as_dir=.
7361     for ac_exec_ext in '' $ac_executable_extensions; do
7362   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7363     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365     break 2
7366   fi
7367 done
7368   done
7369 IFS=$as_save_IFS
7370
7371 fi
7372 fi
7373 LIPO=$ac_cv_prog_LIPO
7374 if test -n "$LIPO"; then
7375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7376 $as_echo "$LIPO" >&6; }
7377 else
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7380 fi
7381
7382
7383 fi
7384 if test -z "$ac_cv_prog_LIPO"; then
7385   ac_ct_LIPO=$LIPO
7386   # Extract the first word of "lipo", so it can be a program name with args.
7387 set dummy lipo; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7391   $as_echo_n "(cached) " >&6
7392 else
7393   if test -n "$ac_ct_LIPO"; then
7394   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401     for ac_exec_ext in '' $ac_executable_extensions; do
7402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403     ac_cv_prog_ac_ct_LIPO="lipo"
7404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408   done
7409 IFS=$as_save_IFS
7410
7411 fi
7412 fi
7413 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7414 if test -n "$ac_ct_LIPO"; then
7415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7416 $as_echo "$ac_ct_LIPO" >&6; }
7417 else
7418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7420 fi
7421
7422   if test "x$ac_ct_LIPO" = x; then
7423     LIPO=":"
7424   else
7425     case $cross_compiling:$ac_tool_warned in
7426 yes:)
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7429 ac_tool_warned=yes ;;
7430 esac
7431     LIPO=$ac_ct_LIPO
7432   fi
7433 else
7434   LIPO="$ac_cv_prog_LIPO"
7435 fi
7436
7437     if test -n "$ac_tool_prefix"; then
7438   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7439 set dummy ${ac_tool_prefix}otool; ac_word=$2
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7441 $as_echo_n "checking for $ac_word... " >&6; }
7442 if ${ac_cv_prog_OTOOL+:} false; then :
7443   $as_echo_n "(cached) " >&6
7444 else
7445   if test -n "$OTOOL"; then
7446   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7447 else
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 for as_dir in $PATH
7450 do
7451   IFS=$as_save_IFS
7452   test -z "$as_dir" && as_dir=.
7453     for ac_exec_ext in '' $ac_executable_extensions; do
7454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7455     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7457     break 2
7458   fi
7459 done
7460   done
7461 IFS=$as_save_IFS
7462
7463 fi
7464 fi
7465 OTOOL=$ac_cv_prog_OTOOL
7466 if test -n "$OTOOL"; then
7467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7468 $as_echo "$OTOOL" >&6; }
7469 else
7470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }
7472 fi
7473
7474
7475 fi
7476 if test -z "$ac_cv_prog_OTOOL"; then
7477   ac_ct_OTOOL=$OTOOL
7478   # Extract the first word of "otool", so it can be a program name with args.
7479 set dummy otool; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7483   $as_echo_n "(cached) " >&6
7484 else
7485   if test -n "$ac_ct_OTOOL"; then
7486   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7490 do
7491   IFS=$as_save_IFS
7492   test -z "$as_dir" && as_dir=.
7493     for ac_exec_ext in '' $ac_executable_extensions; do
7494   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495     ac_cv_prog_ac_ct_OTOOL="otool"
7496     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497     break 2
7498   fi
7499 done
7500   done
7501 IFS=$as_save_IFS
7502
7503 fi
7504 fi
7505 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7506 if test -n "$ac_ct_OTOOL"; then
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7508 $as_echo "$ac_ct_OTOOL" >&6; }
7509 else
7510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7512 fi
7513
7514   if test "x$ac_ct_OTOOL" = x; then
7515     OTOOL=":"
7516   else
7517     case $cross_compiling:$ac_tool_warned in
7518 yes:)
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7521 ac_tool_warned=yes ;;
7522 esac
7523     OTOOL=$ac_ct_OTOOL
7524   fi
7525 else
7526   OTOOL="$ac_cv_prog_OTOOL"
7527 fi
7528
7529     if test -n "$ac_tool_prefix"; then
7530   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7531 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533 $as_echo_n "checking for $ac_word... " >&6; }
7534 if ${ac_cv_prog_OTOOL64+:} false; then :
7535   $as_echo_n "(cached) " >&6
7536 else
7537   if test -n "$OTOOL64"; then
7538   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7539 else
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541 for as_dir in $PATH
7542 do
7543   IFS=$as_save_IFS
7544   test -z "$as_dir" && as_dir=.
7545     for ac_exec_ext in '' $ac_executable_extensions; do
7546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7547     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549     break 2
7550   fi
7551 done
7552   done
7553 IFS=$as_save_IFS
7554
7555 fi
7556 fi
7557 OTOOL64=$ac_cv_prog_OTOOL64
7558 if test -n "$OTOOL64"; then
7559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7560 $as_echo "$OTOOL64" >&6; }
7561 else
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7564 fi
7565
7566
7567 fi
7568 if test -z "$ac_cv_prog_OTOOL64"; then
7569   ac_ct_OTOOL64=$OTOOL64
7570   # Extract the first word of "otool64", so it can be a program name with args.
7571 set dummy otool64; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7575   $as_echo_n "(cached) " >&6
7576 else
7577   if test -n "$ac_ct_OTOOL64"; then
7578   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583   IFS=$as_save_IFS
7584   test -z "$as_dir" && as_dir=.
7585     for ac_exec_ext in '' $ac_executable_extensions; do
7586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587     ac_cv_prog_ac_ct_OTOOL64="otool64"
7588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589     break 2
7590   fi
7591 done
7592   done
7593 IFS=$as_save_IFS
7594
7595 fi
7596 fi
7597 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7598 if test -n "$ac_ct_OTOOL64"; then
7599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7600 $as_echo "$ac_ct_OTOOL64" >&6; }
7601 else
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7604 fi
7605
7606   if test "x$ac_ct_OTOOL64" = x; then
7607     OTOOL64=":"
7608   else
7609     case $cross_compiling:$ac_tool_warned in
7610 yes:)
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7613 ac_tool_warned=yes ;;
7614 esac
7615     OTOOL64=$ac_ct_OTOOL64
7616   fi
7617 else
7618   OTOOL64="$ac_cv_prog_OTOOL64"
7619 fi
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7648 $as_echo_n "checking for -single_module linker flag... " >&6; }
7649 if ${lt_cv_apple_cc_single_mod+:} false; then :
7650   $as_echo_n "(cached) " >&6
7651 else
7652   lt_cv_apple_cc_single_mod=no
7653       if test -z "${LT_MULTI_MODULE}"; then
7654         # By default we will add the -single_module flag. You can override
7655         # by either setting the environment variable LT_MULTI_MODULE
7656         # non-empty at configure time, or by adding -multi_module to the
7657         # link flags.
7658         rm -rf libconftest.dylib*
7659         echo "int foo(void){return 1;}" > conftest.c
7660         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7661 -dynamiclib -Wl,-single_module conftest.c" >&5
7662         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7663           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7664         _lt_result=$?
7665         # If there is a non-empty error log, and "single_module"
7666         # appears in it, assume the flag caused a linker warning
7667         if test -s conftest.err && $GREP single_module conftest.err; then
7668           cat conftest.err >&5
7669         # Otherwise, if the output was created with a 0 exit code from
7670         # the compiler, it worked.
7671         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7672           lt_cv_apple_cc_single_mod=yes
7673         else
7674           cat conftest.err >&5
7675         fi
7676         rm -rf libconftest.dylib*
7677         rm -f conftest.*
7678       fi
7679 fi
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7681 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7682
7683     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7684 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7685 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7686   $as_echo_n "(cached) " >&6
7687 else
7688   lt_cv_ld_exported_symbols_list=no
7689       save_LDFLAGS=$LDFLAGS
7690       echo "_main" > conftest.sym
7691       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7692       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7693 /* end confdefs.h.  */
7694
7695 int
7696 main ()
7697 {
7698
7699   ;
7700   return 0;
7701 }
7702 _ACEOF
7703 if ac_fn_c_try_link "$LINENO"; then :
7704   lt_cv_ld_exported_symbols_list=yes
7705 else
7706   lt_cv_ld_exported_symbols_list=no
7707 fi
7708 rm -f core conftest.err conftest.$ac_objext \
7709     conftest$ac_exeext conftest.$ac_ext
7710         LDFLAGS="$save_LDFLAGS"
7711
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7714 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7715
7716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7717 $as_echo_n "checking for -force_load linker flag... " >&6; }
7718 if ${lt_cv_ld_force_load+:} false; then :
7719   $as_echo_n "(cached) " >&6
7720 else
7721   lt_cv_ld_force_load=no
7722       cat > conftest.c << _LT_EOF
7723 int forced_loaded() { return 2;}
7724 _LT_EOF
7725       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7726       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7727       echo "$AR cru libconftest.a conftest.o" >&5
7728       $AR cru libconftest.a conftest.o 2>&5
7729       echo "$RANLIB libconftest.a" >&5
7730       $RANLIB libconftest.a 2>&5
7731       cat > conftest.c << _LT_EOF
7732 int main() { return 0;}
7733 _LT_EOF
7734       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7735       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7736       _lt_result=$?
7737       if test -s conftest.err && $GREP force_load conftest.err; then
7738         cat conftest.err >&5
7739       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7740         lt_cv_ld_force_load=yes
7741       else
7742         cat conftest.err >&5
7743       fi
7744         rm -f conftest.err libconftest.a conftest conftest.c
7745         rm -rf conftest.dSYM
7746
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7749 $as_echo "$lt_cv_ld_force_load" >&6; }
7750     case $host_os in
7751     rhapsody* | darwin1.[012])
7752       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7753     darwin1.*)
7754       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7755     darwin*) # darwin 5.x on
7756       # if running on 10.5 or later, the deployment target defaults
7757       # to the OS version, if on x86, and 10.4, the deployment
7758       # target defaults to 10.4. Don't you love it?
7759       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7760         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7761           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7762         10.[012]*)
7763           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7764         10.*)
7765           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7766       esac
7767     ;;
7768   esac
7769     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7770       _lt_dar_single_mod='$single_module'
7771     fi
7772     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7773       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7774     else
7775       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7776     fi
7777     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7778       _lt_dsymutil='~$DSYMUTIL $lib || :'
7779     else
7780       _lt_dsymutil=
7781     fi
7782     ;;
7783   esac
7784
7785 ac_ext=c
7786 ac_cpp='$CPP $CPPFLAGS'
7787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7791 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7792 # On Suns, sometimes $CPP names a directory.
7793 if test -n "$CPP" && test -d "$CPP"; then
7794   CPP=
7795 fi
7796 if test -z "$CPP"; then
7797   if ${ac_cv_prog_CPP+:} false; then :
7798   $as_echo_n "(cached) " >&6
7799 else
7800       # Double quotes because CPP needs to be expanded
7801     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7802     do
7803       ac_preproc_ok=false
7804 for ac_c_preproc_warn_flag in '' yes
7805 do
7806   # Use a header file that comes with gcc, so configuring glibc
7807   # with a fresh cross-compiler works.
7808   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7809   # <limits.h> exists even on freestanding compilers.
7810   # On the NeXT, cc -E runs the code through the compiler's parser,
7811   # not just through cpp. "Syntax error" is here to catch this case.
7812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813 /* end confdefs.h.  */
7814 #ifdef __STDC__
7815 # include <limits.h>
7816 #else
7817 # include <assert.h>
7818 #endif
7819                      Syntax error
7820 _ACEOF
7821 if ac_fn_c_try_cpp "$LINENO"; then :
7822
7823 else
7824   # Broken: fails on valid input.
7825 continue
7826 fi
7827 rm -f conftest.err conftest.i conftest.$ac_ext
7828
7829   # OK, works on sane cases.  Now check whether nonexistent headers
7830   # can be detected and how.
7831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7832 /* end confdefs.h.  */
7833 #include <ac_nonexistent.h>
7834 _ACEOF
7835 if ac_fn_c_try_cpp "$LINENO"; then :
7836   # Broken: success on invalid input.
7837 continue
7838 else
7839   # Passes both tests.
7840 ac_preproc_ok=:
7841 break
7842 fi
7843 rm -f conftest.err conftest.i conftest.$ac_ext
7844
7845 done
7846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7847 rm -f conftest.i conftest.err conftest.$ac_ext
7848 if $ac_preproc_ok; then :
7849   break
7850 fi
7851
7852     done
7853     ac_cv_prog_CPP=$CPP
7854
7855 fi
7856   CPP=$ac_cv_prog_CPP
7857 else
7858   ac_cv_prog_CPP=$CPP
7859 fi
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7861 $as_echo "$CPP" >&6; }
7862 ac_preproc_ok=false
7863 for ac_c_preproc_warn_flag in '' yes
7864 do
7865   # Use a header file that comes with gcc, so configuring glibc
7866   # with a fresh cross-compiler works.
7867   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7868   # <limits.h> exists even on freestanding compilers.
7869   # On the NeXT, cc -E runs the code through the compiler's parser,
7870   # not just through cpp. "Syntax error" is here to catch this case.
7871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7872 /* end confdefs.h.  */
7873 #ifdef __STDC__
7874 # include <limits.h>
7875 #else
7876 # include <assert.h>
7877 #endif
7878                      Syntax error
7879 _ACEOF
7880 if ac_fn_c_try_cpp "$LINENO"; then :
7881
7882 else
7883   # Broken: fails on valid input.
7884 continue
7885 fi
7886 rm -f conftest.err conftest.i conftest.$ac_ext
7887
7888   # OK, works on sane cases.  Now check whether nonexistent headers
7889   # can be detected and how.
7890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7891 /* end confdefs.h.  */
7892 #include <ac_nonexistent.h>
7893 _ACEOF
7894 if ac_fn_c_try_cpp "$LINENO"; then :
7895   # Broken: success on invalid input.
7896 continue
7897 else
7898   # Passes both tests.
7899 ac_preproc_ok=:
7900 break
7901 fi
7902 rm -f conftest.err conftest.i conftest.$ac_ext
7903
7904 done
7905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7906 rm -f conftest.i conftest.err conftest.$ac_ext
7907 if $ac_preproc_ok; then :
7908
7909 else
7910   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7911 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7912 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7913 See \`config.log' for more details" "$LINENO" 5; }
7914 fi
7915
7916 ac_ext=c
7917 ac_cpp='$CPP $CPPFLAGS'
7918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7921
7922
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924 $as_echo_n "checking for ANSI C header files... " >&6; }
7925 if ${ac_cv_header_stdc+:} false; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #include <stdlib.h>
7931 #include <stdarg.h>
7932 #include <string.h>
7933 #include <float.h>
7934
7935 int
7936 main ()
7937 {
7938
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944   ac_cv_header_stdc=yes
7945 else
7946   ac_cv_header_stdc=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950 if test $ac_cv_header_stdc = yes; then
7951   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954 #include <string.h>
7955
7956 _ACEOF
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958   $EGREP "memchr" >/dev/null 2>&1; then :
7959
7960 else
7961   ac_cv_header_stdc=no
7962 fi
7963 rm -f conftest*
7964
7965 fi
7966
7967 if test $ac_cv_header_stdc = yes; then
7968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h.  */
7971 #include <stdlib.h>
7972
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975   $EGREP "free" >/dev/null 2>&1; then :
7976
7977 else
7978   ac_cv_header_stdc=no
7979 fi
7980 rm -f conftest*
7981
7982 fi
7983
7984 if test $ac_cv_header_stdc = yes; then
7985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986   if test "$cross_compiling" = yes; then :
7987   :
7988 else
7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991 #include <ctype.h>
7992 #include <stdlib.h>
7993 #if ((' ' & 0x0FF) == 0x020)
7994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7996 #else
7997 # define ISLOWER(c) \
7998                    (('a' <= (c) && (c) <= 'i') \
7999                      || ('j' <= (c) && (c) <= 'r') \
8000                      || ('s' <= (c) && (c) <= 'z'))
8001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8002 #endif
8003
8004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8005 int
8006 main ()
8007 {
8008   int i;
8009   for (i = 0; i < 256; i++)
8010     if (XOR (islower (i), ISLOWER (i))
8011         || toupper (i) != TOUPPER (i))
8012       return 2;
8013   return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_run "$LINENO"; then :
8017
8018 else
8019   ac_cv_header_stdc=no
8020 fi
8021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022   conftest.$ac_objext conftest.beam conftest.$ac_ext
8023 fi
8024
8025 fi
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028 $as_echo "$ac_cv_header_stdc" >&6; }
8029 if test $ac_cv_header_stdc = yes; then
8030
8031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8032
8033 fi
8034
8035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037                   inttypes.h stdint.h unistd.h
8038 do :
8039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8041 "
8042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043   cat >>confdefs.h <<_ACEOF
8044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045 _ACEOF
8046
8047 fi
8048
8049 done
8050
8051
8052 for ac_header in dlfcn.h
8053 do :
8054   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8055 "
8056 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8057   cat >>confdefs.h <<_ACEOF
8058 #define HAVE_DLFCN_H 1
8059 _ACEOF
8060
8061 fi
8062
8063 done
8064
8065
8066
8067
8068
8069 # Set options
8070
8071
8072
8073         enable_dlopen=no
8074
8075
8076   enable_win32_dll=no
8077
8078
8079             # Check whether --enable-shared was given.
8080 if test "${enable_shared+set}" = set; then :
8081   enableval=$enable_shared; p=${PACKAGE-default}
8082     case $enableval in
8083     yes) enable_shared=yes ;;
8084     no) enable_shared=no ;;
8085     *)
8086       enable_shared=no
8087       # Look at the argument we got.  We use all the common list separators.
8088       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8089       for pkg in $enableval; do
8090         IFS="$lt_save_ifs"
8091         if test "X$pkg" = "X$p"; then
8092           enable_shared=yes
8093         fi
8094       done
8095       IFS="$lt_save_ifs"
8096       ;;
8097     esac
8098 else
8099   enable_shared=yes
8100 fi
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110   # Check whether --enable-static was given.
8111 if test "${enable_static+set}" = set; then :
8112   enableval=$enable_static; p=${PACKAGE-default}
8113     case $enableval in
8114     yes) enable_static=yes ;;
8115     no) enable_static=no ;;
8116     *)
8117      enable_static=no
8118       # Look at the argument we got.  We use all the common list separators.
8119       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8120       for pkg in $enableval; do
8121         IFS="$lt_save_ifs"
8122         if test "X$pkg" = "X$p"; then
8123           enable_static=yes
8124         fi
8125       done
8126       IFS="$lt_save_ifs"
8127       ;;
8128     esac
8129 else
8130   enable_static=yes
8131 fi
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142 # Check whether --with-pic was given.
8143 if test "${with_pic+set}" = set; then :
8144   withval=$with_pic; lt_p=${PACKAGE-default}
8145     case $withval in
8146     yes|no) pic_mode=$withval ;;
8147     *)
8148       pic_mode=default
8149       # Look at the argument we got.  We use all the common list separators.
8150       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8151       for lt_pkg in $withval; do
8152         IFS="$lt_save_ifs"
8153         if test "X$lt_pkg" = "X$lt_p"; then
8154           pic_mode=yes
8155         fi
8156       done
8157       IFS="$lt_save_ifs"
8158       ;;
8159     esac
8160 else
8161   pic_mode=default
8162 fi
8163
8164
8165 test -z "$pic_mode" && pic_mode=default
8166
8167
8168
8169
8170
8171
8172
8173   # Check whether --enable-fast-install was given.
8174 if test "${enable_fast_install+set}" = set; then :
8175   enableval=$enable_fast_install; p=${PACKAGE-default}
8176     case $enableval in
8177     yes) enable_fast_install=yes ;;
8178     no) enable_fast_install=no ;;
8179     *)
8180       enable_fast_install=no
8181       # Look at the argument we got.  We use all the common list separators.
8182       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8183       for pkg in $enableval; do
8184         IFS="$lt_save_ifs"
8185         if test "X$pkg" = "X$p"; then
8186           enable_fast_install=yes
8187         fi
8188       done
8189       IFS="$lt_save_ifs"
8190       ;;
8191     esac
8192 else
8193   enable_fast_install=yes
8194 fi
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206 # This can be used to rebuild libtool when needed
8207 LIBTOOL_DEPS="$ltmain"
8208
8209 # Always use our own libtool.
8210 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241 test -z "$LN_S" && LN_S="ln -s"
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256 if test -n "${ZSH_VERSION+set}" ; then
8257    setopt NO_GLOB_SUBST
8258 fi
8259
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8261 $as_echo_n "checking for objdir... " >&6; }
8262 if ${lt_cv_objdir+:} false; then :
8263   $as_echo_n "(cached) " >&6
8264 else
8265   rm -f .libs 2>/dev/null
8266 mkdir .libs 2>/dev/null
8267 if test -d .libs; then
8268   lt_cv_objdir=.libs
8269 else
8270   # MS-DOS does not allow filenames that begin with a dot.
8271   lt_cv_objdir=_libs
8272 fi
8273 rmdir .libs 2>/dev/null
8274 fi
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8276 $as_echo "$lt_cv_objdir" >&6; }
8277 objdir=$lt_cv_objdir
8278
8279
8280
8281
8282
8283 cat >>confdefs.h <<_ACEOF
8284 #define LT_OBJDIR "$lt_cv_objdir/"
8285 _ACEOF
8286
8287
8288
8289
8290 case $host_os in
8291 aix3*)
8292   # AIX sometimes has problems with the GCC collect2 program.  For some
8293   # reason, if we set the COLLECT_NAMES environment variable, the problems
8294   # vanish in a puff of smoke.
8295   if test "X${COLLECT_NAMES+set}" != Xset; then
8296     COLLECT_NAMES=
8297     export COLLECT_NAMES
8298   fi
8299   ;;
8300 esac
8301
8302 # Global variables:
8303 ofile=libtool
8304 can_build_shared=yes
8305
8306 # All known linkers require a `.a' archive for static linking (except MSVC,
8307 # which needs '.lib').
8308 libext=a
8309
8310 with_gnu_ld="$lt_cv_prog_gnu_ld"
8311
8312 old_CC="$CC"
8313 old_CFLAGS="$CFLAGS"
8314
8315 # Set sane defaults for various variables
8316 test -z "$CC" && CC=cc
8317 test -z "$LTCC" && LTCC=$CC
8318 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8319 test -z "$LD" && LD=ld
8320 test -z "$ac_objext" && ac_objext=o
8321
8322 for cc_temp in $compiler""; do
8323   case $cc_temp in
8324     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8325     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8326     \-*) ;;
8327     *) break;;
8328   esac
8329 done
8330 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8331
8332
8333 # Only perform the check for file, if the check method requires it
8334 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8335 case $deplibs_check_method in
8336 file_magic*)
8337   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8338     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8339 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8340 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   case $MAGIC_CMD in
8344 [\\/*] |  ?:[\\/]*)
8345   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8346   ;;
8347 *)
8348   lt_save_MAGIC_CMD="$MAGIC_CMD"
8349   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8350   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8351   for ac_dir in $ac_dummy; do
8352     IFS="$lt_save_ifs"
8353     test -z "$ac_dir" && ac_dir=.
8354     if test -f $ac_dir/${ac_tool_prefix}file; then
8355       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8356       if test -n "$file_magic_test_file"; then
8357         case $deplibs_check_method in
8358         "file_magic "*)
8359           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8360           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8361           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8362             $EGREP "$file_magic_regex" > /dev/null; then
8363             :
8364           else
8365             cat <<_LT_EOF 1>&2
8366
8367 *** Warning: the command libtool uses to detect shared libraries,
8368 *** $file_magic_cmd, produces output that libtool cannot recognize.
8369 *** The result is that libtool may fail to recognize shared libraries
8370 *** as such.  This will affect the creation of libtool libraries that
8371 *** depend on shared libraries, but programs linked with such libtool
8372 *** libraries will work regardless of this problem.  Nevertheless, you
8373 *** may want to report the problem to your system manager and/or to
8374 *** bug-libtool@gnu.org
8375
8376 _LT_EOF
8377           fi ;;
8378         esac
8379       fi
8380       break
8381     fi
8382   done
8383   IFS="$lt_save_ifs"
8384   MAGIC_CMD="$lt_save_MAGIC_CMD"
8385   ;;
8386 esac
8387 fi
8388
8389 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8390 if test -n "$MAGIC_CMD"; then
8391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8392 $as_echo "$MAGIC_CMD" >&6; }
8393 else
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8396 fi
8397
8398
8399
8400
8401
8402 if test -z "$lt_cv_path_MAGIC_CMD"; then
8403   if test -n "$ac_tool_prefix"; then
8404     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8405 $as_echo_n "checking for file... " >&6; }
8406 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8407   $as_echo_n "(cached) " >&6
8408 else
8409   case $MAGIC_CMD in
8410 [\\/*] |  ?:[\\/]*)
8411   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8412   ;;
8413 *)
8414   lt_save_MAGIC_CMD="$MAGIC_CMD"
8415   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8416   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8417   for ac_dir in $ac_dummy; do
8418     IFS="$lt_save_ifs"
8419     test -z "$ac_dir" && ac_dir=.
8420     if test -f $ac_dir/file; then
8421       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8422       if test -n "$file_magic_test_file"; then
8423         case $deplibs_check_method in
8424         "file_magic "*)
8425           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8426           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8427           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8428             $EGREP "$file_magic_regex" > /dev/null; then
8429             :
8430           else
8431             cat <<_LT_EOF 1>&2
8432
8433 *** Warning: the command libtool uses to detect shared libraries,
8434 *** $file_magic_cmd, produces output that libtool cannot recognize.
8435 *** The result is that libtool may fail to recognize shared libraries
8436 *** as such.  This will affect the creation of libtool libraries that
8437 *** depend on shared libraries, but programs linked with such libtool
8438 *** libraries will work regardless of this problem.  Nevertheless, you
8439 *** may want to report the problem to your system manager and/or to
8440 *** bug-libtool@gnu.org
8441
8442 _LT_EOF
8443           fi ;;
8444         esac
8445       fi
8446       break
8447     fi
8448   done
8449   IFS="$lt_save_ifs"
8450   MAGIC_CMD="$lt_save_MAGIC_CMD"
8451   ;;
8452 esac
8453 fi
8454
8455 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8456 if test -n "$MAGIC_CMD"; then
8457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8458 $as_echo "$MAGIC_CMD" >&6; }
8459 else
8460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8462 fi
8463
8464
8465   else
8466     MAGIC_CMD=:
8467   fi
8468 fi
8469
8470   fi
8471   ;;
8472 esac
8473
8474 # Use C for the default configuration in the libtool script
8475
8476 lt_save_CC="$CC"
8477 ac_ext=c
8478 ac_cpp='$CPP $CPPFLAGS'
8479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482
8483
8484 # Source file extension for C test sources.
8485 ac_ext=c
8486
8487 # Object file extension for compiled C test sources.
8488 objext=o
8489 objext=$objext
8490
8491 # Code to be used in simple compile tests
8492 lt_simple_compile_test_code="int some_variable = 0;"
8493
8494 # Code to be used in simple link tests
8495 lt_simple_link_test_code='int main(){return(0);}'
8496
8497
8498
8499
8500
8501
8502
8503 # If no C compiler was specified, use CC.
8504 LTCC=${LTCC-"$CC"}
8505
8506 # If no C compiler flags were specified, use CFLAGS.
8507 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8508
8509 # Allow CC to be a program name with arguments.
8510 compiler=$CC
8511
8512 # Save the default compiler, since it gets overwritten when the other
8513 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8514 compiler_DEFAULT=$CC
8515
8516 # save warnings/boilerplate of simple test code
8517 ac_outfile=conftest.$ac_objext
8518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8520 _lt_compiler_boilerplate=`cat conftest.err`
8521 $RM conftest*
8522
8523 ac_outfile=conftest.$ac_objext
8524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8526 _lt_linker_boilerplate=`cat conftest.err`
8527 $RM -r conftest*
8528
8529
8530 ## CAVEAT EMPTOR:
8531 ## There is no encapsulation within the following macros, do not change
8532 ## the running order or otherwise move them around unless you know exactly
8533 ## what you are doing...
8534 if test -n "$compiler"; then
8535
8536 lt_prog_compiler_no_builtin_flag=
8537
8538 if test "$GCC" = yes; then
8539   case $cc_basename in
8540   nvcc*)
8541     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8542   *)
8543     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8544   esac
8545
8546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8547 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8548 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8549   $as_echo_n "(cached) " >&6
8550 else
8551   lt_cv_prog_compiler_rtti_exceptions=no
8552    ac_outfile=conftest.$ac_objext
8553    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554    lt_compiler_flag="-fno-rtti -fno-exceptions"
8555    # Insert the option either (1) after the last *FLAGS variable, or
8556    # (2) before a word containing "conftest.", or (3) at the end.
8557    # Note that $ac_compile itself does not contain backslashes and begins
8558    # with a dollar sign (not a hyphen), so the echo should work correctly.
8559    # The option is referenced via a variable to avoid confusing sed.
8560    lt_compile=`echo "$ac_compile" | $SED \
8561    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8562    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8563    -e 's:$: $lt_compiler_flag:'`
8564    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8565    (eval "$lt_compile" 2>conftest.err)
8566    ac_status=$?
8567    cat conftest.err >&5
8568    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569    if (exit $ac_status) && test -s "$ac_outfile"; then
8570      # The compiler can only warn and ignore the option if not recognized
8571      # So say no if there are warnings other than the usual output.
8572      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8573      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8574      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8575        lt_cv_prog_compiler_rtti_exceptions=yes
8576      fi
8577    fi
8578    $RM conftest*
8579
8580 fi
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8582 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8583
8584 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8585     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8586 else
8587     :
8588 fi
8589
8590 fi
8591
8592
8593
8594
8595
8596
8597   lt_prog_compiler_wl=
8598 lt_prog_compiler_pic=
8599 lt_prog_compiler_static=
8600
8601
8602   if test "$GCC" = yes; then
8603     lt_prog_compiler_wl='-Wl,'
8604     lt_prog_compiler_static='-static'
8605
8606     case $host_os in
8607       aix*)
8608       # All AIX code is PIC.
8609       if test "$host_cpu" = ia64; then
8610         # AIX 5 now supports IA64 processor
8611         lt_prog_compiler_static='-Bstatic'
8612       fi
8613       ;;
8614
8615     amigaos*)
8616       case $host_cpu in
8617       powerpc)
8618             # see comment about AmigaOS4 .so support
8619             lt_prog_compiler_pic='-fPIC'
8620         ;;
8621       m68k)
8622             # FIXME: we need at least 68020 code to build shared libraries, but
8623             # adding the `-m68020' flag to GCC prevents building anything better,
8624             # like `-m68040'.
8625             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8626         ;;
8627       esac
8628       ;;
8629
8630     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8631       # PIC is the default for these OSes.
8632       ;;
8633
8634     mingw* | cygwin* | pw32* | os2* | cegcc*)
8635       # This hack is so that the source file can tell whether it is being
8636       # built for inclusion in a dll (and should export symbols for example).
8637       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8638       # (--disable-auto-import) libraries
8639       lt_prog_compiler_pic='-DDLL_EXPORT'
8640       ;;
8641
8642     darwin* | rhapsody*)
8643       # PIC is the default on this platform
8644       # Common symbols not allowed in MH_DYLIB files
8645       lt_prog_compiler_pic='-fno-common'
8646       ;;
8647
8648     haiku*)
8649       # PIC is the default for Haiku.
8650       # The "-static" flag exists, but is broken.
8651       lt_prog_compiler_static=
8652       ;;
8653
8654     hpux*)
8655       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8656       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8657       # sets the default TLS model and affects inlining.
8658       case $host_cpu in
8659       hppa*64*)
8660         # +Z the default
8661         ;;
8662       *)
8663         lt_prog_compiler_pic='-fPIC'
8664         ;;
8665       esac
8666       ;;
8667
8668     interix[3-9]*)
8669       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8670       # Instead, we relocate shared libraries at runtime.
8671       ;;
8672
8673     msdosdjgpp*)
8674       # Just because we use GCC doesn't mean we suddenly get shared libraries
8675       # on systems that don't support them.
8676       lt_prog_compiler_can_build_shared=no
8677       enable_shared=no
8678       ;;
8679
8680     *nto* | *qnx*)
8681       # QNX uses GNU C++, but need to define -shared option too, otherwise
8682       # it will coredump.
8683       lt_prog_compiler_pic='-fPIC -shared'
8684       ;;
8685
8686     sysv4*MP*)
8687       if test -d /usr/nec; then
8688         lt_prog_compiler_pic=-Kconform_pic
8689       fi
8690       ;;
8691
8692     *)
8693       lt_prog_compiler_pic='-fPIC'
8694       ;;
8695     esac
8696
8697     case $cc_basename in
8698     nvcc*) # Cuda Compiler Driver 2.2
8699       lt_prog_compiler_wl='-Xlinker '
8700       if test -n "$lt_prog_compiler_pic"; then
8701         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8702       fi
8703       ;;
8704     esac
8705   else
8706     # PORTME Check for flag to pass linker flags through the system compiler.
8707     case $host_os in
8708     aix*)
8709       lt_prog_compiler_wl='-Wl,'
8710       if test "$host_cpu" = ia64; then
8711         # AIX 5 now supports IA64 processor
8712         lt_prog_compiler_static='-Bstatic'
8713       else
8714         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8715       fi
8716       ;;
8717
8718     mingw* | cygwin* | pw32* | os2* | cegcc*)
8719       # This hack is so that the source file can tell whether it is being
8720       # built for inclusion in a dll (and should export symbols for example).
8721       lt_prog_compiler_pic='-DDLL_EXPORT'
8722       ;;
8723
8724     hpux9* | hpux10* | hpux11*)
8725       lt_prog_compiler_wl='-Wl,'
8726       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8727       # not for PA HP-UX.
8728       case $host_cpu in
8729       hppa*64*|ia64*)
8730         # +Z the default
8731         ;;
8732       *)
8733         lt_prog_compiler_pic='+Z'
8734         ;;
8735       esac
8736       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8737       lt_prog_compiler_static='${wl}-a ${wl}archive'
8738       ;;
8739
8740     irix5* | irix6* | nonstopux*)
8741       lt_prog_compiler_wl='-Wl,'
8742       # PIC (with -KPIC) is the default.
8743       lt_prog_compiler_static='-non_shared'
8744       ;;
8745
8746     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8747       case $cc_basename in
8748       # old Intel for x86_64 which still supported -KPIC.
8749       ecc*)
8750         lt_prog_compiler_wl='-Wl,'
8751         lt_prog_compiler_pic='-KPIC'
8752         lt_prog_compiler_static='-static'
8753         ;;
8754       # icc used to be incompatible with GCC.
8755       # ICC 10 doesn't accept -KPIC any more.
8756       icc* | ifort*)
8757         lt_prog_compiler_wl='-Wl,'
8758         lt_prog_compiler_pic='-fPIC'
8759         lt_prog_compiler_static='-static'
8760         ;;
8761       # Lahey Fortran 8.1.
8762       lf95*)
8763         lt_prog_compiler_wl='-Wl,'
8764         lt_prog_compiler_pic='--shared'
8765         lt_prog_compiler_static='--static'
8766         ;;
8767       nagfor*)
8768         # NAG Fortran compiler
8769         lt_prog_compiler_wl='-Wl,-Wl,,'
8770         lt_prog_compiler_pic='-PIC'
8771         lt_prog_compiler_static='-Bstatic'
8772         ;;
8773       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8774         # Portland Group compilers (*not* the Pentium gcc compiler,
8775         # which looks to be a dead project)
8776         lt_prog_compiler_wl='-Wl,'
8777         lt_prog_compiler_pic='-fpic'
8778         lt_prog_compiler_static='-Bstatic'
8779         ;;
8780       ccc*)
8781         lt_prog_compiler_wl='-Wl,'
8782         # All Alpha code is PIC.
8783         lt_prog_compiler_static='-non_shared'
8784         ;;
8785       xl* | bgxl* | bgf* | mpixl*)
8786         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8787         lt_prog_compiler_wl='-Wl,'
8788         lt_prog_compiler_pic='-qpic'
8789         lt_prog_compiler_static='-qstaticlink'
8790         ;;
8791       *)
8792         case `$CC -V 2>&1 | sed 5q` in
8793         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8794           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8795           lt_prog_compiler_pic='-KPIC'
8796           lt_prog_compiler_static='-Bstatic'
8797           lt_prog_compiler_wl=''
8798           ;;
8799         *Sun\ F* | *Sun*Fortran*)
8800           lt_prog_compiler_pic='-KPIC'
8801           lt_prog_compiler_static='-Bstatic'
8802           lt_prog_compiler_wl='-Qoption ld '
8803           ;;
8804         *Sun\ C*)
8805           # Sun C 5.9
8806           lt_prog_compiler_pic='-KPIC'
8807           lt_prog_compiler_static='-Bstatic'
8808           lt_prog_compiler_wl='-Wl,'
8809           ;;
8810         *Intel*\ [CF]*Compiler*)
8811           lt_prog_compiler_wl='-Wl,'
8812           lt_prog_compiler_pic='-fPIC'
8813           lt_prog_compiler_static='-static'
8814           ;;
8815         *Portland\ Group*)
8816           lt_prog_compiler_wl='-Wl,'
8817           lt_prog_compiler_pic='-fpic'
8818           lt_prog_compiler_static='-Bstatic'
8819           ;;
8820         esac
8821         ;;
8822       esac
8823       ;;
8824
8825     newsos6)
8826       lt_prog_compiler_pic='-KPIC'
8827       lt_prog_compiler_static='-Bstatic'
8828       ;;
8829
8830     *nto* | *qnx*)
8831       # QNX uses GNU C++, but need to define -shared option too, otherwise
8832       # it will coredump.
8833       lt_prog_compiler_pic='-fPIC -shared'
8834       ;;
8835
8836     osf3* | osf4* | osf5*)
8837       lt_prog_compiler_wl='-Wl,'
8838       # All OSF/1 code is PIC.
8839       lt_prog_compiler_static='-non_shared'
8840       ;;
8841
8842     rdos*)
8843       lt_prog_compiler_static='-non_shared'
8844       ;;
8845
8846     solaris*)
8847       lt_prog_compiler_pic='-KPIC'
8848       lt_prog_compiler_static='-Bstatic'
8849       case $cc_basename in
8850       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8851         lt_prog_compiler_wl='-Qoption ld ';;
8852       *)
8853         lt_prog_compiler_wl='-Wl,';;
8854       esac
8855       ;;
8856
8857     sunos4*)
8858       lt_prog_compiler_wl='-Qoption ld '
8859       lt_prog_compiler_pic='-PIC'
8860       lt_prog_compiler_static='-Bstatic'
8861       ;;
8862
8863     sysv4 | sysv4.2uw2* | sysv4.3*)
8864       lt_prog_compiler_wl='-Wl,'
8865       lt_prog_compiler_pic='-KPIC'
8866       lt_prog_compiler_static='-Bstatic'
8867       ;;
8868
8869     sysv4*MP*)
8870       if test -d /usr/nec ;then
8871         lt_prog_compiler_pic='-Kconform_pic'
8872         lt_prog_compiler_static='-Bstatic'
8873       fi
8874       ;;
8875
8876     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8877       lt_prog_compiler_wl='-Wl,'
8878       lt_prog_compiler_pic='-KPIC'
8879       lt_prog_compiler_static='-Bstatic'
8880       ;;
8881
8882     unicos*)
8883       lt_prog_compiler_wl='-Wl,'
8884       lt_prog_compiler_can_build_shared=no
8885       ;;
8886
8887     uts4*)
8888       lt_prog_compiler_pic='-pic'
8889       lt_prog_compiler_static='-Bstatic'
8890       ;;
8891
8892     *)
8893       lt_prog_compiler_can_build_shared=no
8894       ;;
8895     esac
8896   fi
8897
8898 case $host_os in
8899   # For platforms which do not support PIC, -DPIC is meaningless:
8900   *djgpp*)
8901     lt_prog_compiler_pic=
8902     ;;
8903   *)
8904     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8905     ;;
8906 esac
8907
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8909 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8910 if ${lt_cv_prog_compiler_pic+:} false; then :
8911   $as_echo_n "(cached) " >&6
8912 else
8913   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8914 fi
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8916 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8917 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8918
8919 #
8920 # Check to make sure the PIC flag actually works.
8921 #
8922 if test -n "$lt_prog_compiler_pic"; then
8923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8924 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8925 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   lt_cv_prog_compiler_pic_works=no
8929    ac_outfile=conftest.$ac_objext
8930    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8931    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8932    # Insert the option either (1) after the last *FLAGS variable, or
8933    # (2) before a word containing "conftest.", or (3) at the end.
8934    # Note that $ac_compile itself does not contain backslashes and begins
8935    # with a dollar sign (not a hyphen), so the echo should work correctly.
8936    # The option is referenced via a variable to avoid confusing sed.
8937    lt_compile=`echo "$ac_compile" | $SED \
8938    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8939    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8940    -e 's:$: $lt_compiler_flag:'`
8941    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8942    (eval "$lt_compile" 2>conftest.err)
8943    ac_status=$?
8944    cat conftest.err >&5
8945    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946    if (exit $ac_status) && test -s "$ac_outfile"; then
8947      # The compiler can only warn and ignore the option if not recognized
8948      # So say no if there are warnings other than the usual output.
8949      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8950      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8951      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8952        lt_cv_prog_compiler_pic_works=yes
8953      fi
8954    fi
8955    $RM conftest*
8956
8957 fi
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8959 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8960
8961 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8962     case $lt_prog_compiler_pic in
8963      "" | " "*) ;;
8964      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8965      esac
8966 else
8967     lt_prog_compiler_pic=
8968      lt_prog_compiler_can_build_shared=no
8969 fi
8970
8971 fi
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983 #
8984 # Check to make sure the static flag actually works.
8985 #
8986 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8988 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8989 if ${lt_cv_prog_compiler_static_works+:} false; then :
8990   $as_echo_n "(cached) " >&6
8991 else
8992   lt_cv_prog_compiler_static_works=no
8993    save_LDFLAGS="$LDFLAGS"
8994    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8995    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8996    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8997      # The linker can only warn and ignore the option if not recognized
8998      # So say no if there are warnings
8999      if test -s conftest.err; then
9000        # Append any errors to the config.log.
9001        cat conftest.err 1>&5
9002        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9003        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004        if diff conftest.exp conftest.er2 >/dev/null; then
9005          lt_cv_prog_compiler_static_works=yes
9006        fi
9007      else
9008        lt_cv_prog_compiler_static_works=yes
9009      fi
9010    fi
9011    $RM -r conftest*
9012    LDFLAGS="$save_LDFLAGS"
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9017
9018 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9019     :
9020 else
9021     lt_prog_compiler_static=
9022 fi
9023
9024
9025
9026
9027
9028
9029
9030   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9031 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9032 if ${lt_cv_prog_compiler_c_o+:} false; then :
9033   $as_echo_n "(cached) " >&6
9034 else
9035   lt_cv_prog_compiler_c_o=no
9036    $RM -r conftest 2>/dev/null
9037    mkdir conftest
9038    cd conftest
9039    mkdir out
9040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9041
9042    lt_compiler_flag="-o out/conftest2.$ac_objext"
9043    # Insert the option either (1) after the last *FLAGS variable, or
9044    # (2) before a word containing "conftest.", or (3) at the end.
9045    # Note that $ac_compile itself does not contain backslashes and begins
9046    # with a dollar sign (not a hyphen), so the echo should work correctly.
9047    lt_compile=`echo "$ac_compile" | $SED \
9048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9050    -e 's:$: $lt_compiler_flag:'`
9051    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9052    (eval "$lt_compile" 2>out/conftest.err)
9053    ac_status=$?
9054    cat out/conftest.err >&5
9055    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9057    then
9058      # The compiler can only warn and ignore the option if not recognized
9059      # So say no if there are warnings
9060      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9061      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9062      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9063        lt_cv_prog_compiler_c_o=yes
9064      fi
9065    fi
9066    chmod u+w . 2>&5
9067    $RM conftest*
9068    # SGI C++ compiler will create directory out/ii_files/ for
9069    # template instantiation
9070    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9071    $RM out/* && rmdir out
9072    cd ..
9073    $RM -r conftest
9074    $RM conftest*
9075
9076 fi
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9078 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9079
9080
9081
9082
9083
9084
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9086 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9087 if ${lt_cv_prog_compiler_c_o+:} false; then :
9088   $as_echo_n "(cached) " >&6
9089 else
9090   lt_cv_prog_compiler_c_o=no
9091    $RM -r conftest 2>/dev/null
9092    mkdir conftest
9093    cd conftest
9094    mkdir out
9095    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9096
9097    lt_compiler_flag="-o out/conftest2.$ac_objext"
9098    # Insert the option either (1) after the last *FLAGS variable, or
9099    # (2) before a word containing "conftest.", or (3) at the end.
9100    # Note that $ac_compile itself does not contain backslashes and begins
9101    # with a dollar sign (not a hyphen), so the echo should work correctly.
9102    lt_compile=`echo "$ac_compile" | $SED \
9103    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105    -e 's:$: $lt_compiler_flag:'`
9106    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9107    (eval "$lt_compile" 2>out/conftest.err)
9108    ac_status=$?
9109    cat out/conftest.err >&5
9110    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9112    then
9113      # The compiler can only warn and ignore the option if not recognized
9114      # So say no if there are warnings
9115      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9116      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9117      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9118        lt_cv_prog_compiler_c_o=yes
9119      fi
9120    fi
9121    chmod u+w . 2>&5
9122    $RM conftest*
9123    # SGI C++ compiler will create directory out/ii_files/ for
9124    # template instantiation
9125    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9126    $RM out/* && rmdir out
9127    cd ..
9128    $RM -r conftest
9129    $RM conftest*
9130
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9133 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134
9135
9136
9137
9138 hard_links="nottested"
9139 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9140   # do not overwrite the value of need_locks provided by the user
9141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9142 $as_echo_n "checking if we can lock with hard links... " >&6; }
9143   hard_links=yes
9144   $RM conftest*
9145   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9146   touch conftest.a
9147   ln conftest.a conftest.b 2>&5 || hard_links=no
9148   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9150 $as_echo "$hard_links" >&6; }
9151   if test "$hard_links" = no; then
9152     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9153 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9154     need_locks=warn
9155   fi
9156 else
9157   need_locks=no
9158 fi
9159
9160
9161
9162
9163
9164
9165   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9166 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9167
9168   runpath_var=
9169   allow_undefined_flag=
9170   always_export_symbols=no
9171   archive_cmds=
9172   archive_expsym_cmds=
9173   compiler_needs_object=no
9174   enable_shared_with_static_runtimes=no
9175   export_dynamic_flag_spec=
9176   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9177   hardcode_automatic=no
9178   hardcode_direct=no
9179   hardcode_direct_absolute=no
9180   hardcode_libdir_flag_spec=
9181   hardcode_libdir_separator=
9182   hardcode_minus_L=no
9183   hardcode_shlibpath_var=unsupported
9184   inherit_rpath=no
9185   link_all_deplibs=unknown
9186   module_cmds=
9187   module_expsym_cmds=
9188   old_archive_from_new_cmds=
9189   old_archive_from_expsyms_cmds=
9190   thread_safe_flag_spec=
9191   whole_archive_flag_spec=
9192   # include_expsyms should be a list of space-separated symbols to be *always*
9193   # included in the symbol list
9194   include_expsyms=
9195   # exclude_expsyms can be an extended regexp of symbols to exclude
9196   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9197   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9198   # as well as any symbol that contains `d'.
9199   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9200   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9201   # platforms (ab)use it in PIC code, but their linkers get confused if
9202   # the symbol is explicitly referenced.  Since portable code cannot
9203   # rely on this symbol name, it's probably fine to never include it in
9204   # preloaded symbol tables.
9205   # Exclude shared library initialization/finalization symbols.
9206   extract_expsyms_cmds=
9207
9208   case $host_os in
9209   cygwin* | mingw* | pw32* | cegcc*)
9210     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9211     # When not using gcc, we currently assume that we are using
9212     # Microsoft Visual C++.
9213     if test "$GCC" != yes; then
9214       with_gnu_ld=no
9215     fi
9216     ;;
9217   interix*)
9218     # we just hope/assume this is gcc and not c89 (= MSVC++)
9219     with_gnu_ld=yes
9220     ;;
9221   openbsd*)
9222     with_gnu_ld=no
9223     ;;
9224   esac
9225
9226   ld_shlibs=yes
9227
9228   # On some targets, GNU ld is compatible enough with the native linker
9229   # that we're better off using the native interface for both.
9230   lt_use_gnu_ld_interface=no
9231   if test "$with_gnu_ld" = yes; then
9232     case $host_os in
9233       aix*)
9234         # The AIX port of GNU ld has always aspired to compatibility
9235         # with the native linker.  However, as the warning in the GNU ld
9236         # block says, versions before 2.19.5* couldn't really create working
9237         # shared libraries, regardless of the interface used.
9238         case `$LD -v 2>&1` in
9239           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9240           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9241           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9242           *)
9243             lt_use_gnu_ld_interface=yes
9244             ;;
9245         esac
9246         ;;
9247       *)
9248         lt_use_gnu_ld_interface=yes
9249         ;;
9250     esac
9251   fi
9252
9253   if test "$lt_use_gnu_ld_interface" = yes; then
9254     # If archive_cmds runs LD, not CC, wlarc should be empty
9255     wlarc='${wl}'
9256
9257     # Set some defaults for GNU ld with shared library support. These
9258     # are reset later if shared libraries are not supported. Putting them
9259     # here allows them to be overridden if necessary.
9260     runpath_var=LD_RUN_PATH
9261     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9262     export_dynamic_flag_spec='${wl}--export-dynamic'
9263     # ancient GNU ld didn't support --whole-archive et. al.
9264     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9265       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9266     else
9267       whole_archive_flag_spec=
9268     fi
9269     supports_anon_versioning=no
9270     case `$LD -v 2>&1` in
9271       *GNU\ gold*) supports_anon_versioning=yes ;;
9272       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9273       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9274       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9275       *\ 2.11.*) ;; # other 2.11 versions
9276       *) supports_anon_versioning=yes ;;
9277     esac
9278
9279     # See if GNU ld supports shared libraries.
9280     case $host_os in
9281     aix[3-9]*)
9282       # On AIX/PPC, the GNU linker is very broken
9283       if test "$host_cpu" != ia64; then
9284         ld_shlibs=no
9285         cat <<_LT_EOF 1>&2
9286
9287 *** Warning: the GNU linker, at least up to release 2.19, is reported
9288 *** to be unable to reliably create shared libraries on AIX.
9289 *** Therefore, libtool is disabling shared libraries support.  If you
9290 *** really care for shared libraries, you may want to install binutils
9291 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9292 *** You will then need to restart the configuration process.
9293
9294 _LT_EOF
9295       fi
9296       ;;
9297
9298     amigaos*)
9299       case $host_cpu in
9300       powerpc)
9301             # see comment about AmigaOS4 .so support
9302             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9303             archive_expsym_cmds=''
9304         ;;
9305       m68k)
9306             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)'
9307             hardcode_libdir_flag_spec='-L$libdir'
9308             hardcode_minus_L=yes
9309         ;;
9310       esac
9311       ;;
9312
9313     beos*)
9314       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9315         allow_undefined_flag=unsupported
9316         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9317         # support --undefined.  This deserves some investigation.  FIXME
9318         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319       else
9320         ld_shlibs=no
9321       fi
9322       ;;
9323
9324     cygwin* | mingw* | pw32* | cegcc*)
9325       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9326       # as there is no search path for DLLs.
9327       hardcode_libdir_flag_spec='-L$libdir'
9328       export_dynamic_flag_spec='${wl}--export-all-symbols'
9329       allow_undefined_flag=unsupported
9330       always_export_symbols=no
9331       enable_shared_with_static_runtimes=yes
9332       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9333       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9334
9335       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9336         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9337         # If the export-symbols file already is a .def file (1st line
9338         # is EXPORTS), use it as is; otherwise, prepend...
9339         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9340           cp $export_symbols $output_objdir/$soname.def;
9341         else
9342           echo EXPORTS > $output_objdir/$soname.def;
9343           cat $export_symbols >> $output_objdir/$soname.def;
9344         fi~
9345         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9346       else
9347         ld_shlibs=no
9348       fi
9349       ;;
9350
9351     haiku*)
9352       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353       link_all_deplibs=yes
9354       ;;
9355
9356     interix[3-9]*)
9357       hardcode_direct=no
9358       hardcode_shlibpath_var=no
9359       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9360       export_dynamic_flag_spec='${wl}-E'
9361       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9362       # Instead, shared libraries are loaded at an image base (0x10000000 by
9363       # default) and relocated if they conflict, which is a slow very memory
9364       # consuming and fragmenting process.  To avoid this, we pick a random,
9365       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9366       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9367       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9368       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'
9369       ;;
9370
9371     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9372       tmp_diet=no
9373       if test "$host_os" = linux-dietlibc; then
9374         case $cc_basename in
9375           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9376         esac
9377       fi
9378       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9379          && test "$tmp_diet" = no
9380       then
9381         tmp_addflag=' $pic_flag'
9382         tmp_sharedflag='-shared'
9383         case $cc_basename,$host_cpu in
9384         pgcc*)                          # Portland Group C compiler
9385           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'
9386           tmp_addflag=' $pic_flag'
9387           ;;
9388         pgf77* | pgf90* | pgf95* | pgfortran*)
9389                                         # Portland Group f77 and f90 compilers
9390           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'
9391           tmp_addflag=' $pic_flag -Mnomain' ;;
9392         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9393           tmp_addflag=' -i_dynamic' ;;
9394         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9395           tmp_addflag=' -i_dynamic -nofor_main' ;;
9396         ifc* | ifort*)                  # Intel Fortran compiler
9397           tmp_addflag=' -nofor_main' ;;
9398         lf95*)                          # Lahey Fortran 8.1
9399           whole_archive_flag_spec=
9400           tmp_sharedflag='--shared' ;;
9401         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9402           tmp_sharedflag='-qmkshrobj'
9403           tmp_addflag= ;;
9404         nvcc*)  # Cuda Compiler Driver 2.2
9405           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'
9406           compiler_needs_object=yes
9407           ;;
9408         esac
9409         case `$CC -V 2>&1 | sed 5q` in
9410         *Sun\ C*)                       # Sun C 5.9
9411           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'
9412           compiler_needs_object=yes
9413           tmp_sharedflag='-G' ;;
9414         *Sun\ F*)                       # Sun Fortran 8.3
9415           tmp_sharedflag='-G' ;;
9416         esac
9417         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9418
9419         if test "x$supports_anon_versioning" = xyes; then
9420           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9421             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9422             echo "local: *; };" >> $output_objdir/$libname.ver~
9423             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9424         fi
9425
9426         case $cc_basename in
9427         xlf* | bgf* | bgxlf* | mpixlf*)
9428           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9429           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9430           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9431           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9432           if test "x$supports_anon_versioning" = xyes; then
9433             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9434               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9435               echo "local: *; };" >> $output_objdir/$libname.ver~
9436               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9437           fi
9438           ;;
9439         esac
9440       else
9441         ld_shlibs=no
9442       fi
9443       ;;
9444
9445     netbsd*)
9446       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9447         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9448         wlarc=
9449       else
9450         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9452       fi
9453       ;;
9454
9455     solaris*)
9456       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9457         ld_shlibs=no
9458         cat <<_LT_EOF 1>&2
9459
9460 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9461 *** create shared libraries on Solaris systems.  Therefore, libtool
9462 *** is disabling shared libraries support.  We urge you to upgrade GNU
9463 *** binutils to release 2.9.1 or newer.  Another option is to modify
9464 *** your PATH or compiler configuration so that the native linker is
9465 *** used, and then restart.
9466
9467 _LT_EOF
9468       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9469         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9470         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9471       else
9472         ld_shlibs=no
9473       fi
9474       ;;
9475
9476     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9477       case `$LD -v 2>&1` in
9478         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9479         ld_shlibs=no
9480         cat <<_LT_EOF 1>&2
9481
9482 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9483 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9484 *** is disabling shared libraries support.  We urge you to upgrade GNU
9485 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9486 *** your PATH or compiler configuration so that the native linker is
9487 *** used, and then restart.
9488
9489 _LT_EOF
9490         ;;
9491         *)
9492           # For security reasons, it is highly recommended that you always
9493           # use absolute paths for naming shared libraries, and exclude the
9494           # DT_RUNPATH tag from executables and libraries.  But doing so
9495           # requires that you compile everything twice, which is a pain.
9496           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9497             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9498             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9500           else
9501             ld_shlibs=no
9502           fi
9503         ;;
9504       esac
9505       ;;
9506
9507     sunos4*)
9508       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9509       wlarc=
9510       hardcode_direct=yes
9511       hardcode_shlibpath_var=no
9512       ;;
9513
9514     *)
9515       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9516         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9517         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9518       else
9519         ld_shlibs=no
9520       fi
9521       ;;
9522     esac
9523
9524     if test "$ld_shlibs" = no; then
9525       runpath_var=
9526       hardcode_libdir_flag_spec=
9527       export_dynamic_flag_spec=
9528       whole_archive_flag_spec=
9529     fi
9530   else
9531     # PORTME fill in a description of your system's linker (not GNU ld)
9532     case $host_os in
9533     aix3*)
9534       allow_undefined_flag=unsupported
9535       always_export_symbols=yes
9536       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'
9537       # Note: this linker hardcodes the directories in LIBPATH if there
9538       # are no directories specified by -L.
9539       hardcode_minus_L=yes
9540       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9541         # Neither direct hardcoding nor static linking is supported with a
9542         # broken collect2.
9543         hardcode_direct=unsupported
9544       fi
9545       ;;
9546
9547     aix[4-9]*)
9548       if test "$host_cpu" = ia64; then
9549         # On IA64, the linker does run time linking by default, so we don't
9550         # have to do anything special.
9551         aix_use_runtimelinking=no
9552         exp_sym_flag='-Bexport'
9553         no_entry_flag=""
9554       else
9555         # If we're using GNU nm, then we don't want the "-C" option.
9556         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9557         # Also, AIX nm treats weak defined symbols like other global
9558         # defined symbols, whereas GNU nm marks them as "W".
9559         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9560           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'
9561         else
9562           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'
9563         fi
9564         aix_use_runtimelinking=no
9565
9566         # Test if we are trying to use run time linking or normal
9567         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9568         # need to do runtime linking.
9569         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9570           for ld_flag in $LDFLAGS; do
9571           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9572             aix_use_runtimelinking=yes
9573             break
9574           fi
9575           done
9576           ;;
9577         esac
9578
9579         exp_sym_flag='-bexport'
9580         no_entry_flag='-bnoentry'
9581       fi
9582
9583       # When large executables or shared objects are built, AIX ld can
9584       # have problems creating the table of contents.  If linking a library
9585       # or program results in "error TOC overflow" add -mminimal-toc to
9586       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9587       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9588
9589       archive_cmds=''
9590       hardcode_direct=yes
9591       hardcode_direct_absolute=yes
9592       hardcode_libdir_separator=':'
9593       link_all_deplibs=yes
9594       file_list_spec='${wl}-f,'
9595
9596       if test "$GCC" = yes; then
9597         case $host_os in aix4.[012]|aix4.[012].*)
9598         # We only want to do this on AIX 4.2 and lower, the check
9599         # below for broken collect2 doesn't work under 4.3+
9600           collect2name=`${CC} -print-prog-name=collect2`
9601           if test -f "$collect2name" &&
9602            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9603           then
9604           # We have reworked collect2
9605           :
9606           else
9607           # We have old collect2
9608           hardcode_direct=unsupported
9609           # It fails to find uninstalled libraries when the uninstalled
9610           # path is not listed in the libpath.  Setting hardcode_minus_L
9611           # to unsupported forces relinking
9612           hardcode_minus_L=yes
9613           hardcode_libdir_flag_spec='-L$libdir'
9614           hardcode_libdir_separator=
9615           fi
9616           ;;
9617         esac
9618         shared_flag='-shared'
9619         if test "$aix_use_runtimelinking" = yes; then
9620           shared_flag="$shared_flag "'${wl}-G'
9621         fi
9622       else
9623         # not using gcc
9624         if test "$host_cpu" = ia64; then
9625         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9626         # chokes on -Wl,-G. The following line is correct:
9627           shared_flag='-G'
9628         else
9629           if test "$aix_use_runtimelinking" = yes; then
9630             shared_flag='${wl}-G'
9631           else
9632             shared_flag='${wl}-bM:SRE'
9633           fi
9634         fi
9635       fi
9636
9637       export_dynamic_flag_spec='${wl}-bexpall'
9638       # It seems that -bexpall does not export symbols beginning with
9639       # underscore (_), so it is better to generate a list of symbols to export.
9640       always_export_symbols=yes
9641       if test "$aix_use_runtimelinking" = yes; then
9642         # Warning - without using the other runtime loading flags (-brtl),
9643         # -berok will link without error, but may produce a broken library.
9644         allow_undefined_flag='-berok'
9645         # Determine the default libpath from the value encoded in an
9646         # empty executable.
9647         if test "${lt_cv_aix_libpath+set}" = set; then
9648   aix_libpath=$lt_cv_aix_libpath
9649 else
9650   if ${lt_cv_aix_libpath_+:} false; then :
9651   $as_echo_n "(cached) " >&6
9652 else
9653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h.  */
9655
9656 int
9657 main ()
9658 {
9659
9660   ;
9661   return 0;
9662 }
9663 _ACEOF
9664 if ac_fn_c_try_link "$LINENO"; then :
9665
9666   lt_aix_libpath_sed='
9667       /Import File Strings/,/^$/ {
9668           /^0/ {
9669               s/^0  *\([^ ]*\) *$/\1/
9670               p
9671           }
9672       }'
9673   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9674   # Check for a 64-bit object if we didn't find anything.
9675   if test -z "$lt_cv_aix_libpath_"; then
9676     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677   fi
9678 fi
9679 rm -f core conftest.err conftest.$ac_objext \
9680     conftest$ac_exeext conftest.$ac_ext
9681   if test -z "$lt_cv_aix_libpath_"; then
9682     lt_cv_aix_libpath_="/usr/lib:/lib"
9683   fi
9684
9685 fi
9686
9687   aix_libpath=$lt_cv_aix_libpath_
9688 fi
9689
9690         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9691         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"
9692       else
9693         if test "$host_cpu" = ia64; then
9694           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9695           allow_undefined_flag="-z nodefs"
9696           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"
9697         else
9698          # Determine the default libpath from the value encoded in an
9699          # empty executable.
9700          if test "${lt_cv_aix_libpath+set}" = set; then
9701   aix_libpath=$lt_cv_aix_libpath
9702 else
9703   if ${lt_cv_aix_libpath_+:} false; then :
9704   $as_echo_n "(cached) " >&6
9705 else
9706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h.  */
9708
9709 int
9710 main ()
9711 {
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 if ac_fn_c_try_link "$LINENO"; then :
9718
9719   lt_aix_libpath_sed='
9720       /Import File Strings/,/^$/ {
9721           /^0/ {
9722               s/^0  *\([^ ]*\) *$/\1/
9723               p
9724           }
9725       }'
9726   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9727   # Check for a 64-bit object if we didn't find anything.
9728   if test -z "$lt_cv_aix_libpath_"; then
9729     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9730   fi
9731 fi
9732 rm -f core conftest.err conftest.$ac_objext \
9733     conftest$ac_exeext conftest.$ac_ext
9734   if test -z "$lt_cv_aix_libpath_"; then
9735     lt_cv_aix_libpath_="/usr/lib:/lib"
9736   fi
9737
9738 fi
9739
9740   aix_libpath=$lt_cv_aix_libpath_
9741 fi
9742
9743          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9744           # Warning - without using the other run time loading flags,
9745           # -berok will link without error, but may produce a broken library.
9746           no_undefined_flag=' ${wl}-bernotok'
9747           allow_undefined_flag=' ${wl}-berok'
9748           if test "$with_gnu_ld" = yes; then
9749             # We only use this code for GNU lds that support --whole-archive.
9750             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9751           else
9752             # Exported symbols can be pulled into shared objects from archives
9753             whole_archive_flag_spec='$convenience'
9754           fi
9755           archive_cmds_need_lc=yes
9756           # This is similar to how AIX traditionally builds its shared libraries.
9757           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'
9758         fi
9759       fi
9760       ;;
9761
9762     amigaos*)
9763       case $host_cpu in
9764       powerpc)
9765             # see comment about AmigaOS4 .so support
9766             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767             archive_expsym_cmds=''
9768         ;;
9769       m68k)
9770             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)'
9771             hardcode_libdir_flag_spec='-L$libdir'
9772             hardcode_minus_L=yes
9773         ;;
9774       esac
9775       ;;
9776
9777     bsdi[45]*)
9778       export_dynamic_flag_spec=-rdynamic
9779       ;;
9780
9781     cygwin* | mingw* | pw32* | cegcc*)
9782       # When not using gcc, we currently assume that we are using
9783       # Microsoft Visual C++.
9784       # hardcode_libdir_flag_spec is actually meaningless, as there is
9785       # no search path for DLLs.
9786       case $cc_basename in
9787       cl*)
9788         # Native MSVC
9789         hardcode_libdir_flag_spec=' '
9790         allow_undefined_flag=unsupported
9791         always_export_symbols=yes
9792         file_list_spec='@'
9793         # Tell ltmain to make .lib files, not .a files.
9794         libext=lib
9795         # Tell ltmain to make .dll files, not .so files.
9796         shrext_cmds=".dll"
9797         # FIXME: Setting linknames here is a bad hack.
9798         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9799         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9800             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9801           else
9802             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9803           fi~
9804           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9805           linknames='
9806         # The linker will not automatically build a static lib if we build a DLL.
9807         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9808         enable_shared_with_static_runtimes=yes
9809         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9810         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9811         # Don't use ranlib
9812         old_postinstall_cmds='chmod 644 $oldlib'
9813         postlink_cmds='lt_outputfile="@OUTPUT@"~
9814           lt_tool_outputfile="@TOOL_OUTPUT@"~
9815           case $lt_outputfile in
9816             *.exe|*.EXE) ;;
9817             *)
9818               lt_outputfile="$lt_outputfile.exe"
9819               lt_tool_outputfile="$lt_tool_outputfile.exe"
9820               ;;
9821           esac~
9822           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9823             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9824             $RM "$lt_outputfile.manifest";
9825           fi'
9826         ;;
9827       *)
9828         # Assume MSVC wrapper
9829         hardcode_libdir_flag_spec=' '
9830         allow_undefined_flag=unsupported
9831         # Tell ltmain to make .lib files, not .a files.
9832         libext=lib
9833         # Tell ltmain to make .dll files, not .so files.
9834         shrext_cmds=".dll"
9835         # FIXME: Setting linknames here is a bad hack.
9836         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9837         # The linker will automatically build a .lib file if we build a DLL.
9838         old_archive_from_new_cmds='true'
9839         # FIXME: Should let the user specify the lib program.
9840         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9841         enable_shared_with_static_runtimes=yes
9842         ;;
9843       esac
9844       ;;
9845
9846     darwin* | rhapsody*)
9847
9848
9849   archive_cmds_need_lc=no
9850   hardcode_direct=no
9851   hardcode_automatic=yes
9852   hardcode_shlibpath_var=unsupported
9853   if test "$lt_cv_ld_force_load" = "yes"; then
9854     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\"`'
9855
9856   else
9857     whole_archive_flag_spec=''
9858   fi
9859   link_all_deplibs=yes
9860   allow_undefined_flag="$_lt_dar_allow_undefined"
9861   case $cc_basename in
9862      ifort*) _lt_dar_can_shared=yes ;;
9863      *) _lt_dar_can_shared=$GCC ;;
9864   esac
9865   if test "$_lt_dar_can_shared" = "yes"; then
9866     output_verbose_link_cmd=func_echo_all
9867     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9868     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9869     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}"
9870     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}"
9871
9872   else
9873   ld_shlibs=no
9874   fi
9875
9876       ;;
9877
9878     dgux*)
9879       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9880       hardcode_libdir_flag_spec='-L$libdir'
9881       hardcode_shlibpath_var=no
9882       ;;
9883
9884     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9885     # support.  Future versions do this automatically, but an explicit c++rt0.o
9886     # does not break anything, and helps significantly (at the cost of a little
9887     # extra space).
9888     freebsd2.2*)
9889       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9890       hardcode_libdir_flag_spec='-R$libdir'
9891       hardcode_direct=yes
9892       hardcode_shlibpath_var=no
9893       ;;
9894
9895     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9896     freebsd2.*)
9897       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9898       hardcode_direct=yes
9899       hardcode_minus_L=yes
9900       hardcode_shlibpath_var=no
9901       ;;
9902
9903     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9904     freebsd* | dragonfly*)
9905       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9906       hardcode_libdir_flag_spec='-R$libdir'
9907       hardcode_direct=yes
9908       hardcode_shlibpath_var=no
9909       ;;
9910
9911     hpux9*)
9912       if test "$GCC" = yes; then
9913         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9914       else
9915         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'
9916       fi
9917       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9918       hardcode_libdir_separator=:
9919       hardcode_direct=yes
9920
9921       # hardcode_minus_L: Not really in the search PATH,
9922       # but as the default location of the library.
9923       hardcode_minus_L=yes
9924       export_dynamic_flag_spec='${wl}-E'
9925       ;;
9926
9927     hpux10*)
9928       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9929         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9930       else
9931         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9932       fi
9933       if test "$with_gnu_ld" = no; then
9934         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9935         hardcode_libdir_separator=:
9936         hardcode_direct=yes
9937         hardcode_direct_absolute=yes
9938         export_dynamic_flag_spec='${wl}-E'
9939         # hardcode_minus_L: Not really in the search PATH,
9940         # but as the default location of the library.
9941         hardcode_minus_L=yes
9942       fi
9943       ;;
9944
9945     hpux11*)
9946       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9947         case $host_cpu in
9948         hppa*64*)
9949           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9950           ;;
9951         ia64*)
9952           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9953           ;;
9954         *)
9955           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9956           ;;
9957         esac
9958       else
9959         case $host_cpu in
9960         hppa*64*)
9961           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9962           ;;
9963         ia64*)
9964           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9965           ;;
9966         *)
9967
9968           # Older versions of the 11.00 compiler do not understand -b yet
9969           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9970           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9971 $as_echo_n "checking if $CC understands -b... " >&6; }
9972 if ${lt_cv_prog_compiler__b+:} false; then :
9973   $as_echo_n "(cached) " >&6
9974 else
9975   lt_cv_prog_compiler__b=no
9976    save_LDFLAGS="$LDFLAGS"
9977    LDFLAGS="$LDFLAGS -b"
9978    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9979    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9980      # The linker can only warn and ignore the option if not recognized
9981      # So say no if there are warnings
9982      if test -s conftest.err; then
9983        # Append any errors to the config.log.
9984        cat conftest.err 1>&5
9985        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9986        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9987        if diff conftest.exp conftest.er2 >/dev/null; then
9988          lt_cv_prog_compiler__b=yes
9989        fi
9990      else
9991        lt_cv_prog_compiler__b=yes
9992      fi
9993    fi
9994    $RM -r conftest*
9995    LDFLAGS="$save_LDFLAGS"
9996
9997 fi
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9999 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10000
10001 if test x"$lt_cv_prog_compiler__b" = xyes; then
10002     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10003 else
10004     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10005 fi
10006
10007           ;;
10008         esac
10009       fi
10010       if test "$with_gnu_ld" = no; then
10011         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10012         hardcode_libdir_separator=:
10013
10014         case $host_cpu in
10015         hppa*64*|ia64*)
10016           hardcode_direct=no
10017           hardcode_shlibpath_var=no
10018           ;;
10019         *)
10020           hardcode_direct=yes
10021           hardcode_direct_absolute=yes
10022           export_dynamic_flag_spec='${wl}-E'
10023
10024           # hardcode_minus_L: Not really in the search PATH,
10025           # but as the default location of the library.
10026           hardcode_minus_L=yes
10027           ;;
10028         esac
10029       fi
10030       ;;
10031
10032     irix5* | irix6* | nonstopux*)
10033       if test "$GCC" = yes; then
10034         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10035         # Try to use the -exported_symbol ld option, if it does not
10036         # work, assume that -exports_file does not work either and
10037         # implicitly export all symbols.
10038         # This should be the same for all languages, so no per-tag cache variable.
10039         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10040 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10041 if ${lt_cv_irix_exported_symbol+:} false; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044   save_LDFLAGS="$LDFLAGS"
10045            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10046            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h.  */
10048 int foo (void) { return 0; }
10049 _ACEOF
10050 if ac_fn_c_try_link "$LINENO"; then :
10051   lt_cv_irix_exported_symbol=yes
10052 else
10053   lt_cv_irix_exported_symbol=no
10054 fi
10055 rm -f core conftest.err conftest.$ac_objext \
10056     conftest$ac_exeext conftest.$ac_ext
10057            LDFLAGS="$save_LDFLAGS"
10058 fi
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10060 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10061         if test "$lt_cv_irix_exported_symbol" = yes; then
10062           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10063         fi
10064       else
10065         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'
10066         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'
10067       fi
10068       archive_cmds_need_lc='no'
10069       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070       hardcode_libdir_separator=:
10071       inherit_rpath=yes
10072       link_all_deplibs=yes
10073       ;;
10074
10075     netbsd*)
10076       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10077         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10078       else
10079         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10080       fi
10081       hardcode_libdir_flag_spec='-R$libdir'
10082       hardcode_direct=yes
10083       hardcode_shlibpath_var=no
10084       ;;
10085
10086     newsos6)
10087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10088       hardcode_direct=yes
10089       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10090       hardcode_libdir_separator=:
10091       hardcode_shlibpath_var=no
10092       ;;
10093
10094     *nto* | *qnx*)
10095       ;;
10096
10097     openbsd*)
10098       if test -f /usr/libexec/ld.so; then
10099         hardcode_direct=yes
10100         hardcode_shlibpath_var=no
10101         hardcode_direct_absolute=yes
10102         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10103           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10104           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10105           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10106           export_dynamic_flag_spec='${wl}-E'
10107         else
10108           case $host_os in
10109            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10110              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10111              hardcode_libdir_flag_spec='-R$libdir'
10112              ;;
10113            *)
10114              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10115              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10116              ;;
10117           esac
10118         fi
10119       else
10120         ld_shlibs=no
10121       fi
10122       ;;
10123
10124     os2*)
10125       hardcode_libdir_flag_spec='-L$libdir'
10126       hardcode_minus_L=yes
10127       allow_undefined_flag=unsupported
10128       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'
10129       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10130       ;;
10131
10132     osf3*)
10133       if test "$GCC" = yes; then
10134         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10135         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'
10136       else
10137         allow_undefined_flag=' -expect_unresolved \*'
10138         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'
10139       fi
10140       archive_cmds_need_lc='no'
10141       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10142       hardcode_libdir_separator=:
10143       ;;
10144
10145     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10146       if test "$GCC" = yes; then
10147         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10148         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10149         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10150       else
10151         allow_undefined_flag=' -expect_unresolved \*'
10152         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'
10153         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~
10154         $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'
10155
10156         # Both c and cxx compiler support -rpath directly
10157         hardcode_libdir_flag_spec='-rpath $libdir'
10158       fi
10159       archive_cmds_need_lc='no'
10160       hardcode_libdir_separator=:
10161       ;;
10162
10163     solaris*)
10164       no_undefined_flag=' -z defs'
10165       if test "$GCC" = yes; then
10166         wlarc='${wl}'
10167         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10168         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10169           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10170       else
10171         case `$CC -V 2>&1` in
10172         *"Compilers 5.0"*)
10173           wlarc=''
10174           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10175           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10176           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10177           ;;
10178         *)
10179           wlarc='${wl}'
10180           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10181           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10182           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10183           ;;
10184         esac
10185       fi
10186       hardcode_libdir_flag_spec='-R$libdir'
10187       hardcode_shlibpath_var=no
10188       case $host_os in
10189       solaris2.[0-5] | solaris2.[0-5].*) ;;
10190       *)
10191         # The compiler driver will combine and reorder linker options,
10192         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10193         # but is careful enough not to reorder.
10194         # Supported since Solaris 2.6 (maybe 2.5.1?)
10195         if test "$GCC" = yes; then
10196           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10197         else
10198           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10199         fi
10200         ;;
10201       esac
10202       link_all_deplibs=yes
10203       ;;
10204
10205     sunos4*)
10206       if test "x$host_vendor" = xsequent; then
10207         # Use $CC to link under sequent, because it throws in some extra .o
10208         # files that make .init and .fini sections work.
10209         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10210       else
10211         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10212       fi
10213       hardcode_libdir_flag_spec='-L$libdir'
10214       hardcode_direct=yes
10215       hardcode_minus_L=yes
10216       hardcode_shlibpath_var=no
10217       ;;
10218
10219     sysv4)
10220       case $host_vendor in
10221         sni)
10222           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223           hardcode_direct=yes # is this really true???
10224         ;;
10225         siemens)
10226           ## LD is ld it makes a PLAMLIB
10227           ## CC just makes a GrossModule.
10228           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10229           reload_cmds='$CC -r -o $output$reload_objs'
10230           hardcode_direct=no
10231         ;;
10232         motorola)
10233           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10234           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10235         ;;
10236       esac
10237       runpath_var='LD_RUN_PATH'
10238       hardcode_shlibpath_var=no
10239       ;;
10240
10241     sysv4.3*)
10242       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243       hardcode_shlibpath_var=no
10244       export_dynamic_flag_spec='-Bexport'
10245       ;;
10246
10247     sysv4*MP*)
10248       if test -d /usr/nec; then
10249         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10250         hardcode_shlibpath_var=no
10251         runpath_var=LD_RUN_PATH
10252         hardcode_runpath_var=yes
10253         ld_shlibs=yes
10254       fi
10255       ;;
10256
10257     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10258       no_undefined_flag='${wl}-z,text'
10259       archive_cmds_need_lc=no
10260       hardcode_shlibpath_var=no
10261       runpath_var='LD_RUN_PATH'
10262
10263       if test "$GCC" = yes; then
10264         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266       else
10267         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10268         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10269       fi
10270       ;;
10271
10272     sysv5* | sco3.2v5* | sco5v6*)
10273       # Note: We can NOT use -z defs as we might desire, because we do not
10274       # link with -lc, and that would cause any symbols used from libc to
10275       # always be unresolved, which means just about no library would
10276       # ever link correctly.  If we're not using GNU ld we use -z text
10277       # though, which does catch some bad symbols but isn't as heavy-handed
10278       # as -z defs.
10279       no_undefined_flag='${wl}-z,text'
10280       allow_undefined_flag='${wl}-z,nodefs'
10281       archive_cmds_need_lc=no
10282       hardcode_shlibpath_var=no
10283       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10284       hardcode_libdir_separator=':'
10285       link_all_deplibs=yes
10286       export_dynamic_flag_spec='${wl}-Bexport'
10287       runpath_var='LD_RUN_PATH'
10288
10289       if test "$GCC" = yes; then
10290         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292       else
10293         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10295       fi
10296       ;;
10297
10298     uts4*)
10299       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300       hardcode_libdir_flag_spec='-L$libdir'
10301       hardcode_shlibpath_var=no
10302       ;;
10303
10304     *)
10305       ld_shlibs=no
10306       ;;
10307     esac
10308
10309     if test x$host_vendor = xsni; then
10310       case $host in
10311       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10312         export_dynamic_flag_spec='${wl}-Blargedynsym'
10313         ;;
10314       esac
10315     fi
10316   fi
10317
10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10319 $as_echo "$ld_shlibs" >&6; }
10320 test "$ld_shlibs" = no && can_build_shared=no
10321
10322 with_gnu_ld=$with_gnu_ld
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338 #
10339 # Do we need to explicitly link libc?
10340 #
10341 case "x$archive_cmds_need_lc" in
10342 x|xyes)
10343   # Assume -lc should be added
10344   archive_cmds_need_lc=yes
10345
10346   if test "$enable_shared" = yes && test "$GCC" = yes; then
10347     case $archive_cmds in
10348     *'~'*)
10349       # FIXME: we may have to deal with multi-command sequences.
10350       ;;
10351     '$CC '*)
10352       # Test whether the compiler implicitly links with -lc since on some
10353       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10354       # to ld, don't add -lc before -lgcc.
10355       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10356 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10357 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10358   $as_echo_n "(cached) " >&6
10359 else
10360   $RM conftest*
10361         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10362
10363         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10364   (eval $ac_compile) 2>&5
10365   ac_status=$?
10366   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10367   test $ac_status = 0; } 2>conftest.err; then
10368           soname=conftest
10369           lib=conftest
10370           libobjs=conftest.$ac_objext
10371           deplibs=
10372           wl=$lt_prog_compiler_wl
10373           pic_flag=$lt_prog_compiler_pic
10374           compiler_flags=-v
10375           linker_flags=-v
10376           verstring=
10377           output_objdir=.
10378           libname=conftest
10379           lt_save_allow_undefined_flag=$allow_undefined_flag
10380           allow_undefined_flag=
10381           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10382   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10383   ac_status=$?
10384   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10385   test $ac_status = 0; }
10386           then
10387             lt_cv_archive_cmds_need_lc=no
10388           else
10389             lt_cv_archive_cmds_need_lc=yes
10390           fi
10391           allow_undefined_flag=$lt_save_allow_undefined_flag
10392         else
10393           cat conftest.err 1>&5
10394         fi
10395         $RM conftest*
10396
10397 fi
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10399 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10400       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10401       ;;
10402     esac
10403   fi
10404   ;;
10405 esac
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
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10559 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10560
10561 if test "$GCC" = yes; then
10562   case $host_os in
10563     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10564     *) lt_awk_arg="/^libraries:/" ;;
10565   esac
10566   case $host_os in
10567     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10568     *) lt_sed_strip_eq="s,=/,/,g" ;;
10569   esac
10570   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10571   case $lt_search_path_spec in
10572   *\;*)
10573     # if the path contains ";" then we assume it to be the separator
10574     # otherwise default to the standard path separator (i.e. ":") - it is
10575     # assumed that no part of a normal pathname contains ";" but that should
10576     # okay in the real world where ";" in dirpaths is itself problematic.
10577     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10578     ;;
10579   *)
10580     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10581     ;;
10582   esac
10583   # Ok, now we have the path, separated by spaces, we can step through it
10584   # and add multilib dir if necessary.
10585   lt_tmp_lt_search_path_spec=
10586   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10587   for lt_sys_path in $lt_search_path_spec; do
10588     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10589       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10590     else
10591       test -d "$lt_sys_path" && \
10592         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10593     fi
10594   done
10595   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10596 BEGIN {RS=" "; FS="/|\n";} {
10597   lt_foo="";
10598   lt_count=0;
10599   for (lt_i = NF; lt_i > 0; lt_i--) {
10600     if ($lt_i != "" && $lt_i != ".") {
10601       if ($lt_i == "..") {
10602         lt_count++;
10603       } else {
10604         if (lt_count == 0) {
10605           lt_foo="/" $lt_i lt_foo;
10606         } else {
10607           lt_count--;
10608         }
10609       }
10610     }
10611   }
10612   if (lt_foo != "") { lt_freq[lt_foo]++; }
10613   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10614 }'`
10615   # AWK program above erroneously prepends '/' to C:/dos/paths
10616   # for these hosts.
10617   case $host_os in
10618     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10619       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10620   esac
10621   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10622 else
10623   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10624 fi
10625 library_names_spec=
10626 libname_spec='lib$name'
10627 soname_spec=
10628 shrext_cmds=".so"
10629 postinstall_cmds=
10630 postuninstall_cmds=
10631 finish_cmds=
10632 finish_eval=
10633 shlibpath_var=
10634 shlibpath_overrides_runpath=unknown
10635 version_type=none
10636 dynamic_linker="$host_os ld.so"
10637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10638 need_lib_prefix=unknown
10639 hardcode_into_libs=no
10640
10641 # when you set need_version to no, make sure it does not cause -set_version
10642 # flags to be left without arguments
10643 need_version=unknown
10644
10645 case $host_os in
10646 aix3*)
10647   version_type=linux # correct to gnu/linux during the next big refactor
10648   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10649   shlibpath_var=LIBPATH
10650
10651   # AIX 3 has no versioning support, so we append a major version to the name.
10652   soname_spec='${libname}${release}${shared_ext}$major'
10653   ;;
10654
10655 aix[4-9]*)
10656   version_type=linux # correct to gnu/linux during the next big refactor
10657   need_lib_prefix=no
10658   need_version=no
10659   hardcode_into_libs=yes
10660   if test "$host_cpu" = ia64; then
10661     # AIX 5 supports IA64
10662     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10663     shlibpath_var=LD_LIBRARY_PATH
10664   else
10665     # With GCC up to 2.95.x, collect2 would create an import file
10666     # for dependence libraries.  The import file would start with
10667     # the line `#! .'.  This would cause the generated library to
10668     # depend on `.', always an invalid library.  This was fixed in
10669     # development snapshots of GCC prior to 3.0.
10670     case $host_os in
10671       aix4 | aix4.[01] | aix4.[01].*)
10672       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10673            echo ' yes '
10674            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10675         :
10676       else
10677         can_build_shared=no
10678       fi
10679       ;;
10680     esac
10681     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10682     # soname into executable. Probably we can add versioning support to
10683     # collect2, so additional links can be useful in future.
10684     if test "$aix_use_runtimelinking" = yes; then
10685       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10686       # instead of lib<name>.a to let people know that these are not
10687       # typical AIX shared libraries.
10688       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10689     else
10690       # We preserve .a as extension for shared libraries through AIX4.2
10691       # and later when we are not doing run time linking.
10692       library_names_spec='${libname}${release}.a $libname.a'
10693       soname_spec='${libname}${release}${shared_ext}$major'
10694     fi
10695     shlibpath_var=LIBPATH
10696   fi
10697   ;;
10698
10699 amigaos*)
10700   case $host_cpu in
10701   powerpc)
10702     # Since July 2007 AmigaOS4 officially supports .so libraries.
10703     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705     ;;
10706   m68k)
10707     library_names_spec='$libname.ixlibrary $libname.a'
10708     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10709     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'
10710     ;;
10711   esac
10712   ;;
10713
10714 beos*)
10715   library_names_spec='${libname}${shared_ext}'
10716   dynamic_linker="$host_os ld.so"
10717   shlibpath_var=LIBRARY_PATH
10718   ;;
10719
10720 bsdi[45]*)
10721   version_type=linux # correct to gnu/linux during the next big refactor
10722   need_version=no
10723   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10724   soname_spec='${libname}${release}${shared_ext}$major'
10725   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10726   shlibpath_var=LD_LIBRARY_PATH
10727   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10728   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10729   # the default ld.so.conf also contains /usr/contrib/lib and
10730   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10731   # libtool to hard-code these into programs
10732   ;;
10733
10734 cygwin* | mingw* | pw32* | cegcc*)
10735   version_type=windows
10736   shrext_cmds=".dll"
10737   need_version=no
10738   need_lib_prefix=no
10739
10740   case $GCC,$cc_basename in
10741   yes,*)
10742     # gcc
10743     library_names_spec='$libname.dll.a'
10744     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10745     postinstall_cmds='base_file=`basename \${file}`~
10746       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10747       dldir=$destdir/`dirname \$dlpath`~
10748       test -d \$dldir || mkdir -p \$dldir~
10749       $install_prog $dir/$dlname \$dldir/$dlname~
10750       chmod a+x \$dldir/$dlname~
10751       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10752         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10753       fi'
10754     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10755       dlpath=$dir/\$dldll~
10756        $RM \$dlpath'
10757     shlibpath_overrides_runpath=yes
10758
10759     case $host_os in
10760     cygwin*)
10761       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10762       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10763
10764       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10765       ;;
10766     mingw* | cegcc*)
10767       # MinGW DLLs use traditional 'lib' prefix
10768       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10769       ;;
10770     pw32*)
10771       # pw32 DLLs use 'pw' prefix rather than 'lib'
10772       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773       ;;
10774     esac
10775     dynamic_linker='Win32 ld.exe'
10776     ;;
10777
10778   *,cl*)
10779     # Native MSVC
10780     libname_spec='$name'
10781     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10782     library_names_spec='${libname}.dll.lib'
10783
10784     case $build_os in
10785     mingw*)
10786       sys_lib_search_path_spec=
10787       lt_save_ifs=$IFS
10788       IFS=';'
10789       for lt_path in $LIB
10790       do
10791         IFS=$lt_save_ifs
10792         # Let DOS variable expansion print the short 8.3 style file name.
10793         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10794         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10795       done
10796       IFS=$lt_save_ifs
10797       # Convert to MSYS style.
10798       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10799       ;;
10800     cygwin*)
10801       # Convert to unix form, then to dos form, then back to unix form
10802       # but this time dos style (no spaces!) so that the unix form looks
10803       # like /cygdrive/c/PROGRA~1:/cygdr...
10804       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10805       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10806       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10807       ;;
10808     *)
10809       sys_lib_search_path_spec="$LIB"
10810       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10811         # It is most probably a Windows format PATH.
10812         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10813       else
10814         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10815       fi
10816       # FIXME: find the short name or the path components, as spaces are
10817       # common. (e.g. "Program Files" -> "PROGRA~1")
10818       ;;
10819     esac
10820
10821     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10822     postinstall_cmds='base_file=`basename \${file}`~
10823       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10824       dldir=$destdir/`dirname \$dlpath`~
10825       test -d \$dldir || mkdir -p \$dldir~
10826       $install_prog $dir/$dlname \$dldir/$dlname'
10827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10828       dlpath=$dir/\$dldll~
10829        $RM \$dlpath'
10830     shlibpath_overrides_runpath=yes
10831     dynamic_linker='Win32 link.exe'
10832     ;;
10833
10834   *)
10835     # Assume MSVC wrapper
10836     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10837     dynamic_linker='Win32 ld.exe'
10838     ;;
10839   esac
10840   # FIXME: first we should search . and the directory the executable is in
10841   shlibpath_var=PATH
10842   ;;
10843
10844 darwin* | rhapsody*)
10845   dynamic_linker="$host_os dyld"
10846   version_type=darwin
10847   need_lib_prefix=no
10848   need_version=no
10849   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10850   soname_spec='${libname}${release}${major}$shared_ext'
10851   shlibpath_overrides_runpath=yes
10852   shlibpath_var=DYLD_LIBRARY_PATH
10853   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10854
10855   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10856   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10857   ;;
10858
10859 dgux*)
10860   version_type=linux # correct to gnu/linux during the next big refactor
10861   need_lib_prefix=no
10862   need_version=no
10863   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10864   soname_spec='${libname}${release}${shared_ext}$major'
10865   shlibpath_var=LD_LIBRARY_PATH
10866   ;;
10867
10868 freebsd* | dragonfly*)
10869   # DragonFly does not have aout.  When/if they implement a new
10870   # versioning mechanism, adjust this.
10871   if test -x /usr/bin/objformat; then
10872     objformat=`/usr/bin/objformat`
10873   else
10874     case $host_os in
10875     freebsd[23].*) objformat=aout ;;
10876     *) objformat=elf ;;
10877     esac
10878   fi
10879   version_type=freebsd-$objformat
10880   case $version_type in
10881     freebsd-elf*)
10882       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10883       need_version=no
10884       need_lib_prefix=no
10885       ;;
10886     freebsd-*)
10887       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10888       need_version=yes
10889       ;;
10890   esac
10891   shlibpath_var=LD_LIBRARY_PATH
10892   case $host_os in
10893   freebsd2.*)
10894     shlibpath_overrides_runpath=yes
10895     ;;
10896   freebsd3.[01]* | freebsdelf3.[01]*)
10897     shlibpath_overrides_runpath=yes
10898     hardcode_into_libs=yes
10899     ;;
10900   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10901   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10902     shlibpath_overrides_runpath=no
10903     hardcode_into_libs=yes
10904     ;;
10905   *) # from 4.6 on, and DragonFly
10906     shlibpath_overrides_runpath=yes
10907     hardcode_into_libs=yes
10908     ;;
10909   esac
10910   ;;
10911
10912 gnu*)
10913   version_type=linux # correct to gnu/linux during the next big refactor
10914   need_lib_prefix=no
10915   need_version=no
10916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10917   soname_spec='${libname}${release}${shared_ext}$major'
10918   shlibpath_var=LD_LIBRARY_PATH
10919   shlibpath_overrides_runpath=no
10920   hardcode_into_libs=yes
10921   ;;
10922
10923 haiku*)
10924   version_type=linux # correct to gnu/linux during the next big refactor
10925   need_lib_prefix=no
10926   need_version=no
10927   dynamic_linker="$host_os runtime_loader"
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10929   soname_spec='${libname}${release}${shared_ext}$major'
10930   shlibpath_var=LIBRARY_PATH
10931   shlibpath_overrides_runpath=yes
10932   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10933   hardcode_into_libs=yes
10934   ;;
10935
10936 hpux9* | hpux10* | hpux11*)
10937   # Give a soname corresponding to the major version so that dld.sl refuses to
10938   # link against other versions.
10939   version_type=sunos
10940   need_lib_prefix=no
10941   need_version=no
10942   case $host_cpu in
10943   ia64*)
10944     shrext_cmds='.so'
10945     hardcode_into_libs=yes
10946     dynamic_linker="$host_os dld.so"
10947     shlibpath_var=LD_LIBRARY_PATH
10948     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10949     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950     soname_spec='${libname}${release}${shared_ext}$major'
10951     if test "X$HPUX_IA64_MODE" = X32; then
10952       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10953     else
10954       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10955     fi
10956     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10957     ;;
10958   hppa*64*)
10959     shrext_cmds='.sl'
10960     hardcode_into_libs=yes
10961     dynamic_linker="$host_os dld.sl"
10962     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10963     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10964     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10965     soname_spec='${libname}${release}${shared_ext}$major'
10966     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10967     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10968     ;;
10969   *)
10970     shrext_cmds='.sl'
10971     dynamic_linker="$host_os dld.sl"
10972     shlibpath_var=SHLIB_PATH
10973     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10974     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10975     soname_spec='${libname}${release}${shared_ext}$major'
10976     ;;
10977   esac
10978   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10979   postinstall_cmds='chmod 555 $lib'
10980   # or fails outright, so override atomically:
10981   install_override_mode=555
10982   ;;
10983
10984 interix[3-9]*)
10985   version_type=linux # correct to gnu/linux during the next big refactor
10986   need_lib_prefix=no
10987   need_version=no
10988   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10989   soname_spec='${libname}${release}${shared_ext}$major'
10990   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10991   shlibpath_var=LD_LIBRARY_PATH
10992   shlibpath_overrides_runpath=no
10993   hardcode_into_libs=yes
10994   ;;
10995
10996 irix5* | irix6* | nonstopux*)
10997   case $host_os in
10998     nonstopux*) version_type=nonstopux ;;
10999     *)
11000         if test "$lt_cv_prog_gnu_ld" = yes; then
11001                 version_type=linux # correct to gnu/linux during the next big refactor
11002         else
11003                 version_type=irix
11004         fi ;;
11005   esac
11006   need_lib_prefix=no
11007   need_version=no
11008   soname_spec='${libname}${release}${shared_ext}$major'
11009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11010   case $host_os in
11011   irix5* | nonstopux*)
11012     libsuff= shlibsuff=
11013     ;;
11014   *)
11015     case $LD in # libtool.m4 will add one of these switches to LD
11016     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11017       libsuff= shlibsuff= libmagic=32-bit;;
11018     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11019       libsuff=32 shlibsuff=N32 libmagic=N32;;
11020     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11021       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11022     *) libsuff= shlibsuff= libmagic=never-match;;
11023     esac
11024     ;;
11025   esac
11026   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11027   shlibpath_overrides_runpath=no
11028   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11029   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11030   hardcode_into_libs=yes
11031   ;;
11032
11033 # No shared lib support for Linux oldld, aout, or coff.
11034 linux*oldld* | linux*aout* | linux*coff*)
11035   dynamic_linker=no
11036   ;;
11037
11038 # This must be glibc/ELF.
11039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11040   version_type=linux # correct to gnu/linux during the next big refactor
11041   need_lib_prefix=no
11042   need_version=no
11043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11044   soname_spec='${libname}${release}${shared_ext}$major'
11045   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   shlibpath_overrides_runpath=no
11048
11049   # Some binutils ld are patched to set DT_RUNPATH
11050   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11051   $as_echo_n "(cached) " >&6
11052 else
11053   lt_cv_shlibpath_overrides_runpath=no
11054     save_LDFLAGS=$LDFLAGS
11055     save_libdir=$libdir
11056     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11057          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11058     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11059 /* end confdefs.h.  */
11060
11061 int
11062 main ()
11063 {
11064
11065   ;
11066   return 0;
11067 }
11068 _ACEOF
11069 if ac_fn_c_try_link "$LINENO"; then :
11070   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11071   lt_cv_shlibpath_overrides_runpath=yes
11072 fi
11073 fi
11074 rm -f core conftest.err conftest.$ac_objext \
11075     conftest$ac_exeext conftest.$ac_ext
11076     LDFLAGS=$save_LDFLAGS
11077     libdir=$save_libdir
11078
11079 fi
11080
11081   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11082
11083   # This implies no fast_install, which is unacceptable.
11084   # Some rework will be needed to allow for fast_install
11085   # before this can be enabled.
11086   hardcode_into_libs=yes
11087
11088   # Add ABI-specific directories to the system library path.
11089   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11090
11091   # Append ld.so.conf contents to the search path
11092   if test -f /etc/ld.so.conf; then
11093     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' ' '`
11094     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11095
11096   fi
11097
11098   # We used to test for /lib/ld.so.1 and disable shared libraries on
11099   # powerpc, because MkLinux only supported shared libraries with the
11100   # GNU dynamic linker.  Since this was broken with cross compilers,
11101   # most powerpc-linux boxes support dynamic linking these days and
11102   # people can always --disable-shared, the test was removed, and we
11103   # assume the GNU/Linux dynamic linker is in use.
11104   dynamic_linker='GNU/Linux ld.so'
11105   ;;
11106
11107 netbsd*)
11108   version_type=sunos
11109   need_lib_prefix=no
11110   need_version=no
11111   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11113     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11114     dynamic_linker='NetBSD (a.out) ld.so'
11115   else
11116     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11117     soname_spec='${libname}${release}${shared_ext}$major'
11118     dynamic_linker='NetBSD ld.elf_so'
11119   fi
11120   shlibpath_var=LD_LIBRARY_PATH
11121   shlibpath_overrides_runpath=yes
11122   hardcode_into_libs=yes
11123   ;;
11124
11125 newsos6)
11126   version_type=linux # correct to gnu/linux during the next big refactor
11127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11128   shlibpath_var=LD_LIBRARY_PATH
11129   shlibpath_overrides_runpath=yes
11130   ;;
11131
11132 *nto* | *qnx*)
11133   version_type=qnx
11134   need_lib_prefix=no
11135   need_version=no
11136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11137   soname_spec='${libname}${release}${shared_ext}$major'
11138   shlibpath_var=LD_LIBRARY_PATH
11139   shlibpath_overrides_runpath=no
11140   hardcode_into_libs=yes
11141   dynamic_linker='ldqnx.so'
11142   ;;
11143
11144 openbsd*)
11145   version_type=sunos
11146   sys_lib_dlsearch_path_spec="/usr/lib"
11147   need_lib_prefix=no
11148   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11149   case $host_os in
11150     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11151     *)                          need_version=no  ;;
11152   esac
11153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11154   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11155   shlibpath_var=LD_LIBRARY_PATH
11156   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11157     case $host_os in
11158       openbsd2.[89] | openbsd2.[89].*)
11159         shlibpath_overrides_runpath=no
11160         ;;
11161       *)
11162         shlibpath_overrides_runpath=yes
11163         ;;
11164       esac
11165   else
11166     shlibpath_overrides_runpath=yes
11167   fi
11168   ;;
11169
11170 os2*)
11171   libname_spec='$name'
11172   shrext_cmds=".dll"
11173   need_lib_prefix=no
11174   library_names_spec='$libname${shared_ext} $libname.a'
11175   dynamic_linker='OS/2 ld.exe'
11176   shlibpath_var=LIBPATH
11177   ;;
11178
11179 osf3* | osf4* | osf5*)
11180   version_type=osf
11181   need_lib_prefix=no
11182   need_version=no
11183   soname_spec='${libname}${release}${shared_ext}$major'
11184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11187   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11188   ;;
11189
11190 rdos*)
11191   dynamic_linker=no
11192   ;;
11193
11194 solaris*)
11195   version_type=linux # correct to gnu/linux during the next big refactor
11196   need_lib_prefix=no
11197   need_version=no
11198   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11199   soname_spec='${libname}${release}${shared_ext}$major'
11200   shlibpath_var=LD_LIBRARY_PATH
11201   shlibpath_overrides_runpath=yes
11202   hardcode_into_libs=yes
11203   # ldd complains unless libraries are executable
11204   postinstall_cmds='chmod +x $lib'
11205   ;;
11206
11207 sunos4*)
11208   version_type=sunos
11209   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11210   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11211   shlibpath_var=LD_LIBRARY_PATH
11212   shlibpath_overrides_runpath=yes
11213   if test "$with_gnu_ld" = yes; then
11214     need_lib_prefix=no
11215   fi
11216   need_version=yes
11217   ;;
11218
11219 sysv4 | sysv4.3*)
11220   version_type=linux # correct to gnu/linux during the next big refactor
11221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11222   soname_spec='${libname}${release}${shared_ext}$major'
11223   shlibpath_var=LD_LIBRARY_PATH
11224   case $host_vendor in
11225     sni)
11226       shlibpath_overrides_runpath=no
11227       need_lib_prefix=no
11228       runpath_var=LD_RUN_PATH
11229       ;;
11230     siemens)
11231       need_lib_prefix=no
11232       ;;
11233     motorola)
11234       need_lib_prefix=no
11235       need_version=no
11236       shlibpath_overrides_runpath=no
11237       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11238       ;;
11239   esac
11240   ;;
11241
11242 sysv4*MP*)
11243   if test -d /usr/nec ;then
11244     version_type=linux # correct to gnu/linux during the next big refactor
11245     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11246     soname_spec='$libname${shared_ext}.$major'
11247     shlibpath_var=LD_LIBRARY_PATH
11248   fi
11249   ;;
11250
11251 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11252   version_type=freebsd-elf
11253   need_lib_prefix=no
11254   need_version=no
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   shlibpath_var=LD_LIBRARY_PATH
11258   shlibpath_overrides_runpath=yes
11259   hardcode_into_libs=yes
11260   if test "$with_gnu_ld" = yes; then
11261     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11262   else
11263     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11264     case $host_os in
11265       sco3.2v5*)
11266         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11267         ;;
11268     esac
11269   fi
11270   sys_lib_dlsearch_path_spec='/usr/lib'
11271   ;;
11272
11273 tpf*)
11274   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11275   version_type=linux # correct to gnu/linux during the next big refactor
11276   need_lib_prefix=no
11277   need_version=no
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279   shlibpath_var=LD_LIBRARY_PATH
11280   shlibpath_overrides_runpath=no
11281   hardcode_into_libs=yes
11282   ;;
11283
11284 uts4*)
11285   version_type=linux # correct to gnu/linux during the next big refactor
11286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287   soname_spec='${libname}${release}${shared_ext}$major'
11288   shlibpath_var=LD_LIBRARY_PATH
11289   ;;
11290
11291 *)
11292   dynamic_linker=no
11293   ;;
11294 esac
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11296 $as_echo "$dynamic_linker" >&6; }
11297 test "$dynamic_linker" = no && can_build_shared=no
11298
11299 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11300 if test "$GCC" = yes; then
11301   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11302 fi
11303
11304 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11305   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11306 fi
11307 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11308   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11309 fi
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11403 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11404 hardcode_action=
11405 if test -n "$hardcode_libdir_flag_spec" ||
11406    test -n "$runpath_var" ||
11407    test "X$hardcode_automatic" = "Xyes" ; then
11408
11409   # We can hardcode non-existent directories.
11410   if test "$hardcode_direct" != no &&
11411      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11412      # have to relink, otherwise we might link with an installed library
11413      # when we should be linking with a yet-to-be-installed one
11414      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11415      test "$hardcode_minus_L" != no; then
11416     # Linking always hardcodes the temporary library directory.
11417     hardcode_action=relink
11418   else
11419     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11420     hardcode_action=immediate
11421   fi
11422 else
11423   # We cannot hardcode anything, or else we can only hardcode existing
11424   # directories.
11425   hardcode_action=unsupported
11426 fi
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11428 $as_echo "$hardcode_action" >&6; }
11429
11430 if test "$hardcode_action" = relink ||
11431    test "$inherit_rpath" = yes; then
11432   # Fast installation is not supported
11433   enable_fast_install=no
11434 elif test "$shlibpath_overrides_runpath" = yes ||
11435      test "$enable_shared" = no; then
11436   # Fast installation is not necessary
11437   enable_fast_install=needless
11438 fi
11439
11440
11441
11442
11443
11444
11445   if test "x$enable_dlopen" != xyes; then
11446   enable_dlopen=unknown
11447   enable_dlopen_self=unknown
11448   enable_dlopen_self_static=unknown
11449 else
11450   lt_cv_dlopen=no
11451   lt_cv_dlopen_libs=
11452
11453   case $host_os in
11454   beos*)
11455     lt_cv_dlopen="load_add_on"
11456     lt_cv_dlopen_libs=
11457     lt_cv_dlopen_self=yes
11458     ;;
11459
11460   mingw* | pw32* | cegcc*)
11461     lt_cv_dlopen="LoadLibrary"
11462     lt_cv_dlopen_libs=
11463     ;;
11464
11465   cygwin*)
11466     lt_cv_dlopen="dlopen"
11467     lt_cv_dlopen_libs=
11468     ;;
11469
11470   darwin*)
11471   # if libdl is installed we need to link against it
11472     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11473 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11474 if ${ac_cv_lib_dl_dlopen+:} false; then :
11475   $as_echo_n "(cached) " >&6
11476 else
11477   ac_check_lib_save_LIBS=$LIBS
11478 LIBS="-ldl  $LIBS"
11479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11480 /* end confdefs.h.  */
11481
11482 /* Override any GCC internal prototype to avoid an error.
11483    Use char because int might match the return type of a GCC
11484    builtin and then its argument prototype would still apply.  */
11485 #ifdef __cplusplus
11486 extern "C"
11487 #endif
11488 char dlopen ();
11489 int
11490 main ()
11491 {
11492 return dlopen ();
11493   ;
11494   return 0;
11495 }
11496 _ACEOF
11497 if ac_fn_c_try_link "$LINENO"; then :
11498   ac_cv_lib_dl_dlopen=yes
11499 else
11500   ac_cv_lib_dl_dlopen=no
11501 fi
11502 rm -f core conftest.err conftest.$ac_objext \
11503     conftest$ac_exeext conftest.$ac_ext
11504 LIBS=$ac_check_lib_save_LIBS
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11507 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11508 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11509   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11510 else
11511
11512     lt_cv_dlopen="dyld"
11513     lt_cv_dlopen_libs=
11514     lt_cv_dlopen_self=yes
11515
11516 fi
11517
11518     ;;
11519
11520   *)
11521     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11522 if test "x$ac_cv_func_shl_load" = xyes; then :
11523   lt_cv_dlopen="shl_load"
11524 else
11525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11526 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11527 if ${ac_cv_lib_dld_shl_load+:} false; then :
11528   $as_echo_n "(cached) " >&6
11529 else
11530   ac_check_lib_save_LIBS=$LIBS
11531 LIBS="-ldld  $LIBS"
11532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11533 /* end confdefs.h.  */
11534
11535 /* Override any GCC internal prototype to avoid an error.
11536    Use char because int might match the return type of a GCC
11537    builtin and then its argument prototype would still apply.  */
11538 #ifdef __cplusplus
11539 extern "C"
11540 #endif
11541 char shl_load ();
11542 int
11543 main ()
11544 {
11545 return shl_load ();
11546   ;
11547   return 0;
11548 }
11549 _ACEOF
11550 if ac_fn_c_try_link "$LINENO"; then :
11551   ac_cv_lib_dld_shl_load=yes
11552 else
11553   ac_cv_lib_dld_shl_load=no
11554 fi
11555 rm -f core conftest.err conftest.$ac_objext \
11556     conftest$ac_exeext conftest.$ac_ext
11557 LIBS=$ac_check_lib_save_LIBS
11558 fi
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11560 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11561 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11562   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11563 else
11564   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11565 if test "x$ac_cv_func_dlopen" = xyes; then :
11566   lt_cv_dlopen="dlopen"
11567 else
11568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11570 if ${ac_cv_lib_dl_dlopen+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   ac_check_lib_save_LIBS=$LIBS
11574 LIBS="-ldl  $LIBS"
11575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11576 /* end confdefs.h.  */
11577
11578 /* Override any GCC internal prototype to avoid an error.
11579    Use char because int might match the return type of a GCC
11580    builtin and then its argument prototype would still apply.  */
11581 #ifdef __cplusplus
11582 extern "C"
11583 #endif
11584 char dlopen ();
11585 int
11586 main ()
11587 {
11588 return dlopen ();
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 if ac_fn_c_try_link "$LINENO"; then :
11594   ac_cv_lib_dl_dlopen=yes
11595 else
11596   ac_cv_lib_dl_dlopen=no
11597 fi
11598 rm -f core conftest.err conftest.$ac_objext \
11599     conftest$ac_exeext conftest.$ac_ext
11600 LIBS=$ac_check_lib_save_LIBS
11601 fi
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11603 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11604 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11605   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11606 else
11607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11608 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11609 if ${ac_cv_lib_svld_dlopen+:} false; then :
11610   $as_echo_n "(cached) " >&6
11611 else
11612   ac_check_lib_save_LIBS=$LIBS
11613 LIBS="-lsvld  $LIBS"
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h.  */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618    Use char because int might match the return type of a GCC
11619    builtin and then its argument prototype would still apply.  */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char dlopen ();
11624 int
11625 main ()
11626 {
11627 return dlopen ();
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633   ac_cv_lib_svld_dlopen=yes
11634 else
11635   ac_cv_lib_svld_dlopen=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638     conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11642 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11643 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11644   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11645 else
11646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11647 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11648 if ${ac_cv_lib_dld_dld_link+:} false; then :
11649   $as_echo_n "(cached) " >&6
11650 else
11651   ac_check_lib_save_LIBS=$LIBS
11652 LIBS="-ldld  $LIBS"
11653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11654 /* end confdefs.h.  */
11655
11656 /* Override any GCC internal prototype to avoid an error.
11657    Use char because int might match the return type of a GCC
11658    builtin and then its argument prototype would still apply.  */
11659 #ifdef __cplusplus
11660 extern "C"
11661 #endif
11662 char dld_link ();
11663 int
11664 main ()
11665 {
11666 return dld_link ();
11667   ;
11668   return 0;
11669 }
11670 _ACEOF
11671 if ac_fn_c_try_link "$LINENO"; then :
11672   ac_cv_lib_dld_dld_link=yes
11673 else
11674   ac_cv_lib_dld_dld_link=no
11675 fi
11676 rm -f core conftest.err conftest.$ac_objext \
11677     conftest$ac_exeext conftest.$ac_ext
11678 LIBS=$ac_check_lib_save_LIBS
11679 fi
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11681 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11682 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11683   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11684 fi
11685
11686
11687 fi
11688
11689
11690 fi
11691
11692
11693 fi
11694
11695
11696 fi
11697
11698
11699 fi
11700
11701     ;;
11702   esac
11703
11704   if test "x$lt_cv_dlopen" != xno; then
11705     enable_dlopen=yes
11706   else
11707     enable_dlopen=no
11708   fi
11709
11710   case $lt_cv_dlopen in
11711   dlopen)
11712     save_CPPFLAGS="$CPPFLAGS"
11713     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11714
11715     save_LDFLAGS="$LDFLAGS"
11716     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11717
11718     save_LIBS="$LIBS"
11719     LIBS="$lt_cv_dlopen_libs $LIBS"
11720
11721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11722 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11723 if ${lt_cv_dlopen_self+:} false; then :
11724   $as_echo_n "(cached) " >&6
11725 else
11726           if test "$cross_compiling" = yes; then :
11727   lt_cv_dlopen_self=cross
11728 else
11729   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11730   lt_status=$lt_dlunknown
11731   cat > conftest.$ac_ext <<_LT_EOF
11732 #line $LINENO "configure"
11733 #include "confdefs.h"
11734
11735 #if HAVE_DLFCN_H
11736 #include <dlfcn.h>
11737 #endif
11738
11739 #include <stdio.h>
11740
11741 #ifdef RTLD_GLOBAL
11742 #  define LT_DLGLOBAL           RTLD_GLOBAL
11743 #else
11744 #  ifdef DL_GLOBAL
11745 #    define LT_DLGLOBAL         DL_GLOBAL
11746 #  else
11747 #    define LT_DLGLOBAL         0
11748 #  endif
11749 #endif
11750
11751 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11752    find out it does not work in some platform. */
11753 #ifndef LT_DLLAZY_OR_NOW
11754 #  ifdef RTLD_LAZY
11755 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11756 #  else
11757 #    ifdef DL_LAZY
11758 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11759 #    else
11760 #      ifdef RTLD_NOW
11761 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11762 #      else
11763 #        ifdef DL_NOW
11764 #          define LT_DLLAZY_OR_NOW      DL_NOW
11765 #        else
11766 #          define LT_DLLAZY_OR_NOW      0
11767 #        endif
11768 #      endif
11769 #    endif
11770 #  endif
11771 #endif
11772
11773 /* When -fvisbility=hidden is used, assume the code has been annotated
11774    correspondingly for the symbols needed.  */
11775 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11776 int fnord () __attribute__((visibility("default")));
11777 #endif
11778
11779 int fnord () { return 42; }
11780 int main ()
11781 {
11782   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11783   int status = $lt_dlunknown;
11784
11785   if (self)
11786     {
11787       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11788       else
11789         {
11790           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11791           else puts (dlerror ());
11792         }
11793       /* dlclose (self); */
11794     }
11795   else
11796     puts (dlerror ());
11797
11798   return status;
11799 }
11800 _LT_EOF
11801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11802   (eval $ac_link) 2>&5
11803   ac_status=$?
11804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11805   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11806     (./conftest; exit; ) >&5 2>/dev/null
11807     lt_status=$?
11808     case x$lt_status in
11809       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11810       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11811       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11812     esac
11813   else :
11814     # compilation failed
11815     lt_cv_dlopen_self=no
11816   fi
11817 fi
11818 rm -fr conftest*
11819
11820
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11823 $as_echo "$lt_cv_dlopen_self" >&6; }
11824
11825     if test "x$lt_cv_dlopen_self" = xyes; then
11826       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11827       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11828 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11829 if ${lt_cv_dlopen_self_static+:} false; then :
11830   $as_echo_n "(cached) " >&6
11831 else
11832           if test "$cross_compiling" = yes; then :
11833   lt_cv_dlopen_self_static=cross
11834 else
11835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11836   lt_status=$lt_dlunknown
11837   cat > conftest.$ac_ext <<_LT_EOF
11838 #line $LINENO "configure"
11839 #include "confdefs.h"
11840
11841 #if HAVE_DLFCN_H
11842 #include <dlfcn.h>
11843 #endif
11844
11845 #include <stdio.h>
11846
11847 #ifdef RTLD_GLOBAL
11848 #  define LT_DLGLOBAL           RTLD_GLOBAL
11849 #else
11850 #  ifdef DL_GLOBAL
11851 #    define LT_DLGLOBAL         DL_GLOBAL
11852 #  else
11853 #    define LT_DLGLOBAL         0
11854 #  endif
11855 #endif
11856
11857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11858    find out it does not work in some platform. */
11859 #ifndef LT_DLLAZY_OR_NOW
11860 #  ifdef RTLD_LAZY
11861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11862 #  else
11863 #    ifdef DL_LAZY
11864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11865 #    else
11866 #      ifdef RTLD_NOW
11867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11868 #      else
11869 #        ifdef DL_NOW
11870 #          define LT_DLLAZY_OR_NOW      DL_NOW
11871 #        else
11872 #          define LT_DLLAZY_OR_NOW      0
11873 #        endif
11874 #      endif
11875 #    endif
11876 #  endif
11877 #endif
11878
11879 /* When -fvisbility=hidden is used, assume the code has been annotated
11880    correspondingly for the symbols needed.  */
11881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11882 int fnord () __attribute__((visibility("default")));
11883 #endif
11884
11885 int fnord () { return 42; }
11886 int main ()
11887 {
11888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11889   int status = $lt_dlunknown;
11890
11891   if (self)
11892     {
11893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11894       else
11895         {
11896           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11897           else puts (dlerror ());
11898         }
11899       /* dlclose (self); */
11900     }
11901   else
11902     puts (dlerror ());
11903
11904   return status;
11905 }
11906 _LT_EOF
11907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11908   (eval $ac_link) 2>&5
11909   ac_status=$?
11910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11911   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11912     (./conftest; exit; ) >&5 2>/dev/null
11913     lt_status=$?
11914     case x$lt_status in
11915       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11916       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11917       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11918     esac
11919   else :
11920     # compilation failed
11921     lt_cv_dlopen_self_static=no
11922   fi
11923 fi
11924 rm -fr conftest*
11925
11926
11927 fi
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11929 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11930     fi
11931
11932     CPPFLAGS="$save_CPPFLAGS"
11933     LDFLAGS="$save_LDFLAGS"
11934     LIBS="$save_LIBS"
11935     ;;
11936   esac
11937
11938   case $lt_cv_dlopen_self in
11939   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11940   *) enable_dlopen_self=unknown ;;
11941   esac
11942
11943   case $lt_cv_dlopen_self_static in
11944   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11945   *) enable_dlopen_self_static=unknown ;;
11946   esac
11947 fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963
11964
11965 striplib=
11966 old_striplib=
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11968 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11969 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11970   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11971   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11973 $as_echo "yes" >&6; }
11974 else
11975 # FIXME - insert some real tests, host_os isn't really good enough
11976   case $host_os in
11977   darwin*)
11978     if test -n "$STRIP" ; then
11979       striplib="$STRIP -x"
11980       old_striplib="$STRIP -S"
11981       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11982 $as_echo "yes" >&6; }
11983     else
11984       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11986     fi
11987     ;;
11988   *)
11989     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991     ;;
11992   esac
11993 fi
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006   # Report which library types will actually be built
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12008 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12010 $as_echo "$can_build_shared" >&6; }
12011
12012   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12013 $as_echo_n "checking whether to build shared libraries... " >&6; }
12014   test "$can_build_shared" = "no" && enable_shared=no
12015
12016   # On AIX, shared libraries and static libraries use the same namespace, and
12017   # are all built from PIC.
12018   case $host_os in
12019   aix3*)
12020     test "$enable_shared" = yes && enable_static=no
12021     if test -n "$RANLIB"; then
12022       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12023       postinstall_cmds='$RANLIB $lib'
12024     fi
12025     ;;
12026
12027   aix[4-9]*)
12028     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12029       test "$enable_shared" = yes && enable_static=no
12030     fi
12031     ;;
12032   esac
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12034 $as_echo "$enable_shared" >&6; }
12035
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12037 $as_echo_n "checking whether to build static libraries... " >&6; }
12038   # Make sure either enable_shared or enable_static is yes.
12039   test "$enable_shared" = yes || enable_static=yes
12040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12041 $as_echo "$enable_static" >&6; }
12042
12043
12044
12045
12046 fi
12047 ac_ext=c
12048 ac_cpp='$CPP $CPPFLAGS'
12049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12052
12053 CC="$lt_save_CC"
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069         ac_config_commands="$ac_config_commands libtool"
12070
12071
12072
12073
12074 # Only expand once:
12075
12076
12077
12078
12079 # Test for 64-bit build.
12080 # The cast to long int works around a bug in the HP C Compiler
12081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12083 # This bug is HP SR number 8606223364.
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12085 $as_echo_n "checking size of size_t... " >&6; }
12086 if ${ac_cv_sizeof_size_t+:} false; then :
12087   $as_echo_n "(cached) " >&6
12088 else
12089   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12090
12091 else
12092   if test "$ac_cv_type_size_t" = yes; then
12093      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12095 as_fn_error 77 "cannot compute sizeof (size_t)
12096 See \`config.log' for more details" "$LINENO" 5; }
12097    else
12098      ac_cv_sizeof_size_t=0
12099    fi
12100 fi
12101
12102 fi
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12104 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12105
12106
12107
12108 cat >>confdefs.h <<_ACEOF
12109 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12110 _ACEOF
12111
12112
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12115 $as_echo_n "checking for C compiler vendor... " >&6; }
12116 if ${ax_cv_c_compiler_vendor+:} false; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   # note: don't check for gcc first since some other compilers define __GNUC__
12120   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12121            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12122            pathscale: __PATHCC__,__PATHSCALE__
12123            clang:     __clang__
12124            gnu:       __GNUC__
12125            sun:       __SUNPRO_C,__SUNPRO_CC
12126            hp:        __HP_cc,__HP_aCC
12127            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12128            borland:   __BORLANDC__,__TURBOC__
12129            comeau:    __COMO__
12130            cray:      _CRAYC
12131            kai:       __KCC
12132            lcc:       __LCC__
12133            sgi:       __sgi,sgi
12134            microsoft: _MSC_VER
12135            metrowerks: __MWERKS__
12136            watcom:    __WATCOMC__
12137            portland:  __PGI
12138            unknown:   UNKNOWN"
12139   for ventest in $vendors; do
12140     case $ventest in
12141       *:) vendor=$ventest; continue ;;
12142       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12143     esac
12144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h.  */
12146
12147 int
12148 main ()
12149 {
12150
12151       #if !($vencpp)
12152         thisisanerror;
12153       #endif
12154
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160   break
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12163   done
12164   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12165
12166 fi
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12168 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12169
12170
12171
12172
12173
12174
12175 # Check whether --enable-portable-binary was given.
12176 if test "${enable_portable_binary+set}" = set; then :
12177   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12178 else
12179   acx_maxopt_portable=no
12180 fi
12181
12182
12183 # Try to determine "good" native compiler flags if none specified via CFLAGS
12184 if test "$ac_test_CFLAGS" != "set"; then
12185   CFLAGS=""
12186   case $ax_cv_c_compiler_vendor in
12187     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12188          if test "x$acx_maxopt_portable" = xno; then
12189            CFLAGS="$CFLAGS -arch host"
12190          fi;;
12191
12192     sun) CFLAGS="-native -fast -xO5 -dalign"
12193          if test "x$acx_maxopt_portable" = xyes; then
12194            CFLAGS="$CFLAGS -xarch=generic"
12195          fi;;
12196
12197     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12198          if test "x$acx_maxopt_portable" = xyes; then
12199            CFLAGS="$CFLAGS +DAportable"
12200          fi;;
12201
12202     ibm) if test "x$acx_maxopt_portable" = xno; then
12203            xlc_opt="-qarch=auto -qtune=auto"
12204          else
12205            xlc_opt="-qtune=auto"
12206          fi
12207          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12209 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12210 if eval \${$as_CACHEVAR+:} false; then :
12211   $as_echo_n "(cached) " >&6
12212 else
12213
12214   ax_check_save_flags=$CFLAGS
12215   CFLAGS="$CFLAGS  $xlc_opt"
12216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12217 /* end confdefs.h.  */
12218
12219 int
12220 main ()
12221 {
12222
12223   ;
12224   return 0;
12225 }
12226 _ACEOF
12227 if ac_fn_c_try_compile "$LINENO"; then :
12228   eval "$as_CACHEVAR=yes"
12229 else
12230   eval "$as_CACHEVAR=no"
12231 fi
12232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233   CFLAGS=$ax_check_save_flags
12234 fi
12235 eval ac_res=\$$as_CACHEVAR
12236                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12237 $as_echo "$ac_res" >&6; }
12238 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12239   CFLAGS="-O3 -qansialias -w $xlc_opt"
12240 else
12241   CFLAGS="-O3 -qansialias -w"
12242                 echo "******************************************************"
12243                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12244                 echo "*  recommended for best performance that you use:    *"
12245                 echo "*                                                    *"
12246                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12247                 echo "*                      ^^^        ^^^                *"
12248                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12249                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12250                 echo "*  and re-run configure.)  For more info, man cc.    *"
12251                 echo "******************************************************"
12252 fi
12253
12254          ;;
12255
12256     intel) CFLAGS="-O3 -ansi_alias"
12257         if test "x$acx_maxopt_portable" = xno; then
12258           icc_archflag=unknown
12259           icc_flags=""
12260           case $host_cpu in
12261             i686*|x86_64*)
12262               # icc accepts gcc assembly syntax, so these should work:
12263
12264 ac_ext=c
12265 ac_cpp='$CPP $CPPFLAGS'
12266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12269
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12271 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12272 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12273   $as_echo_n "(cached) " >&6
12274 else
12275   if test "$cross_compiling" = yes; then :
12276   ax_cv_gcc_x86_cpuid_0=unknown
12277 else
12278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280 #include <stdio.h>
12281 int
12282 main ()
12283 {
12284
12285      int op = 0, eax, ebx, ecx, edx;
12286      FILE *f;
12287       __asm__("cpuid"
12288         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12289         : "a" (op));
12290      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12291      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12292      fclose(f);
12293      return 0;
12294
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_run "$LINENO"; then :
12300   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12301 else
12302   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12303 fi
12304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12305   conftest.$ac_objext conftest.beam conftest.$ac_ext
12306 fi
12307
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12310 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12311 ac_ext=c
12312 ac_cpp='$CPP $CPPFLAGS'
12313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12316
12317
12318
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12326 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12327 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   if test "$cross_compiling" = yes; then :
12331   ax_cv_gcc_x86_cpuid_1=unknown
12332 else
12333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334 /* end confdefs.h.  */
12335 #include <stdio.h>
12336 int
12337 main ()
12338 {
12339
12340      int op = 1, eax, ebx, ecx, edx;
12341      FILE *f;
12342       __asm__("cpuid"
12343         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12344         : "a" (op));
12345      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12346      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12347      fclose(f);
12348      return 0;
12349
12350   ;
12351   return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_run "$LINENO"; then :
12355   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12356 else
12357   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12358 fi
12359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12360   conftest.$ac_objext conftest.beam conftest.$ac_ext
12361 fi
12362
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12365 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12366 ac_ext=c
12367 ac_cpp='$CPP $CPPFLAGS'
12368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12371
12372
12373               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12374                 *:756e6547:*:*) # Intel
12375                   case $ax_cv_gcc_x86_cpuid_1 in
12376                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12377                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12378                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12379                   esac ;;
12380               esac ;;
12381           esac
12382           if test "x$icc_flags" != x; then
12383             for flag in $icc_flags; do
12384               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12386 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12387 if eval \${$as_CACHEVAR+:} false; then :
12388   $as_echo_n "(cached) " >&6
12389 else
12390
12391   ax_check_save_flags=$CFLAGS
12392   CFLAGS="$CFLAGS  $flag"
12393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12394 /* end confdefs.h.  */
12395
12396 int
12397 main ()
12398 {
12399
12400   ;
12401   return 0;
12402 }
12403 _ACEOF
12404 if ac_fn_c_try_compile "$LINENO"; then :
12405   eval "$as_CACHEVAR=yes"
12406 else
12407   eval "$as_CACHEVAR=no"
12408 fi
12409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12410   CFLAGS=$ax_check_save_flags
12411 fi
12412 eval ac_res=\$$as_CACHEVAR
12413                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12414 $as_echo "$ac_res" >&6; }
12415 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12416   icc_archflag=$flag; break
12417 else
12418   :
12419 fi
12420
12421             done
12422           fi
12423           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12424 $as_echo_n "checking for icc architecture flag... " >&6; }
12425           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12426 $as_echo "$icc_archflag" >&6; }
12427           if test "x$icc_archflag" != xunknown; then
12428             CFLAGS="$CFLAGS $icc_archflag"
12429           fi
12430         fi
12431         ;;
12432
12433     gnu)
12434      # default optimization flags for gcc on all systems
12435      CFLAGS="-O3 -fomit-frame-pointer"
12436
12437      # -malign-double for x86 systems
12438      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12439      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12440
12441      #  -fstrict-aliasing for gcc-2.95+
12442      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12443 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12444 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447
12448   ax_check_save_flags=$CFLAGS
12449   CFLAGS="$CFLAGS  -fstrict-aliasing"
12450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h.  */
12452
12453 int
12454 main ()
12455 {
12456
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462   ax_cv_check_cflags___fstrict_aliasing=yes
12463 else
12464   ax_cv_check_cflags___fstrict_aliasing=no
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467   CFLAGS=$ax_check_save_flags
12468 fi
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12470 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12471 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12472   CFLAGS="$CFLAGS -fstrict-aliasing"
12473 else
12474   :
12475 fi
12476
12477
12478      # note that we enable "unsafe" fp optimization with other compilers, too
12479      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12480 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12481 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12482   $as_echo_n "(cached) " >&6
12483 else
12484
12485   ax_check_save_flags=$CFLAGS
12486   CFLAGS="$CFLAGS  -ffast-math"
12487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12488 /* end confdefs.h.  */
12489
12490 int
12491 main ()
12492 {
12493
12494   ;
12495   return 0;
12496 }
12497 _ACEOF
12498 if ac_fn_c_try_compile "$LINENO"; then :
12499   ax_cv_check_cflags___ffast_math=yes
12500 else
12501   ax_cv_check_cflags___ffast_math=no
12502 fi
12503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12504   CFLAGS=$ax_check_save_flags
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12507 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12508 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12509   CFLAGS="$CFLAGS -ffast-math"
12510 else
12511   :
12512 fi
12513
12514
12515
12516
12517
12518
12519 # Check whether --with-gcc-arch was given.
12520 if test "${with_gcc_arch+set}" = set; then :
12521   withval=$with_gcc_arch; ax_gcc_arch=$withval
12522 else
12523   ax_gcc_arch=yes
12524 fi
12525
12526
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12528 $as_echo_n "checking for gcc architecture flag... " >&6; }
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12530 $as_echo "" >&6; }
12531 if ${ax_cv_gcc_archflag+:} false; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534
12535 ax_cv_gcc_archflag="unknown"
12536
12537 if test "$GCC" = yes; then
12538
12539 if test "x$ax_gcc_arch" = xyes; then
12540 ax_gcc_arch=""
12541 if test "$cross_compiling" = no; then
12542 case $host_cpu in
12543   i[3456]86*|x86_64*) # use cpuid codes
12544
12545 ac_ext=c
12546 ac_cpp='$CPP $CPPFLAGS'
12547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12550
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12552 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12553 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12554   $as_echo_n "(cached) " >&6
12555 else
12556   if test "$cross_compiling" = yes; then :
12557   ax_cv_gcc_x86_cpuid_0=unknown
12558 else
12559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h.  */
12561 #include <stdio.h>
12562 int
12563 main ()
12564 {
12565
12566      int op = 0, eax, ebx, ecx, edx;
12567      FILE *f;
12568       __asm__("cpuid"
12569         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12570         : "a" (op));
12571      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12572      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12573      fclose(f);
12574      return 0;
12575
12576   ;
12577   return 0;
12578 }
12579 _ACEOF
12580 if ac_fn_c_try_run "$LINENO"; then :
12581   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12582 else
12583   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12584 fi
12585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12586   conftest.$ac_objext conftest.beam conftest.$ac_ext
12587 fi
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12591 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12592 ac_ext=c
12593 ac_cpp='$CPP $CPPFLAGS'
12594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597
12598
12599
12600 ac_ext=c
12601 ac_cpp='$CPP $CPPFLAGS'
12602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12605
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12607 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12608 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12609   $as_echo_n "(cached) " >&6
12610 else
12611   if test "$cross_compiling" = yes; then :
12612   ax_cv_gcc_x86_cpuid_1=unknown
12613 else
12614   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12615 /* end confdefs.h.  */
12616 #include <stdio.h>
12617 int
12618 main ()
12619 {
12620
12621      int op = 1, eax, ebx, ecx, edx;
12622      FILE *f;
12623       __asm__("cpuid"
12624         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12625         : "a" (op));
12626      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12627      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12628      fclose(f);
12629      return 0;
12630
12631   ;
12632   return 0;
12633 }
12634 _ACEOF
12635 if ac_fn_c_try_run "$LINENO"; then :
12636   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12637 else
12638   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12639 fi
12640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12641   conftest.$ac_objext conftest.beam conftest.$ac_ext
12642 fi
12643
12644 fi
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12646 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12647 ac_ext=c
12648 ac_cpp='$CPP $CPPFLAGS'
12649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12652
12653
12654      case $ax_cv_gcc_x86_cpuid_0 in
12655        *:756e6547:*:*) # Intel
12656           case $ax_cv_gcc_x86_cpuid_1 in
12657             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12658             *5??:*:*:*) ax_gcc_arch=pentium ;;
12659             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12660             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12661             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12662             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12663             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12664             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12665             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12666             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12667             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12668             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12669             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12670             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12671             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12672                 case $host_cpu in
12673                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12674                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12675                 esac ;;
12676             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12677           esac ;;
12678        *:68747541:*:*) # AMD
12679           case $ax_cv_gcc_x86_cpuid_1 in
12680             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12681             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12682             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12683             *60?:*:*:*) ax_gcc_arch=k7 ;;
12684             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12685             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12686             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12687             *6[68a]?:*:*:*)
12688
12689 ac_ext=c
12690 ac_cpp='$CPP $CPPFLAGS'
12691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12694
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12696 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12697 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12698   $as_echo_n "(cached) " >&6
12699 else
12700   if test "$cross_compiling" = yes; then :
12701   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12702 else
12703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h.  */
12705 #include <stdio.h>
12706 int
12707 main ()
12708 {
12709
12710      int op = 0x80000006, eax, ebx, ecx, edx;
12711      FILE *f;
12712       __asm__("cpuid"
12713         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12714         : "a" (op));
12715      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12716      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12717      fclose(f);
12718      return 0;
12719
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_run "$LINENO"; then :
12725   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12726 else
12727   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12728 fi
12729 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12730   conftest.$ac_objext conftest.beam conftest.$ac_ext
12731 fi
12732
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12735 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12736 ac_ext=c
12737 ac_cpp='$CPP $CPPFLAGS'
12738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12741
12742  # L2 cache size
12743                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12744                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12745                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12746                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12747                esac ;;
12748             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12749             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12750             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12751             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12752             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12753             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12754             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12755           esac ;;
12756         *:746e6543:*:*) # IDT
12757            case $ax_cv_gcc_x86_cpuid_1 in
12758              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12759              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12760              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12761              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12762            esac ;;
12763      esac
12764      if test x"$ax_gcc_arch" = x; then # fallback
12765         case $host_cpu in
12766           i586*) ax_gcc_arch=pentium ;;
12767           i686*) ax_gcc_arch=pentiumpro ;;
12768         esac
12769      fi
12770      ;;
12771
12772   sparc*)
12773      # Extract the first word of "prtdiag", so it can be a program name with args.
12774 set dummy prtdiag; ac_word=$2
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12776 $as_echo_n "checking for $ac_word... " >&6; }
12777 if ${ac_cv_path_PRTDIAG+:} false; then :
12778   $as_echo_n "(cached) " >&6
12779 else
12780   case $PRTDIAG in
12781   [\\/]* | ?:[\\/]*)
12782   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12783   ;;
12784   *)
12785   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12787 for as_dir in $as_dummy
12788 do
12789   IFS=$as_save_IFS
12790   test -z "$as_dir" && as_dir=.
12791     for ac_exec_ext in '' $ac_executable_extensions; do
12792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12793     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12795     break 2
12796   fi
12797 done
12798   done
12799 IFS=$as_save_IFS
12800
12801   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12802   ;;
12803 esac
12804 fi
12805 PRTDIAG=$ac_cv_path_PRTDIAG
12806 if test -n "$PRTDIAG"; then
12807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12808 $as_echo "$PRTDIAG" >&6; }
12809 else
12810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12812 fi
12813
12814
12815      cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
12816      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12817      case $cputype in
12818          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12819          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12820          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12821          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12822          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12823          *cypress*) ax_gcc_arch=cypress ;;
12824      esac ;;
12825
12826   alphaev5) ax_gcc_arch=ev5 ;;
12827   alphaev56) ax_gcc_arch=ev56 ;;
12828   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12829   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12830   alphaev6) ax_gcc_arch=ev6 ;;
12831   alphaev67) ax_gcc_arch=ev67 ;;
12832   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12833   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12834   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12835   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12836
12837   powerpc*)
12838      cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
12839      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12840      case $cputype in
12841        *750*) ax_gcc_arch="750 G3" ;;
12842        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12843        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12844        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12845        *970*) ax_gcc_arch="970 G5 power4";;
12846        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12847        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12848        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12849        *) ax_gcc_arch=$cputype ;;
12850      esac
12851      ax_gcc_arch="$ax_gcc_arch powerpc"
12852      ;;
12853 esac
12854 fi # not cross-compiling
12855 fi # guess arch
12856
12857 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12858 for arch in $ax_gcc_arch; do
12859   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12860     flags="-mtune=$arch"
12861     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12862     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12863     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12864   else
12865     flags="-march=$arch -mcpu=$arch -m$arch"
12866   fi
12867   for flag in $flags; do
12868     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12870 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12871 if eval \${$as_CACHEVAR+:} false; then :
12872   $as_echo_n "(cached) " >&6
12873 else
12874
12875   ax_check_save_flags=$CFLAGS
12876   CFLAGS="$CFLAGS  $flag"
12877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12878 /* end confdefs.h.  */
12879
12880 int
12881 main ()
12882 {
12883
12884   ;
12885   return 0;
12886 }
12887 _ACEOF
12888 if ac_fn_c_try_compile "$LINENO"; then :
12889   eval "$as_CACHEVAR=yes"
12890 else
12891   eval "$as_CACHEVAR=no"
12892 fi
12893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894   CFLAGS=$ax_check_save_flags
12895 fi
12896 eval ac_res=\$$as_CACHEVAR
12897                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12898 $as_echo "$ac_res" >&6; }
12899 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12900   ax_cv_gcc_archflag=$flag; break
12901 else
12902   :
12903 fi
12904
12905   done
12906   test "x$ax_cv_gcc_archflag" = xunknown || break
12907 done
12908 fi
12909
12910 fi # $GCC=yes
12911
12912 fi
12913
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12915 $as_echo_n "checking for gcc architecture flag... " >&6; }
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12917 $as_echo "$ax_cv_gcc_archflag" >&6; }
12918 if test "x$ax_cv_gcc_archflag" = xunknown; then
12919   :
12920 else
12921   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12922 fi
12923
12924      ;;
12925   esac
12926
12927   if test -z "$CFLAGS"; then
12928         echo ""
12929         echo "********************************************************"
12930         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12931         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12932         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12933         echo "********************************************************"
12934         echo ""
12935         CFLAGS="-O3"
12936   fi
12937
12938   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12940 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12941 if eval \${$as_CACHEVAR+:} false; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944
12945   ax_check_save_flags=$CFLAGS
12946   CFLAGS="$CFLAGS  $CFLAGS"
12947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h.  */
12949
12950 int
12951 main ()
12952 {
12953
12954   ;
12955   return 0;
12956 }
12957 _ACEOF
12958 if ac_fn_c_try_compile "$LINENO"; then :
12959   eval "$as_CACHEVAR=yes"
12960 else
12961   eval "$as_CACHEVAR=no"
12962 fi
12963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964   CFLAGS=$ax_check_save_flags
12965 fi
12966 eval ac_res=\$$as_CACHEVAR
12967                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12968 $as_echo "$ac_res" >&6; }
12969 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12970   :
12971 else
12972
12973         echo ""
12974         echo "********************************************************"
12975         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12976         echo "* your compiler.                                       *"
12977         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12978         echo "********************************************************"
12979         echo ""
12980         CFLAGS=""
12981
12982 fi
12983
12984
12985 fi
12986
12987 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12988 # compiler.
12989 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12990   if ${CFLAGS+:} false; then :
12991   case " $CFLAGS " in
12992     *"  "*)
12993       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12994   (: CFLAGS already contains ) 2>&5
12995   ac_status=$?
12996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997   test $ac_status = 0; }
12998       ;;
12999     *)
13000       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13001   (: CFLAGS="$CFLAGS ") 2>&5
13002   ac_status=$?
13003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13004   test $ac_status = 0; }
13005       CFLAGS="$CFLAGS "
13006       ;;
13007    esac
13008 else
13009   CFLAGS=""
13010 fi
13011
13012 ac_ext=c
13013 ac_cpp='$CPP $CPPFLAGS'
13014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13019 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13020 if ${ac_cv_cflags_warn_all+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   ac_cv_cflags_warn_all="no, unknown"
13024 ac_save_CFLAGS="$CFLAGS"
13025 for ac_arg in "-warn all  % -warn all"      "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
13026 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13028 /* end confdefs.h.  */
13029
13030 int
13031 main ()
13032 {
13033
13034   ;
13035   return 0;
13036 }
13037 _ACEOF
13038 if ac_fn_c_try_compile "$LINENO"; then :
13039   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13040 fi
13041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13042 done
13043 CFLAGS="$ac_save_CFLAGS"
13044
13045 fi
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13047 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13048
13049 case ".$ac_cv_cflags_warn_all" in
13050      .ok|.ok,*)  ;;
13051    .|.no|.no,*)  ;;
13052    *) if ${CFLAGS+:} false; then :
13053   case " $CFLAGS " in
13054     *" $ac_cv_cflags_warn_all "*)
13055       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13056   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13057   ac_status=$?
13058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059   test $ac_status = 0; }
13060       ;;
13061     *)
13062       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13063   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13064   ac_status=$?
13065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13066   test $ac_status = 0; }
13067       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13068       ;;
13069    esac
13070 else
13071   CFLAGS="$ac_cv_cflags_warn_all"
13072 fi
13073  ;;
13074 esac
13075
13076 ac_ext=c
13077 ac_cpp='$CPP $CPPFLAGS'
13078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13081
13082
13083 fi
13084
13085 if test "x$GCC" = "xyes"; then
13086   CFLAGS="$CFLAGS -fexceptions"
13087   touch local.exp
13088 else
13089   cat > local.exp <<EOF
13090 set CC_FOR_TARGET "$CC"
13091 EOF
13092 fi
13093
13094
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13096 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13097     # Check whether --enable-maintainer-mode was given.
13098 if test "${enable_maintainer_mode+set}" = set; then :
13099   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13100 else
13101   USE_MAINTAINER_MODE=no
13102 fi
13103
13104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13105 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13106    if test $USE_MAINTAINER_MODE = yes; then
13107   MAINTAINER_MODE_TRUE=
13108   MAINTAINER_MODE_FALSE='#'
13109 else
13110   MAINTAINER_MODE_TRUE='#'
13111   MAINTAINER_MODE_FALSE=
13112 fi
13113
13114   MAINT=$MAINTAINER_MODE_TRUE
13115
13116
13117
13118 for ac_header in sys/mman.h
13119 do :
13120   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13121 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13122   cat >>confdefs.h <<_ACEOF
13123 #define HAVE_SYS_MMAN_H 1
13124 _ACEOF
13125
13126 fi
13127
13128 done
13129
13130 for ac_func in mmap
13131 do :
13132   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13133 if test "x$ac_cv_func_mmap" = xyes; then :
13134   cat >>confdefs.h <<_ACEOF
13135 #define HAVE_MMAP 1
13136 _ACEOF
13137
13138 fi
13139 done
13140
13141
13142 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13143 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13144   libffi_header_sys_mman_h=yes
13145 else
13146   libffi_header_sys_mman_h=no
13147 fi
13148
13149
13150 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13151 if test "x$ac_cv_func_mmap" = xyes; then :
13152   libffi_func_mmap=yes
13153 else
13154   libffi_func_mmap=no
13155 fi
13156
13157 if test "$libffi_header_sys_mman_h" != yes \
13158  || test "$libffi_func_mmap" != yes; then
13159    ac_cv_func_mmap_file=no
13160    ac_cv_func_mmap_dev_zero=no
13161    ac_cv_func_mmap_anon=no
13162 else
13163    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13164 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13165 if ${ac_cv_func_mmap_file+:} false; then :
13166   $as_echo_n "(cached) " >&6
13167 else
13168   # Add a system to this blacklist if
13169    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13170    # memory area containing the same data that you'd get if you applied
13171    # read() to the same fd.  The only system known to have a problem here
13172    # is VMS, where text files have record structure.
13173    case "$host_os" in
13174      vms* | ultrix*)
13175         ac_cv_func_mmap_file=no ;;
13176      *)
13177         ac_cv_func_mmap_file=yes;;
13178    esac
13179 fi
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13181 $as_echo "$ac_cv_func_mmap_file" >&6; }
13182    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13183 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13184 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13185   $as_echo_n "(cached) " >&6
13186 else
13187   # Add a system to this blacklist if it has mmap() but /dev/zero
13188    # does not exist, or if mmapping /dev/zero does not give anonymous
13189    # zeroed pages with both the following properties:
13190    # 1. If you map N consecutive pages in with one call, and then
13191    #    unmap any subset of those pages, the pages that were not
13192    #    explicitly unmapped remain accessible.
13193    # 2. If you map two adjacent blocks of memory and then unmap them
13194    #    both at once, they must both go away.
13195    # Systems known to be in this category are Windows (all variants),
13196    # VMS, and Darwin.
13197    case "$host_os" in
13198      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13199         ac_cv_func_mmap_dev_zero=no ;;
13200      *)
13201         ac_cv_func_mmap_dev_zero=yes;;
13202    esac
13203 fi
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13205 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13206
13207    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13208    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13209 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13210 if ${ac_cv_decl_map_anon+:} false; then :
13211   $as_echo_n "(cached) " >&6
13212 else
13213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13214 /* end confdefs.h.  */
13215 #include <sys/types.h>
13216 #include <sys/mman.h>
13217 #include <unistd.h>
13218
13219 #ifndef MAP_ANONYMOUS
13220 #define MAP_ANONYMOUS MAP_ANON
13221 #endif
13222
13223 int
13224 main ()
13225 {
13226 int n = MAP_ANONYMOUS;
13227   ;
13228   return 0;
13229 }
13230 _ACEOF
13231 if ac_fn_c_try_compile "$LINENO"; then :
13232   ac_cv_decl_map_anon=yes
13233 else
13234   ac_cv_decl_map_anon=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13237 fi
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13239 $as_echo "$ac_cv_decl_map_anon" >&6; }
13240
13241    if test $ac_cv_decl_map_anon = no; then
13242      ac_cv_func_mmap_anon=no
13243    else
13244      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13245 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13246 if ${ac_cv_func_mmap_anon+:} false; then :
13247   $as_echo_n "(cached) " >&6
13248 else
13249   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13250    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13251    # doesn't give anonymous zeroed pages with the same properties listed
13252    # above for use of /dev/zero.
13253    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13254    case "$host_os" in
13255      vms* | cygwin* | pe | mingw* | sco* | udk* )
13256         ac_cv_func_mmap_anon=no ;;
13257      *)
13258         ac_cv_func_mmap_anon=yes;;
13259    esac
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13262 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13263    fi
13264 fi
13265
13266 if test $ac_cv_func_mmap_file = yes; then
13267
13268 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13269
13270 fi
13271 if test $ac_cv_func_mmap_dev_zero = yes; then
13272
13273 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13274
13275 fi
13276 if test $ac_cv_func_mmap_anon = yes; then
13277
13278 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13279
13280 fi
13281
13282
13283  if test -d $srcdir/testsuite; then
13284   TESTSUBDIR_TRUE=
13285   TESTSUBDIR_FALSE='#'
13286 else
13287   TESTSUBDIR_TRUE='#'
13288   TESTSUBDIR_FALSE=
13289 fi
13290
13291
13292 TARGETDIR="unknown"
13293 case "$host" in
13294   aarch64*-*-*)
13295         TARGET=AARCH64; TARGETDIR=aarch64
13296         ;;
13297
13298   alpha*-*-*)
13299         TARGET=ALPHA; TARGETDIR=alpha;
13300         # Support 128-bit long double, changeable via command-line switch.
13301         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13302         ;;
13303
13304   arc*-*-*)
13305         TARGET=ARC; TARGETDIR=arc
13306         ;;
13307
13308   arm*-*-*)
13309         TARGET=ARM; TARGETDIR=arm
13310         ;;
13311
13312   amd64-*-freebsd* | amd64-*-openbsd*)
13313         TARGET=X86_64; TARGETDIR=x86
13314         ;;
13315
13316   amd64-*-freebsd*)
13317         TARGET=X86_64; TARGETDIR=x86
13318         ;;
13319
13320   amd64-*-freebsd*)
13321         TARGET=X86_64; TARGETDIR=x86
13322         ;;
13323
13324   avr32*-*-*)
13325         TARGET=AVR32; TARGETDIR=avr32
13326         ;;
13327
13328   bfin*)
13329         TARGET=BFIN; TARGETDIR=bfin
13330         ;;
13331
13332   cris-*-*)
13333         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13334         ;;
13335
13336   frv-*-*)
13337         TARGET=FRV; TARGETDIR=frv
13338         ;;
13339
13340   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13341         TARGET=PA_LINUX; TARGETDIR=pa
13342         ;;
13343   hppa*64-*-hpux*)
13344         TARGET=PA64_HPUX; TARGETDIR=pa
13345         ;;
13346   hppa*-*-hpux*)
13347         TARGET=PA_HPUX; TARGETDIR=pa
13348         ;;
13349
13350   i?86-*-freebsd* | i?86-*-openbsd*)
13351         TARGET=X86_FREEBSD; TARGETDIR=x86
13352         ;;
13353   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13354         TARGET=X86_WIN32; TARGETDIR=x86
13355         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13356         # We must also check with_cross_host to decide if this is a native
13357         # or cross-build and select where to install dlls appropriately.
13358         if test -n "$with_cross_host" &&
13359            test x"$with_cross_host" != x"no"; then
13360           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13361         else
13362           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13363         fi
13364         ;;
13365   i?86-*-darwin*)
13366         TARGET=X86_DARWIN; TARGETDIR=x86
13367         ;;
13368   i?86-*-solaris2.1[0-9]*)
13369         TARGETDIR=x86
13370         if test $ac_cv_sizeof_size_t = 4; then
13371           TARGET=X86;
13372         else
13373           TARGET=X86_64;
13374         fi
13375         ;;
13376
13377   x86_64-*-darwin*)
13378         TARGET=X86_DARWIN; TARGETDIR=x86
13379         ;;
13380
13381   x86_64-*-cygwin* | x86_64-*-mingw*)
13382         TARGET=X86_WIN64; TARGETDIR=x86
13383         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13384         # We must also check with_cross_host to decide if this is a native
13385         # or cross-build and select where to install dlls appropriately.
13386         if test -n "$with_cross_host" &&
13387            test x"$with_cross_host" != x"no"; then
13388           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13389         else
13390           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13391         fi
13392         ;;
13393
13394   i?86-*-* | x86_64-*-*)
13395         TARGETDIR=x86
13396         if test $ac_cv_sizeof_size_t = 4; then
13397           case "$host" in
13398             *-gnux32)
13399               TARGET=X86_64
13400               ;;
13401             *)
13402               TARGET=X86
13403               ;;
13404           esac
13405         else
13406           TARGET=X86_64;
13407         fi
13408         ;;
13409
13410   ia64*-*-*)
13411         TARGET=IA64; TARGETDIR=ia64
13412         ;;
13413
13414   m32r*-*-*)
13415         TARGET=M32R; TARGETDIR=m32r
13416         ;;
13417
13418   m68k-*-*)
13419         TARGET=M68K; TARGETDIR=m68k
13420         ;;
13421
13422   microblaze*-*-*)
13423         TARGET=MICROBLAZE; TARGETDIR=microblaze
13424         ;;
13425
13426   moxie-*-*)
13427         TARGET=MOXIE; TARGETDIR=moxie
13428         ;;
13429
13430   metag-*-*)
13431         TARGET=METAG; TARGETDIR=metag
13432         ;;
13433
13434   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13435         TARGET=MIPS; TARGETDIR=mips
13436         ;;
13437   mips*-*-linux* | mips*-*-openbsd*)
13438         # Support 128-bit long double for NewABI.
13439         HAVE_LONG_DOUBLE='defined(__mips64)'
13440         TARGET=MIPS; TARGETDIR=mips
13441         ;;
13442
13443   powerpc*-*-linux* | powerpc-*-sysv*)
13444         TARGET=POWERPC; TARGETDIR=powerpc
13445         ;;
13446   powerpc-*-amigaos*)
13447         TARGET=POWERPC; TARGETDIR=powerpc
13448         ;;
13449   powerpc-*-beos*)
13450         TARGET=POWERPC; TARGETDIR=powerpc
13451         ;;
13452   powerpc-*-darwin* | powerpc64-*-darwin*)
13453         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13454         ;;
13455   powerpc-*-aix* | rs6000-*-aix*)
13456         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13457         ;;
13458   powerpc-*-freebsd* | powerpc-*-openbsd*)
13459         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13460         ;;
13461   powerpc64-*-freebsd*)
13462         TARGET=POWERPC; TARGETDIR=powerpc
13463         ;;
13464   powerpc*-*-rtems*)
13465         TARGET=POWERPC; TARGETDIR=powerpc
13466         ;;
13467
13468   s390-*-* | s390x-*-*)
13469         TARGET=S390; TARGETDIR=s390
13470         ;;
13471
13472   sh-*-* | sh[34]*-*-*)
13473         TARGET=SH; TARGETDIR=sh
13474         ;;
13475   sh64-*-* | sh5*-*-*)
13476         TARGET=SH64; TARGETDIR=sh64
13477         ;;
13478
13479   sparc*-*-*)
13480         TARGET=SPARC; TARGETDIR=sparc
13481         ;;
13482
13483   tile*-*)
13484         TARGET=TILE; TARGETDIR=tile
13485         ;;
13486
13487   xtensa*-*)
13488         TARGET=XTENSA; TARGETDIR=xtensa
13489         ;;
13490
13491 esac
13492
13493
13494
13495
13496 if test $TARGETDIR = unknown; then
13497   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13498 fi
13499
13500  if test x$TARGET = xMIPS; then
13501   MIPS_TRUE=
13502   MIPS_FALSE='#'
13503 else
13504   MIPS_TRUE='#'
13505   MIPS_FALSE=
13506 fi
13507
13508  if test x$TARGET = xBFIN; then
13509   BFIN_TRUE=
13510   BFIN_FALSE='#'
13511 else
13512   BFIN_TRUE='#'
13513   BFIN_FALSE=
13514 fi
13515
13516  if test x$TARGET = xSPARC; then
13517   SPARC_TRUE=
13518   SPARC_FALSE='#'
13519 else
13520   SPARC_TRUE='#'
13521   SPARC_FALSE=
13522 fi
13523
13524  if test x$TARGET = xX86; then
13525   X86_TRUE=
13526   X86_FALSE='#'
13527 else
13528   X86_TRUE='#'
13529   X86_FALSE=
13530 fi
13531
13532  if test x$TARGET = xX86_FREEBSD; then
13533   X86_FREEBSD_TRUE=
13534   X86_FREEBSD_FALSE='#'
13535 else
13536   X86_FREEBSD_TRUE='#'
13537   X86_FREEBSD_FALSE=
13538 fi
13539
13540  if test x$TARGET = xX86_WIN32; then
13541   X86_WIN32_TRUE=
13542   X86_WIN32_FALSE='#'
13543 else
13544   X86_WIN32_TRUE='#'
13545   X86_WIN32_FALSE=
13546 fi
13547
13548  if test x$TARGET = xX86_WIN64; then
13549   X86_WIN64_TRUE=
13550   X86_WIN64_FALSE='#'
13551 else
13552   X86_WIN64_TRUE='#'
13553   X86_WIN64_FALSE=
13554 fi
13555
13556  if test x$TARGET = xX86_DARWIN; then
13557   X86_DARWIN_TRUE=
13558   X86_DARWIN_FALSE='#'
13559 else
13560   X86_DARWIN_TRUE='#'
13561   X86_DARWIN_FALSE=
13562 fi
13563
13564  if test x$TARGET = xALPHA; then
13565   ALPHA_TRUE=
13566   ALPHA_FALSE='#'
13567 else
13568   ALPHA_TRUE='#'
13569   ALPHA_FALSE=
13570 fi
13571
13572  if test x$TARGET = xIA64; then
13573   IA64_TRUE=
13574   IA64_FALSE='#'
13575 else
13576   IA64_TRUE='#'
13577   IA64_FALSE=
13578 fi
13579
13580  if test x$TARGET = xM32R; then
13581   M32R_TRUE=
13582   M32R_FALSE='#'
13583 else
13584   M32R_TRUE='#'
13585   M32R_FALSE=
13586 fi
13587
13588  if test x$TARGET = xM68K; then
13589   M68K_TRUE=
13590   M68K_FALSE='#'
13591 else
13592   M68K_TRUE='#'
13593   M68K_FALSE=
13594 fi
13595
13596  if test x$TARGET = xMICROBLAZE; then
13597   MICROBLAZE_TRUE=
13598   MICROBLAZE_FALSE='#'
13599 else
13600   MICROBLAZE_TRUE='#'
13601   MICROBLAZE_FALSE=
13602 fi
13603
13604  if test x$TARGET = xMETAG; then
13605   METAG_TRUE=
13606   METAG_FALSE='#'
13607 else
13608   METAG_TRUE='#'
13609   METAG_FALSE=
13610 fi
13611
13612  if test x$TARGET = xMOXIE; then
13613   MOXIE_TRUE=
13614   MOXIE_FALSE='#'
13615 else
13616   MOXIE_TRUE='#'
13617   MOXIE_FALSE=
13618 fi
13619
13620  if test x$TARGET = xPOWERPC; then
13621   POWERPC_TRUE=
13622   POWERPC_FALSE='#'
13623 else
13624   POWERPC_TRUE='#'
13625   POWERPC_FALSE=
13626 fi
13627
13628  if test x$TARGET = xPOWERPC_AIX; then
13629   POWERPC_AIX_TRUE=
13630   POWERPC_AIX_FALSE='#'
13631 else
13632   POWERPC_AIX_TRUE='#'
13633   POWERPC_AIX_FALSE=
13634 fi
13635
13636  if test x$TARGET = xPOWERPC_DARWIN; then
13637   POWERPC_DARWIN_TRUE=
13638   POWERPC_DARWIN_FALSE='#'
13639 else
13640   POWERPC_DARWIN_TRUE='#'
13641   POWERPC_DARWIN_FALSE=
13642 fi
13643
13644  if test x$TARGET = xPOWERPC_FREEBSD; then
13645   POWERPC_FREEBSD_TRUE=
13646   POWERPC_FREEBSD_FALSE='#'
13647 else
13648   POWERPC_FREEBSD_TRUE='#'
13649   POWERPC_FREEBSD_FALSE=
13650 fi
13651
13652  if test x$TARGET = xAARCH64; then
13653   AARCH64_TRUE=
13654   AARCH64_FALSE='#'
13655 else
13656   AARCH64_TRUE='#'
13657   AARCH64_FALSE=
13658 fi
13659
13660  if test x$TARGET = xARC; then
13661   ARC_TRUE=
13662   ARC_FALSE='#'
13663 else
13664   ARC_TRUE='#'
13665   ARC_FALSE=
13666 fi
13667
13668  if test x$TARGET = xARM; then
13669   ARM_TRUE=
13670   ARM_FALSE='#'
13671 else
13672   ARM_TRUE='#'
13673   ARM_FALSE=
13674 fi
13675
13676  if test x$TARGET = xAVR32; then
13677   AVR32_TRUE=
13678   AVR32_FALSE='#'
13679 else
13680   AVR32_TRUE='#'
13681   AVR32_FALSE=
13682 fi
13683
13684  if test x$TARGET = xLIBFFI_CRIS; then
13685   LIBFFI_CRIS_TRUE=
13686   LIBFFI_CRIS_FALSE='#'
13687 else
13688   LIBFFI_CRIS_TRUE='#'
13689   LIBFFI_CRIS_FALSE=
13690 fi
13691
13692  if test x$TARGET = xFRV; then
13693   FRV_TRUE=
13694   FRV_FALSE='#'
13695 else
13696   FRV_TRUE='#'
13697   FRV_FALSE=
13698 fi
13699
13700  if test x$TARGET = xS390; then
13701   S390_TRUE=
13702   S390_FALSE='#'
13703 else
13704   S390_TRUE='#'
13705   S390_FALSE=
13706 fi
13707
13708  if test x$TARGET = xX86_64; then
13709   X86_64_TRUE=
13710   X86_64_FALSE='#'
13711 else
13712   X86_64_TRUE='#'
13713   X86_64_FALSE=
13714 fi
13715
13716  if test x$TARGET = xSH; then
13717   SH_TRUE=
13718   SH_FALSE='#'
13719 else
13720   SH_TRUE='#'
13721   SH_FALSE=
13722 fi
13723
13724  if test x$TARGET = xSH64; then
13725   SH64_TRUE=
13726   SH64_FALSE='#'
13727 else
13728   SH64_TRUE='#'
13729   SH64_FALSE=
13730 fi
13731
13732  if test x$TARGET = xPA_LINUX; then
13733   PA_LINUX_TRUE=
13734   PA_LINUX_FALSE='#'
13735 else
13736   PA_LINUX_TRUE='#'
13737   PA_LINUX_FALSE=
13738 fi
13739
13740  if test x$TARGET = xPA_HPUX; then
13741   PA_HPUX_TRUE=
13742   PA_HPUX_FALSE='#'
13743 else
13744   PA_HPUX_TRUE='#'
13745   PA_HPUX_FALSE=
13746 fi
13747
13748  if test x$TARGET = xPA64_HPUX; then
13749   PA64_HPUX_TRUE=
13750   PA64_HPUX_FALSE='#'
13751 else
13752   PA64_HPUX_TRUE='#'
13753   PA64_HPUX_FALSE=
13754 fi
13755
13756  if test x$TARGET = xTILE; then
13757   TILE_TRUE=
13758   TILE_FALSE='#'
13759 else
13760   TILE_TRUE='#'
13761   TILE_FALSE=
13762 fi
13763
13764  if test x$TARGET = xXTENSA; then
13765   XTENSA_TRUE=
13766   XTENSA_FALSE='#'
13767 else
13768   XTENSA_TRUE='#'
13769   XTENSA_FALSE=
13770 fi
13771
13772
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13774 $as_echo_n "checking for ANSI C header files... " >&6; }
13775 if ${ac_cv_header_stdc+:} false; then :
13776   $as_echo_n "(cached) " >&6
13777 else
13778   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h.  */
13780 #include <stdlib.h>
13781 #include <stdarg.h>
13782 #include <string.h>
13783 #include <float.h>
13784
13785 int
13786 main ()
13787 {
13788
13789   ;
13790   return 0;
13791 }
13792 _ACEOF
13793 if ac_fn_c_try_compile "$LINENO"; then :
13794   ac_cv_header_stdc=yes
13795 else
13796   ac_cv_header_stdc=no
13797 fi
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799
13800 if test $ac_cv_header_stdc = yes; then
13801   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h.  */
13804 #include <string.h>
13805
13806 _ACEOF
13807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13808   $EGREP "memchr" >/dev/null 2>&1; then :
13809
13810 else
13811   ac_cv_header_stdc=no
13812 fi
13813 rm -f conftest*
13814
13815 fi
13816
13817 if test $ac_cv_header_stdc = yes; then
13818   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13820 /* end confdefs.h.  */
13821 #include <stdlib.h>
13822
13823 _ACEOF
13824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13825   $EGREP "free" >/dev/null 2>&1; then :
13826
13827 else
13828   ac_cv_header_stdc=no
13829 fi
13830 rm -f conftest*
13831
13832 fi
13833
13834 if test $ac_cv_header_stdc = yes; then
13835   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13836   if test "$cross_compiling" = yes; then :
13837   :
13838 else
13839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h.  */
13841 #include <ctype.h>
13842 #include <stdlib.h>
13843 #if ((' ' & 0x0FF) == 0x020)
13844 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13845 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13846 #else
13847 # define ISLOWER(c) \
13848                    (('a' <= (c) && (c) <= 'i') \
13849                      || ('j' <= (c) && (c) <= 'r') \
13850                      || ('s' <= (c) && (c) <= 'z'))
13851 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13852 #endif
13853
13854 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13855 int
13856 main ()
13857 {
13858   int i;
13859   for (i = 0; i < 256; i++)
13860     if (XOR (islower (i), ISLOWER (i))
13861         || toupper (i) != TOUPPER (i))
13862       return 2;
13863   return 0;
13864 }
13865 _ACEOF
13866 if ac_fn_c_try_run "$LINENO"; then :
13867
13868 else
13869   ac_cv_header_stdc=no
13870 fi
13871 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13872   conftest.$ac_objext conftest.beam conftest.$ac_ext
13873 fi
13874
13875 fi
13876 fi
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13878 $as_echo "$ac_cv_header_stdc" >&6; }
13879 if test $ac_cv_header_stdc = yes; then
13880
13881 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13882
13883 fi
13884
13885 for ac_func in memcpy
13886 do :
13887   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13888 if test "x$ac_cv_func_memcpy" = xyes; then :
13889   cat >>confdefs.h <<_ACEOF
13890 #define HAVE_MEMCPY 1
13891 _ACEOF
13892
13893 fi
13894 done
13895
13896 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13897 if test "x$ac_cv_type_size_t" = xyes; then :
13898
13899 else
13900
13901 cat >>confdefs.h <<_ACEOF
13902 #define size_t unsigned int
13903 _ACEOF
13904
13905 fi
13906
13907 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13908 # for constant arguments.  Useless!
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13910 $as_echo_n "checking for working alloca.h... " >&6; }
13911 if ${ac_cv_working_alloca_h+:} false; then :
13912   $as_echo_n "(cached) " >&6
13913 else
13914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13915 /* end confdefs.h.  */
13916 #include <alloca.h>
13917 int
13918 main ()
13919 {
13920 char *p = (char *) alloca (2 * sizeof (int));
13921                           if (p) return 0;
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 if ac_fn_c_try_link "$LINENO"; then :
13927   ac_cv_working_alloca_h=yes
13928 else
13929   ac_cv_working_alloca_h=no
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext \
13932     conftest$ac_exeext conftest.$ac_ext
13933 fi
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13935 $as_echo "$ac_cv_working_alloca_h" >&6; }
13936 if test $ac_cv_working_alloca_h = yes; then
13937
13938 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13939
13940 fi
13941
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13943 $as_echo_n "checking for alloca... " >&6; }
13944 if ${ac_cv_func_alloca_works+:} false; then :
13945   $as_echo_n "(cached) " >&6
13946 else
13947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13948 /* end confdefs.h.  */
13949 #ifdef __GNUC__
13950 # define alloca __builtin_alloca
13951 #else
13952 # ifdef _MSC_VER
13953 #  include <malloc.h>
13954 #  define alloca _alloca
13955 # else
13956 #  ifdef HAVE_ALLOCA_H
13957 #   include <alloca.h>
13958 #  else
13959 #   ifdef _AIX
13960  #pragma alloca
13961 #   else
13962 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13963 void *alloca (size_t);
13964 #    endif
13965 #   endif
13966 #  endif
13967 # endif
13968 #endif
13969
13970 int
13971 main ()
13972 {
13973 char *p = (char *) alloca (1);
13974                                     if (p) return 0;
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_link "$LINENO"; then :
13980   ac_cv_func_alloca_works=yes
13981 else
13982   ac_cv_func_alloca_works=no
13983 fi
13984 rm -f core conftest.err conftest.$ac_objext \
13985     conftest$ac_exeext conftest.$ac_ext
13986 fi
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13988 $as_echo "$ac_cv_func_alloca_works" >&6; }
13989
13990 if test $ac_cv_func_alloca_works = yes; then
13991
13992 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13993
13994 else
13995   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13996 # that cause trouble.  Some versions do not even contain alloca or
13997 # contain a buggy version.  If you still want to use their alloca,
13998 # use ar to extract alloca.o from them instead of compiling alloca.c.
13999
14000 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14001
14002 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14003
14004
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14006 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14007 if ${ac_cv_os_cray+:} false; then :
14008   $as_echo_n "(cached) " >&6
14009 else
14010   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14011 /* end confdefs.h.  */
14012 #if defined CRAY && ! defined CRAY2
14013 webecray
14014 #else
14015 wenotbecray
14016 #endif
14017
14018 _ACEOF
14019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14020   $EGREP "webecray" >/dev/null 2>&1; then :
14021   ac_cv_os_cray=yes
14022 else
14023   ac_cv_os_cray=no
14024 fi
14025 rm -f conftest*
14026
14027 fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14029 $as_echo "$ac_cv_os_cray" >&6; }
14030 if test $ac_cv_os_cray = yes; then
14031   for ac_func in _getb67 GETB67 getb67; do
14032     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14034 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14035
14036 cat >>confdefs.h <<_ACEOF
14037 #define CRAY_STACKSEG_END $ac_func
14038 _ACEOF
14039
14040     break
14041 fi
14042
14043   done
14044 fi
14045
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14047 $as_echo_n "checking stack direction for C alloca... " >&6; }
14048 if ${ac_cv_c_stack_direction+:} false; then :
14049   $as_echo_n "(cached) " >&6
14050 else
14051   if test "$cross_compiling" = yes; then :
14052   ac_cv_c_stack_direction=0
14053 else
14054   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14055 /* end confdefs.h.  */
14056 $ac_includes_default
14057 int
14058 find_stack_direction (int *addr, int depth)
14059 {
14060   int dir, dummy = 0;
14061   if (! addr)
14062     addr = &dummy;
14063   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14064   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14065   return dir + dummy;
14066 }
14067
14068 int
14069 main (int argc, char **argv)
14070 {
14071   return find_stack_direction (0, argc + !argv + 20) < 0;
14072 }
14073 _ACEOF
14074 if ac_fn_c_try_run "$LINENO"; then :
14075   ac_cv_c_stack_direction=1
14076 else
14077   ac_cv_c_stack_direction=-1
14078 fi
14079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14080   conftest.$ac_objext conftest.beam conftest.$ac_ext
14081 fi
14082
14083 fi
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14085 $as_echo "$ac_cv_c_stack_direction" >&6; }
14086 cat >>confdefs.h <<_ACEOF
14087 #define STACK_DIRECTION $ac_cv_c_stack_direction
14088 _ACEOF
14089
14090
14091 fi
14092
14093
14094 # The cast to long int works around a bug in the HP C Compiler
14095 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14096 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14097 # This bug is HP SR number 8606223364.
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14099 $as_echo_n "checking size of double... " >&6; }
14100 if ${ac_cv_sizeof_double+:} false; then :
14101   $as_echo_n "(cached) " >&6
14102 else
14103   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14104
14105 else
14106   if test "$ac_cv_type_double" = yes; then
14107      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14109 as_fn_error 77 "cannot compute sizeof (double)
14110 See \`config.log' for more details" "$LINENO" 5; }
14111    else
14112      ac_cv_sizeof_double=0
14113    fi
14114 fi
14115
14116 fi
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14118 $as_echo "$ac_cv_sizeof_double" >&6; }
14119
14120
14121
14122 cat >>confdefs.h <<_ACEOF
14123 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14124 _ACEOF
14125
14126
14127 # The cast to long int works around a bug in the HP C Compiler
14128 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14129 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14130 # This bug is HP SR number 8606223364.
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14132 $as_echo_n "checking size of long double... " >&6; }
14133 if ${ac_cv_sizeof_long_double+:} false; then :
14134   $as_echo_n "(cached) " >&6
14135 else
14136   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14137
14138 else
14139   if test "$ac_cv_type_long_double" = yes; then
14140      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14142 as_fn_error 77 "cannot compute sizeof (long double)
14143 See \`config.log' for more details" "$LINENO" 5; }
14144    else
14145      ac_cv_sizeof_long_double=0
14146    fi
14147 fi
14148
14149 fi
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14151 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14152
14153
14154
14155 cat >>confdefs.h <<_ACEOF
14156 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14157 _ACEOF
14158
14159
14160
14161 # Also AC_SUBST this variable for ffi.h.
14162 if test -z "$HAVE_LONG_DOUBLE"; then
14163   HAVE_LONG_DOUBLE=0
14164   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14165     if test $ac_cv_sizeof_long_double != 0; then
14166       HAVE_LONG_DOUBLE=1
14167
14168 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14169
14170     fi
14171   fi
14172 fi
14173
14174
14175  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14176 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14177 if ${ac_cv_c_bigendian+:} false; then :
14178   $as_echo_n "(cached) " >&6
14179 else
14180   ac_cv_c_bigendian=unknown
14181     # See if we're dealing with a universal compiler.
14182     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h.  */
14184 #ifndef __APPLE_CC__
14185                not a universal capable compiler
14186              #endif
14187              typedef int dummy;
14188
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191
14192         # Check for potential -arch flags.  It is not universal unless
14193         # there are at least two -arch flags with different values.
14194         ac_arch=
14195         ac_prev=
14196         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14197          if test -n "$ac_prev"; then
14198            case $ac_word in
14199              i?86 | x86_64 | ppc | ppc64)
14200                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14201                  ac_arch=$ac_word
14202                else
14203                  ac_cv_c_bigendian=universal
14204                  break
14205                fi
14206                ;;
14207            esac
14208            ac_prev=
14209          elif test "x$ac_word" = "x-arch"; then
14210            ac_prev=arch
14211          fi
14212        done
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215     if test $ac_cv_c_bigendian = unknown; then
14216       # See if sys/param.h defines the BYTE_ORDER macro.
14217       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14218 /* end confdefs.h.  */
14219 #include <sys/types.h>
14220              #include <sys/param.h>
14221
14222 int
14223 main ()
14224 {
14225 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14226                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14227                      && LITTLE_ENDIAN)
14228               bogus endian macros
14229              #endif
14230
14231   ;
14232   return 0;
14233 }
14234 _ACEOF
14235 if ac_fn_c_try_compile "$LINENO"; then :
14236   # It does; now see whether it defined to BIG_ENDIAN or not.
14237          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h.  */
14239 #include <sys/types.h>
14240                 #include <sys/param.h>
14241
14242 int
14243 main ()
14244 {
14245 #if BYTE_ORDER != BIG_ENDIAN
14246                  not big endian
14247                 #endif
14248
14249   ;
14250   return 0;
14251 }
14252 _ACEOF
14253 if ac_fn_c_try_compile "$LINENO"; then :
14254   ac_cv_c_bigendian=yes
14255 else
14256   ac_cv_c_bigendian=no
14257 fi
14258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14259 fi
14260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14261     fi
14262     if test $ac_cv_c_bigendian = unknown; then
14263       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14264       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h.  */
14266 #include <limits.h>
14267
14268 int
14269 main ()
14270 {
14271 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14272               bogus endian macros
14273              #endif
14274
14275   ;
14276   return 0;
14277 }
14278 _ACEOF
14279 if ac_fn_c_try_compile "$LINENO"; then :
14280   # It does; now see whether it defined to _BIG_ENDIAN or not.
14281          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h.  */
14283 #include <limits.h>
14284
14285 int
14286 main ()
14287 {
14288 #ifndef _BIG_ENDIAN
14289                  not big endian
14290                 #endif
14291
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297   ac_cv_c_bigendian=yes
14298 else
14299   ac_cv_c_bigendian=no
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302 fi
14303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14304     fi
14305     if test $ac_cv_c_bigendian = unknown; then
14306       # Compile a test program.
14307       if test "$cross_compiling" = yes; then :
14308   # Try to guess by grepping values from an object file.
14309          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h.  */
14311 short int ascii_mm[] =
14312                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14313                 short int ascii_ii[] =
14314                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14315                 int use_ascii (int i) {
14316                   return ascii_mm[i] + ascii_ii[i];
14317                 }
14318                 short int ebcdic_ii[] =
14319                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14320                 short int ebcdic_mm[] =
14321                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14322                 int use_ebcdic (int i) {
14323                   return ebcdic_mm[i] + ebcdic_ii[i];
14324                 }
14325                 extern int foo;
14326
14327 int
14328 main ()
14329 {
14330 return use_ascii (foo) == use_ebcdic (foo);
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_compile "$LINENO"; then :
14336   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14337               ac_cv_c_bigendian=yes
14338             fi
14339             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14340               if test "$ac_cv_c_bigendian" = unknown; then
14341                 ac_cv_c_bigendian=no
14342               else
14343                 # finding both strings is unlikely to happen, but who knows?
14344                 ac_cv_c_bigendian=unknown
14345               fi
14346             fi
14347 fi
14348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14349 else
14350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14351 /* end confdefs.h.  */
14352 $ac_includes_default
14353 int
14354 main ()
14355 {
14356
14357              /* Are we little or big endian?  From Harbison&Steele.  */
14358              union
14359              {
14360                long int l;
14361                char c[sizeof (long int)];
14362              } u;
14363              u.l = 1;
14364              return u.c[sizeof (long int) - 1] == 1;
14365
14366   ;
14367   return 0;
14368 }
14369 _ACEOF
14370 if ac_fn_c_try_run "$LINENO"; then :
14371   ac_cv_c_bigendian=no
14372 else
14373   ac_cv_c_bigendian=yes
14374 fi
14375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14376   conftest.$ac_objext conftest.beam conftest.$ac_ext
14377 fi
14378
14379     fi
14380 fi
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14382 $as_echo "$ac_cv_c_bigendian" >&6; }
14383  case $ac_cv_c_bigendian in #(
14384    yes)
14385      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14386 ;; #(
14387    no)
14388       ;; #(
14389    universal)
14390
14391 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14392
14393      ;; #(
14394    *)
14395      as_fn_error $? "unknown endianness
14396  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14397  esac
14398
14399
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14401 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14402 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14403   $as_echo_n "(cached) " >&6
14404 else
14405
14406     gcc_cv_as_cfi_pseudo_op=unknown
14407     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14408 /* end confdefs.h.  */
14409 asm (".cfi_startproc\n\t.cfi_endproc");
14410 int
14411 main ()
14412 {
14413
14414   ;
14415   return 0;
14416 }
14417 _ACEOF
14418 if ac_fn_c_try_compile "$LINENO"; then :
14419   gcc_cv_as_cfi_pseudo_op=yes
14420 else
14421   gcc_cv_as_cfi_pseudo_op=no
14422 fi
14423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14424
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14427 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14428  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14429
14430 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14431
14432  fi
14433
14434
14435 if test x$TARGET = xSPARC; then
14436     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14437 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14438 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441
14442         save_CFLAGS="$CFLAGS"
14443         save_LDFLAGS="$LDFLAGS"
14444         CFLAGS="$CFLAGS -fpic"
14445         LDFLAGS="$LDFLAGS -shared"
14446         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14447 /* end confdefs.h.  */
14448 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14449 int
14450 main ()
14451 {
14452
14453   ;
14454   return 0;
14455 }
14456 _ACEOF
14457 if ac_fn_c_try_link "$LINENO"; then :
14458   libffi_cv_as_sparc_ua_pcrel=yes
14459 else
14460   libffi_cv_as_sparc_ua_pcrel=no
14461 fi
14462 rm -f core conftest.err conftest.$ac_objext \
14463     conftest$ac_exeext conftest.$ac_ext
14464         CFLAGS="$save_CFLAGS"
14465         LDFLAGS="$save_LDFLAGS"
14466 fi
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14468 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14469     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14470
14471 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14472
14473     fi
14474
14475     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14476 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14477 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14478   $as_echo_n "(cached) " >&6
14479 else
14480
14481        libffi_cv_as_register_pseudo_op=unknown
14482        # Check if we have .register
14483        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h.  */
14485
14486 int
14487 main ()
14488 {
14489 asm (".register %g2, #scratch");
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 if ac_fn_c_try_compile "$LINENO"; then :
14495   libffi_cv_as_register_pseudo_op=yes
14496 else
14497   libffi_cv_as_register_pseudo_op=no
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500
14501 fi
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14503 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14504     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14505
14506 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14507
14508     fi
14509 fi
14510
14511 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14512     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14513 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14514 if ${libffi_cv_as_x86_pcrel+:} false; then :
14515   $as_echo_n "(cached) " >&6
14516 else
14517
14518         libffi_cv_as_x86_pcrel=no
14519         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14520         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14521             libffi_cv_as_x86_pcrel=yes
14522         fi
14523
14524 fi
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14526 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14527     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14528
14529 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14530
14531     fi
14532
14533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14534 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14535 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14536   $as_echo_n "(cached) " >&6
14537 else
14538
14539        libffi_cv_as_ascii_pseudo_op=unknown
14540        # Check if we have .ascii
14541        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14542 /* end confdefs.h.  */
14543
14544 int
14545 main ()
14546 {
14547 asm (".ascii \\"string\\"");
14548   ;
14549   return 0;
14550 }
14551 _ACEOF
14552 if ac_fn_c_try_compile "$LINENO"; then :
14553   libffi_cv_as_ascii_pseudo_op=yes
14554 else
14555   libffi_cv_as_ascii_pseudo_op=no
14556 fi
14557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14558
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14561 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14562     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14563
14564 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14565
14566     fi
14567
14568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14569 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14570 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14571   $as_echo_n "(cached) " >&6
14572 else
14573
14574        libffi_cv_as_string_pseudo_op=unknown
14575        # Check if we have .string
14576        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h.  */
14578
14579 int
14580 main ()
14581 {
14582 asm (".string \\"string\\"");
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_compile "$LINENO"; then :
14588   libffi_cv_as_string_pseudo_op=yes
14589 else
14590   libffi_cv_as_string_pseudo_op=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593
14594 fi
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14596 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14597     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14598
14599 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14600
14601     fi
14602 fi
14603
14604 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14605 # Check whether --enable-pax_emutramp was given.
14606 if test "${enable_pax_emutramp+set}" = set; then :
14607   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14608
14609 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14610
14611   fi
14612 fi
14613
14614
14615 if test x$TARGET = xX86_WIN64; then
14616     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14617 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14618 if ${lt_cv_sys_symbol_underscore+:} false; then :
14619   $as_echo_n "(cached) " >&6
14620 else
14621   lt_cv_sys_symbol_underscore=no
14622   cat > conftest.$ac_ext <<_LT_EOF
14623 void nm_test_func(){}
14624 int main(){nm_test_func;return 0;}
14625 _LT_EOF
14626   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14627   (eval $ac_compile) 2>&5
14628   ac_status=$?
14629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14630   test $ac_status = 0; }; then
14631     # Now try to grab the symbols.
14632     ac_nlist=conftest.nm
14633     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14634   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14635   ac_status=$?
14636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14637   test $ac_status = 0; } && test -s "$ac_nlist"; then
14638       # See whether the symbols have a leading underscore.
14639       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14640         lt_cv_sys_symbol_underscore=yes
14641       else
14642         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14643           :
14644         else
14645           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14646         fi
14647       fi
14648     else
14649       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14650     fi
14651   else
14652     echo "configure: failed program was:" >&5
14653     cat conftest.c >&5
14654   fi
14655   rm -rf conftest*
14656
14657 fi
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14659 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14660   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14661
14662
14663     if test "x$sys_symbol_underscore" = xyes; then
14664
14665 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14666
14667     fi
14668 fi
14669
14670 FFI_EXEC_TRAMPOLINE_TABLE=0
14671 case "$target" in
14672      *arm*-apple-darwin*)
14673        FFI_EXEC_TRAMPOLINE_TABLE=1
14674
14675 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14676
14677      ;;
14678      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14679
14680 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14681
14682      ;;
14683 esac
14684  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14685   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14686   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14687 else
14688   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14689   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14690 fi
14691
14692
14693
14694 if test x$TARGET = xX86_64; then
14695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14696 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14697 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14698   $as_echo_n "(cached) " >&6
14699 else
14700
14701         libffi_cv_as_x86_64_unwind_section_type=yes
14702         echo '.section .eh_frame,"a",@unwind' > conftest.s
14703         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14704             libffi_cv_as_x86_64_unwind_section_type=no
14705         fi
14706
14707 fi
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14709 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14710     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14711
14712 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14713
14714     fi
14715 fi
14716
14717 if test "x$GCC" = "xyes"; then
14718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14719 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14720 if ${libffi_cv_ro_eh_frame+:} false; then :
14721   $as_echo_n "(cached) " >&6
14722 else
14723
14724         libffi_cv_ro_eh_frame=no
14725         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14726         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14727             objdump -h conftest.o > conftest.dump 2>&1
14728             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14729             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14730             sed -n $libffi_test_line conftest.dump > conftest.line
14731             if grep READONLY conftest.line > /dev/null; then
14732                 libffi_cv_ro_eh_frame=yes
14733             fi
14734         fi
14735         rm -f conftest.*
14736
14737 fi
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14739 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14740   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14741
14742 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14743
14744
14745 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14746
14747   else
14748
14749 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14750
14751   fi
14752
14753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14754 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14755 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14756   $as_echo_n "(cached) " >&6
14757 else
14758
14759         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14760         libffi_cv_hidden_visibility_attribute=no
14761         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14762   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14763   (eval $ac_try) 2>&5
14764   ac_status=$?
14765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14766   test $ac_status = 0; }; }; then
14767             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14768                 libffi_cv_hidden_visibility_attribute=yes
14769             fi
14770         fi
14771         rm -f conftest.*
14772
14773 fi
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14775 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14776   if test $libffi_cv_hidden_visibility_attribute = yes; then
14777
14778 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14779
14780   fi
14781 fi
14782
14783
14784
14785
14786
14787
14788
14789
14790 # Check whether --enable-debug was given.
14791 if test "${enable_debug+set}" = set; then :
14792   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14793
14794 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14795
14796   fi
14797 fi
14798
14799  if test "$enable_debug" = "yes"; then
14800   FFI_DEBUG_TRUE=
14801   FFI_DEBUG_FALSE='#'
14802 else
14803   FFI_DEBUG_TRUE='#'
14804   FFI_DEBUG_FALSE=
14805 fi
14806
14807
14808 # Check whether --enable-structs was given.
14809 if test "${enable_structs+set}" = set; then :
14810   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14811
14812 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14813
14814   fi
14815 fi
14816
14817  if test "$enable_debug" = "yes"; then
14818   FFI_DEBUG_TRUE=
14819   FFI_DEBUG_FALSE='#'
14820 else
14821   FFI_DEBUG_TRUE='#'
14822   FFI_DEBUG_FALSE=
14823 fi
14824
14825
14826 # Check whether --enable-raw-api was given.
14827 if test "${enable_raw_api+set}" = set; then :
14828   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14829
14830 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14831
14832   fi
14833 fi
14834
14835
14836 # Check whether --enable-purify-safety was given.
14837 if test "${enable_purify_safety+set}" = set; then :
14838   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14839
14840 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14841
14842   fi
14843 fi
14844
14845
14846 # These variables are only ever used when we cross-build to X86_WIN32.
14847 # And we only support this with GCC, so...
14848 if test "x$GCC" = "xyes"; then
14849   if test -n "$with_cross_host" &&
14850      test x"$with_cross_host" != x"no"; then
14851     toolexecdir='$(exec_prefix)/$(target_alias)'
14852     toolexeclibdir='$(toolexecdir)/lib'
14853   else
14854     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14855     toolexeclibdir='$(libdir)'
14856   fi
14857   multi_os_directory=`$CC -print-multi-os-directory`
14858   case $multi_os_directory in
14859     .) ;; # Avoid trailing /.
14860     ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14861   esac
14862
14863 else
14864   toolexeclibdir='$(libdir)'
14865 fi
14866
14867
14868 ac_config_commands="$ac_config_commands include"
14869
14870 ac_config_commands="$ac_config_commands src"
14871
14872
14873 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14874
14875
14876 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14877
14878
14879 cat >confcache <<\_ACEOF
14880 # This file is a shell script that caches the results of configure
14881 # tests run on this system so they can be shared between configure
14882 # scripts and configure runs, see configure's option --config-cache.
14883 # It is not useful on other systems.  If it contains results you don't
14884 # want to keep, you may remove or edit it.
14885 #
14886 # config.status only pays attention to the cache file if you give it
14887 # the --recheck option to rerun configure.
14888 #
14889 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14890 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14891 # following values.
14892
14893 _ACEOF
14894
14895 # The following way of writing the cache mishandles newlines in values,
14896 # but we know of no workaround that is simple, portable, and efficient.
14897 # So, we kill variables containing newlines.
14898 # Ultrix sh set writes to stderr and can't be redirected directly,
14899 # and sets the high bit in the cache file unless we assign to the vars.
14900 (
14901   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14902     eval ac_val=\$$ac_var
14903     case $ac_val in #(
14904     *${as_nl}*)
14905       case $ac_var in #(
14906       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14907 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14908       esac
14909       case $ac_var in #(
14910       _ | IFS | as_nl) ;; #(
14911       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14912       *) { eval $ac_var=; unset $ac_var;} ;;
14913       esac ;;
14914     esac
14915   done
14916
14917   (set) 2>&1 |
14918     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14919     *${as_nl}ac_space=\ *)
14920       # `set' does not quote correctly, so add quotes: double-quote
14921       # substitution turns \\\\ into \\, and sed turns \\ into \.
14922       sed -n \
14923         "s/'/'\\\\''/g;
14924           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14925       ;; #(
14926     *)
14927       # `set' quotes correctly as required by POSIX, so do not add quotes.
14928       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14929       ;;
14930     esac |
14931     sort
14932 ) |
14933   sed '
14934      /^ac_cv_env_/b end
14935      t clear
14936      :clear
14937      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14938      t end
14939      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14940      :end' >>confcache
14941 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14942   if test -w "$cache_file"; then
14943     if test "x$cache_file" != "x/dev/null"; then
14944       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14945 $as_echo "$as_me: updating cache $cache_file" >&6;}
14946       if test ! -f "$cache_file" || test -h "$cache_file"; then
14947         cat confcache >"$cache_file"
14948       else
14949         case $cache_file in #(
14950         */* | ?:*)
14951           mv -f confcache "$cache_file"$$ &&
14952           mv -f "$cache_file"$$ "$cache_file" ;; #(
14953         *)
14954           mv -f confcache "$cache_file" ;;
14955         esac
14956       fi
14957     fi
14958   else
14959     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14960 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14961   fi
14962 fi
14963 rm -f confcache
14964
14965 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14966 # Let make expand exec_prefix.
14967 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14968
14969 DEFS=-DHAVE_CONFIG_H
14970
14971 ac_libobjs=
14972 ac_ltlibobjs=
14973 U=
14974 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14975   # 1. Remove the extension, and $U if already installed.
14976   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14977   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14978   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14979   #    will be set to the directory where LIBOBJS objects are built.
14980   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14981   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14982 done
14983 LIBOBJS=$ac_libobjs
14984
14985 LTLIBOBJS=$ac_ltlibobjs
14986
14987
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14989 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14990    if test -n "$am_sleep_pid"; then
14991      # Hide warnings about reused PIDs.
14992      wait $am_sleep_pid 2>/dev/null
14993    fi
14994    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14995 $as_echo "done" >&6; }
14996  if test -n "$EXEEXT"; then
14997   am__EXEEXT_TRUE=
14998   am__EXEEXT_FALSE='#'
14999 else
15000   am__EXEEXT_TRUE='#'
15001   am__EXEEXT_FALSE=
15002 fi
15003
15004 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15005   as_fn_error $? "conditional \"AMDEP\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 fi
15008 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15009   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 fi
15012 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15013   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 fi
15016 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15017   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 fi
15020 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15021   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 fi
15024 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15025   as_fn_error $? "conditional \"MIPS\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15027 fi
15028 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15029   as_fn_error $? "conditional \"BFIN\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15031 fi
15032 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15033   as_fn_error $? "conditional \"SPARC\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15035 fi
15036 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15037   as_fn_error $? "conditional \"X86\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15039 fi
15040 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15041   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15043 fi
15044 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15045   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047 fi
15048 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15049   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15051 fi
15052 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15053   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055 fi
15056 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15057   as_fn_error $? "conditional \"ALPHA\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059 fi
15060 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15061   as_fn_error $? "conditional \"IA64\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063 fi
15064 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15065   as_fn_error $? "conditional \"M32R\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 fi
15068 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15069   as_fn_error $? "conditional \"M68K\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 fi
15072 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15073   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 fi
15076 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
15077   as_fn_error $? "conditional \"METAG\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 fi
15080 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15081   as_fn_error $? "conditional \"MOXIE\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083 fi
15084 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15085   as_fn_error $? "conditional \"POWERPC\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 fi
15088 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15089   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091 fi
15092 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15093   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095 fi
15096 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15097   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099 fi
15100 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15101   as_fn_error $? "conditional \"AARCH64\" was never defined.
15102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103 fi
15104 if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
15105   as_fn_error $? "conditional \"ARC\" was never defined.
15106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15107 fi
15108 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15109   as_fn_error $? "conditional \"ARM\" was never defined.
15110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111 fi
15112 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15113   as_fn_error $? "conditional \"AVR32\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 fi
15116 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15117   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 fi
15120 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15121   as_fn_error $? "conditional \"FRV\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 fi
15124 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15125   as_fn_error $? "conditional \"S390\" was never defined.
15126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15127 fi
15128 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15129   as_fn_error $? "conditional \"X86_64\" was never defined.
15130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15131 fi
15132 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15133   as_fn_error $? "conditional \"SH\" was never defined.
15134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15135 fi
15136 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15137   as_fn_error $? "conditional \"SH64\" was never defined.
15138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15139 fi
15140 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15141   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15143 fi
15144 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15145   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15147 fi
15148 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15149   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15150 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15151 fi
15152 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15153   as_fn_error $? "conditional \"TILE\" was never defined.
15154 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15155 fi
15156 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15157   as_fn_error $? "conditional \"XTENSA\" was never defined.
15158 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15159 fi
15160
15161 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15162   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164 fi
15165 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15166   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168 fi
15169 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15170   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172 fi
15173
15174 : "${CONFIG_STATUS=./config.status}"
15175 ac_write_fail=0
15176 ac_clean_files_save=$ac_clean_files
15177 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15179 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15180 as_write_fail=0
15181 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15182 #! $SHELL
15183 # Generated by $as_me.
15184 # Run this file to recreate the current configuration.
15185 # Compiler output produced by configure, useful for debugging
15186 # configure, is in config.log if it exists.
15187
15188 debug=false
15189 ac_cs_recheck=false
15190 ac_cs_silent=false
15191
15192 SHELL=\${CONFIG_SHELL-$SHELL}
15193 export SHELL
15194 _ASEOF
15195 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15196 ## -------------------- ##
15197 ## M4sh Initialization. ##
15198 ## -------------------- ##
15199
15200 # Be more Bourne compatible
15201 DUALCASE=1; export DUALCASE # for MKS sh
15202 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15203   emulate sh
15204   NULLCMD=:
15205   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15206   # is contrary to our usage.  Disable this feature.
15207   alias -g '${1+"$@"}'='"$@"'
15208   setopt NO_GLOB_SUBST
15209 else
15210   case `(set -o) 2>/dev/null` in #(
15211   *posix*) :
15212     set -o posix ;; #(
15213   *) :
15214      ;;
15215 esac
15216 fi
15217
15218
15219 as_nl='
15220 '
15221 export as_nl
15222 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15223 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15224 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15225 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15226 # Prefer a ksh shell builtin over an external printf program on Solaris,
15227 # but without wasting forks for bash or zsh.
15228 if test -z "$BASH_VERSION$ZSH_VERSION" \
15229     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15230   as_echo='print -r --'
15231   as_echo_n='print -rn --'
15232 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15233   as_echo='printf %s\n'
15234   as_echo_n='printf %s'
15235 else
15236   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15237     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15238     as_echo_n='/usr/ucb/echo -n'
15239   else
15240     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15241     as_echo_n_body='eval
15242       arg=$1;
15243       case $arg in #(
15244       *"$as_nl"*)
15245         expr "X$arg" : "X\\(.*\\)$as_nl";
15246         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15247       esac;
15248       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15249     '
15250     export as_echo_n_body
15251     as_echo_n='sh -c $as_echo_n_body as_echo'
15252   fi
15253   export as_echo_body
15254   as_echo='sh -c $as_echo_body as_echo'
15255 fi
15256
15257 # The user is always right.
15258 if test "${PATH_SEPARATOR+set}" != set; then
15259   PATH_SEPARATOR=:
15260   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15261     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15262       PATH_SEPARATOR=';'
15263   }
15264 fi
15265
15266
15267 # IFS
15268 # We need space, tab and new line, in precisely that order.  Quoting is
15269 # there to prevent editors from complaining about space-tab.
15270 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15271 # splitting by setting IFS to empty value.)
15272 IFS=" ""        $as_nl"
15273
15274 # Find who we are.  Look in the path if we contain no directory separator.
15275 as_myself=
15276 case $0 in #((
15277   *[\\/]* ) as_myself=$0 ;;
15278   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15279 for as_dir in $PATH
15280 do
15281   IFS=$as_save_IFS
15282   test -z "$as_dir" && as_dir=.
15283     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15284   done
15285 IFS=$as_save_IFS
15286
15287      ;;
15288 esac
15289 # We did not find ourselves, most probably we were run as `sh COMMAND'
15290 # in which case we are not to be found in the path.
15291 if test "x$as_myself" = x; then
15292   as_myself=$0
15293 fi
15294 if test ! -f "$as_myself"; then
15295   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15296   exit 1
15297 fi
15298
15299 # Unset variables that we do not need and which cause bugs (e.g. in
15300 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15301 # suppresses any "Segmentation fault" message there.  '((' could
15302 # trigger a bug in pdksh 5.2.14.
15303 for as_var in BASH_ENV ENV MAIL MAILPATH
15304 do eval test x\${$as_var+set} = xset \
15305   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15306 done
15307 PS1='$ '
15308 PS2='> '
15309 PS4='+ '
15310
15311 # NLS nuisances.
15312 LC_ALL=C
15313 export LC_ALL
15314 LANGUAGE=C
15315 export LANGUAGE
15316
15317 # CDPATH.
15318 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15319
15320
15321 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15322 # ----------------------------------------
15323 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15324 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15325 # script with STATUS, using 1 if that was 0.
15326 as_fn_error ()
15327 {
15328   as_status=$1; test $as_status -eq 0 && as_status=1
15329   if test "$4"; then
15330     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15331     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15332   fi
15333   $as_echo "$as_me: error: $2" >&2
15334   as_fn_exit $as_status
15335 } # as_fn_error
15336
15337
15338 # as_fn_set_status STATUS
15339 # -----------------------
15340 # Set $? to STATUS, without forking.
15341 as_fn_set_status ()
15342 {
15343   return $1
15344 } # as_fn_set_status
15345
15346 # as_fn_exit STATUS
15347 # -----------------
15348 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15349 as_fn_exit ()
15350 {
15351   set +e
15352   as_fn_set_status $1
15353   exit $1
15354 } # as_fn_exit
15355
15356 # as_fn_unset VAR
15357 # ---------------
15358 # Portably unset VAR.
15359 as_fn_unset ()
15360 {
15361   { eval $1=; unset $1;}
15362 }
15363 as_unset=as_fn_unset
15364 # as_fn_append VAR VALUE
15365 # ----------------------
15366 # Append the text in VALUE to the end of the definition contained in VAR. Take
15367 # advantage of any shell optimizations that allow amortized linear growth over
15368 # repeated appends, instead of the typical quadratic growth present in naive
15369 # implementations.
15370 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15371   eval 'as_fn_append ()
15372   {
15373     eval $1+=\$2
15374   }'
15375 else
15376   as_fn_append ()
15377   {
15378     eval $1=\$$1\$2
15379   }
15380 fi # as_fn_append
15381
15382 # as_fn_arith ARG...
15383 # ------------------
15384 # Perform arithmetic evaluation on the ARGs, and store the result in the
15385 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15386 # must be portable across $(()) and expr.
15387 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15388   eval 'as_fn_arith ()
15389   {
15390     as_val=$(( $* ))
15391   }'
15392 else
15393   as_fn_arith ()
15394   {
15395     as_val=`expr "$@" || test $? -eq 1`
15396   }
15397 fi # as_fn_arith
15398
15399
15400 if expr a : '\(a\)' >/dev/null 2>&1 &&
15401    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15402   as_expr=expr
15403 else
15404   as_expr=false
15405 fi
15406
15407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15408   as_basename=basename
15409 else
15410   as_basename=false
15411 fi
15412
15413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15414   as_dirname=dirname
15415 else
15416   as_dirname=false
15417 fi
15418
15419 as_me=`$as_basename -- "$0" ||
15420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15421          X"$0" : 'X\(//\)$' \| \
15422          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15423 $as_echo X/"$0" |
15424     sed '/^.*\/\([^/][^/]*\)\/*$/{
15425             s//\1/
15426             q
15427           }
15428           /^X\/\(\/\/\)$/{
15429             s//\1/
15430             q
15431           }
15432           /^X\/\(\/\).*/{
15433             s//\1/
15434             q
15435           }
15436           s/.*/./; q'`
15437
15438 # Avoid depending upon Character Ranges.
15439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15442 as_cr_digits='0123456789'
15443 as_cr_alnum=$as_cr_Letters$as_cr_digits
15444
15445 ECHO_C= ECHO_N= ECHO_T=
15446 case `echo -n x` in #(((((
15447 -n*)
15448   case `echo 'xy\c'` in
15449   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15450   xy)  ECHO_C='\c';;
15451   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15452        ECHO_T=' ';;
15453   esac;;
15454 *)
15455   ECHO_N='-n';;
15456 esac
15457
15458 rm -f conf$$ conf$$.exe conf$$.file
15459 if test -d conf$$.dir; then
15460   rm -f conf$$.dir/conf$$.file
15461 else
15462   rm -f conf$$.dir
15463   mkdir conf$$.dir 2>/dev/null
15464 fi
15465 if (echo >conf$$.file) 2>/dev/null; then
15466   if ln -s conf$$.file conf$$ 2>/dev/null; then
15467     as_ln_s='ln -s'
15468     # ... but there are two gotchas:
15469     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15470     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15471     # In both cases, we have to default to `cp -pR'.
15472     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15473       as_ln_s='cp -pR'
15474   elif ln conf$$.file conf$$ 2>/dev/null; then
15475     as_ln_s=ln
15476   else
15477     as_ln_s='cp -pR'
15478   fi
15479 else
15480   as_ln_s='cp -pR'
15481 fi
15482 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15483 rmdir conf$$.dir 2>/dev/null
15484
15485
15486 # as_fn_mkdir_p
15487 # -------------
15488 # Create "$as_dir" as a directory, including parents if necessary.
15489 as_fn_mkdir_p ()
15490 {
15491
15492   case $as_dir in #(
15493   -*) as_dir=./$as_dir;;
15494   esac
15495   test -d "$as_dir" || eval $as_mkdir_p || {
15496     as_dirs=
15497     while :; do
15498       case $as_dir in #(
15499       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15500       *) as_qdir=$as_dir;;
15501       esac
15502       as_dirs="'$as_qdir' $as_dirs"
15503       as_dir=`$as_dirname -- "$as_dir" ||
15504 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15505          X"$as_dir" : 'X\(//\)[^/]' \| \
15506          X"$as_dir" : 'X\(//\)$' \| \
15507          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15508 $as_echo X"$as_dir" |
15509     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15510             s//\1/
15511             q
15512           }
15513           /^X\(\/\/\)[^/].*/{
15514             s//\1/
15515             q
15516           }
15517           /^X\(\/\/\)$/{
15518             s//\1/
15519             q
15520           }
15521           /^X\(\/\).*/{
15522             s//\1/
15523             q
15524           }
15525           s/.*/./; q'`
15526       test -d "$as_dir" && break
15527     done
15528     test -z "$as_dirs" || eval "mkdir $as_dirs"
15529   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15530
15531
15532 } # as_fn_mkdir_p
15533 if mkdir -p . 2>/dev/null; then
15534   as_mkdir_p='mkdir -p "$as_dir"'
15535 else
15536   test -d ./-p && rmdir ./-p
15537   as_mkdir_p=false
15538 fi
15539
15540
15541 # as_fn_executable_p FILE
15542 # -----------------------
15543 # Test if FILE is an executable regular file.
15544 as_fn_executable_p ()
15545 {
15546   test -f "$1" && test -x "$1"
15547 } # as_fn_executable_p
15548 as_test_x='test -x'
15549 as_executable_p=as_fn_executable_p
15550
15551 # Sed expression to map a string onto a valid CPP name.
15552 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15553
15554 # Sed expression to map a string onto a valid variable name.
15555 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15556
15557
15558 exec 6>&1
15559 ## ----------------------------------- ##
15560 ## Main body of $CONFIG_STATUS script. ##
15561 ## ----------------------------------- ##
15562 _ASEOF
15563 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15564
15565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15566 # Save the log message, to keep $0 and so on meaningful, and to
15567 # report actual input values of CONFIG_FILES etc. instead of their
15568 # values after options handling.
15569 ac_log="
15570 This file was extended by libffi $as_me 3.0.13, which was
15571 generated by GNU Autoconf 2.69.  Invocation command line was
15572
15573   CONFIG_FILES    = $CONFIG_FILES
15574   CONFIG_HEADERS  = $CONFIG_HEADERS
15575   CONFIG_LINKS    = $CONFIG_LINKS
15576   CONFIG_COMMANDS = $CONFIG_COMMANDS
15577   $ $0 $@
15578
15579 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15580 "
15581
15582 _ACEOF
15583
15584 case $ac_config_files in *"
15585 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15586 esac
15587
15588 case $ac_config_headers in *"
15589 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15590 esac
15591
15592
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 # Files that config.status was made for.
15595 config_files="$ac_config_files"
15596 config_headers="$ac_config_headers"
15597 config_links="$ac_config_links"
15598 config_commands="$ac_config_commands"
15599
15600 _ACEOF
15601
15602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15603 ac_cs_usage="\
15604 \`$as_me' instantiates files and other configuration actions
15605 from templates according to the current configuration.  Unless the files
15606 and actions are specified as TAGs, all are instantiated by default.
15607
15608 Usage: $0 [OPTION]... [TAG]...
15609
15610   -h, --help       print this help, then exit
15611   -V, --version    print version number and configuration settings, then exit
15612       --config     print configuration, then exit
15613   -q, --quiet, --silent
15614                    do not print progress messages
15615   -d, --debug      don't remove temporary files
15616       --recheck    update $as_me by reconfiguring in the same conditions
15617       --file=FILE[:TEMPLATE]
15618                    instantiate the configuration file FILE
15619       --header=FILE[:TEMPLATE]
15620                    instantiate the configuration header FILE
15621
15622 Configuration files:
15623 $config_files
15624
15625 Configuration headers:
15626 $config_headers
15627
15628 Configuration links:
15629 $config_links
15630
15631 Configuration commands:
15632 $config_commands
15633
15634 Report bugs to <http://github.com/atgreen/libffi/issues>."
15635
15636 _ACEOF
15637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15638 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15639 ac_cs_version="\\
15640 libffi config.status 3.0.13
15641 configured by $0, generated by GNU Autoconf 2.69,
15642   with options \\"\$ac_cs_config\\"
15643
15644 Copyright (C) 2012 Free Software Foundation, Inc.
15645 This config.status script is free software; the Free Software Foundation
15646 gives unlimited permission to copy, distribute and modify it."
15647
15648 ac_pwd='$ac_pwd'
15649 srcdir='$srcdir'
15650 INSTALL='$INSTALL'
15651 MKDIR_P='$MKDIR_P'
15652 AWK='$AWK'
15653 test -n "\$AWK" || AWK=awk
15654 _ACEOF
15655
15656 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15657 # The default lists apply if the user does not specify any file.
15658 ac_need_defaults=:
15659 while test $# != 0
15660 do
15661   case $1 in
15662   --*=?*)
15663     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15664     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15665     ac_shift=:
15666     ;;
15667   --*=)
15668     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15669     ac_optarg=
15670     ac_shift=:
15671     ;;
15672   *)
15673     ac_option=$1
15674     ac_optarg=$2
15675     ac_shift=shift
15676     ;;
15677   esac
15678
15679   case $ac_option in
15680   # Handling of the options.
15681   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15682     ac_cs_recheck=: ;;
15683   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15684     $as_echo "$ac_cs_version"; exit ;;
15685   --config | --confi | --conf | --con | --co | --c )
15686     $as_echo "$ac_cs_config"; exit ;;
15687   --debug | --debu | --deb | --de | --d | -d )
15688     debug=: ;;
15689   --file | --fil | --fi | --f )
15690     $ac_shift
15691     case $ac_optarg in
15692     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15693     '') as_fn_error $? "missing file argument" ;;
15694     esac
15695     as_fn_append CONFIG_FILES " '$ac_optarg'"
15696     ac_need_defaults=false;;
15697   --header | --heade | --head | --hea )
15698     $ac_shift
15699     case $ac_optarg in
15700     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15701     esac
15702     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15703     ac_need_defaults=false;;
15704   --he | --h)
15705     # Conflict between --help and --header
15706     as_fn_error $? "ambiguous option: \`$1'
15707 Try \`$0 --help' for more information.";;
15708   --help | --hel | -h )
15709     $as_echo "$ac_cs_usage"; exit ;;
15710   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15711   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15712     ac_cs_silent=: ;;
15713
15714   # This is an error.
15715   -*) as_fn_error $? "unrecognized option: \`$1'
15716 Try \`$0 --help' for more information." ;;
15717
15718   *) as_fn_append ac_config_targets " $1"
15719      ac_need_defaults=false ;;
15720
15721   esac
15722   shift
15723 done
15724
15725 ac_configure_extra_args=
15726
15727 if $ac_cs_silent; then
15728   exec 6>/dev/null
15729   ac_configure_extra_args="$ac_configure_extra_args --silent"
15730 fi
15731
15732 _ACEOF
15733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15734 if \$ac_cs_recheck; then
15735   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15736   shift
15737   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15738   CONFIG_SHELL='$SHELL'
15739   export CONFIG_SHELL
15740   exec "\$@"
15741 fi
15742
15743 _ACEOF
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15745 exec 5>>config.log
15746 {
15747   echo
15748   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15749 ## Running $as_me. ##
15750 _ASBOX
15751   $as_echo "$ac_log"
15752 } >&5
15753
15754 _ACEOF
15755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15756 #
15757 # INIT-COMMANDS
15758 #
15759 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15760 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15761 ax_enable_builddir_version="$VERSION"                  # $VERSION
15762 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15763 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15764 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15765 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15766
15767 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15768
15769
15770 # The HP-UX ksh and POSIX shell print the target directory to stdout
15771 # if CDPATH is set.
15772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15773
15774 sed_quote_subst='$sed_quote_subst'
15775 double_quote_subst='$double_quote_subst'
15776 delay_variable_subst='$delay_variable_subst'
15777 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15778 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15779 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15780 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15781 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15782 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15783 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15784 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15785 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15786 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15787 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15788 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15789 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15790 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15791 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15792 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15793 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15794 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15795 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15796 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15797 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15798 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15799 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15800 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15801 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15802 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15803 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15804 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15805 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15806 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15807 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15808 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15809 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15810 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15811 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15812 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15813 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15814 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15815 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15816 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15817 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15818 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15819 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15820 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15821 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15822 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15823 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15824 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15825 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15826 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15827 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15828 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15829 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15830 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15831 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15832 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15833 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"`'
15834 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15835 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15836 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15837 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15838 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15839 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15840 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15841 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15842 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15843 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15844 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15845 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15846 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15847 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15848 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15849 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15850 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15851 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15852 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15853 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15854 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15855 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15856 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15857 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15858 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15859 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15860 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15861 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15862 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15863 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15864 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15865 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15866 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15867 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15868 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15869 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15870 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15871 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15872 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15873 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15874 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15875 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15876 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15877 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15878 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15879 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15880 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15881 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15882 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15883 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15884 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15885 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15886 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15887 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15888 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15889 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15890 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15891 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15892 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15893 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15894 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15895 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15896 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15897 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15898 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15899 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15900 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15901 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15902 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15903 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15904 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15905 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15906 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15907
15908 LTCC='$LTCC'
15909 LTCFLAGS='$LTCFLAGS'
15910 compiler='$compiler_DEFAULT'
15911
15912 # A function that is used when there is no print builtin or printf.
15913 func_fallback_echo ()
15914 {
15915   eval 'cat <<_LTECHO_EOF
15916 \$1
15917 _LTECHO_EOF'
15918 }
15919
15920 # Quote evaled strings.
15921 for var in SHELL \
15922 ECHO \
15923 PATH_SEPARATOR \
15924 SED \
15925 GREP \
15926 EGREP \
15927 FGREP \
15928 LD \
15929 NM \
15930 LN_S \
15931 lt_SP2NL \
15932 lt_NL2SP \
15933 reload_flag \
15934 OBJDUMP \
15935 deplibs_check_method \
15936 file_magic_cmd \
15937 file_magic_glob \
15938 want_nocaseglob \
15939 DLLTOOL \
15940 sharedlib_from_linklib_cmd \
15941 AR \
15942 AR_FLAGS \
15943 archiver_list_spec \
15944 STRIP \
15945 RANLIB \
15946 CC \
15947 CFLAGS \
15948 compiler \
15949 lt_cv_sys_global_symbol_pipe \
15950 lt_cv_sys_global_symbol_to_cdecl \
15951 lt_cv_sys_global_symbol_to_c_name_address \
15952 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15953 nm_file_list_spec \
15954 lt_prog_compiler_no_builtin_flag \
15955 lt_prog_compiler_pic \
15956 lt_prog_compiler_wl \
15957 lt_prog_compiler_static \
15958 lt_cv_prog_compiler_c_o \
15959 need_locks \
15960 MANIFEST_TOOL \
15961 DSYMUTIL \
15962 NMEDIT \
15963 LIPO \
15964 OTOOL \
15965 OTOOL64 \
15966 shrext_cmds \
15967 export_dynamic_flag_spec \
15968 whole_archive_flag_spec \
15969 compiler_needs_object \
15970 with_gnu_ld \
15971 allow_undefined_flag \
15972 no_undefined_flag \
15973 hardcode_libdir_flag_spec \
15974 hardcode_libdir_separator \
15975 exclude_expsyms \
15976 include_expsyms \
15977 file_list_spec \
15978 variables_saved_for_relink \
15979 libname_spec \
15980 library_names_spec \
15981 soname_spec \
15982 install_override_mode \
15983 finish_eval \
15984 old_striplib \
15985 striplib; do
15986     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15987     *[\\\\\\\`\\"\\\$]*)
15988       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15989       ;;
15990     *)
15991       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15992       ;;
15993     esac
15994 done
15995
15996 # Double-quote double-evaled strings.
15997 for var in reload_cmds \
15998 old_postinstall_cmds \
15999 old_postuninstall_cmds \
16000 old_archive_cmds \
16001 extract_expsyms_cmds \
16002 old_archive_from_new_cmds \
16003 old_archive_from_expsyms_cmds \
16004 archive_cmds \
16005 archive_expsym_cmds \
16006 module_cmds \
16007 module_expsym_cmds \
16008 export_symbols_cmds \
16009 prelink_cmds \
16010 postlink_cmds \
16011 postinstall_cmds \
16012 postuninstall_cmds \
16013 finish_cmds \
16014 sys_lib_search_path_spec \
16015 sys_lib_dlsearch_path_spec; do
16016     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16017     *[\\\\\\\`\\"\\\$]*)
16018       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16019       ;;
16020     *)
16021       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16022       ;;
16023     esac
16024 done
16025
16026 ac_aux_dir='$ac_aux_dir'
16027 xsi_shell='$xsi_shell'
16028 lt_shell_append='$lt_shell_append'
16029
16030 # See if we are running on zsh, and set the options which allow our
16031 # commands through without removal of \ escapes INIT.
16032 if test -n "\${ZSH_VERSION+set}" ; then
16033    setopt NO_GLOB_SUBST
16034 fi
16035
16036
16037     PACKAGE='$PACKAGE'
16038     VERSION='$VERSION'
16039     TIMESTAMP='$TIMESTAMP'
16040     RM='$RM'
16041     ofile='$ofile'
16042
16043
16044
16045 TARGETDIR="$TARGETDIR"
16046
16047 _ACEOF
16048
16049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16050
16051 # Handling of arguments.
16052 for ac_config_target in $ac_config_targets
16053 do
16054   case $ac_config_target in
16055     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16056     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16057     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16058     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16059     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16060     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16061     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16062     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16063     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16064     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16065     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16066     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16067     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16068
16069   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16070   esac
16071 done
16072
16073
16074 # If the user did not use the arguments to specify the items to instantiate,
16075 # then the envvar interface is used.  Set only those that are not.
16076 # We use the long form for the default assignment because of an extremely
16077 # bizarre bug on SunOS 4.1.3.
16078 if $ac_need_defaults; then
16079   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16080   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16081   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16082   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16083 fi
16084
16085 # Have a temporary directory for convenience.  Make it in the build tree
16086 # simply because there is no reason against having it here, and in addition,
16087 # creating and moving files from /tmp can sometimes cause problems.
16088 # Hook for its removal unless debugging.
16089 # Note that there is a small window in which the directory will not be cleaned:
16090 # after its creation but before its name has been assigned to `$tmp'.
16091 $debug ||
16092 {
16093   tmp= ac_tmp=
16094   trap 'exit_status=$?
16095   : "${ac_tmp:=$tmp}"
16096   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16097 ' 0
16098   trap 'as_fn_exit 1' 1 2 13 15
16099 }
16100 # Create a (secure) tmp directory for tmp files.
16101
16102 {
16103   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16104   test -d "$tmp"
16105 }  ||
16106 {
16107   tmp=./conf$$-$RANDOM
16108   (umask 077 && mkdir "$tmp")
16109 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16110 ac_tmp=$tmp
16111
16112 # Set up the scripts for CONFIG_FILES section.
16113 # No need to generate them if there are no CONFIG_FILES.
16114 # This happens for instance with `./config.status config.h'.
16115 if test -n "$CONFIG_FILES"; then
16116
16117
16118 ac_cr=`echo X | tr X '\015'`
16119 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16120 # But we know of no other shell where ac_cr would be empty at this
16121 # point, so we can use a bashism as a fallback.
16122 if test "x$ac_cr" = x; then
16123   eval ac_cr=\$\'\\r\'
16124 fi
16125 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16126 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16127   ac_cs_awk_cr='\\r'
16128 else
16129   ac_cs_awk_cr=$ac_cr
16130 fi
16131
16132 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16133 _ACEOF
16134
16135
16136 {
16137   echo "cat >conf$$subs.awk <<_ACEOF" &&
16138   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16139   echo "_ACEOF"
16140 } >conf$$subs.sh ||
16141   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16142 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16143 ac_delim='%!_!# '
16144 for ac_last_try in false false false false false :; do
16145   . ./conf$$subs.sh ||
16146     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16147
16148   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16149   if test $ac_delim_n = $ac_delim_num; then
16150     break
16151   elif $ac_last_try; then
16152     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16153   else
16154     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16155   fi
16156 done
16157 rm -f conf$$subs.sh
16158
16159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16160 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16161 _ACEOF
16162 sed -n '
16163 h
16164 s/^/S["/; s/!.*/"]=/
16165 p
16166 g
16167 s/^[^!]*!//
16168 :repl
16169 t repl
16170 s/'"$ac_delim"'$//
16171 t delim
16172 :nl
16173 h
16174 s/\(.\{148\}\)..*/\1/
16175 t more1
16176 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16177 p
16178 n
16179 b repl
16180 :more1
16181 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16182 p
16183 g
16184 s/.\{148\}//
16185 t nl
16186 :delim
16187 h
16188 s/\(.\{148\}\)..*/\1/
16189 t more2
16190 s/["\\]/\\&/g; s/^/"/; s/$/"/
16191 p
16192 b
16193 :more2
16194 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16195 p
16196 g
16197 s/.\{148\}//
16198 t delim
16199 ' <conf$$subs.awk | sed '
16200 /^[^""]/{
16201   N
16202   s/\n//
16203 }
16204 ' >>$CONFIG_STATUS || ac_write_fail=1
16205 rm -f conf$$subs.awk
16206 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16207 _ACAWK
16208 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16209   for (key in S) S_is_set[key] = 1
16210   FS = "\a"
16211
16212 }
16213 {
16214   line = $ 0
16215   nfields = split(line, field, "@")
16216   substed = 0
16217   len = length(field[1])
16218   for (i = 2; i < nfields; i++) {
16219     key = field[i]
16220     keylen = length(key)
16221     if (S_is_set[key]) {
16222       value = S[key]
16223       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16224       len += length(value) + length(field[++i])
16225       substed = 1
16226     } else
16227       len += 1 + keylen
16228   }
16229
16230   print line
16231 }
16232
16233 _ACAWK
16234 _ACEOF
16235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16236 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16237   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16238 else
16239   cat
16240 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16241   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16242 _ACEOF
16243
16244 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16245 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16246 # trailing colons and then remove the whole line if VPATH becomes empty
16247 # (actually we leave an empty line to preserve line numbers).
16248 if test "x$srcdir" = x.; then
16249   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16250 h
16251 s///
16252 s/^/:/
16253 s/[      ]*$/:/
16254 s/:\$(srcdir):/:/g
16255 s/:\${srcdir}:/:/g
16256 s/:@srcdir@:/:/g
16257 s/^:*//
16258 s/:*$//
16259 x
16260 s/\(=[   ]*\).*/\1/
16261 G
16262 s/\n//
16263 s/^[^=]*=[       ]*$//
16264 }'
16265 fi
16266
16267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16268 fi # test -n "$CONFIG_FILES"
16269
16270 # Set up the scripts for CONFIG_HEADERS section.
16271 # No need to generate them if there are no CONFIG_HEADERS.
16272 # This happens for instance with `./config.status Makefile'.
16273 if test -n "$CONFIG_HEADERS"; then
16274 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16275 BEGIN {
16276 _ACEOF
16277
16278 # Transform confdefs.h into an awk script `defines.awk', embedded as
16279 # here-document in config.status, that substitutes the proper values into
16280 # config.h.in to produce config.h.
16281
16282 # Create a delimiter string that does not exist in confdefs.h, to ease
16283 # handling of long lines.
16284 ac_delim='%!_!# '
16285 for ac_last_try in false false :; do
16286   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16287   if test -z "$ac_tt"; then
16288     break
16289   elif $ac_last_try; then
16290     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16291   else
16292     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16293   fi
16294 done
16295
16296 # For the awk script, D is an array of macro values keyed by name,
16297 # likewise P contains macro parameters if any.  Preserve backslash
16298 # newline sequences.
16299
16300 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16301 sed -n '
16302 s/.\{148\}/&'"$ac_delim"'/g
16303 t rset
16304 :rset
16305 s/^[     ]*#[    ]*define[       ][      ]*/ /
16306 t def
16307 d
16308 :def
16309 s/\\$//
16310 t bsnl
16311 s/["\\]/\\&/g
16312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16313 D["\1"]=" \3"/p
16314 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16315 d
16316 :bsnl
16317 s/["\\]/\\&/g
16318 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16319 D["\1"]=" \3\\\\\\n"\\/p
16320 t cont
16321 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16322 t cont
16323 d
16324 :cont
16325 n
16326 s/.\{148\}/&'"$ac_delim"'/g
16327 t clear
16328 :clear
16329 s/\\$//
16330 t bsnlc
16331 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16332 d
16333 :bsnlc
16334 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16335 b cont
16336 ' <confdefs.h | sed '
16337 s/'"$ac_delim"'/"\\\
16338 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16339
16340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16341   for (key in D) D_is_set[key] = 1
16342   FS = "\a"
16343 }
16344 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16345   line = \$ 0
16346   split(line, arg, " ")
16347   if (arg[1] == "#") {
16348     defundef = arg[2]
16349     mac1 = arg[3]
16350   } else {
16351     defundef = substr(arg[1], 2)
16352     mac1 = arg[2]
16353   }
16354   split(mac1, mac2, "(") #)
16355   macro = mac2[1]
16356   prefix = substr(line, 1, index(line, defundef) - 1)
16357   if (D_is_set[macro]) {
16358     # Preserve the white space surrounding the "#".
16359     print prefix "define", macro P[macro] D[macro]
16360     next
16361   } else {
16362     # Replace #undef with comments.  This is necessary, for example,
16363     # in the case of _POSIX_SOURCE, which is predefined and required
16364     # on some systems where configure will not decide to define it.
16365     if (defundef == "undef") {
16366       print "/*", prefix defundef, macro, "*/"
16367       next
16368     }
16369   }
16370 }
16371 { print }
16372 _ACAWK
16373 _ACEOF
16374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16375   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16376 fi # test -n "$CONFIG_HEADERS"
16377
16378
16379 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16380 shift
16381 for ac_tag
16382 do
16383   case $ac_tag in
16384   :[FHLC]) ac_mode=$ac_tag; continue;;
16385   esac
16386   case $ac_mode$ac_tag in
16387   :[FHL]*:*);;
16388   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16389   :[FH]-) ac_tag=-:-;;
16390   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16391   esac
16392   ac_save_IFS=$IFS
16393   IFS=:
16394   set x $ac_tag
16395   IFS=$ac_save_IFS
16396   shift
16397   ac_file=$1
16398   shift
16399
16400   case $ac_mode in
16401   :L) ac_source=$1;;
16402   :[FH])
16403     ac_file_inputs=
16404     for ac_f
16405     do
16406       case $ac_f in
16407       -) ac_f="$ac_tmp/stdin";;
16408       *) # Look for the file first in the build tree, then in the source tree
16409          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16410          # because $ac_f cannot contain `:'.
16411          test -f "$ac_f" ||
16412            case $ac_f in
16413            [\\/$]*) false;;
16414            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16415            esac ||
16416            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16417       esac
16418       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16419       as_fn_append ac_file_inputs " '$ac_f'"
16420     done
16421
16422     # Let's still pretend it is `configure' which instantiates (i.e., don't
16423     # use $as_me), people would be surprised to read:
16424     #    /* config.h.  Generated by config.status.  */
16425     configure_input='Generated from '`
16426           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16427         `' by configure.'
16428     if test x"$ac_file" != x-; then
16429       configure_input="$ac_file.  $configure_input"
16430       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16431 $as_echo "$as_me: creating $ac_file" >&6;}
16432     fi
16433     # Neutralize special characters interpreted by sed in replacement strings.
16434     case $configure_input in #(
16435     *\&* | *\|* | *\\* )
16436        ac_sed_conf_input=`$as_echo "$configure_input" |
16437        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16438     *) ac_sed_conf_input=$configure_input;;
16439     esac
16440
16441     case $ac_tag in
16442     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16443       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16444     esac
16445     ;;
16446   esac
16447
16448   ac_dir=`$as_dirname -- "$ac_file" ||
16449 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16450          X"$ac_file" : 'X\(//\)[^/]' \| \
16451          X"$ac_file" : 'X\(//\)$' \| \
16452          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16453 $as_echo X"$ac_file" |
16454     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16455             s//\1/
16456             q
16457           }
16458           /^X\(\/\/\)[^/].*/{
16459             s//\1/
16460             q
16461           }
16462           /^X\(\/\/\)$/{
16463             s//\1/
16464             q
16465           }
16466           /^X\(\/\).*/{
16467             s//\1/
16468             q
16469           }
16470           s/.*/./; q'`
16471   as_dir="$ac_dir"; as_fn_mkdir_p
16472   ac_builddir=.
16473
16474 case "$ac_dir" in
16475 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16476 *)
16477   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16478   # A ".." for each directory in $ac_dir_suffix.
16479   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16480   case $ac_top_builddir_sub in
16481   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16482   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16483   esac ;;
16484 esac
16485 ac_abs_top_builddir=$ac_pwd
16486 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16487 # for backward compatibility:
16488 ac_top_builddir=$ac_top_build_prefix
16489
16490 case $srcdir in
16491   .)  # We are building in place.
16492     ac_srcdir=.
16493     ac_top_srcdir=$ac_top_builddir_sub
16494     ac_abs_top_srcdir=$ac_pwd ;;
16495   [\\/]* | ?:[\\/]* )  # Absolute name.
16496     ac_srcdir=$srcdir$ac_dir_suffix;
16497     ac_top_srcdir=$srcdir
16498     ac_abs_top_srcdir=$srcdir ;;
16499   *) # Relative name.
16500     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16501     ac_top_srcdir=$ac_top_build_prefix$srcdir
16502     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16503 esac
16504 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16505
16506
16507   case $ac_mode in
16508   :F)
16509   #
16510   # CONFIG_FILE
16511   #
16512
16513   case $INSTALL in
16514   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16515   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16516   esac
16517   ac_MKDIR_P=$MKDIR_P
16518   case $MKDIR_P in
16519   [\\/$]* | ?:[\\/]* ) ;;
16520   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16521   esac
16522 _ACEOF
16523
16524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16525 # If the template does not know about datarootdir, expand it.
16526 # FIXME: This hack should be removed a few years after 2.60.
16527 ac_datarootdir_hack=; ac_datarootdir_seen=
16528 ac_sed_dataroot='
16529 /datarootdir/ {
16530   p
16531   q
16532 }
16533 /@datadir@/p
16534 /@docdir@/p
16535 /@infodir@/p
16536 /@localedir@/p
16537 /@mandir@/p'
16538 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16539 *datarootdir*) ac_datarootdir_seen=yes;;
16540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16541   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16542 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16545   ac_datarootdir_hack='
16546   s&@datadir@&$datadir&g
16547   s&@docdir@&$docdir&g
16548   s&@infodir@&$infodir&g
16549   s&@localedir@&$localedir&g
16550   s&@mandir@&$mandir&g
16551   s&\\\${datarootdir}&$datarootdir&g' ;;
16552 esac
16553 _ACEOF
16554
16555 # Neutralize VPATH when `$srcdir' = `.'.
16556 # Shell code in configure.ac might set extrasub.
16557 # FIXME: do we really want to maintain this feature?
16558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16559 ac_sed_extra="$ac_vpsub
16560 $extrasub
16561 _ACEOF
16562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16563 :t
16564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16565 s|@configure_input@|$ac_sed_conf_input|;t t
16566 s&@top_builddir@&$ac_top_builddir_sub&;t t
16567 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16568 s&@srcdir@&$ac_srcdir&;t t
16569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16570 s&@top_srcdir@&$ac_top_srcdir&;t t
16571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16572 s&@builddir@&$ac_builddir&;t t
16573 s&@abs_builddir@&$ac_abs_builddir&;t t
16574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16575 s&@INSTALL@&$ac_INSTALL&;t t
16576 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16577 $ac_datarootdir_hack
16578 "
16579 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16580   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16581
16582 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16583   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16584   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16585       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16586   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16587 which seems to be undefined.  Please make sure it is defined" >&5
16588 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16589 which seems to be undefined.  Please make sure it is defined" >&2;}
16590
16591   rm -f "$ac_tmp/stdin"
16592   case $ac_file in
16593   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16594   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16595   esac \
16596   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16597  ;;
16598   :H)
16599   #
16600   # CONFIG_HEADER
16601   #
16602   if test x"$ac_file" != x-; then
16603     {
16604       $as_echo "/* $configure_input  */" \
16605       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16606     } >"$ac_tmp/config.h" \
16607       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16608     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16609       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16610 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16611     else
16612       rm -f "$ac_file"
16613       mv "$ac_tmp/config.h" "$ac_file" \
16614         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16615     fi
16616   else
16617     $as_echo "/* $configure_input  */" \
16618       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16619       || as_fn_error $? "could not create -" "$LINENO" 5
16620   fi
16621 # Compute "$ac_file"'s index in $config_headers.
16622 _am_arg="$ac_file"
16623 _am_stamp_count=1
16624 for _am_header in $config_headers :; do
16625   case $_am_header in
16626     $_am_arg | $_am_arg:* )
16627       break ;;
16628     * )
16629       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16630   esac
16631 done
16632 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16633 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16634          X"$_am_arg" : 'X\(//\)[^/]' \| \
16635          X"$_am_arg" : 'X\(//\)$' \| \
16636          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16637 $as_echo X"$_am_arg" |
16638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16639             s//\1/
16640             q
16641           }
16642           /^X\(\/\/\)[^/].*/{
16643             s//\1/
16644             q
16645           }
16646           /^X\(\/\/\)$/{
16647             s//\1/
16648             q
16649           }
16650           /^X\(\/\).*/{
16651             s//\1/
16652             q
16653           }
16654           s/.*/./; q'`/stamp-h$_am_stamp_count
16655  ;;
16656   :L)
16657   #
16658   # CONFIG_LINK
16659   #
16660
16661   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16662     :
16663   else
16664     # Prefer the file from the source tree if names are identical.
16665     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16666       ac_source=$srcdir/$ac_source
16667     fi
16668
16669     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16670 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16671
16672     if test ! -r "$ac_source"; then
16673       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16674     fi
16675     rm -f "$ac_file"
16676
16677     # Try a relative symlink, then a hard link, then a copy.
16678     case $ac_source in
16679     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16680         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16681     esac
16682     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16683       ln "$ac_source" "$ac_file" 2>/dev/null ||
16684       cp -p "$ac_source" "$ac_file" ||
16685       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16686   fi
16687  ;;
16688   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16689 $as_echo "$as_me: executing $ac_file commands" >&6;}
16690  ;;
16691   esac
16692
16693
16694   case $ac_file$ac_mode in
16695     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16696   if test ".$ax_enable_builddir" = ".." ; then
16697     if test -f "$top_srcdir/Makefile" ; then
16698       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16699 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16700     else
16701       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16702 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16703     fi
16704   else
16705     if test -f "$ac_top_srcdir/Makefile" ; then
16706       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16707       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16708     fi
16709     if test -f "$ac_top_srcdir/Makefile" ; then
16710         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16711         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16712       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16713       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16714       then rm $ac_top_srcdir/Makefile ; fi
16715       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16716     fi
16717     if test ! -f "$ac_top_srcdir/Makefile" ; then
16718       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16719 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16720       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16721 /^\$/n
16722 x
16723 /^\$/bS
16724 x
16725 /\\\\\$/{H;d;}
16726 {H;s/.*//;x;}
16727 bM
16728 :S
16729 x
16730 /\\\\\$/{h;d;}
16731 {h;s/.*//;x;}
16732 :M
16733 s/\\(\\n\\)     /\\1 /g
16734 /^      /d
16735 /^[      ]*[\\#]/d
16736 /^VPATH *=/d
16737 s/^srcdir *=.*/srcdir = ./
16738 s/^top_srcdir *=.*/top_srcdir = ./
16739 /[:=]/!d
16740 /^\\./d
16741 / = /b
16742 / .= /b
16743 /:/!b
16744 s/:.*/:/
16745 s/ /  /g
16746 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16747 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16748 s/  / /g
16749 /^all all-all[ :]/i\\
16750 all-configured : all-all
16751 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16752 /-all-all/d
16753 a\\
16754         @ HOST="\$(HOST)\" \\\\\\
16755         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16756         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16757         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16758         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16759         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16760         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16761         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16762         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16763         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16764 /dist-all *:/a\\
16765         @ HOST="\$(HOST)\" \\\\\\
16766         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16767         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16768         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16769         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16770         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16771         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16772         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16773         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16774         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16775 /dist-[a-zA-Z0-9]*-all *:/a\\
16776         @ HOST="\$(HOST)\" \\\\\\
16777         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16778         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16779         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16780         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16781         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16782         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16783         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16784         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16785         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16786 /distclean-all *:/a\\
16787         @ HOST="\$(HOST)\" \\\\\\
16788         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16789         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16790         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16791         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16792         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16793         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16794         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16795         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16796         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16797         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16798         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16799 _EOF
16800       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16801       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16802       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16803         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16804 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16805         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16806       fi ; xxxx="####"
16807       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16808       # sanity check
16809       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16810         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16811 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16812         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16813           >$ac_top_srcdir/Makefile~
16814         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16815       fi
16816     else
16817       xxxx="\\#\\#\\#\\#"
16818       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16819       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16820       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16821         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16822         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16823       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16824         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16825 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16826         rm "$tmp/mkfile.tmp"
16827       else
16828         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16829 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16830         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16831       fi
16832     fi
16833     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16834 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16835     xxxx="####"
16836     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16837   fi
16838  ;;
16839     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16840   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16841   # are listed without --file.  Let's play safe and only enable the eval
16842   # if we detect the quoting.
16843   case $CONFIG_FILES in
16844   *\'*) eval set x "$CONFIG_FILES" ;;
16845   *)   set x $CONFIG_FILES ;;
16846   esac
16847   shift
16848   for mf
16849   do
16850     # Strip MF so we end up with the name of the file.
16851     mf=`echo "$mf" | sed -e 's/:.*$//'`
16852     # Check whether this is an Automake generated Makefile or not.
16853     # We used to match only the files named 'Makefile.in', but
16854     # some people rename them; so instead we look at the file content.
16855     # Grep'ing the first line is not enough: some people post-process
16856     # each Makefile.in and add a new line on top of each file to say so.
16857     # Grep'ing the whole file is not good either: AIX grep has a line
16858     # limit of 2048, but all sed's we know have understand at least 4000.
16859     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16860       dirpart=`$as_dirname -- "$mf" ||
16861 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16862          X"$mf" : 'X\(//\)[^/]' \| \
16863          X"$mf" : 'X\(//\)$' \| \
16864          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16865 $as_echo X"$mf" |
16866     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16867             s//\1/
16868             q
16869           }
16870           /^X\(\/\/\)[^/].*/{
16871             s//\1/
16872             q
16873           }
16874           /^X\(\/\/\)$/{
16875             s//\1/
16876             q
16877           }
16878           /^X\(\/\).*/{
16879             s//\1/
16880             q
16881           }
16882           s/.*/./; q'`
16883     else
16884       continue
16885     fi
16886     # Extract the definition of DEPDIR, am__include, and am__quote
16887     # from the Makefile without running 'make'.
16888     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16889     test -z "$DEPDIR" && continue
16890     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16891     test -z "am__include" && continue
16892     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16893     # Find all dependency output files, they are included files with
16894     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16895     # simplest approach to changing $(DEPDIR) to its actual value in the
16896     # expansion.
16897     for file in `sed -n "
16898       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16899          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16900       # Make sure the directory exists.
16901       test -f "$dirpart/$file" && continue
16902       fdir=`$as_dirname -- "$file" ||
16903 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16904          X"$file" : 'X\(//\)[^/]' \| \
16905          X"$file" : 'X\(//\)$' \| \
16906          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16907 $as_echo X"$file" |
16908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16909             s//\1/
16910             q
16911           }
16912           /^X\(\/\/\)[^/].*/{
16913             s//\1/
16914             q
16915           }
16916           /^X\(\/\/\)$/{
16917             s//\1/
16918             q
16919           }
16920           /^X\(\/\).*/{
16921             s//\1/
16922             q
16923           }
16924           s/.*/./; q'`
16925       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16926       # echo "creating $dirpart/$file"
16927       echo '# dummy' > "$dirpart/$file"
16928     done
16929   done
16930 }
16931  ;;
16932     "libtool":C)
16933
16934     # See if we are running on zsh, and set the options which allow our
16935     # commands through without removal of \ escapes.
16936     if test -n "${ZSH_VERSION+set}" ; then
16937       setopt NO_GLOB_SUBST
16938     fi
16939
16940     cfgfile="${ofile}T"
16941     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16942     $RM "$cfgfile"
16943
16944     cat <<_LT_EOF >> "$cfgfile"
16945 #! $SHELL
16946
16947 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16948 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16949 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16950 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16951 #
16952 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16953 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16954 #                 Foundation, Inc.
16955 #   Written by Gordon Matzigkeit, 1996
16956 #
16957 #   This file is part of GNU Libtool.
16958 #
16959 # GNU Libtool is free software; you can redistribute it and/or
16960 # modify it under the terms of the GNU General Public License as
16961 # published by the Free Software Foundation; either version 2 of
16962 # the License, or (at your option) any later version.
16963 #
16964 # As a special exception to the GNU General Public License,
16965 # if you distribute this file as part of a program or library that
16966 # is built using GNU Libtool, you may include this file under the
16967 # same distribution terms that you use for the rest of that program.
16968 #
16969 # GNU Libtool is distributed in the hope that it will be useful,
16970 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16971 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16972 # GNU General Public License for more details.
16973 #
16974 # You should have received a copy of the GNU General Public License
16975 # along with GNU Libtool; see the file COPYING.  If not, a copy
16976 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16977 # obtained by writing to the Free Software Foundation, Inc.,
16978 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16979
16980
16981 # The names of the tagged configurations supported by this script.
16982 available_tags=""
16983
16984 # ### BEGIN LIBTOOL CONFIG
16985
16986 # Which release of libtool.m4 was used?
16987 macro_version=$macro_version
16988 macro_revision=$macro_revision
16989
16990 # Whether or not to build shared libraries.
16991 build_libtool_libs=$enable_shared
16992
16993 # Whether or not to build static libraries.
16994 build_old_libs=$enable_static
16995
16996 # What type of objects to build.
16997 pic_mode=$pic_mode
16998
16999 # Whether or not to optimize for fast installation.
17000 fast_install=$enable_fast_install
17001
17002 # Shell to use when invoking shell scripts.
17003 SHELL=$lt_SHELL
17004
17005 # An echo program that protects backslashes.
17006 ECHO=$lt_ECHO
17007
17008 # The PATH separator for the build system.
17009 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17010
17011 # The host system.
17012 host_alias=$host_alias
17013 host=$host
17014 host_os=$host_os
17015
17016 # The build system.
17017 build_alias=$build_alias
17018 build=$build
17019 build_os=$build_os
17020
17021 # A sed program that does not truncate output.
17022 SED=$lt_SED
17023
17024 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17025 Xsed="\$SED -e 1s/^X//"
17026
17027 # A grep program that handles long lines.
17028 GREP=$lt_GREP
17029
17030 # An ERE matcher.
17031 EGREP=$lt_EGREP
17032
17033 # A literal string matcher.
17034 FGREP=$lt_FGREP
17035
17036 # A BSD- or MS-compatible name lister.
17037 NM=$lt_NM
17038
17039 # Whether we need soft or hard links.
17040 LN_S=$lt_LN_S
17041
17042 # What is the maximum length of a command?
17043 max_cmd_len=$max_cmd_len
17044
17045 # Object file suffix (normally "o").
17046 objext=$ac_objext
17047
17048 # Executable file suffix (normally "").
17049 exeext=$exeext
17050
17051 # whether the shell understands "unset".
17052 lt_unset=$lt_unset
17053
17054 # turn spaces into newlines.
17055 SP2NL=$lt_lt_SP2NL
17056
17057 # turn newlines into spaces.
17058 NL2SP=$lt_lt_NL2SP
17059
17060 # convert \$build file names to \$host format.
17061 to_host_file_cmd=$lt_cv_to_host_file_cmd
17062
17063 # convert \$build files to toolchain format.
17064 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17065
17066 # An object symbol dumper.
17067 OBJDUMP=$lt_OBJDUMP
17068
17069 # Method to check whether dependent libraries are shared objects.
17070 deplibs_check_method=$lt_deplibs_check_method
17071
17072 # Command to use when deplibs_check_method = "file_magic".
17073 file_magic_cmd=$lt_file_magic_cmd
17074
17075 # How to find potential files when deplibs_check_method = "file_magic".
17076 file_magic_glob=$lt_file_magic_glob
17077
17078 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17079 want_nocaseglob=$lt_want_nocaseglob
17080
17081 # DLL creation program.
17082 DLLTOOL=$lt_DLLTOOL
17083
17084 # Command to associate shared and link libraries.
17085 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17086
17087 # The archiver.
17088 AR=$lt_AR
17089
17090 # Flags to create an archive.
17091 AR_FLAGS=$lt_AR_FLAGS
17092
17093 # How to feed a file listing to the archiver.
17094 archiver_list_spec=$lt_archiver_list_spec
17095
17096 # A symbol stripping program.
17097 STRIP=$lt_STRIP
17098
17099 # Commands used to install an old-style archive.
17100 RANLIB=$lt_RANLIB
17101 old_postinstall_cmds=$lt_old_postinstall_cmds
17102 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17103
17104 # Whether to use a lock for old archive extraction.
17105 lock_old_archive_extraction=$lock_old_archive_extraction
17106
17107 # A C compiler.
17108 LTCC=$lt_CC
17109
17110 # LTCC compiler flags.
17111 LTCFLAGS=$lt_CFLAGS
17112
17113 # Take the output of nm and produce a listing of raw symbols and C names.
17114 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17115
17116 # Transform the output of nm in a proper C declaration.
17117 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17118
17119 # Transform the output of nm in a C name address pair.
17120 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17121
17122 # Transform the output of nm in a C name address pair when lib prefix is needed.
17123 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17124
17125 # Specify filename containing input files for \$NM.
17126 nm_file_list_spec=$lt_nm_file_list_spec
17127
17128 # The root where to search for dependent libraries,and in which our libraries should be installed.
17129 lt_sysroot=$lt_sysroot
17130
17131 # The name of the directory that contains temporary libtool files.
17132 objdir=$objdir
17133
17134 # Used to examine libraries when file_magic_cmd begins with "file".
17135 MAGIC_CMD=$MAGIC_CMD
17136
17137 # Must we lock files when doing compilation?
17138 need_locks=$lt_need_locks
17139
17140 # Manifest tool.
17141 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17142
17143 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17144 DSYMUTIL=$lt_DSYMUTIL
17145
17146 # Tool to change global to local symbols on Mac OS X.
17147 NMEDIT=$lt_NMEDIT
17148
17149 # Tool to manipulate fat objects and archives on Mac OS X.
17150 LIPO=$lt_LIPO
17151
17152 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17153 OTOOL=$lt_OTOOL
17154
17155 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17156 OTOOL64=$lt_OTOOL64
17157
17158 # Old archive suffix (normally "a").
17159 libext=$libext
17160
17161 # Shared library suffix (normally ".so").
17162 shrext_cmds=$lt_shrext_cmds
17163
17164 # The commands to extract the exported symbol list from a shared archive.
17165 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17166
17167 # Variables whose values should be saved in libtool wrapper scripts and
17168 # restored at link time.
17169 variables_saved_for_relink=$lt_variables_saved_for_relink
17170
17171 # Do we need the "lib" prefix for modules?
17172 need_lib_prefix=$need_lib_prefix
17173
17174 # Do we need a version for libraries?
17175 need_version=$need_version
17176
17177 # Library versioning type.
17178 version_type=$version_type
17179
17180 # Shared library runtime path variable.
17181 runpath_var=$runpath_var
17182
17183 # Shared library path variable.
17184 shlibpath_var=$shlibpath_var
17185
17186 # Is shlibpath searched before the hard-coded library search path?
17187 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17188
17189 # Format of library name prefix.
17190 libname_spec=$lt_libname_spec
17191
17192 # List of archive names.  First name is the real one, the rest are links.
17193 # The last name is the one that the linker finds with -lNAME
17194 library_names_spec=$lt_library_names_spec
17195
17196 # The coded name of the library, if different from the real name.
17197 soname_spec=$lt_soname_spec
17198
17199 # Permission mode override for installation of shared libraries.
17200 install_override_mode=$lt_install_override_mode
17201
17202 # Command to use after installation of a shared archive.
17203 postinstall_cmds=$lt_postinstall_cmds
17204
17205 # Command to use after uninstallation of a shared archive.
17206 postuninstall_cmds=$lt_postuninstall_cmds
17207
17208 # Commands used to finish a libtool library installation in a directory.
17209 finish_cmds=$lt_finish_cmds
17210
17211 # As "finish_cmds", except a single script fragment to be evaled but
17212 # not shown.
17213 finish_eval=$lt_finish_eval
17214
17215 # Whether we should hardcode library paths into libraries.
17216 hardcode_into_libs=$hardcode_into_libs
17217
17218 # Compile-time system search path for libraries.
17219 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17220
17221 # Run-time system search path for libraries.
17222 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17223
17224 # Whether dlopen is supported.
17225 dlopen_support=$enable_dlopen
17226
17227 # Whether dlopen of programs is supported.
17228 dlopen_self=$enable_dlopen_self
17229
17230 # Whether dlopen of statically linked programs is supported.
17231 dlopen_self_static=$enable_dlopen_self_static
17232
17233 # Commands to strip libraries.
17234 old_striplib=$lt_old_striplib
17235 striplib=$lt_striplib
17236
17237
17238 # The linker used to build libraries.
17239 LD=$lt_LD
17240
17241 # How to create reloadable object files.
17242 reload_flag=$lt_reload_flag
17243 reload_cmds=$lt_reload_cmds
17244
17245 # Commands used to build an old-style archive.
17246 old_archive_cmds=$lt_old_archive_cmds
17247
17248 # A language specific compiler.
17249 CC=$lt_compiler
17250
17251 # Is the compiler the GNU compiler?
17252 with_gcc=$GCC
17253
17254 # Compiler flag to turn off builtin functions.
17255 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17256
17257 # Additional compiler flags for building library objects.
17258 pic_flag=$lt_lt_prog_compiler_pic
17259
17260 # How to pass a linker flag through the compiler.
17261 wl=$lt_lt_prog_compiler_wl
17262
17263 # Compiler flag to prevent dynamic linking.
17264 link_static_flag=$lt_lt_prog_compiler_static
17265
17266 # Does compiler simultaneously support -c and -o options?
17267 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17268
17269 # Whether or not to add -lc for building shared libraries.
17270 build_libtool_need_lc=$archive_cmds_need_lc
17271
17272 # Whether or not to disallow shared libs when runtime libs are static.
17273 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17274
17275 # Compiler flag to allow reflexive dlopens.
17276 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17277
17278 # Compiler flag to generate shared objects directly from archives.
17279 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17280
17281 # Whether the compiler copes with passing no objects directly.
17282 compiler_needs_object=$lt_compiler_needs_object
17283
17284 # Create an old-style archive from a shared archive.
17285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17286
17287 # Create a temporary old-style archive to link instead of a shared archive.
17288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17289
17290 # Commands used to build a shared archive.
17291 archive_cmds=$lt_archive_cmds
17292 archive_expsym_cmds=$lt_archive_expsym_cmds
17293
17294 # Commands used to build a loadable module if different from building
17295 # a shared archive.
17296 module_cmds=$lt_module_cmds
17297 module_expsym_cmds=$lt_module_expsym_cmds
17298
17299 # Whether we are building with GNU ld or not.
17300 with_gnu_ld=$lt_with_gnu_ld
17301
17302 # Flag that allows shared libraries with undefined symbols to be built.
17303 allow_undefined_flag=$lt_allow_undefined_flag
17304
17305 # Flag that enforces no undefined symbols.
17306 no_undefined_flag=$lt_no_undefined_flag
17307
17308 # Flag to hardcode \$libdir into a binary during linking.
17309 # This must work even if \$libdir does not exist
17310 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17311
17312 # Whether we need a single "-rpath" flag with a separated argument.
17313 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17314
17315 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17316 # DIR into the resulting binary.
17317 hardcode_direct=$hardcode_direct
17318
17319 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17320 # DIR into the resulting binary and the resulting library dependency is
17321 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17322 # library is relocated.
17323 hardcode_direct_absolute=$hardcode_direct_absolute
17324
17325 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17326 # into the resulting binary.
17327 hardcode_minus_L=$hardcode_minus_L
17328
17329 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17330 # into the resulting binary.
17331 hardcode_shlibpath_var=$hardcode_shlibpath_var
17332
17333 # Set to "yes" if building a shared library automatically hardcodes DIR
17334 # into the library and all subsequent libraries and executables linked
17335 # against it.
17336 hardcode_automatic=$hardcode_automatic
17337
17338 # Set to yes if linker adds runtime paths of dependent libraries
17339 # to runtime path list.
17340 inherit_rpath=$inherit_rpath
17341
17342 # Whether libtool must link a program against all its dependency libraries.
17343 link_all_deplibs=$link_all_deplibs
17344
17345 # Set to "yes" if exported symbols are required.
17346 always_export_symbols=$always_export_symbols
17347
17348 # The commands to list exported symbols.
17349 export_symbols_cmds=$lt_export_symbols_cmds
17350
17351 # Symbols that should not be listed in the preloaded symbols.
17352 exclude_expsyms=$lt_exclude_expsyms
17353
17354 # Symbols that must always be exported.
17355 include_expsyms=$lt_include_expsyms
17356
17357 # Commands necessary for linking programs (against libraries) with templates.
17358 prelink_cmds=$lt_prelink_cmds
17359
17360 # Commands necessary for finishing linking programs.
17361 postlink_cmds=$lt_postlink_cmds
17362
17363 # Specify filename containing input files.
17364 file_list_spec=$lt_file_list_spec
17365
17366 # How to hardcode a shared library path into an executable.
17367 hardcode_action=$hardcode_action
17368
17369 # ### END LIBTOOL CONFIG
17370
17371 _LT_EOF
17372
17373   case $host_os in
17374   aix3*)
17375     cat <<\_LT_EOF >> "$cfgfile"
17376 # AIX sometimes has problems with the GCC collect2 program.  For some
17377 # reason, if we set the COLLECT_NAMES environment variable, the problems
17378 # vanish in a puff of smoke.
17379 if test "X${COLLECT_NAMES+set}" != Xset; then
17380   COLLECT_NAMES=
17381   export COLLECT_NAMES
17382 fi
17383 _LT_EOF
17384     ;;
17385   esac
17386
17387
17388 ltmain="$ac_aux_dir/ltmain.sh"
17389
17390
17391   # We use sed instead of cat because bash on DJGPP gets confused if
17392   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17393   # text mode, it properly converts lines to CR/LF.  This bash problem
17394   # is reportedly fixed, but why not run on old versions too?
17395   sed '$q' "$ltmain" >> "$cfgfile" \
17396      || (rm -f "$cfgfile"; exit 1)
17397
17398   if test x"$xsi_shell" = xyes; then
17399   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17400 func_dirname ()\
17401 {\
17402 \    case ${1} in\
17403 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17404 \      *  ) func_dirname_result="${3}" ;;\
17405 \    esac\
17406 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17407   && mv -f "$cfgfile.tmp" "$cfgfile" \
17408     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17409 test 0 -eq $? || _lt_function_replace_fail=:
17410
17411
17412   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17413 func_basename ()\
17414 {\
17415 \    func_basename_result="${1##*/}"\
17416 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17417   && mv -f "$cfgfile.tmp" "$cfgfile" \
17418     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17419 test 0 -eq $? || _lt_function_replace_fail=:
17420
17421
17422   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17423 func_dirname_and_basename ()\
17424 {\
17425 \    case ${1} in\
17426 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17427 \      *  ) func_dirname_result="${3}" ;;\
17428 \    esac\
17429 \    func_basename_result="${1##*/}"\
17430 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17431   && mv -f "$cfgfile.tmp" "$cfgfile" \
17432     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17434
17435
17436   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17437 func_stripname ()\
17438 {\
17439 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17440 \    # positional parameters, so assign one to ordinary parameter first.\
17441 \    func_stripname_result=${3}\
17442 \    func_stripname_result=${func_stripname_result#"${1}"}\
17443 \    func_stripname_result=${func_stripname_result%"${2}"}\
17444 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17445   && mv -f "$cfgfile.tmp" "$cfgfile" \
17446     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17447 test 0 -eq $? || _lt_function_replace_fail=:
17448
17449
17450   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17451 func_split_long_opt ()\
17452 {\
17453 \    func_split_long_opt_name=${1%%=*}\
17454 \    func_split_long_opt_arg=${1#*=}\
17455 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17456   && mv -f "$cfgfile.tmp" "$cfgfile" \
17457     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17458 test 0 -eq $? || _lt_function_replace_fail=:
17459
17460
17461   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17462 func_split_short_opt ()\
17463 {\
17464 \    func_split_short_opt_arg=${1#??}\
17465 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17466 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17467   && mv -f "$cfgfile.tmp" "$cfgfile" \
17468     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17469 test 0 -eq $? || _lt_function_replace_fail=:
17470
17471
17472   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17473 func_lo2o ()\
17474 {\
17475 \    case ${1} in\
17476 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17477 \      *)    func_lo2o_result=${1} ;;\
17478 \    esac\
17479 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17480   && mv -f "$cfgfile.tmp" "$cfgfile" \
17481     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17482 test 0 -eq $? || _lt_function_replace_fail=:
17483
17484
17485   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17486 func_xform ()\
17487 {\
17488     func_xform_result=${1%.*}.lo\
17489 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17490   && mv -f "$cfgfile.tmp" "$cfgfile" \
17491     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17492 test 0 -eq $? || _lt_function_replace_fail=:
17493
17494
17495   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17496 func_arith ()\
17497 {\
17498     func_arith_result=$(( $* ))\
17499 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17500   && mv -f "$cfgfile.tmp" "$cfgfile" \
17501     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17502 test 0 -eq $? || _lt_function_replace_fail=:
17503
17504
17505   sed -e '/^func_len ()$/,/^} # func_len /c\
17506 func_len ()\
17507 {\
17508     func_len_result=${#1}\
17509 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17510   && mv -f "$cfgfile.tmp" "$cfgfile" \
17511     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17512 test 0 -eq $? || _lt_function_replace_fail=:
17513
17514 fi
17515
17516 if test x"$lt_shell_append" = xyes; then
17517   sed -e '/^func_append ()$/,/^} # func_append /c\
17518 func_append ()\
17519 {\
17520     eval "${1}+=\\${2}"\
17521 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17522   && mv -f "$cfgfile.tmp" "$cfgfile" \
17523     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17524 test 0 -eq $? || _lt_function_replace_fail=:
17525
17526
17527   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17528 func_append_quoted ()\
17529 {\
17530 \    func_quote_for_eval "${2}"\
17531 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17532 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17533   && mv -f "$cfgfile.tmp" "$cfgfile" \
17534     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17535 test 0 -eq $? || _lt_function_replace_fail=:
17536
17537
17538   # Save a `func_append' function call where possible by direct use of '+='
17539   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17540     && mv -f "$cfgfile.tmp" "$cfgfile" \
17541       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17542   test 0 -eq $? || _lt_function_replace_fail=:
17543 else
17544   # Save a `func_append' function call even when '+=' is not available
17545   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17546     && mv -f "$cfgfile.tmp" "$cfgfile" \
17547       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17548   test 0 -eq $? || _lt_function_replace_fail=:
17549 fi
17550
17551 if test x"$_lt_function_replace_fail" = x":"; then
17552   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17553 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17554 fi
17555
17556
17557    mv -f "$cfgfile" "$ofile" ||
17558     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17559   chmod +x "$ofile"
17560
17561  ;;
17562     "include":C) test -d include || mkdir include ;;
17563     "src":C)
17564 test -d src || mkdir src
17565 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17566  ;;
17567
17568   esac
17569 done # for ac_tag
17570
17571
17572 as_fn_exit 0
17573 _ACEOF
17574 ac_clean_files=$ac_clean_files_save
17575
17576 test $ac_write_fail = 0 ||
17577   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17578
17579
17580 # configure is writing to config.log, and then calls config.status.
17581 # config.status does its own redirection, appending to config.log.
17582 # Unfortunately, on DOS this fails, as config.log is still kept open
17583 # by configure, so config.status won't be able to write to it; its
17584 # output is simply discarded.  So we exec the FD to /dev/null,
17585 # effectively closing config.log, so it can be properly (re)opened and
17586 # appended to by config.status.  When coming back to configure, we
17587 # need to make the FD available again.
17588 if test "$no_create" != yes; then
17589   ac_cs_success=:
17590   ac_config_status_args=
17591   test "$silent" = yes &&
17592     ac_config_status_args="$ac_config_status_args --quiet"
17593   exec 5>/dev/null
17594   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17595   exec 5>>config.log
17596   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17597   # would make configure fail if this is the last instruction.
17598   $ac_cs_success || as_fn_exit 1
17599 fi
17600 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17601   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17602 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17603 fi
17604