Merge branch 'master' of github.com:/atgreen/libffi
[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 AARCH64_FALSE
677 AARCH64_TRUE
678 POWERPC_FREEBSD_FALSE
679 POWERPC_FREEBSD_TRUE
680 POWERPC_DARWIN_FALSE
681 POWERPC_DARWIN_TRUE
682 POWERPC_AIX_FALSE
683 POWERPC_AIX_TRUE
684 POWERPC_FALSE
685 POWERPC_TRUE
686 MOXIE_FALSE
687 MOXIE_TRUE
688 METAG_FALSE
689 METAG_TRUE
690 MICROBLAZE_FALSE
691 MICROBLAZE_TRUE
692 M68K_FALSE
693 M68K_TRUE
694 M32R_FALSE
695 M32R_TRUE
696 IA64_FALSE
697 IA64_TRUE
698 ALPHA_FALSE
699 ALPHA_TRUE
700 X86_DARWIN_FALSE
701 X86_DARWIN_TRUE
702 X86_WIN64_FALSE
703 X86_WIN64_TRUE
704 X86_WIN32_FALSE
705 X86_WIN32_TRUE
706 X86_FREEBSD_FALSE
707 X86_FREEBSD_TRUE
708 X86_FALSE
709 X86_TRUE
710 SPARC_FALSE
711 SPARC_TRUE
712 BFIN_FALSE
713 BFIN_TRUE
714 MIPS_FALSE
715 MIPS_TRUE
716 AM_LTLDFLAGS
717 AM_RUNTESTFLAGS
718 TESTSUBDIR_FALSE
719 TESTSUBDIR_TRUE
720 MAINT
721 MAINTAINER_MODE_FALSE
722 MAINTAINER_MODE_TRUE
723 PRTDIAG
724 CPP
725 OTOOL64
726 OTOOL
727 LIPO
728 NMEDIT
729 DSYMUTIL
730 MANIFEST_TOOL
731 RANLIB
732 ac_ct_AR
733 AR
734 DLLTOOL
735 OBJDUMP
736 LN_S
737 NM
738 ac_ct_DUMPBIN
739 DUMPBIN
740 LD
741 FGREP
742 EGREP
743 GREP
744 SED
745 LIBTOOL
746 am__fastdepCCAS_FALSE
747 am__fastdepCCAS_TRUE
748 CCASDEPMODE
749 CCASFLAGS
750 CCAS
751 am__fastdepCC_FALSE
752 am__fastdepCC_TRUE
753 CCDEPMODE
754 am__nodep
755 AMDEPBACKSLASH
756 AMDEP_FALSE
757 AMDEP_TRUE
758 am__quote
759 am__include
760 DEPDIR
761 OBJEXT
762 EXEEXT
763 ac_ct_CC
764 CPPFLAGS
765 LDFLAGS
766 CFLAGS
767 CC
768 am__untar
769 am__tar
770 AMTAR
771 am__leading_dot
772 SET_MAKE
773 AWK
774 mkdir_p
775 MKDIR_P
776 INSTALL_STRIP_PROGRAM
777 STRIP
778 install_sh
779 MAKEINFO
780 AUTOHEADER
781 AUTOMAKE
782 AUTOCONF
783 ACLOCAL
784 VERSION
785 PACKAGE
786 CYGPATH_W
787 am__isrc
788 INSTALL_DATA
789 INSTALL_SCRIPT
790 INSTALL_PROGRAM
791 ax_enable_builddir_sed
792 target_os
793 target_vendor
794 target_cpu
795 target
796 host_os
797 host_vendor
798 host_cpu
799 host
800 build_os
801 build_vendor
802 build_cpu
803 build
804 target_alias
805 host_alias
806 build_alias
807 LIBS
808 ECHO_T
809 ECHO_N
810 ECHO_C
811 DEFS
812 mandir
813 localedir
814 libdir
815 psdir
816 pdfdir
817 dvidir
818 htmldir
819 infodir
820 docdir
821 oldincludedir
822 includedir
823 localstatedir
824 sharedstatedir
825 sysconfdir
826 datadir
827 datarootdir
828 libexecdir
829 sbindir
830 bindir
831 program_transform_name
832 prefix
833 exec_prefix
834 PACKAGE_URL
835 PACKAGE_BUGREPORT
836 PACKAGE_STRING
837 PACKAGE_VERSION
838 PACKAGE_TARNAME
839 PACKAGE_NAME
840 PATH_SEPARATOR
841 SHELL'
842 ac_subst_files=''
843 ac_user_opts='
844 enable_option_checking
845 enable_builddir
846 enable_dependency_tracking
847 enable_shared
848 enable_static
849 with_pic
850 enable_fast_install
851 with_gnu_ld
852 with_sysroot
853 enable_libtool_lock
854 enable_portable_binary
855 with_gcc_arch
856 enable_maintainer_mode
857 enable_pax_emutramp
858 enable_debug
859 enable_structs
860 enable_raw_api
861 enable_purify_safety
862 '
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CCAS
867 CCASFLAGS
868 CPP
869 CPPFLAGS'
870
871
872 # Initialize some variables set by options.
873 ac_init_help=
874 ac_init_version=false
875 ac_unrecognized_opts=
876 ac_unrecognized_sep=
877 # The variables have the same names as the options, with
878 # dashes changed to underlines.
879 cache_file=/dev/null
880 exec_prefix=NONE
881 no_create=
882 no_recursion=
883 prefix=NONE
884 program_prefix=NONE
885 program_suffix=NONE
886 program_transform_name=s,x,x,
887 silent=
888 site=
889 srcdir=
890 verbose=
891 x_includes=NONE
892 x_libraries=NONE
893
894 # Installation directory options.
895 # These are left unexpanded so users can "make install exec_prefix=/foo"
896 # and all the variables that are supposed to be based on exec_prefix
897 # by default will actually change.
898 # Use braces instead of parens because sh, perl, etc. also accept them.
899 # (The list follows the same order as the GNU Coding Standards.)
900 bindir='${exec_prefix}/bin'
901 sbindir='${exec_prefix}/sbin'
902 libexecdir='${exec_prefix}/libexec'
903 datarootdir='${prefix}/share'
904 datadir='${datarootdir}'
905 sysconfdir='${prefix}/etc'
906 sharedstatedir='${prefix}/com'
907 localstatedir='${prefix}/var'
908 includedir='${prefix}/include'
909 oldincludedir='/usr/include'
910 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
911 infodir='${datarootdir}/info'
912 htmldir='${docdir}'
913 dvidir='${docdir}'
914 pdfdir='${docdir}'
915 psdir='${docdir}'
916 libdir='${exec_prefix}/lib'
917 localedir='${datarootdir}/locale'
918 mandir='${datarootdir}/man'
919
920 ac_prev=
921 ac_dashdash=
922 for ac_option
923 do
924   # If the previous option needs an argument, assign it.
925   if test -n "$ac_prev"; then
926     eval $ac_prev=\$ac_option
927     ac_prev=
928     continue
929   fi
930
931   case $ac_option in
932   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
933   *=)   ac_optarg= ;;
934   *)    ac_optarg=yes ;;
935   esac
936
937   # Accept the important Cygnus configure options, so we can diagnose typos.
938
939   case $ac_dashdash$ac_option in
940   --)
941     ac_dashdash=yes ;;
942
943   -bindir | --bindir | --bindi | --bind | --bin | --bi)
944     ac_prev=bindir ;;
945   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
946     bindir=$ac_optarg ;;
947
948   -build | --build | --buil | --bui | --bu)
949     ac_prev=build_alias ;;
950   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
951     build_alias=$ac_optarg ;;
952
953   -cache-file | --cache-file | --cache-fil | --cache-fi \
954   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
955     ac_prev=cache_file ;;
956   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
957   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
958     cache_file=$ac_optarg ;;
959
960   --config-cache | -C)
961     cache_file=config.cache ;;
962
963   -datadir | --datadir | --datadi | --datad)
964     ac_prev=datadir ;;
965   -datadir=* | --datadir=* | --datadi=* | --datad=*)
966     datadir=$ac_optarg ;;
967
968   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
969   | --dataroo | --dataro | --datar)
970     ac_prev=datarootdir ;;
971   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
972   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
973     datarootdir=$ac_optarg ;;
974
975   -disable-* | --disable-*)
976     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
977     # Reject names that are not valid shell variable names.
978     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
979       as_fn_error $? "invalid feature name: $ac_useropt"
980     ac_useropt_orig=$ac_useropt
981     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
982     case $ac_user_opts in
983       *"
984 "enable_$ac_useropt"
985 "*) ;;
986       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
987          ac_unrecognized_sep=', ';;
988     esac
989     eval enable_$ac_useropt=no ;;
990
991   -docdir | --docdir | --docdi | --doc | --do)
992     ac_prev=docdir ;;
993   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
994     docdir=$ac_optarg ;;
995
996   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997     ac_prev=dvidir ;;
998   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
999     dvidir=$ac_optarg ;;
1000
1001   -enable-* | --enable-*)
1002     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1003     # Reject names that are not valid shell variable names.
1004     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1005       as_fn_error $? "invalid feature name: $ac_useropt"
1006     ac_useropt_orig=$ac_useropt
1007     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1008     case $ac_user_opts in
1009       *"
1010 "enable_$ac_useropt"
1011 "*) ;;
1012       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1013          ac_unrecognized_sep=', ';;
1014     esac
1015     eval enable_$ac_useropt=\$ac_optarg ;;
1016
1017   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1018   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1019   | --exec | --exe | --ex)
1020     ac_prev=exec_prefix ;;
1021   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1022   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1023   | --exec=* | --exe=* | --ex=*)
1024     exec_prefix=$ac_optarg ;;
1025
1026   -gas | --gas | --ga | --g)
1027     # Obsolete; use --with-gas.
1028     with_gas=yes ;;
1029
1030   -help | --help | --hel | --he | -h)
1031     ac_init_help=long ;;
1032   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1033     ac_init_help=recursive ;;
1034   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1035     ac_init_help=short ;;
1036
1037   -host | --host | --hos | --ho)
1038     ac_prev=host_alias ;;
1039   -host=* | --host=* | --hos=* | --ho=*)
1040     host_alias=$ac_optarg ;;
1041
1042   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1043     ac_prev=htmldir ;;
1044   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1045   | --ht=*)
1046     htmldir=$ac_optarg ;;
1047
1048   -includedir | --includedir | --includedi | --included | --include \
1049   | --includ | --inclu | --incl | --inc)
1050     ac_prev=includedir ;;
1051   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1052   | --includ=* | --inclu=* | --incl=* | --inc=*)
1053     includedir=$ac_optarg ;;
1054
1055   -infodir | --infodir | --infodi | --infod | --info | --inf)
1056     ac_prev=infodir ;;
1057   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1058     infodir=$ac_optarg ;;
1059
1060   -libdir | --libdir | --libdi | --libd)
1061     ac_prev=libdir ;;
1062   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1063     libdir=$ac_optarg ;;
1064
1065   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1066   | --libexe | --libex | --libe)
1067     ac_prev=libexecdir ;;
1068   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1069   | --libexe=* | --libex=* | --libe=*)
1070     libexecdir=$ac_optarg ;;
1071
1072   -localedir | --localedir | --localedi | --localed | --locale)
1073     ac_prev=localedir ;;
1074   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1075     localedir=$ac_optarg ;;
1076
1077   -localstatedir | --localstatedir | --localstatedi | --localstated \
1078   | --localstate | --localstat | --localsta | --localst | --locals)
1079     ac_prev=localstatedir ;;
1080   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1081   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1082     localstatedir=$ac_optarg ;;
1083
1084   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1085     ac_prev=mandir ;;
1086   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1087     mandir=$ac_optarg ;;
1088
1089   -nfp | --nfp | --nf)
1090     # Obsolete; use --without-fp.
1091     with_fp=no ;;
1092
1093   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1094   | --no-cr | --no-c | -n)
1095     no_create=yes ;;
1096
1097   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1098   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1099     no_recursion=yes ;;
1100
1101   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1102   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1103   | --oldin | --oldi | --old | --ol | --o)
1104     ac_prev=oldincludedir ;;
1105   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1106   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1107   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1108     oldincludedir=$ac_optarg ;;
1109
1110   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1111     ac_prev=prefix ;;
1112   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1113     prefix=$ac_optarg ;;
1114
1115   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1116   | --program-pre | --program-pr | --program-p)
1117     ac_prev=program_prefix ;;
1118   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1119   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1120     program_prefix=$ac_optarg ;;
1121
1122   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1123   | --program-suf | --program-su | --program-s)
1124     ac_prev=program_suffix ;;
1125   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1126   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1127     program_suffix=$ac_optarg ;;
1128
1129   -program-transform-name | --program-transform-name \
1130   | --program-transform-nam | --program-transform-na \
1131   | --program-transform-n | --program-transform- \
1132   | --program-transform | --program-transfor \
1133   | --program-transfo | --program-transf \
1134   | --program-trans | --program-tran \
1135   | --progr-tra | --program-tr | --program-t)
1136     ac_prev=program_transform_name ;;
1137   -program-transform-name=* | --program-transform-name=* \
1138   | --program-transform-nam=* | --program-transform-na=* \
1139   | --program-transform-n=* | --program-transform-=* \
1140   | --program-transform=* | --program-transfor=* \
1141   | --program-transfo=* | --program-transf=* \
1142   | --program-trans=* | --program-tran=* \
1143   | --progr-tra=* | --program-tr=* | --program-t=*)
1144     program_transform_name=$ac_optarg ;;
1145
1146   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1147     ac_prev=pdfdir ;;
1148   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1149     pdfdir=$ac_optarg ;;
1150
1151   -psdir | --psdir | --psdi | --psd | --ps)
1152     ac_prev=psdir ;;
1153   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1154     psdir=$ac_optarg ;;
1155
1156   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1157   | -silent | --silent | --silen | --sile | --sil)
1158     silent=yes ;;
1159
1160   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1161     ac_prev=sbindir ;;
1162   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1163   | --sbi=* | --sb=*)
1164     sbindir=$ac_optarg ;;
1165
1166   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1167   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1168   | --sharedst | --shareds | --shared | --share | --shar \
1169   | --sha | --sh)
1170     ac_prev=sharedstatedir ;;
1171   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1172   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1173   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1174   | --sha=* | --sh=*)
1175     sharedstatedir=$ac_optarg ;;
1176
1177   -site | --site | --sit)
1178     ac_prev=site ;;
1179   -site=* | --site=* | --sit=*)
1180     site=$ac_optarg ;;
1181
1182   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1183     ac_prev=srcdir ;;
1184   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1185     srcdir=$ac_optarg ;;
1186
1187   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1188   | --syscon | --sysco | --sysc | --sys | --sy)
1189     ac_prev=sysconfdir ;;
1190   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1191   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1192     sysconfdir=$ac_optarg ;;
1193
1194   -target | --target | --targe | --targ | --tar | --ta | --t)
1195     ac_prev=target_alias ;;
1196   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1197     target_alias=$ac_optarg ;;
1198
1199   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1200     verbose=yes ;;
1201
1202   -version | --version | --versio | --versi | --vers | -V)
1203     ac_init_version=: ;;
1204
1205   -with-* | --with-*)
1206     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1207     # Reject names that are not valid shell variable names.
1208     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209       as_fn_error $? "invalid package name: $ac_useropt"
1210     ac_useropt_orig=$ac_useropt
1211     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1212     case $ac_user_opts in
1213       *"
1214 "with_$ac_useropt"
1215 "*) ;;
1216       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1217          ac_unrecognized_sep=', ';;
1218     esac
1219     eval with_$ac_useropt=\$ac_optarg ;;
1220
1221   -without-* | --without-*)
1222     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1223     # Reject names that are not valid shell variable names.
1224     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225       as_fn_error $? "invalid package name: $ac_useropt"
1226     ac_useropt_orig=$ac_useropt
1227     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228     case $ac_user_opts in
1229       *"
1230 "with_$ac_useropt"
1231 "*) ;;
1232       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233          ac_unrecognized_sep=', ';;
1234     esac
1235     eval with_$ac_useropt=no ;;
1236
1237   --x)
1238     # Obsolete; use --with-x.
1239     with_x=yes ;;
1240
1241   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242   | --x-incl | --x-inc | --x-in | --x-i)
1243     ac_prev=x_includes ;;
1244   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246     x_includes=$ac_optarg ;;
1247
1248   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250     ac_prev=x_libraries ;;
1251   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253     x_libraries=$ac_optarg ;;
1254
1255   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1256 Try \`$0 --help' for more information"
1257     ;;
1258
1259   *=*)
1260     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1261     # Reject names that are not valid shell variable names.
1262     case $ac_envvar in #(
1263       '' | [0-9]* | *[!_$as_cr_alnum]* )
1264       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1265     esac
1266     eval $ac_envvar=\$ac_optarg
1267     export $ac_envvar ;;
1268
1269   *)
1270     # FIXME: should be removed in autoconf 3.0.
1271     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1275     ;;
1276
1277   esac
1278 done
1279
1280 if test -n "$ac_prev"; then
1281   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282   as_fn_error $? "missing argument to $ac_option"
1283 fi
1284
1285 if test -n "$ac_unrecognized_opts"; then
1286   case $enable_option_checking in
1287     no) ;;
1288     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1289     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290   esac
1291 fi
1292
1293 # Check all directory arguments for consistency.
1294 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295                 datadir sysconfdir sharedstatedir localstatedir includedir \
1296                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297                 libdir localedir mandir
1298 do
1299   eval ac_val=\$$ac_var
1300   # Remove trailing slashes.
1301   case $ac_val in
1302     */ )
1303       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304       eval $ac_var=\$ac_val;;
1305   esac
1306   # Be sure to have absolute directory names.
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1312 done
1313
1314 # There might be people who depend on the old broken behavior: `$host'
1315 # used to hold the argument of --host etc.
1316 # FIXME: To remove some day.
1317 build=$build_alias
1318 host=$host_alias
1319 target=$target_alias
1320
1321 # FIXME: To remove some day.
1322 if test "x$host_alias" != x; then
1323   if test "x$build_alias" = x; then
1324     cross_compiling=maybe
1325   elif test "x$build_alias" != "x$host_alias"; then
1326     cross_compiling=yes
1327   fi
1328 fi
1329
1330 ac_tool_prefix=
1331 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333 test "$silent" = yes && exec 6>/dev/null
1334
1335
1336 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337 ac_ls_di=`ls -di .` &&
1338 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1339   as_fn_error $? "working directory cannot be determined"
1340 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1341   as_fn_error $? "pwd does not report name of working directory"
1342
1343
1344 # Find the source files, if location was not specified.
1345 if test -z "$srcdir"; then
1346   ac_srcdir_defaulted=yes
1347   # Try the directory containing this script, then the parent directory.
1348   ac_confdir=`$as_dirname -- "$as_myself" ||
1349 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1350          X"$as_myself" : 'X\(//\)[^/]' \| \
1351          X"$as_myself" : 'X\(//\)$' \| \
1352          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1353 $as_echo X"$as_myself" |
1354     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)[^/].*/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\/\)$/{
1363             s//\1/
1364             q
1365           }
1366           /^X\(\/\).*/{
1367             s//\1/
1368             q
1369           }
1370           s/.*/./; q'`
1371   srcdir=$ac_confdir
1372   if test ! -r "$srcdir/$ac_unique_file"; then
1373     srcdir=..
1374   fi
1375 else
1376   ac_srcdir_defaulted=no
1377 fi
1378 if test ! -r "$srcdir/$ac_unique_file"; then
1379   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1380   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1381 fi
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 ac_abs_confdir=`(
1384         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1385         pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388   srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_env_${ac_var}_value=\$${ac_var}
1399   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407   # Omit some internal or obsolete options to make the list less imposing.
1408   # This message is too long to be a string in the A/UX 3.1 sh.
1409   cat <<_ACEOF
1410 \`configure' configures libffi 3.0.13 to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE.  See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420   -h, --help              display this help and exit
1421       --help=short        display options specific to this package
1422       --help=recursive    display the short help of all the included packages
1423   -V, --version           display version information and exit
1424   -q, --quiet, --silent   do not print \`checking ...' messages
1425       --cache-file=FILE   cache test results in FILE [disabled]
1426   -C, --config-cache      alias for \`--cache-file=config.cache'
1427   -n, --no-create         do not create output files
1428       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431   --prefix=PREFIX         install architecture-independent files in PREFIX
1432                           [$ac_default_prefix]
1433   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1434                           [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444   --bindir=DIR            user executables [EPREFIX/bin]
1445   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1446   --libexecdir=DIR        program executables [EPREFIX/libexec]
1447   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1448   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1449   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1450   --libdir=DIR            object code libraries [EPREFIX/lib]
1451   --includedir=DIR        C header files [PREFIX/include]
1452   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1453   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1454   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1455   --infodir=DIR           info documentation [DATAROOTDIR/info]
1456   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1457   --mandir=DIR            man documentation [DATAROOTDIR/man]
1458   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1459   --htmldir=DIR           html documentation [DOCDIR]
1460   --dvidir=DIR            dvi documentation [DOCDIR]
1461   --pdfdir=DIR            pdf documentation [DOCDIR]
1462   --psdir=DIR             ps documentation [DOCDIR]
1463 _ACEOF
1464
1465   cat <<\_ACEOF
1466
1467 Program names:
1468   --program-prefix=PREFIX            prepend PREFIX to installed program names
1469   --program-suffix=SUFFIX            append SUFFIX to installed program names
1470   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1471
1472 System types:
1473   --build=BUILD     configure for building on BUILD [guessed]
1474   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1475   --target=TARGET   configure for building compilers for TARGET [HOST]
1476 _ACEOF
1477 fi
1478
1479 if test -n "$ac_init_help"; then
1480   case $ac_init_help in
1481      short | recursive ) echo "Configuration of libffi 3.0.13:";;
1482    esac
1483   cat <<\_ACEOF
1484
1485 Optional Features:
1486   --disable-option-checking  ignore unrecognized --enable/--with options
1487   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1488   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1489   --disable-builddir      disable automatic build in subdir of sources
1490
1491   --enable-dependency-tracking
1492                           do not reject slow dependency extractors
1493   --disable-dependency-tracking
1494                           speeds up one-time build
1495   --enable-shared[=PKGS]  build shared libraries [default=yes]
1496   --enable-static[=PKGS]  build static libraries [default=yes]
1497   --enable-fast-install[=PKGS]
1498                           optimize for fast installation [default=yes]
1499   --disable-libtool-lock  avoid locking (might break parallel builds)
1500   --enable-portable-binary
1501                           disable compiler optimizations that would produce
1502                           unportable binaries
1503   --enable-maintainer-mode
1504                           enable make rules and dependencies not useful (and
1505                           sometimes confusing) to the casual installer
1506   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1507   --enable-debug          debugging mode
1508   --disable-structs       omit code for struct support
1509   --disable-raw-api       make the raw api unavailable
1510   --enable-purify-safety  purify-safe mode
1511
1512 Optional Packages:
1513   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1516                           both]
1517   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1518   --with-sysroot=DIR Search for dependent libraries within DIR
1519                         (or the compiler's sysroot if not specified).
1520   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1521                           instead of guessing
1522
1523 Some influential environment variables:
1524   CC          C compiler command
1525   CFLAGS      C compiler flags
1526   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1527               nonstandard directory <lib dir>
1528   LIBS        libraries to pass to the linker, e.g. -l<library>
1529   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1530               you have headers in a nonstandard directory <include dir>
1531   CCAS        assembler compiler command (defaults to CC)
1532   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1533   CPP         C preprocessor
1534
1535 Use these variables to override the choices made by `configure' or to help
1536 it to find libraries and programs with nonstandard names/locations.
1537
1538 Report bugs to <http://github.com/atgreen/libffi/issues>.
1539 _ACEOF
1540 ac_status=$?
1541 fi
1542
1543 if test "$ac_init_help" = "recursive"; then
1544   # If there are subdirs, report their specific --help.
1545   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1546     test -d "$ac_dir" ||
1547       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548       continue
1549     ac_builddir=.
1550
1551 case "$ac_dir" in
1552 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 *)
1554   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1555   # A ".." for each directory in $ac_dir_suffix.
1556   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1557   case $ac_top_builddir_sub in
1558   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560   esac ;;
1561 esac
1562 ac_abs_top_builddir=$ac_pwd
1563 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564 # for backward compatibility:
1565 ac_top_builddir=$ac_top_build_prefix
1566
1567 case $srcdir in
1568   .)  # We are building in place.
1569     ac_srcdir=.
1570     ac_top_srcdir=$ac_top_builddir_sub
1571     ac_abs_top_srcdir=$ac_pwd ;;
1572   [\\/]* | ?:[\\/]* )  # Absolute name.
1573     ac_srcdir=$srcdir$ac_dir_suffix;
1574     ac_top_srcdir=$srcdir
1575     ac_abs_top_srcdir=$srcdir ;;
1576   *) # Relative name.
1577     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578     ac_top_srcdir=$ac_top_build_prefix$srcdir
1579     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 esac
1581 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582
1583     cd "$ac_dir" || { ac_status=$?; continue; }
1584     # Check for guested configure.
1585     if test -f "$ac_srcdir/configure.gnu"; then
1586       echo &&
1587       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588     elif test -f "$ac_srcdir/configure"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure" --help=recursive
1591     else
1592       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593     fi || ac_status=$?
1594     cd "$ac_pwd" || { ac_status=$?; break; }
1595   done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600   cat <<\_ACEOF
1601 libffi configure 3.0.13
1602 generated by GNU Autoconf 2.69
1603
1604 Copyright (C) 2012 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608   exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621   rm -f conftest.$ac_objext
1622   if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625   *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629   (eval "$ac_compile") 2>conftest.err
1630   ac_status=$?
1631   if test -s conftest.err; then
1632     grep -v '^ *+' conftest.err >conftest.er1
1633     cat conftest.er1 >&5
1634     mv -f conftest.er1 conftest.err
1635   fi
1636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637   test $ac_status = 0; } && {
1638          test -z "$ac_c_werror_flag" ||
1639          test ! -s conftest.err
1640        } && test -s conftest.$ac_objext; then :
1641   ac_retval=0
1642 else
1643   $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1645
1646         ac_retval=1
1647 fi
1648   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1649   as_fn_set_status $ac_retval
1650
1651 } # ac_fn_c_try_compile
1652
1653 # ac_fn_c_try_link LINENO
1654 # -----------------------
1655 # Try to link conftest.$ac_ext, and return whether this succeeded.
1656 ac_fn_c_try_link ()
1657 {
1658   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659   rm -f conftest.$ac_objext conftest$ac_exeext
1660   if { { ac_try="$ac_link"
1661 case "(($ac_try" in
1662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663   *) ac_try_echo=$ac_try;;
1664 esac
1665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666 $as_echo "$ac_try_echo"; } >&5
1667   (eval "$ac_link") 2>conftest.err
1668   ac_status=$?
1669   if test -s conftest.err; then
1670     grep -v '^ *+' conftest.err >conftest.er1
1671     cat conftest.er1 >&5
1672     mv -f conftest.er1 conftest.err
1673   fi
1674   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675   test $ac_status = 0; } && {
1676          test -z "$ac_c_werror_flag" ||
1677          test ! -s conftest.err
1678        } && test -s conftest$ac_exeext && {
1679          test "$cross_compiling" = yes ||
1680          test -x conftest$ac_exeext
1681        }; then :
1682   ac_retval=0
1683 else
1684   $as_echo "$as_me: failed program was:" >&5
1685 sed 's/^/| /' conftest.$ac_ext >&5
1686
1687         ac_retval=1
1688 fi
1689   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1690   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1691   # interfere with the next link command; also delete a directory that is
1692   # left behind by Apple's compiler.  We do this before executing the actions.
1693   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695   as_fn_set_status $ac_retval
1696
1697 } # ac_fn_c_try_link
1698
1699 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1700 # -------------------------------------------------------
1701 # Tests whether HEADER exists and can be compiled using the include files in
1702 # INCLUDES, setting the cache variable VAR accordingly.
1703 ac_fn_c_check_header_compile ()
1704 {
1705   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1707 $as_echo_n "checking for $2... " >&6; }
1708 if eval \${$3+:} false; then :
1709   $as_echo_n "(cached) " >&6
1710 else
1711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1712 /* end confdefs.h.  */
1713 $4
1714 #include <$2>
1715 _ACEOF
1716 if ac_fn_c_try_compile "$LINENO"; then :
1717   eval "$3=yes"
1718 else
1719   eval "$3=no"
1720 fi
1721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1722 fi
1723 eval ac_res=\$$3
1724                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1725 $as_echo "$ac_res" >&6; }
1726   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727
1728 } # ac_fn_c_check_header_compile
1729
1730 # ac_fn_c_try_cpp LINENO
1731 # ----------------------
1732 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1733 ac_fn_c_try_cpp ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   if { { ac_try="$ac_cpp conftest.$ac_ext"
1737 case "(($ac_try" in
1738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739   *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1744   ac_status=$?
1745   if test -s conftest.err; then
1746     grep -v '^ *+' conftest.err >conftest.er1
1747     cat conftest.er1 >&5
1748     mv -f conftest.er1 conftest.err
1749   fi
1750   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751   test $ac_status = 0; } > conftest.i && {
1752          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1753          test ! -s conftest.err
1754        }; then :
1755   ac_retval=0
1756 else
1757   $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.$ac_ext >&5
1759
1760     ac_retval=1
1761 fi
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763   as_fn_set_status $ac_retval
1764
1765 } # ac_fn_c_try_cpp
1766
1767 # ac_fn_c_try_run LINENO
1768 # ----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1770 # that executables *can* be run.
1771 ac_fn_c_try_run ()
1772 {
1773   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1774   if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777   *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781   (eval "$ac_link") 2>&5
1782   ac_status=$?
1783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1785   { { case "(($ac_try" in
1786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1787   *) ac_try_echo=$ac_try;;
1788 esac
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791   (eval "$ac_try") 2>&5
1792   ac_status=$?
1793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794   test $ac_status = 0; }; }; then :
1795   ac_retval=0
1796 else
1797   $as_echo "$as_me: program exited with status $ac_status" >&5
1798        $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1800
1801        ac_retval=$ac_status
1802 fi
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_run
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818   $as_echo_n "(cached) " >&6
1819 else
1820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824 #define $2 innocuous_$2
1825
1826 /* System header to define __stub macros and hopefully few prototypes,
1827     which can conflict with char $2 (); below.
1828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829     <limits.h> exists even on freestanding compilers.  */
1830
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1836
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840    Use char because int might match the return type of a GCC
1841    builtin and then its argument prototype would still apply.  */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847     to always fail with ENOSYS.  Some functions are actually named
1848     something starting with __ and the normal name is an alias.  */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main ()
1855 {
1856 return $2 ();
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext \
1867     conftest$ac_exeext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875
1876 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1877 # --------------------------------------------
1878 # Tries to find the compile-time value of EXPR in a program that includes
1879 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1880 # computed
1881 ac_fn_c_compute_int ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   if test "$cross_compiling" = yes; then
1885     # Depending upon the size, compute the lo and hi bounds.
1886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887 /* end confdefs.h.  */
1888 $4
1889 int
1890 main ()
1891 {
1892 static int test_array [1 - 2 * !(($2) >= 0)];
1893 test_array [0] = 0;
1894 return test_array [0];
1895
1896   ;
1897   return 0;
1898 }
1899 _ACEOF
1900 if ac_fn_c_try_compile "$LINENO"; then :
1901   ac_lo=0 ac_mid=0
1902   while :; do
1903     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h.  */
1905 $4
1906 int
1907 main ()
1908 {
1909 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1910 test_array [0] = 0;
1911 return test_array [0];
1912
1913   ;
1914   return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918   ac_hi=$ac_mid; break
1919 else
1920   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1921                         if test $ac_lo -le $ac_mid; then
1922                           ac_lo= ac_hi=
1923                           break
1924                         fi
1925                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1926 fi
1927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928   done
1929 else
1930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h.  */
1932 $4
1933 int
1934 main ()
1935 {
1936 static int test_array [1 - 2 * !(($2) < 0)];
1937 test_array [0] = 0;
1938 return test_array [0];
1939
1940   ;
1941   return 0;
1942 }
1943 _ACEOF
1944 if ac_fn_c_try_compile "$LINENO"; then :
1945   ac_hi=-1 ac_mid=-1
1946   while :; do
1947     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h.  */
1949 $4
1950 int
1951 main ()
1952 {
1953 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1954 test_array [0] = 0;
1955 return test_array [0];
1956
1957   ;
1958   return 0;
1959 }
1960 _ACEOF
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962   ac_lo=$ac_mid; break
1963 else
1964   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1965                         if test $ac_mid -le $ac_hi; then
1966                           ac_lo= ac_hi=
1967                           break
1968                         fi
1969                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1970 fi
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972   done
1973 else
1974   ac_lo= ac_hi=
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 # Binary search between lo and hi bounds.
1980 while test "x$ac_lo" != "x$ac_hi"; do
1981   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 $4
1985 int
1986 main ()
1987 {
1988 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1989 test_array [0] = 0;
1990 return test_array [0];
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_hi=$ac_mid
1998 else
1999   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2000 fi
2001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 done
2003 case $ac_lo in #((
2004 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2005 '') ac_retval=1 ;;
2006 esac
2007   else
2008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h.  */
2010 $4
2011 static long int longval () { return $2; }
2012 static unsigned long int ulongval () { return $2; }
2013 #include <stdio.h>
2014 #include <stdlib.h>
2015 int
2016 main ()
2017 {
2018
2019   FILE *f = fopen ("conftest.val", "w");
2020   if (! f)
2021     return 1;
2022   if (($2) < 0)
2023     {
2024       long int i = longval ();
2025       if (i != ($2))
2026         return 1;
2027       fprintf (f, "%ld", i);
2028     }
2029   else
2030     {
2031       unsigned long int i = ulongval ();
2032       if (i != ($2))
2033         return 1;
2034       fprintf (f, "%lu", i);
2035     }
2036   /* Do not output a trailing newline, as this causes \r\n confusion
2037      on some platforms.  */
2038   return ferror (f) || fclose (f) != 0;
2039
2040   ;
2041   return 0;
2042 }
2043 _ACEOF
2044 if ac_fn_c_try_run "$LINENO"; then :
2045   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2046 else
2047   ac_retval=1
2048 fi
2049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2050   conftest.$ac_objext conftest.beam conftest.$ac_ext
2051 rm -f conftest.val
2052
2053   fi
2054   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055   as_fn_set_status $ac_retval
2056
2057 } # ac_fn_c_compute_int
2058
2059 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2062 # the include files in INCLUDES and setting the cache variable VAR
2063 # accordingly.
2064 ac_fn_c_check_header_mongrel ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   if eval \${$3+:} false; then :
2068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071   $as_echo_n "(cached) " >&6
2072 fi
2073 eval ac_res=\$$3
2074                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 $as_echo "$ac_res" >&6; }
2076 else
2077   # Is the header compilable?
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2079 $as_echo_n "checking $2 usability... " >&6; }
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h.  */
2082 $4
2083 #include <$2>
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2086   ac_header_compiler=yes
2087 else
2088   ac_header_compiler=no
2089 fi
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2092 $as_echo "$ac_header_compiler" >&6; }
2093
2094 # Is the header present?
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2096 $as_echo_n "checking $2 presence... " >&6; }
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h.  */
2099 #include <$2>
2100 _ACEOF
2101 if ac_fn_c_try_cpp "$LINENO"; then :
2102   ac_header_preproc=yes
2103 else
2104   ac_header_preproc=no
2105 fi
2106 rm -f conftest.err conftest.i conftest.$ac_ext
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2108 $as_echo "$ac_header_preproc" >&6; }
2109
2110 # So?  What about this header?
2111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2112   yes:no: )
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2114 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2115     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2116 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2117     ;;
2118   no:yes:* )
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2120 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2122 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2124 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2126 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2127     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2128 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2129 ( $as_echo "## ------------------------------------------------------ ##
2130 ## Report this to http://github.com/atgreen/libffi/issues ##
2131 ## ------------------------------------------------------ ##"
2132      ) | sed "s/^/$as_me: WARNING:     /" >&2
2133     ;;
2134 esac
2135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \${$3+:} false; then :
2138   $as_echo_n "(cached) " >&6
2139 else
2140   eval "$3=\$ac_header_compiler"
2141 fi
2142 eval ac_res=\$$3
2143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 fi
2146   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147
2148 } # ac_fn_c_check_header_mongrel
2149
2150 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2151 # -------------------------------------------
2152 # Tests whether TYPE exists after having included INCLUDES, setting cache
2153 # variable VAR accordingly.
2154 ac_fn_c_check_type ()
2155 {
2156   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158 $as_echo_n "checking for $2... " >&6; }
2159 if eval \${$3+:} false; then :
2160   $as_echo_n "(cached) " >&6
2161 else
2162   eval "$3=no"
2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $4
2166 int
2167 main ()
2168 {
2169 if (sizeof ($2))
2170          return 0;
2171   ;
2172   return 0;
2173 }
2174 _ACEOF
2175 if ac_fn_c_try_compile "$LINENO"; then :
2176   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h.  */
2178 $4
2179 int
2180 main ()
2181 {
2182 if (sizeof (($2)))
2183             return 0;
2184   ;
2185   return 0;
2186 }
2187 _ACEOF
2188 if ac_fn_c_try_compile "$LINENO"; then :
2189
2190 else
2191   eval "$3=yes"
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 fi
2197 eval ac_res=\$$3
2198                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2199 $as_echo "$ac_res" >&6; }
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201
2202 } # ac_fn_c_check_type
2203 cat >config.log <<_ACEOF
2204 This file contains any messages produced by compilers while
2205 running configure, to aid debugging if configure makes a mistake.
2206
2207 It was created by libffi $as_me 3.0.13, which was
2208 generated by GNU Autoconf 2.69.  Invocation command line was
2209
2210   $ $0 $@
2211
2212 _ACEOF
2213 exec 5>>config.log
2214 {
2215 cat <<_ASUNAME
2216 ## --------- ##
2217 ## Platform. ##
2218 ## --------- ##
2219
2220 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2221 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2222 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2223 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2224 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2225
2226 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2227 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2228
2229 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2230 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2231 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2232 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2233 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2234 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2235 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2236
2237 _ASUNAME
2238
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244     $as_echo "PATH: $as_dir"
2245   done
2246 IFS=$as_save_IFS
2247
2248 } >&5
2249
2250 cat >&5 <<_ACEOF
2251
2252
2253 ## ----------- ##
2254 ## Core tests. ##
2255 ## ----------- ##
2256
2257 _ACEOF
2258
2259
2260 # Keep a trace of the command line.
2261 # Strip out --no-create and --no-recursion so they do not pile up.
2262 # Strip out --silent because we don't want to record it for future runs.
2263 # Also quote any args containing shell meta-characters.
2264 # Make two passes to allow for proper duplicate-argument suppression.
2265 ac_configure_args=
2266 ac_configure_args0=
2267 ac_configure_args1=
2268 ac_must_keep_next=false
2269 for ac_pass in 1 2
2270 do
2271   for ac_arg
2272   do
2273     case $ac_arg in
2274     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2275     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2276     | -silent | --silent | --silen | --sile | --sil)
2277       continue ;;
2278     *\'*)
2279       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2280     esac
2281     case $ac_pass in
2282     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2283     2)
2284       as_fn_append ac_configure_args1 " '$ac_arg'"
2285       if test $ac_must_keep_next = true; then
2286         ac_must_keep_next=false # Got value, back to normal.
2287       else
2288         case $ac_arg in
2289           *=* | --config-cache | -C | -disable-* | --disable-* \
2290           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2291           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2292           | -with-* | --with-* | -without-* | --without-* | --x)
2293             case "$ac_configure_args0 " in
2294               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2295             esac
2296             ;;
2297           -* ) ac_must_keep_next=true ;;
2298         esac
2299       fi
2300       as_fn_append ac_configure_args " '$ac_arg'"
2301       ;;
2302     esac
2303   done
2304 done
2305 { ac_configure_args0=; unset ac_configure_args0;}
2306 { ac_configure_args1=; unset ac_configure_args1;}
2307
2308 # When interrupted or exit'd, cleanup temporary files, and complete
2309 # config.log.  We remove comments because anyway the quotes in there
2310 # would cause problems or look ugly.
2311 # WARNING: Use '\'' to represent an apostrophe within the trap.
2312 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2313 trap 'exit_status=$?
2314   # Save into config.log some information that might help in debugging.
2315   {
2316     echo
2317
2318     $as_echo "## ---------------- ##
2319 ## Cache variables. ##
2320 ## ---------------- ##"
2321     echo
2322     # The following way of writing the cache mishandles newlines in values,
2323 (
2324   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2325     eval ac_val=\$$ac_var
2326     case $ac_val in #(
2327     *${as_nl}*)
2328       case $ac_var in #(
2329       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2330 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2331       esac
2332       case $ac_var in #(
2333       _ | IFS | as_nl) ;; #(
2334       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2335       *) { eval $ac_var=; unset $ac_var;} ;;
2336       esac ;;
2337     esac
2338   done
2339   (set) 2>&1 |
2340     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2341     *${as_nl}ac_space=\ *)
2342       sed -n \
2343         "s/'\''/'\''\\\\'\'''\''/g;
2344           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2345       ;; #(
2346     *)
2347       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2348       ;;
2349     esac |
2350     sort
2351 )
2352     echo
2353
2354     $as_echo "## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##"
2357     echo
2358     for ac_var in $ac_subst_vars
2359     do
2360       eval ac_val=\$$ac_var
2361       case $ac_val in
2362       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2363       esac
2364       $as_echo "$ac_var='\''$ac_val'\''"
2365     done | sort
2366     echo
2367
2368     if test -n "$ac_subst_files"; then
2369       $as_echo "## ------------------- ##
2370 ## File substitutions. ##
2371 ## ------------------- ##"
2372       echo
2373       for ac_var in $ac_subst_files
2374       do
2375         eval ac_val=\$$ac_var
2376         case $ac_val in
2377         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378         esac
2379         $as_echo "$ac_var='\''$ac_val'\''"
2380       done | sort
2381       echo
2382     fi
2383
2384     if test -s confdefs.h; then
2385       $as_echo "## ----------- ##
2386 ## confdefs.h. ##
2387 ## ----------- ##"
2388       echo
2389       cat confdefs.h
2390       echo
2391     fi
2392     test "$ac_signal" != 0 &&
2393       $as_echo "$as_me: caught signal $ac_signal"
2394     $as_echo "$as_me: exit $exit_status"
2395   } >&5
2396   rm -f core *.core core.conftest.* &&
2397     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2398     exit $exit_status
2399 ' 0
2400 for ac_signal in 1 2 13 15; do
2401   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2402 done
2403 ac_signal=0
2404
2405 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2406 rm -f -r conftest* confdefs.h
2407
2408 $as_echo "/* confdefs.h */" > confdefs.h
2409
2410 # Predefined preprocessor variables.
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_NAME "$PACKAGE_NAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_STRING "$PACKAGE_STRING"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_URL "$PACKAGE_URL"
2434 _ACEOF
2435
2436
2437 # Let the site file select an alternate cache file if it wants to.
2438 # Prefer an explicitly selected file to automatically selected ones.
2439 ac_site_file1=NONE
2440 ac_site_file2=NONE
2441 if test -n "$CONFIG_SITE"; then
2442   # We do not want a PATH search for config.site.
2443   case $CONFIG_SITE in #((
2444     -*)  ac_site_file1=./$CONFIG_SITE;;
2445     */*) ac_site_file1=$CONFIG_SITE;;
2446     *)   ac_site_file1=./$CONFIG_SITE;;
2447   esac
2448 elif test "x$prefix" != xNONE; then
2449   ac_site_file1=$prefix/share/config.site
2450   ac_site_file2=$prefix/etc/config.site
2451 else
2452   ac_site_file1=$ac_default_prefix/share/config.site
2453   ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457   test "x$ac_site_file" = xNONE && continue
2458   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461     sed 's/^/| /' "$ac_site_file" >&5
2462     . "$ac_site_file" \
2463       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2465 as_fn_error $? "failed to load site script $ac_site_file
2466 See \`config.log' for more details" "$LINENO" 5; }
2467   fi
2468 done
2469
2470 if test -r "$cache_file"; then
2471   # Some versions of bash will fail to source /dev/null (special files
2472   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2473   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2475 $as_echo "$as_me: loading cache $cache_file" >&6;}
2476     case $cache_file in
2477       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2478       *)                      . "./$cache_file";;
2479     esac
2480   fi
2481 else
2482   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2483 $as_echo "$as_me: creating cache $cache_file" >&6;}
2484   >$cache_file
2485 fi
2486
2487 # Check that the precious variables saved in the cache have kept the same
2488 # value.
2489 ac_cache_corrupted=false
2490 for ac_var in $ac_precious_vars; do
2491   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2492   eval ac_new_set=\$ac_env_${ac_var}_set
2493   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2494   eval ac_new_val=\$ac_env_${ac_var}_value
2495   case $ac_old_set,$ac_new_set in
2496     set,)
2497       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2499       ac_cache_corrupted=: ;;
2500     ,set)
2501       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2503       ac_cache_corrupted=: ;;
2504     ,);;
2505     *)
2506       if test "x$ac_old_val" != "x$ac_new_val"; then
2507         # differences in whitespace do not lead to failure.
2508         ac_old_val_w=`echo x $ac_old_val`
2509         ac_new_val_w=`echo x $ac_new_val`
2510         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2511           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2512 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2513           ac_cache_corrupted=:
2514         else
2515           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2516 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2517           eval $ac_var=\$ac_old_val
2518         fi
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2520 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2521         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2522 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2523       fi;;
2524   esac
2525   # Pass precious variables to config.status.
2526   if test "$ac_new_set" = set; then
2527     case $ac_new_val in
2528     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2529     *) ac_arg=$ac_var=$ac_new_val ;;
2530     esac
2531     case " $ac_configure_args " in
2532       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2533       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2534     esac
2535   fi
2536 done
2537 if $ac_cache_corrupted; then
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2539 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2540   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2541 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2542   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2543 fi
2544 ## -------------------- ##
2545 ## Main body of script. ##
2546 ## -------------------- ##
2547
2548 ac_ext=c
2549 ac_cpp='$CPP $CPPFLAGS'
2550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2553
2554
2555 ac_config_headers="$ac_config_headers fficonfig.h"
2556
2557
2558 ac_aux_dir=
2559 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2560   if test -f "$ac_dir/install-sh"; then
2561     ac_aux_dir=$ac_dir
2562     ac_install_sh="$ac_aux_dir/install-sh -c"
2563     break
2564   elif test -f "$ac_dir/install.sh"; then
2565     ac_aux_dir=$ac_dir
2566     ac_install_sh="$ac_aux_dir/install.sh -c"
2567     break
2568   elif test -f "$ac_dir/shtool"; then
2569     ac_aux_dir=$ac_dir
2570     ac_install_sh="$ac_aux_dir/shtool install -c"
2571     break
2572   fi
2573 done
2574 if test -z "$ac_aux_dir"; then
2575   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2576 fi
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2583 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2584 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2585
2586
2587 # Make sure we can run config.sub.
2588 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2589   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2590
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2592 $as_echo_n "checking build system type... " >&6; }
2593 if ${ac_cv_build+:} false; then :
2594   $as_echo_n "(cached) " >&6
2595 else
2596   ac_build_alias=$build_alias
2597 test "x$ac_build_alias" = x &&
2598   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2599 test "x$ac_build_alias" = x &&
2600   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2601 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2602   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2603
2604 fi
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2606 $as_echo "$ac_cv_build" >&6; }
2607 case $ac_cv_build in
2608 *-*-*) ;;
2609 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2610 esac
2611 build=$ac_cv_build
2612 ac_save_IFS=$IFS; IFS='-'
2613 set x $ac_cv_build
2614 shift
2615 build_cpu=$1
2616 build_vendor=$2
2617 shift; shift
2618 # Remember, the first character of IFS is used to create $*,
2619 # except with old shells:
2620 build_os=$*
2621 IFS=$ac_save_IFS
2622 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2623
2624
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2626 $as_echo_n "checking host system type... " >&6; }
2627 if ${ac_cv_host+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test "x$host_alias" = x; then
2631   ac_cv_host=$ac_cv_build
2632 else
2633   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2634     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2635 fi
2636
2637 fi
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2639 $as_echo "$ac_cv_host" >&6; }
2640 case $ac_cv_host in
2641 *-*-*) ;;
2642 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2643 esac
2644 host=$ac_cv_host
2645 ac_save_IFS=$IFS; IFS='-'
2646 set x $ac_cv_host
2647 shift
2648 host_cpu=$1
2649 host_vendor=$2
2650 shift; shift
2651 # Remember, the first character of IFS is used to create $*,
2652 # except with old shells:
2653 host_os=$*
2654 IFS=$ac_save_IFS
2655 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2656
2657
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2659 $as_echo_n "checking target system type... " >&6; }
2660 if ${ac_cv_target+:} false; then :
2661   $as_echo_n "(cached) " >&6
2662 else
2663   if test "x$target_alias" = x; then
2664   ac_cv_target=$ac_cv_host
2665 else
2666   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2667     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2668 fi
2669
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2672 $as_echo "$ac_cv_target" >&6; }
2673 case $ac_cv_target in
2674 *-*-*) ;;
2675 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2676 esac
2677 target=$ac_cv_target
2678 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_target
2680 shift
2681 target_cpu=$1
2682 target_vendor=$2
2683 shift; shift
2684 # Remember, the first character of IFS is used to create $*,
2685 # except with old shells:
2686 target_os=$*
2687 IFS=$ac_save_IFS
2688 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2689
2690
2691 # The aliases save the names the user supplied, while $host etc.
2692 # will get canonicalized.
2693 test -n "$target_alias" &&
2694   test "$program_prefix$program_suffix$program_transform_name" = \
2695     NONENONEs,x,x, &&
2696   program_prefix=${target_alias}-
2697
2698 target_alias=${target_alias-$host_alias}
2699
2700 . ${srcdir}/configure.host
2701
2702
2703    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2704    if test "${ac_configure_args+set}" != "set" ; then
2705       ac_configure_args=
2706       for ac_arg in ${1+"$@"}; do
2707          ac_configure_args="$ac_configure_args '$ac_arg'"
2708       done
2709    fi
2710
2711 # expand $ac_aux_dir to an absolute path
2712 am_aux_dir=`cd $ac_aux_dir && pwd`
2713
2714
2715 ax_enable_builddir="."
2716 # Check whether --enable-builddir was given.
2717 if test "${enable_builddir+set}" = set; then :
2718   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2719 else
2720   ax_enable_builddir="auto"
2721 fi
2722
2723 if test ".$ac_srcdir_defaulted" != ".no" ; then
2724 if test ".$srcdir" = ".." ; then
2725   if test -f config.status ; then
2726     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2727 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2728   else
2729     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2730     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2731     test ".$TARGET" = "." && TARGET="$target"
2732     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2733     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2734       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2735       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2736       cd $ax_enable_builddir
2737       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2738         rm conftest.tmp
2739         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2740 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2741       else
2742         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2743       fi
2744       srcdir=`echo "$ax_enable_builddir" |
2745               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2746       # going to restart from subdirectory location
2747       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2748       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2749       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2750       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2751       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2752 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2753       case "$0" in # restart
2754        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2755        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2756       esac ; exit $?
2757     fi
2758   fi
2759 fi fi
2760 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2761 # Extract the first word of "gsed sed", so it can be a program name with args.
2762 set dummy gsed sed; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2766   $as_echo_n "(cached) " >&6
2767 else
2768   case $ax_enable_builddir_sed in
2769   [\\/]* | ?:[\\/]*)
2770   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2771   ;;
2772   *)
2773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2775 do
2776   IFS=$as_save_IFS
2777   test -z "$as_dir" && as_dir=.
2778     for ac_exec_ext in '' $ac_executable_extensions; do
2779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2780     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782     break 2
2783   fi
2784 done
2785   done
2786 IFS=$as_save_IFS
2787
2788   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2789   ;;
2790 esac
2791 fi
2792 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2793 if test -n "$ax_enable_builddir_sed"; then
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2795 $as_echo "$ax_enable_builddir_sed" >&6; }
2796 else
2797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2799 fi
2800
2801
2802 ax_enable_builddir_auxdir="$am_aux_dir"
2803 ac_config_commands="$ac_config_commands buildir"
2804
2805
2806 am__api_version='1.12'
2807
2808 # Find a good install program.  We prefer a C program (faster),
2809 # so one script is as good as another.  But avoid the broken or
2810 # incompatible versions:
2811 # SysV /etc/install, /usr/sbin/install
2812 # SunOS /usr/etc/install
2813 # IRIX /sbin/install
2814 # AIX /bin/install
2815 # AmigaOS /C/install, which installs bootblocks on floppy discs
2816 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2817 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2818 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2819 # OS/2's system install, which has a completely different semantic
2820 # ./install, which can be erroneously created by make from ./install.sh.
2821 # Reject install programs that cannot install multiple files.
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2823 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2824 if test -z "$INSTALL"; then
2825 if ${ac_cv_path_install+:} false; then :
2826   $as_echo_n "(cached) " >&6
2827 else
2828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829 for as_dir in $PATH
2830 do
2831   IFS=$as_save_IFS
2832   test -z "$as_dir" && as_dir=.
2833     # Account for people who put trailing slashes in PATH elements.
2834 case $as_dir/ in #((
2835   ./ | .// | /[cC]/* | \
2836   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2837   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2838   /usr/ucb/* ) ;;
2839   *)
2840     # OSF1 and SCO ODT 3.0 have their own names for install.
2841     # Don't use installbsd from OSF since it installs stuff as root
2842     # by default.
2843     for ac_prog in ginstall scoinst install; do
2844       for ac_exec_ext in '' $ac_executable_extensions; do
2845         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2846           if test $ac_prog = install &&
2847             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848             # AIX install.  It has an incompatible calling convention.
2849             :
2850           elif test $ac_prog = install &&
2851             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2852             # program-specific install script used by HP pwplus--don't use.
2853             :
2854           else
2855             rm -rf conftest.one conftest.two conftest.dir
2856             echo one > conftest.one
2857             echo two > conftest.two
2858             mkdir conftest.dir
2859             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2860               test -s conftest.one && test -s conftest.two &&
2861               test -s conftest.dir/conftest.one &&
2862               test -s conftest.dir/conftest.two
2863             then
2864               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2865               break 3
2866             fi
2867           fi
2868         fi
2869       done
2870     done
2871     ;;
2872 esac
2873
2874   done
2875 IFS=$as_save_IFS
2876
2877 rm -rf conftest.one conftest.two conftest.dir
2878
2879 fi
2880   if test "${ac_cv_path_install+set}" = set; then
2881     INSTALL=$ac_cv_path_install
2882   else
2883     # As a last resort, use the slow shell script.  Don't cache a
2884     # value for INSTALL within a source directory, because that will
2885     # break other packages using the cache if that directory is
2886     # removed, or if the value is a relative name.
2887     INSTALL=$ac_install_sh
2888   fi
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2891 $as_echo "$INSTALL" >&6; }
2892
2893 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2894 # It thinks the first close brace ends the variable substitution.
2895 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2896
2897 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2898
2899 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2900
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2902 $as_echo_n "checking whether build environment is sane... " >&6; }
2903 # Reject unsafe characters in $srcdir or the absolute working directory
2904 # name.  Accept space and tab only in the latter.
2905 am_lf='
2906 '
2907 case `pwd` in
2908   *[\\\"\#\$\&\'\`$am_lf]*)
2909     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2910 esac
2911 case $srcdir in
2912   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2913     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2914 esac
2915
2916 # Do 'set' in a subshell so we don't clobber the current shell's
2917 # arguments.  Must try -L first in case configure is actually a
2918 # symlink; some systems play weird games with the mod time of symlinks
2919 # (eg FreeBSD returns the mod time of the symlink's containing
2920 # directory).
2921 if (
2922    am_has_slept=no
2923    for am_try in 1 2; do
2924      echo "timestamp, slept: $am_has_slept" > conftest.file
2925      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2926      if test "$*" = "X"; then
2927         # -L didn't work.
2928         set X `ls -t "$srcdir/configure" conftest.file`
2929      fi
2930      if test "$*" != "X $srcdir/configure conftest.file" \
2931         && test "$*" != "X conftest.file $srcdir/configure"; then
2932
2933         # If neither matched, then we have a broken ls.  This can happen
2934         # if, for instance, CONFIG_SHELL is bash and it inherits a
2935         # broken ls alias from the environment.  This has actually
2936         # happened.  Such a system could not be considered "sane".
2937         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2938   alias in your environment" "$LINENO" 5
2939      fi
2940      if test "$2" = conftest.file || test $am_try -eq 2; then
2941        break
2942      fi
2943      # Just in case.
2944      sleep 1
2945      am_has_slept=yes
2946    done
2947    test "$2" = conftest.file
2948    )
2949 then
2950    # Ok.
2951    :
2952 else
2953    as_fn_error $? "newly created file is older than distributed files!
2954 Check your system clock" "$LINENO" 5
2955 fi
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957 $as_echo "yes" >&6; }
2958 # If we didn't sleep, we still need to ensure time stamps of config.status and
2959 # generated files are strictly newer.
2960 am_sleep_pid=
2961 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2962   ( sleep 1 ) &
2963   am_sleep_pid=$!
2964 fi
2965
2966 rm -f conftest.file
2967
2968 test "$program_prefix" != NONE &&
2969   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2970 # Use a double $ so make ignores it.
2971 test "$program_suffix" != NONE &&
2972   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2973 # Double any \ or $.
2974 # By default was `s,x,x', remove it if useless.
2975 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2976 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2977
2978 if test x"${MISSING+set}" != xset; then
2979   case $am_aux_dir in
2980   *\ * | *\     *)
2981     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2982   *)
2983     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2984   esac
2985 fi
2986 # Use eval to expand $SHELL
2987 if eval "$MISSING --run true"; then
2988   am_missing_run="$MISSING --run "
2989 else
2990   am_missing_run=
2991   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2992 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2993 fi
2994
2995 if test x"${install_sh}" != xset; then
2996   case $am_aux_dir in
2997   *\ * | *\     *)
2998     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2999   *)
3000     install_sh="\${SHELL} $am_aux_dir/install-sh"
3001   esac
3002 fi
3003
3004 # Installed binaries are usually stripped using 'strip' when the user
3005 # run "make install-strip".  However 'strip' might not be the right
3006 # tool to use in cross-compilation environments, therefore Automake
3007 # will honor the 'STRIP' environment variable to overrule this program.
3008 if test "$cross_compiling" != no; then
3009   if test -n "$ac_tool_prefix"; then
3010   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}strip; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_STRIP+:} false; then :
3015   $as_echo_n "(cached) " >&6
3016 else
3017   if test -n "$STRIP"; then
3018   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3022 do
3023   IFS=$as_save_IFS
3024   test -z "$as_dir" && as_dir=.
3025     for ac_exec_ext in '' $ac_executable_extensions; do
3026   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3028     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029     break 2
3030   fi
3031 done
3032   done
3033 IFS=$as_save_IFS
3034
3035 fi
3036 fi
3037 STRIP=$ac_cv_prog_STRIP
3038 if test -n "$STRIP"; then
3039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3040 $as_echo "$STRIP" >&6; }
3041 else
3042   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3044 fi
3045
3046
3047 fi
3048 if test -z "$ac_cv_prog_STRIP"; then
3049   ac_ct_STRIP=$STRIP
3050   # Extract the first word of "strip", so it can be a program name with args.
3051 set dummy strip; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3055   $as_echo_n "(cached) " >&6
3056 else
3057   if test -n "$ac_ct_STRIP"; then
3058   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3062 do
3063   IFS=$as_save_IFS
3064   test -z "$as_dir" && as_dir=.
3065     for ac_exec_ext in '' $ac_executable_extensions; do
3066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067     ac_cv_prog_ac_ct_STRIP="strip"
3068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069     break 2
3070   fi
3071 done
3072   done
3073 IFS=$as_save_IFS
3074
3075 fi
3076 fi
3077 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3078 if test -n "$ac_ct_STRIP"; then
3079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3080 $as_echo "$ac_ct_STRIP" >&6; }
3081 else
3082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3084 fi
3085
3086   if test "x$ac_ct_STRIP" = x; then
3087     STRIP=":"
3088   else
3089     case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095     STRIP=$ac_ct_STRIP
3096   fi
3097 else
3098   STRIP="$ac_cv_prog_STRIP"
3099 fi
3100
3101 fi
3102 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3103
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3105 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3106 if test -z "$MKDIR_P"; then
3107   if ${ac_cv_path_mkdir+:} false; then :
3108   $as_echo_n "(cached) " >&6
3109 else
3110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115     for ac_prog in mkdir gmkdir; do
3116          for ac_exec_ext in '' $ac_executable_extensions; do
3117            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3118            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3119              'mkdir (GNU coreutils) '* | \
3120              'mkdir (coreutils) '* | \
3121              'mkdir (fileutils) '4.1*)
3122                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3123                break 3;;
3124            esac
3125          done
3126        done
3127   done
3128 IFS=$as_save_IFS
3129
3130 fi
3131
3132   test -d ./--version && rmdir ./--version
3133   if test "${ac_cv_path_mkdir+set}" = set; then
3134     MKDIR_P="$ac_cv_path_mkdir -p"
3135   else
3136     # As a last resort, use the slow shell script.  Don't cache a
3137     # value for MKDIR_P within a source directory, because that will
3138     # break other packages using the cache if that directory is
3139     # removed, or if the value is a relative name.
3140     MKDIR_P="$ac_install_sh -d"
3141   fi
3142 fi
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3144 $as_echo "$MKDIR_P" >&6; }
3145
3146 for ac_prog in gawk mawk nawk awk
3147 do
3148   # Extract the first word of "$ac_prog", so it can be a program name with args.
3149 set dummy $ac_prog; ac_word=$2
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3151 $as_echo_n "checking for $ac_word... " >&6; }
3152 if ${ac_cv_prog_AWK+:} false; then :
3153   $as_echo_n "(cached) " >&6
3154 else
3155   if test -n "$AWK"; then
3156   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3157 else
3158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3159 for as_dir in $PATH
3160 do
3161   IFS=$as_save_IFS
3162   test -z "$as_dir" && as_dir=.
3163     for ac_exec_ext in '' $ac_executable_extensions; do
3164   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3165     ac_cv_prog_AWK="$ac_prog"
3166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167     break 2
3168   fi
3169 done
3170   done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 AWK=$ac_cv_prog_AWK
3176 if test -n "$AWK"; then
3177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3178 $as_echo "$AWK" >&6; }
3179 else
3180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 $as_echo "no" >&6; }
3182 fi
3183
3184
3185   test -n "$AWK" && break
3186 done
3187
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3189 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3190 set x ${MAKE-make}
3191 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3192 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   cat >conftest.make <<\_ACEOF
3196 SHELL = /bin/sh
3197 all:
3198         @echo '@@@%%%=$(MAKE)=@@@%%%'
3199 _ACEOF
3200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3201 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3202   *@@@%%%=?*=@@@%%%*)
3203     eval ac_cv_prog_make_${ac_make}_set=yes;;
3204   *)
3205     eval ac_cv_prog_make_${ac_make}_set=no;;
3206 esac
3207 rm -f conftest.make
3208 fi
3209 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3211 $as_echo "yes" >&6; }
3212   SET_MAKE=
3213 else
3214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216   SET_MAKE="MAKE=${MAKE-make}"
3217 fi
3218
3219 rm -rf .tst 2>/dev/null
3220 mkdir .tst 2>/dev/null
3221 if test -d .tst; then
3222   am__leading_dot=.
3223 else
3224   am__leading_dot=_
3225 fi
3226 rmdir .tst 2>/dev/null
3227
3228 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3229   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3230   # is not polluted with repeated "-I."
3231   am__isrc=' -I$(srcdir)'
3232   # test to see if srcdir already configured
3233   if test -f $srcdir/config.status; then
3234     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3235   fi
3236 fi
3237
3238 # test whether we have cygpath
3239 if test -z "$CYGPATH_W"; then
3240   if (cygpath --version) >/dev/null 2>/dev/null; then
3241     CYGPATH_W='cygpath -w'
3242   else
3243     CYGPATH_W=echo
3244   fi
3245 fi
3246
3247
3248 # Define the identity of the package.
3249  PACKAGE='libffi'
3250  VERSION='3.0.13'
3251
3252
3253 cat >>confdefs.h <<_ACEOF
3254 #define PACKAGE "$PACKAGE"
3255 _ACEOF
3256
3257
3258 cat >>confdefs.h <<_ACEOF
3259 #define VERSION "$VERSION"
3260 _ACEOF
3261
3262 # Some tools Automake needs.
3263
3264 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3265
3266
3267 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3268
3269
3270 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3271
3272
3273 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3274
3275
3276 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3277
3278 # For better backward compatibility.  To be removed once Automake 1.9.x
3279 # dies out for good.  For more background, see:
3280 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3281 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3282 mkdir_p='$(MKDIR_P)'
3283
3284 # We need awk for the "check" target.  The system "awk" is bad on
3285 # some platforms.
3286 # Always define AMTAR for backward compatibility.  Yes, it's still used
3287 # in the wild :-(  We should find a proper way to deprecate it ...
3288 AMTAR='$${TAR-tar}'
3289
3290 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3291
3292
3293
3294
3295
3296
3297 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3298 # We must force CC to /not/ be precious variables; otherwise
3299 # the wrong, non-multilib-adjusted value will be used in multilibs.
3300 # As a side effect, we have to subst CFLAGS ourselves.
3301 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3302 # defaults of its own if none are provided.
3303
3304
3305
3306 save_CFLAGS=$CFLAGS
3307 ac_ext=c
3308 ac_cpp='$CPP $CPPFLAGS'
3309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 if test -n "$ac_tool_prefix"; then
3313   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3314 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 $as_echo_n "checking for $ac_word... " >&6; }
3317 if ${ac_cv_prog_CC+:} false; then :
3318   $as_echo_n "(cached) " >&6
3319 else
3320   if test -n "$CC"; then
3321   ac_cv_prog_CC="$CC" # Let the user override the test.
3322 else
3323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 for as_dir in $PATH
3325 do
3326   IFS=$as_save_IFS
3327   test -z "$as_dir" && as_dir=.
3328     for ac_exec_ext in '' $ac_executable_extensions; do
3329   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3330     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3331     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3332     break 2
3333   fi
3334 done
3335   done
3336 IFS=$as_save_IFS
3337
3338 fi
3339 fi
3340 CC=$ac_cv_prog_CC
3341 if test -n "$CC"; then
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3343 $as_echo "$CC" >&6; }
3344 else
3345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 fi
3348
3349
3350 fi
3351 if test -z "$ac_cv_prog_CC"; then
3352   ac_ct_CC=$CC
3353   # Extract the first word of "gcc", so it can be a program name with args.
3354 set dummy gcc; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3358   $as_echo_n "(cached) " >&6
3359 else
3360   if test -n "$ac_ct_CC"; then
3361   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366   IFS=$as_save_IFS
3367   test -z "$as_dir" && as_dir=.
3368     for ac_exec_ext in '' $ac_executable_extensions; do
3369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370     ac_cv_prog_ac_ct_CC="gcc"
3371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372     break 2
3373   fi
3374 done
3375   done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3381 if test -n "$ac_ct_CC"; then
3382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3383 $as_echo "$ac_ct_CC" >&6; }
3384 else
3385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389   if test "x$ac_ct_CC" = x; then
3390     CC=""
3391   else
3392     case $cross_compiling:$ac_tool_warned in
3393 yes:)
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3396 ac_tool_warned=yes ;;
3397 esac
3398     CC=$ac_ct_CC
3399   fi
3400 else
3401   CC="$ac_cv_prog_CC"
3402 fi
3403
3404 if test -z "$CC"; then
3405           if test -n "$ac_tool_prefix"; then
3406     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3407 set dummy ${ac_tool_prefix}cc; ac_word=$2
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409 $as_echo_n "checking for $ac_word... " >&6; }
3410 if ${ac_cv_prog_CC+:} false; then :
3411   $as_echo_n "(cached) " >&6
3412 else
3413   if test -n "$CC"; then
3414   ac_cv_prog_CC="$CC" # Let the user override the test.
3415 else
3416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 for as_dir in $PATH
3418 do
3419   IFS=$as_save_IFS
3420   test -z "$as_dir" && as_dir=.
3421     for ac_exec_ext in '' $ac_executable_extensions; do
3422   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3423     ac_cv_prog_CC="${ac_tool_prefix}cc"
3424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425     break 2
3426   fi
3427 done
3428   done
3429 IFS=$as_save_IFS
3430
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443   fi
3444 fi
3445 if test -z "$CC"; then
3446   # Extract the first word of "cc", so it can be a program name with args.
3447 set dummy cc; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_CC+:} false; then :
3451   $as_echo_n "(cached) " >&6
3452 else
3453   if test -n "$CC"; then
3454   ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456   ac_prog_rejected=no
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458 for as_dir in $PATH
3459 do
3460   IFS=$as_save_IFS
3461   test -z "$as_dir" && as_dir=.
3462     for ac_exec_ext in '' $ac_executable_extensions; do
3463   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3464     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3465        ac_prog_rejected=yes
3466        continue
3467      fi
3468     ac_cv_prog_CC="cc"
3469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3470     break 2
3471   fi
3472 done
3473   done
3474 IFS=$as_save_IFS
3475
3476 if test $ac_prog_rejected = yes; then
3477   # We found a bogon in the path, so make sure we never use it.
3478   set dummy $ac_cv_prog_CC
3479   shift
3480   if test $# != 0; then
3481     # We chose a different compiler from the bogus one.
3482     # However, it has the same basename, so the bogon will be chosen
3483     # first if we set CC to just the basename; use the full file name.
3484     shift
3485     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3486   fi
3487 fi
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500 fi
3501 if test -z "$CC"; then
3502   if test -n "$ac_tool_prefix"; then
3503   for ac_prog in cl.exe
3504   do
3505     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3506 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_CC+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   if test -n "$CC"; then
3513   ac_cv_prog_CC="$CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518   IFS=$as_save_IFS
3519   test -z "$as_dir" && as_dir=.
3520     for ac_exec_ext in '' $ac_executable_extensions; do
3521   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3523     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524     break 2
3525   fi
3526 done
3527   done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 CC=$ac_cv_prog_CC
3533 if test -n "$CC"; then
3534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535 $as_echo "$CC" >&6; }
3536 else
3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542     test -n "$CC" && break
3543   done
3544 fi
3545 if test -z "$CC"; then
3546   ac_ct_CC=$CC
3547   for ac_prog in cl.exe
3548 do
3549   # Extract the first word of "$ac_prog", so it can be a program name with args.
3550 set dummy $ac_prog; ac_word=$2
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3552 $as_echo_n "checking for $ac_word... " >&6; }
3553 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3554   $as_echo_n "(cached) " >&6
3555 else
3556   if test -n "$ac_ct_CC"; then
3557   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558 else
3559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 for as_dir in $PATH
3561 do
3562   IFS=$as_save_IFS
3563   test -z "$as_dir" && as_dir=.
3564     for ac_exec_ext in '' $ac_executable_extensions; do
3565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3566     ac_cv_prog_ac_ct_CC="$ac_prog"
3567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568     break 2
3569   fi
3570 done
3571   done
3572 IFS=$as_save_IFS
3573
3574 fi
3575 fi
3576 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3577 if test -n "$ac_ct_CC"; then
3578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3579 $as_echo "$ac_ct_CC" >&6; }
3580 else
3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3582 $as_echo "no" >&6; }
3583 fi
3584
3585
3586   test -n "$ac_ct_CC" && break
3587 done
3588
3589   if test "x$ac_ct_CC" = x; then
3590     CC=""
3591   else
3592     case $cross_compiling:$ac_tool_warned in
3593 yes:)
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3596 ac_tool_warned=yes ;;
3597 esac
3598     CC=$ac_ct_CC
3599   fi
3600 fi
3601
3602 fi
3603
3604
3605 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "no acceptable C compiler found in \$PATH
3608 See \`config.log' for more details" "$LINENO" 5; }
3609
3610 # Provide some information about the compiler.
3611 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3612 set X $ac_compile
3613 ac_compiler=$2
3614 for ac_option in --version -v -V -qversion; do
3615   { { ac_try="$ac_compiler $ac_option >&5"
3616 case "(($ac_try" in
3617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618   *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3623   ac_status=$?
3624   if test -s conftest.err; then
3625     sed '10a\
3626 ... rest of stderr output deleted ...
3627          10q' conftest.err >conftest.er1
3628     cat conftest.er1 >&5
3629   fi
3630   rm -f conftest.er1 conftest.err
3631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3632   test $ac_status = 0; }
3633 done
3634
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h.  */
3637
3638 int
3639 main ()
3640 {
3641
3642   ;
3643   return 0;
3644 }
3645 _ACEOF
3646 ac_clean_files_save=$ac_clean_files
3647 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3648 # Try to create an executable without -o first, disregard a.out.
3649 # It will help us diagnose broken compilers, and finding out an intuition
3650 # of exeext.
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3652 $as_echo_n "checking whether the C compiler works... " >&6; }
3653 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3654
3655 # The possible output files:
3656 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3657
3658 ac_rmfiles=
3659 for ac_file in $ac_files
3660 do
3661   case $ac_file in
3662     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3663     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3664   esac
3665 done
3666 rm -f $ac_rmfiles
3667
3668 if { { ac_try="$ac_link_default"
3669 case "(($ac_try" in
3670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3671   *) ac_try_echo=$ac_try;;
3672 esac
3673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3674 $as_echo "$ac_try_echo"; } >&5
3675   (eval "$ac_link_default") 2>&5
3676   ac_status=$?
3677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3678   test $ac_status = 0; }; then :
3679   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3680 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3681 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3682 # so that the user can short-circuit this test for compilers unknown to
3683 # Autoconf.
3684 for ac_file in $ac_files ''
3685 do
3686   test -f "$ac_file" || continue
3687   case $ac_file in
3688     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3689         ;;
3690     [ab].out )
3691         # We found the default executable, but exeext='' is most
3692         # certainly right.
3693         break;;
3694     *.* )
3695         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3696         then :; else
3697            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698         fi
3699         # We set ac_cv_exeext here because the later test for it is not
3700         # safe: cross compilers may not add the suffix if given an `-o'
3701         # argument, so we may need to know it at that point already.
3702         # Even if this section looks crufty: it has the advantage of
3703         # actually working.
3704         break;;
3705     * )
3706         break;;
3707   esac
3708 done
3709 test "$ac_cv_exeext" = no && ac_cv_exeext=
3710
3711 else
3712   ac_file=''
3713 fi
3714 if test -z "$ac_file"; then :
3715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716 $as_echo "no" >&6; }
3717 $as_echo "$as_me: failed program was:" >&5
3718 sed 's/^/| /' conftest.$ac_ext >&5
3719
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error 77 "C compiler cannot create executables
3723 See \`config.log' for more details" "$LINENO" 5; }
3724 else
3725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3726 $as_echo "yes" >&6; }
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3729 $as_echo_n "checking for C compiler default output file name... " >&6; }
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3731 $as_echo "$ac_file" >&6; }
3732 ac_exeext=$ac_cv_exeext
3733
3734 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3735 ac_clean_files=$ac_clean_files_save
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3737 $as_echo_n "checking for suffix of executables... " >&6; }
3738 if { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745   (eval "$ac_link") 2>&5
3746   ac_status=$?
3747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748   test $ac_status = 0; }; then :
3749   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3750 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3751 # work properly (i.e., refer to `conftest.exe'), while it won't with
3752 # `rm'.
3753 for ac_file in conftest.exe conftest conftest.*; do
3754   test -f "$ac_file" || continue
3755   case $ac_file in
3756     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3757     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3758           break;;
3759     * ) break;;
3760   esac
3761 done
3762 else
3763   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3766 See \`config.log' for more details" "$LINENO" 5; }
3767 fi
3768 rm -f conftest conftest$ac_cv_exeext
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3770 $as_echo "$ac_cv_exeext" >&6; }
3771
3772 rm -f conftest.$ac_ext
3773 EXEEXT=$ac_cv_exeext
3774 ac_exeext=$EXEEXT
3775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3776 /* end confdefs.h.  */
3777 #include <stdio.h>
3778 int
3779 main ()
3780 {
3781 FILE *f = fopen ("conftest.out", "w");
3782  return ferror (f) || fclose (f) != 0;
3783
3784   ;
3785   return 0;
3786 }
3787 _ACEOF
3788 ac_clean_files="$ac_clean_files conftest.out"
3789 # Check that the compiler produces executables we can run.  If not, either
3790 # the compiler is broken, or we cross compile.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3792 $as_echo_n "checking whether we are cross compiling... " >&6; }
3793 if test "$cross_compiling" != yes; then
3794   { { ac_try="$ac_link"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801   (eval "$ac_link") 2>&5
3802   ac_status=$?
3803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804   test $ac_status = 0; }
3805   if { ac_try='./conftest$ac_cv_exeext'
3806   { { case "(($ac_try" in
3807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808   *) ac_try_echo=$ac_try;;
3809 esac
3810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3811 $as_echo "$ac_try_echo"; } >&5
3812   (eval "$ac_try") 2>&5
3813   ac_status=$?
3814   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3815   test $ac_status = 0; }; }; then
3816     cross_compiling=no
3817   else
3818     if test "$cross_compiling" = maybe; then
3819         cross_compiling=yes
3820     else
3821         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 as_fn_error $? "cannot run C compiled programs.
3824 If you meant to cross compile, use \`--host'.
3825 See \`config.log' for more details" "$LINENO" 5; }
3826     fi
3827   fi
3828 fi
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3830 $as_echo "$cross_compiling" >&6; }
3831
3832 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3833 ac_clean_files=$ac_clean_files_save
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3835 $as_echo_n "checking for suffix of object files... " >&6; }
3836 if ${ac_cv_objext+:} false; then :
3837   $as_echo_n "(cached) " >&6
3838 else
3839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h.  */
3841
3842 int
3843 main ()
3844 {
3845
3846   ;
3847   return 0;
3848 }
3849 _ACEOF
3850 rm -f conftest.o conftest.obj
3851 if { { ac_try="$ac_compile"
3852 case "(($ac_try" in
3853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854   *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858   (eval "$ac_compile") 2>&5
3859   ac_status=$?
3860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861   test $ac_status = 0; }; then :
3862   for ac_file in conftest.o conftest.obj conftest.*; do
3863   test -f "$ac_file" || continue;
3864   case $ac_file in
3865     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3866     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3867        break;;
3868   esac
3869 done
3870 else
3871   $as_echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "cannot compute suffix of object files: cannot compile
3877 See \`config.log' for more details" "$LINENO" 5; }
3878 fi
3879 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3880 fi
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3882 $as_echo "$ac_cv_objext" >&6; }
3883 OBJEXT=$ac_cv_objext
3884 ac_objext=$OBJEXT
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3886 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3887 if ${ac_cv_c_compiler_gnu+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896 #ifndef __GNUC__
3897        choke me
3898 #endif
3899
3900   ;
3901   return 0;
3902 }
3903 _ACEOF
3904 if ac_fn_c_try_compile "$LINENO"; then :
3905   ac_compiler_gnu=yes
3906 else
3907   ac_compiler_gnu=no
3908 fi
3909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3911
3912 fi
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3914 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3915 if test $ac_compiler_gnu = yes; then
3916   GCC=yes
3917 else
3918   GCC=
3919 fi
3920 ac_test_CFLAGS=${CFLAGS+set}
3921 ac_save_CFLAGS=$CFLAGS
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3923 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3924 if ${ac_cv_prog_cc_g+:} false; then :
3925   $as_echo_n "(cached) " >&6
3926 else
3927   ac_save_c_werror_flag=$ac_c_werror_flag
3928    ac_c_werror_flag=yes
3929    ac_cv_prog_cc_g=no
3930    CFLAGS="-g"
3931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h.  */
3933
3934 int
3935 main ()
3936 {
3937
3938   ;
3939   return 0;
3940 }
3941 _ACEOF
3942 if ac_fn_c_try_compile "$LINENO"; then :
3943   ac_cv_prog_cc_g=yes
3944 else
3945   CFLAGS=""
3946       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* end confdefs.h.  */
3948
3949 int
3950 main ()
3951 {
3952
3953   ;
3954   return 0;
3955 }
3956 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958
3959 else
3960   ac_c_werror_flag=$ac_save_c_werror_flag
3961          CFLAGS="-g"
3962          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h.  */
3964
3965 int
3966 main ()
3967 {
3968
3969   ;
3970   return 0;
3971 }
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974   ac_cv_prog_cc_g=yes
3975 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3982 fi
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3984 $as_echo "$ac_cv_prog_cc_g" >&6; }
3985 if test "$ac_test_CFLAGS" = set; then
3986   CFLAGS=$ac_save_CFLAGS
3987 elif test $ac_cv_prog_cc_g = yes; then
3988   if test "$GCC" = yes; then
3989     CFLAGS="-g -O2"
3990   else
3991     CFLAGS="-g"
3992   fi
3993 else
3994   if test "$GCC" = yes; then
3995     CFLAGS="-O2"
3996   else
3997     CFLAGS=
3998   fi
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4001 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4002 if ${ac_cv_prog_cc_c89+:} false; then :
4003   $as_echo_n "(cached) " >&6
4004 else
4005   ac_cv_prog_cc_c89=no
4006 ac_save_CC=$CC
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h.  */
4009 #include <stdarg.h>
4010 #include <stdio.h>
4011 struct stat;
4012 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4013 struct buf { int x; };
4014 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4015 static char *e (p, i)
4016      char **p;
4017      int i;
4018 {
4019   return p[i];
4020 }
4021 static char *f (char * (*g) (char **, int), char **p, ...)
4022 {
4023   char *s;
4024   va_list v;
4025   va_start (v,p);
4026   s = g (p, va_arg (v,int));
4027   va_end (v);
4028   return s;
4029 }
4030
4031 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4032    function prototypes and stuff, but not '\xHH' hex character constants.
4033    These don't provoke an error unfortunately, instead are silently treated
4034    as 'x'.  The following induces an error, until -std is added to get
4035    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4036    array size at least.  It's necessary to write '\x00'==0 to get something
4037    that's true only with -std.  */
4038 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4039
4040 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4041    inside strings and character constants.  */
4042 #define FOO(x) 'x'
4043 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4044
4045 int test (int i, double x);
4046 struct s1 {int (*f) (int a);};
4047 struct s2 {int (*f) (double a);};
4048 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4049 int argc;
4050 char **argv;
4051 int
4052 main ()
4053 {
4054 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4055   ;
4056   return 0;
4057 }
4058 _ACEOF
4059 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4060         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4061 do
4062   CC="$ac_save_CC $ac_arg"
4063   if ac_fn_c_try_compile "$LINENO"; then :
4064   ac_cv_prog_cc_c89=$ac_arg
4065 fi
4066 rm -f core conftest.err conftest.$ac_objext
4067   test "x$ac_cv_prog_cc_c89" != "xno" && break
4068 done
4069 rm -f conftest.$ac_ext
4070 CC=$ac_save_CC
4071
4072 fi
4073 # AC_CACHE_VAL
4074 case "x$ac_cv_prog_cc_c89" in
4075   x)
4076     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4077 $as_echo "none needed" >&6; } ;;
4078   xno)
4079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4080 $as_echo "unsupported" >&6; } ;;
4081   *)
4082     CC="$CC $ac_cv_prog_cc_c89"
4083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4084 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4085 esac
4086 if test "x$ac_cv_prog_cc_c89" != xno; then :
4087
4088 fi
4089
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 DEPDIR="${am__leading_dot}deps"
4096
4097 ac_config_commands="$ac_config_commands depfiles"
4098
4099
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4102 am__doit:
4103         @echo this is the am__doit target
4104 .PHONY: am__doit
4105 END
4106 # If we don't find an include directive, just comment out the code.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4109 am__include="#"
4110 am__quote=
4111 _am_result=none
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # Ignore all kinds of additional output from 'make'.
4115 case `$am_make -s -f confmf 2> /dev/null` in #(
4116 *the\ am__doit\ target*)
4117   am__include=include
4118   am__quote=
4119   _am_result=GNU
4120   ;;
4121 esac
4122 # Now try BSD make style include.
4123 if test "$am__include" = "#"; then
4124    echo '.include "confinc"' > confmf
4125    case `$am_make -s -f confmf 2> /dev/null` in #(
4126    *the\ am__doit\ target*)
4127      am__include=.include
4128      am__quote="\""
4129      _am_result=BSD
4130      ;;
4131    esac
4132 fi
4133
4134
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4136 $as_echo "$_am_result" >&6; }
4137 rm -f confinc confmf
4138
4139 # Check whether --enable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then :
4141   enableval=$enable_dependency_tracking;
4142 fi
4143
4144 if test "x$enable_dependency_tracking" != xno; then
4145   am_depcomp="$ac_aux_dir/depcomp"
4146   AMDEPBACKSLASH='\'
4147   am__nodep='_no'
4148 fi
4149  if test "x$enable_dependency_tracking" != xno; then
4150   AMDEP_TRUE=
4151   AMDEP_FALSE='#'
4152 else
4153   AMDEP_TRUE='#'
4154   AMDEP_FALSE=
4155 fi
4156
4157
4158
4159 depcc="$CC"   am_compiler_list=
4160
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4162 $as_echo_n "checking dependency style of $depcc... " >&6; }
4163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4164   $as_echo_n "(cached) " >&6
4165 else
4166   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167   # We make a subdir and do the tests there.  Otherwise we can end up
4168   # making bogus files that we don't know about and never remove.  For
4169   # instance it was reported that on HP-UX the gcc test will end up
4170   # making a dummy file named 'D' -- because '-MD' means "put the output
4171   # in D".
4172   rm -rf conftest.dir
4173   mkdir conftest.dir
4174   # Copy depcomp to subdir because otherwise we won't find it if we're
4175   # using a relative directory.
4176   cp "$am_depcomp" conftest.dir
4177   cd conftest.dir
4178   # We will build objects and dependencies in a subdirectory because
4179   # it helps to detect inapplicable dependency modes.  For instance
4180   # both Tru64's cc and ICC support -MD to output dependencies as a
4181   # side effect of compilation, but ICC will put the dependencies in
4182   # the current directory while Tru64 will put them in the object
4183   # directory.
4184   mkdir sub
4185
4186   am_cv_CC_dependencies_compiler_type=none
4187   if test "$am_compiler_list" = ""; then
4188      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4189   fi
4190   am__universal=false
4191   case " $depcc " in #(
4192      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4193      esac
4194
4195   for depmode in $am_compiler_list; do
4196     # Setup a source with many dependencies, because some compilers
4197     # like to wrap large dependency lists on column 80 (with \), and
4198     # we should not choose a depcomp mode which is confused by this.
4199     #
4200     # We need to recreate these files for each test, as the compiler may
4201     # overwrite some of them when testing with obscure command lines.
4202     # This happens at least with the AIX C compiler.
4203     : > sub/conftest.c
4204     for i in 1 2 3 4 5 6; do
4205       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4207       # Solaris 10 /bin/sh.
4208       echo '/* dummy */' > sub/conftst$i.h
4209     done
4210     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4211
4212     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4213     # mode.  It turns out that the SunPro C++ compiler does not properly
4214     # handle '-M -o', and we need to detect this.  Also, some Intel
4215     # versions had trouble with output in subdirs.
4216     am__obj=sub/conftest.${OBJEXT-o}
4217     am__minus_obj="-o $am__obj"
4218     case $depmode in
4219     gcc)
4220       # This depmode causes a compiler race in universal mode.
4221       test "$am__universal" = false || continue
4222       ;;
4223     nosideeffect)
4224       # After this tag, mechanisms are not by side-effect, so they'll
4225       # only be used when explicitly requested.
4226       if test "x$enable_dependency_tracking" = xyes; then
4227         continue
4228       else
4229         break
4230       fi
4231       ;;
4232     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4233       # This compiler won't grok '-c -o', but also, the minuso test has
4234       # not run yet.  These depmodes are late enough in the game, and
4235       # so weak that their functioning should not be impacted.
4236       am__obj=conftest.${OBJEXT-o}
4237       am__minus_obj=
4238       ;;
4239     none) break ;;
4240     esac
4241     if depmode=$depmode \
4242        source=sub/conftest.c object=$am__obj \
4243        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245          >/dev/null 2>conftest.err &&
4246        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250       # icc doesn't choke on unknown options, it will just issue warnings
4251       # or remarks (even with -Werror).  So we grep stderr for any message
4252       # that says an option was ignored or not supported.
4253       # When given -MP, icc 7.0 and 7.1 complain thusly:
4254       #   icc: Command line warning: ignoring option '-M'; no argument required
4255       # The diagnosis changed in icc 8.0:
4256       #   icc: Command line remark: option '-MP' not supported
4257       if (grep 'ignoring option' conftest.err ||
4258           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259         am_cv_CC_dependencies_compiler_type=$depmode
4260         break
4261       fi
4262     fi
4263   done
4264
4265   cd ..
4266   rm -rf conftest.dir
4267 else
4268   am_cv_CC_dependencies_compiler_type=none
4269 fi
4270
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4275
4276  if
4277   test "x$enable_dependency_tracking" != xno \
4278   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4279   am__fastdepCC_TRUE=
4280   am__fastdepCC_FALSE='#'
4281 else
4282   am__fastdepCC_TRUE='#'
4283   am__fastdepCC_FALSE=
4284 fi
4285
4286
4287 CFLAGS=$save_CFLAGS
4288
4289
4290
4291
4292
4293 # By default we simply use the C compiler to build assembly code.
4294
4295 test "${CCAS+set}" = set || CCAS=$CC
4296 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4297
4298
4299
4300 depcc="$CCAS"   am_compiler_list=
4301
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4303 $as_echo_n "checking dependency style of $depcc... " >&6; }
4304 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4305   $as_echo_n "(cached) " >&6
4306 else
4307   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4308   # We make a subdir and do the tests there.  Otherwise we can end up
4309   # making bogus files that we don't know about and never remove.  For
4310   # instance it was reported that on HP-UX the gcc test will end up
4311   # making a dummy file named 'D' -- because '-MD' means "put the output
4312   # in D".
4313   rm -rf conftest.dir
4314   mkdir conftest.dir
4315   # Copy depcomp to subdir because otherwise we won't find it if we're
4316   # using a relative directory.
4317   cp "$am_depcomp" conftest.dir
4318   cd conftest.dir
4319   # We will build objects and dependencies in a subdirectory because
4320   # it helps to detect inapplicable dependency modes.  For instance
4321   # both Tru64's cc and ICC support -MD to output dependencies as a
4322   # side effect of compilation, but ICC will put the dependencies in
4323   # the current directory while Tru64 will put them in the object
4324   # directory.
4325   mkdir sub
4326
4327   am_cv_CCAS_dependencies_compiler_type=none
4328   if test "$am_compiler_list" = ""; then
4329      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4330   fi
4331   am__universal=false
4332
4333
4334   for depmode in $am_compiler_list; do
4335     # Setup a source with many dependencies, because some compilers
4336     # like to wrap large dependency lists on column 80 (with \), and
4337     # we should not choose a depcomp mode which is confused by this.
4338     #
4339     # We need to recreate these files for each test, as the compiler may
4340     # overwrite some of them when testing with obscure command lines.
4341     # This happens at least with the AIX C compiler.
4342     : > sub/conftest.c
4343     for i in 1 2 3 4 5 6; do
4344       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4345       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4346       # Solaris 10 /bin/sh.
4347       echo '/* dummy */' > sub/conftst$i.h
4348     done
4349     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4350
4351     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4352     # mode.  It turns out that the SunPro C++ compiler does not properly
4353     # handle '-M -o', and we need to detect this.  Also, some Intel
4354     # versions had trouble with output in subdirs.
4355     am__obj=sub/conftest.${OBJEXT-o}
4356     am__minus_obj="-o $am__obj"
4357     case $depmode in
4358     gcc)
4359       # This depmode causes a compiler race in universal mode.
4360       test "$am__universal" = false || continue
4361       ;;
4362     nosideeffect)
4363       # After this tag, mechanisms are not by side-effect, so they'll
4364       # only be used when explicitly requested.
4365       if test "x$enable_dependency_tracking" = xyes; then
4366         continue
4367       else
4368         break
4369       fi
4370       ;;
4371     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4372       # This compiler won't grok '-c -o', but also, the minuso test has
4373       # not run yet.  These depmodes are late enough in the game, and
4374       # so weak that their functioning should not be impacted.
4375       am__obj=conftest.${OBJEXT-o}
4376       am__minus_obj=
4377       ;;
4378     none) break ;;
4379     esac
4380     if depmode=$depmode \
4381        source=sub/conftest.c object=$am__obj \
4382        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4383        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4384          >/dev/null 2>conftest.err &&
4385        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4386        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4387        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4388        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4389       # icc doesn't choke on unknown options, it will just issue warnings
4390       # or remarks (even with -Werror).  So we grep stderr for any message
4391       # that says an option was ignored or not supported.
4392       # When given -MP, icc 7.0 and 7.1 complain thusly:
4393       #   icc: Command line warning: ignoring option '-M'; no argument required
4394       # The diagnosis changed in icc 8.0:
4395       #   icc: Command line remark: option '-MP' not supported
4396       if (grep 'ignoring option' conftest.err ||
4397           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4398         am_cv_CCAS_dependencies_compiler_type=$depmode
4399         break
4400       fi
4401     fi
4402   done
4403
4404   cd ..
4405   rm -rf conftest.dir
4406 else
4407   am_cv_CCAS_dependencies_compiler_type=none
4408 fi
4409
4410 fi
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4412 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4413 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4414
4415  if
4416   test "x$enable_dependency_tracking" != xno \
4417   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4418   am__fastdepCCAS_TRUE=
4419   am__fastdepCCAS_FALSE='#'
4420 else
4421   am__fastdepCCAS_TRUE='#'
4422   am__fastdepCCAS_FALSE=
4423 fi
4424
4425
4426 if test "x$CC" != xcc; then
4427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4428 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4429 else
4430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4431 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4432 fi
4433 set dummy $CC; ac_cc=`$as_echo "$2" |
4434                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4435 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4436   $as_echo_n "(cached) " >&6
4437 else
4438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439 /* end confdefs.h.  */
4440
4441 int
4442 main ()
4443 {
4444
4445   ;
4446   return 0;
4447 }
4448 _ACEOF
4449 # Make sure it works both with $CC and with simple cc.
4450 # We do the test twice because some compilers refuse to overwrite an
4451 # existing .o file with -o, though they will create one.
4452 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4453 rm -f conftest2.*
4454 if { { case "(($ac_try" in
4455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456   *) ac_try_echo=$ac_try;;
4457 esac
4458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4459 $as_echo "$ac_try_echo"; } >&5
4460   (eval "$ac_try") 2>&5
4461   ac_status=$?
4462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4463   test $ac_status = 0; } &&
4464    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4466   *) ac_try_echo=$ac_try;;
4467 esac
4468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4469 $as_echo "$ac_try_echo"; } >&5
4470   (eval "$ac_try") 2>&5
4471   ac_status=$?
4472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4473   test $ac_status = 0; };
4474 then
4475   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4476   if test "x$CC" != xcc; then
4477     # Test first that cc exists at all.
4478     if { ac_try='cc -c conftest.$ac_ext >&5'
4479   { { case "(($ac_try" in
4480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4481   *) ac_try_echo=$ac_try;;
4482 esac
4483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4484 $as_echo "$ac_try_echo"; } >&5
4485   (eval "$ac_try") 2>&5
4486   ac_status=$?
4487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4488   test $ac_status = 0; }; }; then
4489       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4490       rm -f conftest2.*
4491       if { { case "(($ac_try" in
4492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4493   *) ac_try_echo=$ac_try;;
4494 esac
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 $as_echo "$ac_try_echo"; } >&5
4497   (eval "$ac_try") 2>&5
4498   ac_status=$?
4499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4500   test $ac_status = 0; } &&
4501          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4503   *) ac_try_echo=$ac_try;;
4504 esac
4505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4506 $as_echo "$ac_try_echo"; } >&5
4507   (eval "$ac_try") 2>&5
4508   ac_status=$?
4509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4510   test $ac_status = 0; };
4511       then
4512         # cc works too.
4513         :
4514       else
4515         # cc exists but doesn't like -o.
4516         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4517       fi
4518     fi
4519   fi
4520 else
4521   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4522 fi
4523 rm -f core conftest*
4524
4525 fi
4526 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4528 $as_echo "yes" >&6; }
4529 else
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532
4533 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4534
4535 fi
4536
4537 # FIXME: we rely on the cache variable name because
4538 # there is no other way.
4539 set dummy $CC
4540 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4541 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4542 if test "$am_t" != yes; then
4543    # Losing compiler, so override with the script.
4544    # FIXME: It is wrong to rewrite CC.
4545    # But if we don't then we get into trouble of one sort or another.
4546    # A longer-term fix would be to have automake use am__CC in this case,
4547    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4548    CC="$am_aux_dir/compile $CC"
4549 fi
4550
4551
4552 case `pwd` in
4553   *\ * | *\     *)
4554     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4555 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4556 esac
4557
4558
4559
4560 macro_version='2.4.2'
4561 macro_revision='1.3337'
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575 ltmain="$ac_aux_dir/ltmain.sh"
4576
4577 # Backslashify metacharacters that are still active within
4578 # double-quoted strings.
4579 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4580
4581 # Same as above, but do not quote variable references.
4582 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4583
4584 # Sed substitution to delay expansion of an escaped shell variable in a
4585 # double_quote_subst'ed string.
4586 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4587
4588 # Sed substitution to delay expansion of an escaped single quote.
4589 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4590
4591 # Sed substitution to avoid accidental globbing in evaled expressions
4592 no_glob_subst='s/\*/\\\*/g'
4593
4594 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4595 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4599 $as_echo_n "checking how to print strings... " >&6; }
4600 # Test print first, because it will be a builtin if present.
4601 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4602    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4603   ECHO='print -r --'
4604 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4605   ECHO='printf %s\n'
4606 else
4607   # Use this function as a fallback that always works.
4608   func_fallback_echo ()
4609   {
4610     eval 'cat <<_LTECHO_EOF
4611 $1
4612 _LTECHO_EOF'
4613   }
4614   ECHO='func_fallback_echo'
4615 fi
4616
4617 # func_echo_all arg...
4618 # Invoke $ECHO with all args, space-separated.
4619 func_echo_all ()
4620 {
4621     $ECHO ""
4622 }
4623
4624 case "$ECHO" in
4625   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4626 $as_echo "printf" >&6; } ;;
4627   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4628 $as_echo "print -r" >&6; } ;;
4629   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4630 $as_echo "cat" >&6; } ;;
4631 esac
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4647 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4648 if ${ac_cv_path_SED+:} false; then :
4649   $as_echo_n "(cached) " >&6
4650 else
4651             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4652      for ac_i in 1 2 3 4 5 6 7; do
4653        ac_script="$ac_script$as_nl$ac_script"
4654      done
4655      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4656      { ac_script=; unset ac_script;}
4657      if test -z "$SED"; then
4658   ac_path_SED_found=false
4659   # Loop through the user's path and test for each of PROGNAME-LIST
4660   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665     for ac_prog in sed gsed; do
4666     for ac_exec_ext in '' $ac_executable_extensions; do
4667       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4668       as_fn_executable_p "$ac_path_SED" || continue
4669 # Check for GNU ac_path_SED and select it if it is found.
4670   # Check for GNU $ac_path_SED
4671 case `"$ac_path_SED" --version 2>&1` in
4672 *GNU*)
4673   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4674 *)
4675   ac_count=0
4676   $as_echo_n 0123456789 >"conftest.in"
4677   while :
4678   do
4679     cat "conftest.in" "conftest.in" >"conftest.tmp"
4680     mv "conftest.tmp" "conftest.in"
4681     cp "conftest.in" "conftest.nl"
4682     $as_echo '' >> "conftest.nl"
4683     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4684     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4685     as_fn_arith $ac_count + 1 && ac_count=$as_val
4686     if test $ac_count -gt ${ac_path_SED_max-0}; then
4687       # Best one so far, save it but keep looking for a better one
4688       ac_cv_path_SED="$ac_path_SED"
4689       ac_path_SED_max=$ac_count
4690     fi
4691     # 10*(2^10) chars as input seems more than enough
4692     test $ac_count -gt 10 && break
4693   done
4694   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4695 esac
4696
4697       $ac_path_SED_found && break 3
4698     done
4699   done
4700   done
4701 IFS=$as_save_IFS
4702   if test -z "$ac_cv_path_SED"; then
4703     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4704   fi
4705 else
4706   ac_cv_path_SED=$SED
4707 fi
4708
4709 fi
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4711 $as_echo "$ac_cv_path_SED" >&6; }
4712  SED="$ac_cv_path_SED"
4713   rm -f conftest.sed
4714
4715 test -z "$SED" && SED=sed
4716 Xsed="$SED -e 1s/^X//"
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4729 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4730 if ${ac_cv_path_GREP+:} false; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   if test -z "$GREP"; then
4734   ac_path_GREP_found=false
4735   # Loop through the user's path and test for each of PROGNAME-LIST
4736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4738 do
4739   IFS=$as_save_IFS
4740   test -z "$as_dir" && as_dir=.
4741     for ac_prog in grep ggrep; do
4742     for ac_exec_ext in '' $ac_executable_extensions; do
4743       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4744       as_fn_executable_p "$ac_path_GREP" || continue
4745 # Check for GNU ac_path_GREP and select it if it is found.
4746   # Check for GNU $ac_path_GREP
4747 case `"$ac_path_GREP" --version 2>&1` in
4748 *GNU*)
4749   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4750 *)
4751   ac_count=0
4752   $as_echo_n 0123456789 >"conftest.in"
4753   while :
4754   do
4755     cat "conftest.in" "conftest.in" >"conftest.tmp"
4756     mv "conftest.tmp" "conftest.in"
4757     cp "conftest.in" "conftest.nl"
4758     $as_echo 'GREP' >> "conftest.nl"
4759     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4760     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4761     as_fn_arith $ac_count + 1 && ac_count=$as_val
4762     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4763       # Best one so far, save it but keep looking for a better one
4764       ac_cv_path_GREP="$ac_path_GREP"
4765       ac_path_GREP_max=$ac_count
4766     fi
4767     # 10*(2^10) chars as input seems more than enough
4768     test $ac_count -gt 10 && break
4769   done
4770   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4771 esac
4772
4773       $ac_path_GREP_found && break 3
4774     done
4775   done
4776   done
4777 IFS=$as_save_IFS
4778   if test -z "$ac_cv_path_GREP"; then
4779     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4780   fi
4781 else
4782   ac_cv_path_GREP=$GREP
4783 fi
4784
4785 fi
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4787 $as_echo "$ac_cv_path_GREP" >&6; }
4788  GREP="$ac_cv_path_GREP"
4789
4790
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4792 $as_echo_n "checking for egrep... " >&6; }
4793 if ${ac_cv_path_EGREP+:} false; then :
4794   $as_echo_n "(cached) " >&6
4795 else
4796   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4797    then ac_cv_path_EGREP="$GREP -E"
4798    else
4799      if test -z "$EGREP"; then
4800   ac_path_EGREP_found=false
4801   # Loop through the user's path and test for each of PROGNAME-LIST
4802   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4803 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4804 do
4805   IFS=$as_save_IFS
4806   test -z "$as_dir" && as_dir=.
4807     for ac_prog in egrep; do
4808     for ac_exec_ext in '' $ac_executable_extensions; do
4809       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4810       as_fn_executable_p "$ac_path_EGREP" || continue
4811 # Check for GNU ac_path_EGREP and select it if it is found.
4812   # Check for GNU $ac_path_EGREP
4813 case `"$ac_path_EGREP" --version 2>&1` in
4814 *GNU*)
4815   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4816 *)
4817   ac_count=0
4818   $as_echo_n 0123456789 >"conftest.in"
4819   while :
4820   do
4821     cat "conftest.in" "conftest.in" >"conftest.tmp"
4822     mv "conftest.tmp" "conftest.in"
4823     cp "conftest.in" "conftest.nl"
4824     $as_echo 'EGREP' >> "conftest.nl"
4825     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4826     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4827     as_fn_arith $ac_count + 1 && ac_count=$as_val
4828     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4829       # Best one so far, save it but keep looking for a better one
4830       ac_cv_path_EGREP="$ac_path_EGREP"
4831       ac_path_EGREP_max=$ac_count
4832     fi
4833     # 10*(2^10) chars as input seems more than enough
4834     test $ac_count -gt 10 && break
4835   done
4836   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4837 esac
4838
4839       $ac_path_EGREP_found && break 3
4840     done
4841   done
4842   done
4843 IFS=$as_save_IFS
4844   if test -z "$ac_cv_path_EGREP"; then
4845     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4846   fi
4847 else
4848   ac_cv_path_EGREP=$EGREP
4849 fi
4850
4851    fi
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4854 $as_echo "$ac_cv_path_EGREP" >&6; }
4855  EGREP="$ac_cv_path_EGREP"
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4859 $as_echo_n "checking for fgrep... " >&6; }
4860 if ${ac_cv_path_FGREP+:} false; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4864    then ac_cv_path_FGREP="$GREP -F"
4865    else
4866      if test -z "$FGREP"; then
4867   ac_path_FGREP_found=false
4868   # Loop through the user's path and test for each of PROGNAME-LIST
4869   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4871 do
4872   IFS=$as_save_IFS
4873   test -z "$as_dir" && as_dir=.
4874     for ac_prog in fgrep; do
4875     for ac_exec_ext in '' $ac_executable_extensions; do
4876       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4877       as_fn_executable_p "$ac_path_FGREP" || continue
4878 # Check for GNU ac_path_FGREP and select it if it is found.
4879   # Check for GNU $ac_path_FGREP
4880 case `"$ac_path_FGREP" --version 2>&1` in
4881 *GNU*)
4882   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4883 *)
4884   ac_count=0
4885   $as_echo_n 0123456789 >"conftest.in"
4886   while :
4887   do
4888     cat "conftest.in" "conftest.in" >"conftest.tmp"
4889     mv "conftest.tmp" "conftest.in"
4890     cp "conftest.in" "conftest.nl"
4891     $as_echo 'FGREP' >> "conftest.nl"
4892     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4893     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4894     as_fn_arith $ac_count + 1 && ac_count=$as_val
4895     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4896       # Best one so far, save it but keep looking for a better one
4897       ac_cv_path_FGREP="$ac_path_FGREP"
4898       ac_path_FGREP_max=$ac_count
4899     fi
4900     # 10*(2^10) chars as input seems more than enough
4901     test $ac_count -gt 10 && break
4902   done
4903   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4904 esac
4905
4906       $ac_path_FGREP_found && break 3
4907     done
4908   done
4909   done
4910 IFS=$as_save_IFS
4911   if test -z "$ac_cv_path_FGREP"; then
4912     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4913   fi
4914 else
4915   ac_cv_path_FGREP=$FGREP
4916 fi
4917
4918    fi
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4921 $as_echo "$ac_cv_path_FGREP" >&6; }
4922  FGREP="$ac_cv_path_FGREP"
4923
4924
4925 test -z "$GREP" && GREP=grep
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945 # Check whether --with-gnu-ld was given.
4946 if test "${with_gnu_ld+set}" = set; then :
4947   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4948 else
4949   with_gnu_ld=no
4950 fi
4951
4952 ac_prog=ld
4953 if test "$GCC" = yes; then
4954   # Check if gcc -print-prog-name=ld gives a path.
4955   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4956 $as_echo_n "checking for ld used by $CC... " >&6; }
4957   case $host in
4958   *-*-mingw*)
4959     # gcc leaves a trailing carriage return which upsets mingw
4960     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4961   *)
4962     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4963   esac
4964   case $ac_prog in
4965     # Accept absolute paths.
4966     [\\/]* | ?:[\\/]*)
4967       re_direlt='/[^/][^/]*/\.\./'
4968       # Canonicalize the pathname of ld
4969       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4970       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4971         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4972       done
4973       test -z "$LD" && LD="$ac_prog"
4974       ;;
4975   "")
4976     # If it fails, then pretend we aren't using GCC.
4977     ac_prog=ld
4978     ;;
4979   *)
4980     # If it is relative, then search for the first ld in PATH.
4981     with_gnu_ld=unknown
4982     ;;
4983   esac
4984 elif test "$with_gnu_ld" = yes; then
4985   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4986 $as_echo_n "checking for GNU ld... " >&6; }
4987 else
4988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4989 $as_echo_n "checking for non-GNU ld... " >&6; }
4990 fi
4991 if ${lt_cv_path_LD+:} false; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   if test -z "$LD"; then
4995   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4996   for ac_dir in $PATH; do
4997     IFS="$lt_save_ifs"
4998     test -z "$ac_dir" && ac_dir=.
4999     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5000       lt_cv_path_LD="$ac_dir/$ac_prog"
5001       # Check to see if the program is GNU ld.  I'd rather use --version,
5002       # but apparently some variants of GNU ld only accept -v.
5003       # Break only if it was the GNU/non-GNU ld that we prefer.
5004       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5005       *GNU* | *'with BFD'*)
5006         test "$with_gnu_ld" != no && break
5007         ;;
5008       *)
5009         test "$with_gnu_ld" != yes && break
5010         ;;
5011       esac
5012     fi
5013   done
5014   IFS="$lt_save_ifs"
5015 else
5016   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5017 fi
5018 fi
5019
5020 LD="$lt_cv_path_LD"
5021 if test -n "$LD"; then
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5023 $as_echo "$LD" >&6; }
5024 else
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5030 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5031 if ${lt_cv_prog_gnu_ld+:} false; then :
5032   $as_echo_n "(cached) " >&6
5033 else
5034   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5035 case `$LD -v 2>&1 </dev/null` in
5036 *GNU* | *'with BFD'*)
5037   lt_cv_prog_gnu_ld=yes
5038   ;;
5039 *)
5040   lt_cv_prog_gnu_ld=no
5041   ;;
5042 esac
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5045 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5046 with_gnu_ld=$lt_cv_prog_gnu_ld
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5057 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5058 if ${lt_cv_path_NM+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   if test -n "$NM"; then
5062   # Let the user override the test.
5063   lt_cv_path_NM="$NM"
5064 else
5065   lt_nm_to_check="${ac_tool_prefix}nm"
5066   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5067     lt_nm_to_check="$lt_nm_to_check nm"
5068   fi
5069   for lt_tmp_nm in $lt_nm_to_check; do
5070     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5071     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5072       IFS="$lt_save_ifs"
5073       test -z "$ac_dir" && ac_dir=.
5074       tmp_nm="$ac_dir/$lt_tmp_nm"
5075       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5076         # Check to see if the nm accepts a BSD-compat flag.
5077         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5078         #   nm: unknown option "B" ignored
5079         # Tru64's nm complains that /dev/null is an invalid object file
5080         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5081         */dev/null* | *'Invalid file or object type'*)
5082           lt_cv_path_NM="$tmp_nm -B"
5083           break
5084           ;;
5085         *)
5086           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5087           */dev/null*)
5088             lt_cv_path_NM="$tmp_nm -p"
5089             break
5090             ;;
5091           *)
5092             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5093             continue # so that we can try to find one that supports BSD flags
5094             ;;
5095           esac
5096           ;;
5097         esac
5098       fi
5099     done
5100     IFS="$lt_save_ifs"
5101   done
5102   : ${lt_cv_path_NM=no}
5103 fi
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5106 $as_echo "$lt_cv_path_NM" >&6; }
5107 if test "$lt_cv_path_NM" != "no"; then
5108   NM="$lt_cv_path_NM"
5109 else
5110   # Didn't find any BSD compatible name lister, look for dumpbin.
5111   if test -n "$DUMPBIN"; then :
5112     # Let the user override the test.
5113   else
5114     if test -n "$ac_tool_prefix"; then
5115   for ac_prog in dumpbin "link -dump"
5116   do
5117     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5118 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_prog_DUMPBIN+:} false; then :
5122   $as_echo_n "(cached) " >&6
5123 else
5124   if test -n "$DUMPBIN"; then
5125   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5126 else
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128 for as_dir in $PATH
5129 do
5130   IFS=$as_save_IFS
5131   test -z "$as_dir" && as_dir=.
5132     for ac_exec_ext in '' $ac_executable_extensions; do
5133   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5134     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5135     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5136     break 2
5137   fi
5138 done
5139   done
5140 IFS=$as_save_IFS
5141
5142 fi
5143 fi
5144 DUMPBIN=$ac_cv_prog_DUMPBIN
5145 if test -n "$DUMPBIN"; then
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5147 $as_echo "$DUMPBIN" >&6; }
5148 else
5149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154     test -n "$DUMPBIN" && break
5155   done
5156 fi
5157 if test -z "$DUMPBIN"; then
5158   ac_ct_DUMPBIN=$DUMPBIN
5159   for ac_prog in dumpbin "link -dump"
5160 do
5161   # Extract the first word of "$ac_prog", so it can be a program name with args.
5162 set dummy $ac_prog; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5166   $as_echo_n "(cached) " >&6
5167 else
5168   if test -n "$ac_ct_DUMPBIN"; then
5169   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174   IFS=$as_save_IFS
5175   test -z "$as_dir" && as_dir=.
5176     for ac_exec_ext in '' $ac_executable_extensions; do
5177   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5179     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180     break 2
5181   fi
5182 done
5183   done
5184 IFS=$as_save_IFS
5185
5186 fi
5187 fi
5188 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5189 if test -n "$ac_ct_DUMPBIN"; then
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5191 $as_echo "$ac_ct_DUMPBIN" >&6; }
5192 else
5193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5195 fi
5196
5197
5198   test -n "$ac_ct_DUMPBIN" && break
5199 done
5200
5201   if test "x$ac_ct_DUMPBIN" = x; then
5202     DUMPBIN=":"
5203   else
5204     case $cross_compiling:$ac_tool_warned in
5205 yes:)
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5207 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5208 ac_tool_warned=yes ;;
5209 esac
5210     DUMPBIN=$ac_ct_DUMPBIN
5211   fi
5212 fi
5213
5214     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5215     *COFF*)
5216       DUMPBIN="$DUMPBIN -symbols"
5217       ;;
5218     *)
5219       DUMPBIN=:
5220       ;;
5221     esac
5222   fi
5223
5224   if test "$DUMPBIN" != ":"; then
5225     NM="$DUMPBIN"
5226   fi
5227 fi
5228 test -z "$NM" && NM=nm
5229
5230
5231
5232
5233
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5236 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5237 if ${lt_cv_nm_interface+:} false; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   lt_cv_nm_interface="BSD nm"
5241   echo "int some_variable = 0;" > conftest.$ac_ext
5242   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5243   (eval "$ac_compile" 2>conftest.err)
5244   cat conftest.err >&5
5245   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5246   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5247   cat conftest.err >&5
5248   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5249   cat conftest.out >&5
5250   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5251     lt_cv_nm_interface="MS dumpbin"
5252   fi
5253   rm -f conftest*
5254 fi
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5256 $as_echo "$lt_cv_nm_interface" >&6; }
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5259 $as_echo_n "checking whether ln -s works... " >&6; }
5260 LN_S=$as_ln_s
5261 if test "$LN_S" = "ln -s"; then
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5263 $as_echo "yes" >&6; }
5264 else
5265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5266 $as_echo "no, using $LN_S" >&6; }
5267 fi
5268
5269 # find the maximum length of command line arguments
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5271 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5272 if ${lt_cv_sys_max_cmd_len+:} false; then :
5273   $as_echo_n "(cached) " >&6
5274 else
5275     i=0
5276   teststring="ABCD"
5277
5278   case $build_os in
5279   msdosdjgpp*)
5280     # On DJGPP, this test can blow up pretty badly due to problems in libc
5281     # (any single argument exceeding 2000 bytes causes a buffer overrun
5282     # during glob expansion).  Even if it were fixed, the result of this
5283     # check would be larger than it should be.
5284     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5285     ;;
5286
5287   gnu*)
5288     # Under GNU Hurd, this test is not required because there is
5289     # no limit to the length of command line arguments.
5290     # Libtool will interpret -1 as no limit whatsoever
5291     lt_cv_sys_max_cmd_len=-1;
5292     ;;
5293
5294   cygwin* | mingw* | cegcc*)
5295     # On Win9x/ME, this test blows up -- it succeeds, but takes
5296     # about 5 minutes as the teststring grows exponentially.
5297     # Worse, since 9x/ME are not pre-emptively multitasking,
5298     # you end up with a "frozen" computer, even though with patience
5299     # the test eventually succeeds (with a max line length of 256k).
5300     # Instead, let's just punt: use the minimum linelength reported by
5301     # all of the supported platforms: 8192 (on NT/2K/XP).
5302     lt_cv_sys_max_cmd_len=8192;
5303     ;;
5304
5305   mint*)
5306     # On MiNT this can take a long time and run out of memory.
5307     lt_cv_sys_max_cmd_len=8192;
5308     ;;
5309
5310   amigaos*)
5311     # On AmigaOS with pdksh, this test takes hours, literally.
5312     # So we just punt and use a minimum line length of 8192.
5313     lt_cv_sys_max_cmd_len=8192;
5314     ;;
5315
5316   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5317     # This has been around since 386BSD, at least.  Likely further.
5318     if test -x /sbin/sysctl; then
5319       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5320     elif test -x /usr/sbin/sysctl; then
5321       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5322     else
5323       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5324     fi
5325     # And add a safety zone
5326     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5327     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5328     ;;
5329
5330   interix*)
5331     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5332     lt_cv_sys_max_cmd_len=196608
5333     ;;
5334
5335   os2*)
5336     # The test takes a long time on OS/2.
5337     lt_cv_sys_max_cmd_len=8192
5338     ;;
5339
5340   osf*)
5341     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5342     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5343     # nice to cause kernel panics so lets avoid the loop below.
5344     # First set a reasonable default.
5345     lt_cv_sys_max_cmd_len=16384
5346     #
5347     if test -x /sbin/sysconfig; then
5348       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5349         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5350       esac
5351     fi
5352     ;;
5353   sco3.2v5*)
5354     lt_cv_sys_max_cmd_len=102400
5355     ;;
5356   sysv5* | sco5v6* | sysv4.2uw2*)
5357     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5358     if test -n "$kargmax"; then
5359       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5360     else
5361       lt_cv_sys_max_cmd_len=32768
5362     fi
5363     ;;
5364   *)
5365     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5366     if test -n "$lt_cv_sys_max_cmd_len" && \
5367       test undefined != "$lt_cv_sys_max_cmd_len"; then
5368       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5369       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5370     else
5371       # Make teststring a little bigger before we do anything with it.
5372       # a 1K string should be a reasonable start.
5373       for i in 1 2 3 4 5 6 7 8 ; do
5374         teststring=$teststring$teststring
5375       done
5376       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5377       # If test is not a shell built-in, we'll probably end up computing a
5378       # maximum length that is only half of the actual maximum length, but
5379       # we can't tell.
5380       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5381                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5382               test $i != 17 # 1/2 MB should be enough
5383       do
5384         i=`expr $i + 1`
5385         teststring=$teststring$teststring
5386       done
5387       # Only check the string length outside the loop.
5388       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5389       teststring=
5390       # Add a significant safety factor because C++ compilers can tack on
5391       # massive amounts of additional arguments before passing them to the
5392       # linker.  It appears as though 1/2 is a usable value.
5393       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5394     fi
5395     ;;
5396   esac
5397
5398 fi
5399
5400 if test -n $lt_cv_sys_max_cmd_len ; then
5401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5402 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5403 else
5404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5405 $as_echo "none" >&6; }
5406 fi
5407 max_cmd_len=$lt_cv_sys_max_cmd_len
5408
5409
5410
5411
5412
5413
5414 : ${CP="cp -f"}
5415 : ${MV="mv -f"}
5416 : ${RM="rm -f"}
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5419 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5420 # Try some XSI features
5421 xsi_shell=no
5422 ( _lt_dummy="a/b/c"
5423   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5424       = c,a/b,b/c, \
5425     && eval 'test $(( 1 + 1 )) -eq 2 \
5426     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5427   && xsi_shell=yes
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5429 $as_echo "$xsi_shell" >&6; }
5430
5431
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5433 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5434 lt_shell_append=no
5435 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5436     >/dev/null 2>&1 \
5437   && lt_shell_append=yes
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5439 $as_echo "$lt_shell_append" >&6; }
5440
5441
5442 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5443   lt_unset=unset
5444 else
5445   lt_unset=false
5446 fi
5447
5448
5449
5450
5451
5452 # test EBCDIC or ASCII
5453 case `echo X|tr X '\101'` in
5454  A) # ASCII based system
5455     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5456   lt_SP2NL='tr \040 \012'
5457   lt_NL2SP='tr \015\012 \040\040'
5458   ;;
5459  *) # EBCDIC based system
5460   lt_SP2NL='tr \100 \n'
5461   lt_NL2SP='tr \r\n \100\100'
5462   ;;
5463 esac
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5474 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5475 if ${lt_cv_to_host_file_cmd+:} false; then :
5476   $as_echo_n "(cached) " >&6
5477 else
5478   case $host in
5479   *-*-mingw* )
5480     case $build in
5481       *-*-mingw* ) # actually msys
5482         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5483         ;;
5484       *-*-cygwin* )
5485         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5486         ;;
5487       * ) # otherwise, assume *nix
5488         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5489         ;;
5490     esac
5491     ;;
5492   *-*-cygwin* )
5493     case $build in
5494       *-*-mingw* ) # actually msys
5495         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5496         ;;
5497       *-*-cygwin* )
5498         lt_cv_to_host_file_cmd=func_convert_file_noop
5499         ;;
5500       * ) # otherwise, assume *nix
5501         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5502         ;;
5503     esac
5504     ;;
5505   * ) # unhandled hosts (and "normal" native builds)
5506     lt_cv_to_host_file_cmd=func_convert_file_noop
5507     ;;
5508 esac
5509
5510 fi
5511
5512 to_host_file_cmd=$lt_cv_to_host_file_cmd
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5514 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5515
5516
5517
5518
5519
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5521 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5522 if ${lt_cv_to_tool_file_cmd+:} false; then :
5523   $as_echo_n "(cached) " >&6
5524 else
5525   #assume ordinary cross tools, or native build.
5526 lt_cv_to_tool_file_cmd=func_convert_file_noop
5527 case $host in
5528   *-*-mingw* )
5529     case $build in
5530       *-*-mingw* ) # actually msys
5531         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5532         ;;
5533     esac
5534     ;;
5535 esac
5536
5537 fi
5538
5539 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5541 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5542
5543
5544
5545
5546
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5548 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5549 if ${lt_cv_ld_reload_flag+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   lt_cv_ld_reload_flag='-r'
5553 fi
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5555 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5556 reload_flag=$lt_cv_ld_reload_flag
5557 case $reload_flag in
5558 "" | " "*) ;;
5559 *) reload_flag=" $reload_flag" ;;
5560 esac
5561 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5562 case $host_os in
5563   cygwin* | mingw* | pw32* | cegcc*)
5564     if test "$GCC" != yes; then
5565       reload_cmds=false
5566     fi
5567     ;;
5568   darwin*)
5569     if test "$GCC" = yes; then
5570       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5571     else
5572       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5573     fi
5574     ;;
5575 esac
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 if test -n "$ac_tool_prefix"; then
5586   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5587 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5589 $as_echo_n "checking for $ac_word... " >&6; }
5590 if ${ac_cv_prog_OBJDUMP+:} false; then :
5591   $as_echo_n "(cached) " >&6
5592 else
5593   if test -n "$OBJDUMP"; then
5594   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5595 else
5596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597 for as_dir in $PATH
5598 do
5599   IFS=$as_save_IFS
5600   test -z "$as_dir" && as_dir=.
5601     for ac_exec_ext in '' $ac_executable_extensions; do
5602   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5603     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5604     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605     break 2
5606   fi
5607 done
5608   done
5609 IFS=$as_save_IFS
5610
5611 fi
5612 fi
5613 OBJDUMP=$ac_cv_prog_OBJDUMP
5614 if test -n "$OBJDUMP"; then
5615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5616 $as_echo "$OBJDUMP" >&6; }
5617 else
5618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5619 $as_echo "no" >&6; }
5620 fi
5621
5622
5623 fi
5624 if test -z "$ac_cv_prog_OBJDUMP"; then
5625   ac_ct_OBJDUMP=$OBJDUMP
5626   # Extract the first word of "objdump", so it can be a program name with args.
5627 set dummy objdump; ac_word=$2
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5629 $as_echo_n "checking for $ac_word... " >&6; }
5630 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5631   $as_echo_n "(cached) " >&6
5632 else
5633   if test -n "$ac_ct_OBJDUMP"; then
5634   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5635 else
5636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637 for as_dir in $PATH
5638 do
5639   IFS=$as_save_IFS
5640   test -z "$as_dir" && as_dir=.
5641     for ac_exec_ext in '' $ac_executable_extensions; do
5642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5643     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645     break 2
5646   fi
5647 done
5648   done
5649 IFS=$as_save_IFS
5650
5651 fi
5652 fi
5653 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5654 if test -n "$ac_ct_OBJDUMP"; then
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5656 $as_echo "$ac_ct_OBJDUMP" >&6; }
5657 else
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662   if test "x$ac_ct_OBJDUMP" = x; then
5663     OBJDUMP="false"
5664   else
5665     case $cross_compiling:$ac_tool_warned in
5666 yes:)
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5668 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5669 ac_tool_warned=yes ;;
5670 esac
5671     OBJDUMP=$ac_ct_OBJDUMP
5672   fi
5673 else
5674   OBJDUMP="$ac_cv_prog_OBJDUMP"
5675 fi
5676
5677 test -z "$OBJDUMP" && OBJDUMP=objdump
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5688 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5689 if ${lt_cv_deplibs_check_method+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   lt_cv_file_magic_cmd='$MAGIC_CMD'
5693 lt_cv_file_magic_test_file=
5694 lt_cv_deplibs_check_method='unknown'
5695 # Need to set the preceding variable on all platforms that support
5696 # interlibrary dependencies.
5697 # 'none' -- dependencies not supported.
5698 # `unknown' -- same as none, but documents that we really don't know.
5699 # 'pass_all' -- all dependencies passed with no checks.
5700 # 'test_compile' -- check by making test program.
5701 # 'file_magic [[regex]]' -- check by looking for files in library path
5702 # which responds to the $file_magic_cmd with a given extended regex.
5703 # If you have `file' or equivalent on your system and you're not sure
5704 # whether `pass_all' will *always* work, you probably want this one.
5705
5706 case $host_os in
5707 aix[4-9]*)
5708   lt_cv_deplibs_check_method=pass_all
5709   ;;
5710
5711 beos*)
5712   lt_cv_deplibs_check_method=pass_all
5713   ;;
5714
5715 bsdi[45]*)
5716   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5717   lt_cv_file_magic_cmd='/usr/bin/file -L'
5718   lt_cv_file_magic_test_file=/shlib/libc.so
5719   ;;
5720
5721 cygwin*)
5722   # func_win32_libid is a shell function defined in ltmain.sh
5723   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5724   lt_cv_file_magic_cmd='func_win32_libid'
5725   ;;
5726
5727 mingw* | pw32*)
5728   # Base MSYS/MinGW do not provide the 'file' command needed by
5729   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5730   # unless we find 'file', for example because we are cross-compiling.
5731   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5732   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5733     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5734     lt_cv_file_magic_cmd='func_win32_libid'
5735   else
5736     # Keep this pattern in sync with the one in func_win32_libid.
5737     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5738     lt_cv_file_magic_cmd='$OBJDUMP -f'
5739   fi
5740   ;;
5741
5742 cegcc*)
5743   # use the weaker test based on 'objdump'. See mingw*.
5744   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5745   lt_cv_file_magic_cmd='$OBJDUMP -f'
5746   ;;
5747
5748 darwin* | rhapsody*)
5749   lt_cv_deplibs_check_method=pass_all
5750   ;;
5751
5752 freebsd* | dragonfly*)
5753   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5754     case $host_cpu in
5755     i*86 )
5756       # Not sure whether the presence of OpenBSD here was a mistake.
5757       # Let's accept both of them until this is cleared up.
5758       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5759       lt_cv_file_magic_cmd=/usr/bin/file
5760       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5761       ;;
5762     esac
5763   else
5764     lt_cv_deplibs_check_method=pass_all
5765   fi
5766   ;;
5767
5768 gnu*)
5769   lt_cv_deplibs_check_method=pass_all
5770   ;;
5771
5772 haiku*)
5773   lt_cv_deplibs_check_method=pass_all
5774   ;;
5775
5776 hpux10.20* | hpux11*)
5777   lt_cv_file_magic_cmd=/usr/bin/file
5778   case $host_cpu in
5779   ia64*)
5780     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5781     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5782     ;;
5783   hppa*64*)
5784     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]'
5785     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5786     ;;
5787   *)
5788     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5789     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5790     ;;
5791   esac
5792   ;;
5793
5794 interix[3-9]*)
5795   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5796   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5797   ;;
5798
5799 irix5* | irix6* | nonstopux*)
5800   case $LD in
5801   *-32|*"-32 ") libmagic=32-bit;;
5802   *-n32|*"-n32 ") libmagic=N32;;
5803   *-64|*"-64 ") libmagic=64-bit;;
5804   *) libmagic=never-match;;
5805   esac
5806   lt_cv_deplibs_check_method=pass_all
5807   ;;
5808
5809 # This must be glibc/ELF.
5810 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5811   lt_cv_deplibs_check_method=pass_all
5812   ;;
5813
5814 netbsd*)
5815   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5816     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5817   else
5818     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5819   fi
5820   ;;
5821
5822 newos6*)
5823   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5824   lt_cv_file_magic_cmd=/usr/bin/file
5825   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5826   ;;
5827
5828 *nto* | *qnx*)
5829   lt_cv_deplibs_check_method=pass_all
5830   ;;
5831
5832 openbsd*)
5833   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5834     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5835   else
5836     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5837   fi
5838   ;;
5839
5840 osf3* | osf4* | osf5*)
5841   lt_cv_deplibs_check_method=pass_all
5842   ;;
5843
5844 rdos*)
5845   lt_cv_deplibs_check_method=pass_all
5846   ;;
5847
5848 solaris*)
5849   lt_cv_deplibs_check_method=pass_all
5850   ;;
5851
5852 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5853   lt_cv_deplibs_check_method=pass_all
5854   ;;
5855
5856 sysv4 | sysv4.3*)
5857   case $host_vendor in
5858   motorola)
5859     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]'
5860     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5861     ;;
5862   ncr)
5863     lt_cv_deplibs_check_method=pass_all
5864     ;;
5865   sequent)
5866     lt_cv_file_magic_cmd='/bin/file'
5867     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5868     ;;
5869   sni)
5870     lt_cv_file_magic_cmd='/bin/file'
5871     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5872     lt_cv_file_magic_test_file=/lib/libc.so
5873     ;;
5874   siemens)
5875     lt_cv_deplibs_check_method=pass_all
5876     ;;
5877   pc)
5878     lt_cv_deplibs_check_method=pass_all
5879     ;;
5880   esac
5881   ;;
5882
5883 tpf*)
5884   lt_cv_deplibs_check_method=pass_all
5885   ;;
5886 esac
5887
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5890 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5891
5892 file_magic_glob=
5893 want_nocaseglob=no
5894 if test "$build" = "$host"; then
5895   case $host_os in
5896   mingw* | pw32*)
5897     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5898       want_nocaseglob=yes
5899     else
5900       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5901     fi
5902     ;;
5903   esac
5904 fi
5905
5906 file_magic_cmd=$lt_cv_file_magic_cmd
5907 deplibs_check_method=$lt_cv_deplibs_check_method
5908 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931 if test -n "$ac_tool_prefix"; then
5932   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5933 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 $as_echo_n "checking for $ac_word... " >&6; }
5936 if ${ac_cv_prog_DLLTOOL+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test -n "$DLLTOOL"; then
5940   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5941 else
5942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943 for as_dir in $PATH
5944 do
5945   IFS=$as_save_IFS
5946   test -z "$as_dir" && as_dir=.
5947     for ac_exec_ext in '' $ac_executable_extensions; do
5948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5949     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951     break 2
5952   fi
5953 done
5954   done
5955 IFS=$as_save_IFS
5956
5957 fi
5958 fi
5959 DLLTOOL=$ac_cv_prog_DLLTOOL
5960 if test -n "$DLLTOOL"; then
5961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5962 $as_echo "$DLLTOOL" >&6; }
5963 else
5964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 fi
5967
5968
5969 fi
5970 if test -z "$ac_cv_prog_DLLTOOL"; then
5971   ac_ct_DLLTOOL=$DLLTOOL
5972   # Extract the first word of "dlltool", so it can be a program name with args.
5973 set dummy dlltool; ac_word=$2
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975 $as_echo_n "checking for $ac_word... " >&6; }
5976 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5977   $as_echo_n "(cached) " >&6
5978 else
5979   if test -n "$ac_ct_DLLTOOL"; then
5980   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5981 else
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983 for as_dir in $PATH
5984 do
5985   IFS=$as_save_IFS
5986   test -z "$as_dir" && as_dir=.
5987     for ac_exec_ext in '' $ac_executable_extensions; do
5988   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991     break 2
5992   fi
5993 done
5994   done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6000 if test -n "$ac_ct_DLLTOOL"; then
6001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6002 $as_echo "$ac_ct_DLLTOOL" >&6; }
6003 else
6004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 $as_echo "no" >&6; }
6006 fi
6007
6008   if test "x$ac_ct_DLLTOOL" = x; then
6009     DLLTOOL="false"
6010   else
6011     case $cross_compiling:$ac_tool_warned in
6012 yes:)
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015 ac_tool_warned=yes ;;
6016 esac
6017     DLLTOOL=$ac_ct_DLLTOOL
6018   fi
6019 else
6020   DLLTOOL="$ac_cv_prog_DLLTOOL"
6021 fi
6022
6023 test -z "$DLLTOOL" && DLLTOOL=dlltool
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6035 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6036 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6037   $as_echo_n "(cached) " >&6
6038 else
6039   lt_cv_sharedlib_from_linklib_cmd='unknown'
6040
6041 case $host_os in
6042 cygwin* | mingw* | pw32* | cegcc*)
6043   # two different shell functions defined in ltmain.sh
6044   # decide which to use based on capabilities of $DLLTOOL
6045   case `$DLLTOOL --help 2>&1` in
6046   *--identify-strict*)
6047     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6048     ;;
6049   *)
6050     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6051     ;;
6052   esac
6053   ;;
6054 *)
6055   # fallback: assume linklib IS sharedlib
6056   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6057   ;;
6058 esac
6059
6060 fi
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6062 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6063 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6064 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6065
6066
6067
6068
6069
6070
6071
6072
6073 if test -n "$ac_tool_prefix"; then
6074   for ac_prog in ar
6075   do
6076     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6079 $as_echo_n "checking for $ac_word... " >&6; }
6080 if ${ac_cv_prog_AR+:} false; then :
6081   $as_echo_n "(cached) " >&6
6082 else
6083   if test -n "$AR"; then
6084   ac_cv_prog_AR="$AR" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091     for ac_exec_ext in '' $ac_executable_extensions; do
6092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098   done
6099 IFS=$as_save_IFS
6100
6101 fi
6102 fi
6103 AR=$ac_cv_prog_AR
6104 if test -n "$AR"; then
6105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6106 $as_echo "$AR" >&6; }
6107 else
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6109 $as_echo "no" >&6; }
6110 fi
6111
6112
6113     test -n "$AR" && break
6114   done
6115 fi
6116 if test -z "$AR"; then
6117   ac_ct_AR=$AR
6118   for ac_prog in ar
6119 do
6120   # Extract the first word of "$ac_prog", so it can be a program name with args.
6121 set dummy $ac_prog; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6125   $as_echo_n "(cached) " >&6
6126 else
6127   if test -n "$ac_ct_AR"; then
6128   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133   IFS=$as_save_IFS
6134   test -z "$as_dir" && as_dir=.
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137     ac_cv_prog_ac_ct_AR="$ac_prog"
6138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139     break 2
6140   fi
6141 done
6142   done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6148 if test -n "$ac_ct_AR"; then
6149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6150 $as_echo "$ac_ct_AR" >&6; }
6151 else
6152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157   test -n "$ac_ct_AR" && break
6158 done
6159
6160   if test "x$ac_ct_AR" = x; then
6161     AR="false"
6162   else
6163     case $cross_compiling:$ac_tool_warned in
6164 yes:)
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6167 ac_tool_warned=yes ;;
6168 esac
6169     AR=$ac_ct_AR
6170   fi
6171 fi
6172
6173 : ${AR=ar}
6174 : ${AR_FLAGS=cru}
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6187 $as_echo_n "checking for archiver @FILE support... " >&6; }
6188 if ${lt_cv_ar_at_file+:} false; then :
6189   $as_echo_n "(cached) " >&6
6190 else
6191   lt_cv_ar_at_file=no
6192    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6193 /* end confdefs.h.  */
6194
6195 int
6196 main ()
6197 {
6198
6199   ;
6200   return 0;
6201 }
6202 _ACEOF
6203 if ac_fn_c_try_compile "$LINENO"; then :
6204   echo conftest.$ac_objext > conftest.lst
6205       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6206       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6207   (eval $lt_ar_try) 2>&5
6208   ac_status=$?
6209   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6210   test $ac_status = 0; }
6211       if test "$ac_status" -eq 0; then
6212         # Ensure the archiver fails upon bogus file names.
6213         rm -f conftest.$ac_objext libconftest.a
6214         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6215   (eval $lt_ar_try) 2>&5
6216   ac_status=$?
6217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6218   test $ac_status = 0; }
6219         if test "$ac_status" -ne 0; then
6220           lt_cv_ar_at_file=@
6221         fi
6222       fi
6223       rm -f conftest.* libconftest.a
6224
6225 fi
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227
6228 fi
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6230 $as_echo "$lt_cv_ar_at_file" >&6; }
6231
6232 if test "x$lt_cv_ar_at_file" = xno; then
6233   archiver_list_spec=
6234 else
6235   archiver_list_spec=$lt_cv_ar_at_file
6236 fi
6237
6238
6239
6240
6241
6242
6243
6244 if test -n "$ac_tool_prefix"; then
6245   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6246 set dummy ${ac_tool_prefix}strip; ac_word=$2
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if ${ac_cv_prog_STRIP+:} false; then :
6250   $as_echo_n "(cached) " >&6
6251 else
6252   if test -n "$STRIP"; then
6253   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260     for ac_exec_ext in '' $ac_executable_extensions; do
6261   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267   done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 STRIP=$ac_cv_prog_STRIP
6273 if test -n "$STRIP"; then
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6275 $as_echo "$STRIP" >&6; }
6276 else
6277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281
6282 fi
6283 if test -z "$ac_cv_prog_STRIP"; then
6284   ac_ct_STRIP=$STRIP
6285   # Extract the first word of "strip", so it can be a program name with args.
6286 set dummy strip; ac_word=$2
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6288 $as_echo_n "checking for $ac_word... " >&6; }
6289 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   if test -n "$ac_ct_STRIP"; then
6293   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6294 else
6295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 for as_dir in $PATH
6297 do
6298   IFS=$as_save_IFS
6299   test -z "$as_dir" && as_dir=.
6300     for ac_exec_ext in '' $ac_executable_extensions; do
6301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6302     ac_cv_prog_ac_ct_STRIP="strip"
6303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6304     break 2
6305   fi
6306 done
6307   done
6308 IFS=$as_save_IFS
6309
6310 fi
6311 fi
6312 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6313 if test -n "$ac_ct_STRIP"; then
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6315 $as_echo "$ac_ct_STRIP" >&6; }
6316 else
6317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6318 $as_echo "no" >&6; }
6319 fi
6320
6321   if test "x$ac_ct_STRIP" = x; then
6322     STRIP=":"
6323   else
6324     case $cross_compiling:$ac_tool_warned in
6325 yes:)
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6328 ac_tool_warned=yes ;;
6329 esac
6330     STRIP=$ac_ct_STRIP
6331   fi
6332 else
6333   STRIP="$ac_cv_prog_STRIP"
6334 fi
6335
6336 test -z "$STRIP" && STRIP=:
6337
6338
6339
6340
6341
6342
6343 if test -n "$ac_tool_prefix"; then
6344   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6345 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_RANLIB+:} false; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$RANLIB"; then
6352   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 RANLIB=$ac_cv_prog_RANLIB
6372 if test -n "$RANLIB"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6374 $as_echo "$RANLIB" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380
6381 fi
6382 if test -z "$ac_cv_prog_RANLIB"; then
6383   ac_ct_RANLIB=$RANLIB
6384   # Extract the first word of "ranlib", so it can be a program name with args.
6385 set dummy ranlib; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   if test -n "$ac_ct_RANLIB"; then
6392   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399     for ac_exec_ext in '' $ac_executable_extensions; do
6400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6401     ac_cv_prog_ac_ct_RANLIB="ranlib"
6402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406   done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6412 if test -n "$ac_ct_RANLIB"; then
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6414 $as_echo "$ac_ct_RANLIB" >&6; }
6415 else
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420   if test "x$ac_ct_RANLIB" = x; then
6421     RANLIB=":"
6422   else
6423     case $cross_compiling:$ac_tool_warned in
6424 yes:)
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6427 ac_tool_warned=yes ;;
6428 esac
6429     RANLIB=$ac_ct_RANLIB
6430   fi
6431 else
6432   RANLIB="$ac_cv_prog_RANLIB"
6433 fi
6434
6435 test -z "$RANLIB" && RANLIB=:
6436
6437
6438
6439
6440
6441
6442 # Determine commands to create old-style static archives.
6443 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6444 old_postinstall_cmds='chmod 644 $oldlib'
6445 old_postuninstall_cmds=
6446
6447 if test -n "$RANLIB"; then
6448   case $host_os in
6449   openbsd*)
6450     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6451     ;;
6452   *)
6453     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6454     ;;
6455   esac
6456   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6457 fi
6458
6459 case $host_os in
6460   darwin*)
6461     lock_old_archive_extraction=yes ;;
6462   *)
6463     lock_old_archive_extraction=no ;;
6464 esac
6465
6466
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 # If no C compiler was specified, use CC.
6505 LTCC=${LTCC-"$CC"}
6506
6507 # If no C compiler flags were specified, use CFLAGS.
6508 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6509
6510 # Allow CC to be a program name with arguments.
6511 compiler=$CC
6512
6513
6514 # Check for command to grab the raw symbol name followed by C symbol from nm.
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6516 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6517 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6518   $as_echo_n "(cached) " >&6
6519 else
6520
6521 # These are sane defaults that work on at least a few old systems.
6522 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6523
6524 # Character class describing NM global symbol codes.
6525 symcode='[BCDEGRST]'
6526
6527 # Regexp to match symbols that can be accessed directly from C.
6528 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6529
6530 # Define system-specific variables.
6531 case $host_os in
6532 aix*)
6533   symcode='[BCDT]'
6534   ;;
6535 cygwin* | mingw* | pw32* | cegcc*)
6536   symcode='[ABCDGISTW]'
6537   ;;
6538 hpux*)
6539   if test "$host_cpu" = ia64; then
6540     symcode='[ABCDEGRST]'
6541   fi
6542   ;;
6543 irix* | nonstopux*)
6544   symcode='[BCDEGRST]'
6545   ;;
6546 osf*)
6547   symcode='[BCDEGQRST]'
6548   ;;
6549 solaris*)
6550   symcode='[BDRT]'
6551   ;;
6552 sco3.2v5*)
6553   symcode='[DT]'
6554   ;;
6555 sysv4.2uw2*)
6556   symcode='[DT]'
6557   ;;
6558 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6559   symcode='[ABDT]'
6560   ;;
6561 sysv4)
6562   symcode='[DFNSTU]'
6563   ;;
6564 esac
6565
6566 # If we're using GNU nm, then use its standard symbol codes.
6567 case `$NM -V 2>&1` in
6568 *GNU* | *'with BFD'*)
6569   symcode='[ABCDGIRSTW]' ;;
6570 esac
6571
6572 # Transform an extracted symbol line into a proper C declaration.
6573 # Some systems (esp. on ia64) link data and code symbols differently,
6574 # so use this general approach.
6575 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6576
6577 # Transform an extracted symbol line into symbol name and symbol address
6578 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6579 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'"
6580
6581 # Handle CRLF in mingw tool chain
6582 opt_cr=
6583 case $build_os in
6584 mingw*)
6585   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6586   ;;
6587 esac
6588
6589 # Try without a prefix underscore, then with it.
6590 for ac_symprfx in "" "_"; do
6591
6592   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6593   symxfrm="\\1 $ac_symprfx\\2 \\2"
6594
6595   # Write the raw and C identifiers.
6596   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6597     # Fake it for dumpbin and say T for any non-static function
6598     # and D for any global variable.
6599     # Also find C++ and __fastcall symbols from MSVC++,
6600     # which start with @ or ?.
6601     lt_cv_sys_global_symbol_pipe="$AWK '"\
6602 "     {last_section=section; section=\$ 3};"\
6603 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6604 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6605 "     \$ 0!~/External *\|/{next};"\
6606 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6607 "     {if(hide[section]) next};"\
6608 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6609 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6610 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6611 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6612 "     ' prfx=^$ac_symprfx"
6613   else
6614     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6615   fi
6616   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6617
6618   # Check to see that the pipe works correctly.
6619   pipe_works=no
6620
6621   rm -f conftest*
6622   cat > conftest.$ac_ext <<_LT_EOF
6623 #ifdef __cplusplus
6624 extern "C" {
6625 #endif
6626 char nm_test_var;
6627 void nm_test_func(void);
6628 void nm_test_func(void){}
6629 #ifdef __cplusplus
6630 }
6631 #endif
6632 int main(){nm_test_var='a';nm_test_func();return(0);}
6633 _LT_EOF
6634
6635   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6636   (eval $ac_compile) 2>&5
6637   ac_status=$?
6638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639   test $ac_status = 0; }; then
6640     # Now try to grab the symbols.
6641     nlist=conftest.nm
6642     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6643   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6644   ac_status=$?
6645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6646   test $ac_status = 0; } && test -s "$nlist"; then
6647       # Try sorting and uniquifying the output.
6648       if sort "$nlist" | uniq > "$nlist"T; then
6649         mv -f "$nlist"T "$nlist"
6650       else
6651         rm -f "$nlist"T
6652       fi
6653
6654       # Make sure that we snagged all the symbols we need.
6655       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6656         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6657           cat <<_LT_EOF > conftest.$ac_ext
6658 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6659 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6660 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6661    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6662 # define LT_DLSYM_CONST
6663 #elif defined(__osf__)
6664 /* This system does not cope well with relocations in const data.  */
6665 # define LT_DLSYM_CONST
6666 #else
6667 # define LT_DLSYM_CONST const
6668 #endif
6669
6670 #ifdef __cplusplus
6671 extern "C" {
6672 #endif
6673
6674 _LT_EOF
6675           # Now generate the symbol file.
6676           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6677
6678           cat <<_LT_EOF >> conftest.$ac_ext
6679
6680 /* The mapping between symbol names and symbols.  */
6681 LT_DLSYM_CONST struct {
6682   const char *name;
6683   void       *address;
6684 }
6685 lt__PROGRAM__LTX_preloaded_symbols[] =
6686 {
6687   { "@PROGRAM@", (void *) 0 },
6688 _LT_EOF
6689           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6690           cat <<\_LT_EOF >> conftest.$ac_ext
6691   {0, (void *) 0}
6692 };
6693
6694 /* This works around a problem in FreeBSD linker */
6695 #ifdef FREEBSD_WORKAROUND
6696 static const void *lt_preloaded_setup() {
6697   return lt__PROGRAM__LTX_preloaded_symbols;
6698 }
6699 #endif
6700
6701 #ifdef __cplusplus
6702 }
6703 #endif
6704 _LT_EOF
6705           # Now try linking the two files.
6706           mv conftest.$ac_objext conftstm.$ac_objext
6707           lt_globsym_save_LIBS=$LIBS
6708           lt_globsym_save_CFLAGS=$CFLAGS
6709           LIBS="conftstm.$ac_objext"
6710           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6711           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6712   (eval $ac_link) 2>&5
6713   ac_status=$?
6714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6715   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6716             pipe_works=yes
6717           fi
6718           LIBS=$lt_globsym_save_LIBS
6719           CFLAGS=$lt_globsym_save_CFLAGS
6720         else
6721           echo "cannot find nm_test_func in $nlist" >&5
6722         fi
6723       else
6724         echo "cannot find nm_test_var in $nlist" >&5
6725       fi
6726     else
6727       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6728     fi
6729   else
6730     echo "$progname: failed program was:" >&5
6731     cat conftest.$ac_ext >&5
6732   fi
6733   rm -rf conftest* conftst*
6734
6735   # Do not use the global_symbol_pipe unless it works.
6736   if test "$pipe_works" = yes; then
6737     break
6738   else
6739     lt_cv_sys_global_symbol_pipe=
6740   fi
6741 done
6742
6743 fi
6744
6745 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6746   lt_cv_sys_global_symbol_to_cdecl=
6747 fi
6748 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6750 $as_echo "failed" >&6; }
6751 else
6752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6753 $as_echo "ok" >&6; }
6754 fi
6755
6756 # Response file support.
6757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6758   nm_file_list_spec='@'
6759 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6760   nm_file_list_spec='@'
6761 fi
6762
6763
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6790 $as_echo_n "checking for sysroot... " >&6; }
6791
6792 # Check whether --with-sysroot was given.
6793 if test "${with_sysroot+set}" = set; then :
6794   withval=$with_sysroot;
6795 else
6796   with_sysroot=no
6797 fi
6798
6799
6800 lt_sysroot=
6801 case ${with_sysroot} in #(
6802  yes)
6803    if test "$GCC" = yes; then
6804      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6805    fi
6806    ;; #(
6807  /*)
6808    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6809    ;; #(
6810  no|'')
6811    ;; #(
6812  *)
6813    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6814 $as_echo "${with_sysroot}" >&6; }
6815    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6816    ;;
6817 esac
6818
6819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6820 $as_echo "${lt_sysroot:-no}" >&6; }
6821
6822
6823
6824
6825
6826 # Check whether --enable-libtool-lock was given.
6827 if test "${enable_libtool_lock+set}" = set; then :
6828   enableval=$enable_libtool_lock;
6829 fi
6830
6831 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6832
6833 # Some flags need to be propagated to the compiler or linker for good
6834 # libtool support.
6835 case $host in
6836 ia64-*-hpux*)
6837   # Find out which ABI we are using.
6838   echo 'int i;' > conftest.$ac_ext
6839   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6840   (eval $ac_compile) 2>&5
6841   ac_status=$?
6842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843   test $ac_status = 0; }; then
6844     case `/usr/bin/file conftest.$ac_objext` in
6845       *ELF-32*)
6846         HPUX_IA64_MODE="32"
6847         ;;
6848       *ELF-64*)
6849         HPUX_IA64_MODE="64"
6850         ;;
6851     esac
6852   fi
6853   rm -rf conftest*
6854   ;;
6855 *-*-irix6*)
6856   # Find out which ABI we are using.
6857   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6859   (eval $ac_compile) 2>&5
6860   ac_status=$?
6861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6862   test $ac_status = 0; }; then
6863     if test "$lt_cv_prog_gnu_ld" = yes; then
6864       case `/usr/bin/file conftest.$ac_objext` in
6865         *32-bit*)
6866           LD="${LD-ld} -melf32bsmip"
6867           ;;
6868         *N32*)
6869           LD="${LD-ld} -melf32bmipn32"
6870           ;;
6871         *64-bit*)
6872           LD="${LD-ld} -melf64bmip"
6873         ;;
6874       esac
6875     else
6876       case `/usr/bin/file conftest.$ac_objext` in
6877         *32-bit*)
6878           LD="${LD-ld} -32"
6879           ;;
6880         *N32*)
6881           LD="${LD-ld} -n32"
6882           ;;
6883         *64-bit*)
6884           LD="${LD-ld} -64"
6885           ;;
6886       esac
6887     fi
6888   fi
6889   rm -rf conftest*
6890   ;;
6891
6892 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6893 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6894   # Find out which ABI we are using.
6895   echo 'int i;' > conftest.$ac_ext
6896   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6897   (eval $ac_compile) 2>&5
6898   ac_status=$?
6899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6900   test $ac_status = 0; }; then
6901     case `/usr/bin/file conftest.o` in
6902       *32-bit*)
6903         case $host in
6904           x86_64-*kfreebsd*-gnu)
6905             LD="${LD-ld} -m elf_i386_fbsd"
6906             ;;
6907           x86_64-*linux*)
6908             case `/usr/bin/file conftest.o` in
6909               *x86-64*)
6910                  LD="${LD-ld} -m elf32_x86_64"
6911                  ;;
6912               *)
6913                  LD="${LD-ld} -m elf_i386"
6914                  ;;
6915             esac
6916             ;;
6917           ppc64-*linux*|powerpc64-*linux*)
6918             LD="${LD-ld} -m elf32ppclinux"
6919             ;;
6920           s390x-*linux*)
6921             LD="${LD-ld} -m elf_s390"
6922             ;;
6923           sparc64-*linux*)
6924             LD="${LD-ld} -m elf32_sparc"
6925             ;;
6926         esac
6927         ;;
6928       *64-bit*)
6929         case $host in
6930           x86_64-*kfreebsd*-gnu)
6931             LD="${LD-ld} -m elf_x86_64_fbsd"
6932             ;;
6933           x86_64-*linux*)
6934             LD="${LD-ld} -m elf_x86_64"
6935             ;;
6936           ppc*-*linux*|powerpc*-*linux*)
6937             LD="${LD-ld} -m elf64ppc"
6938             ;;
6939           s390*-*linux*|s390*-*tpf*)
6940             LD="${LD-ld} -m elf64_s390"
6941             ;;
6942           sparc*-*linux*)
6943             LD="${LD-ld} -m elf64_sparc"
6944             ;;
6945         esac
6946         ;;
6947     esac
6948   fi
6949   rm -rf conftest*
6950   ;;
6951
6952 *-*-sco3.2v5*)
6953   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6954   SAVE_CFLAGS="$CFLAGS"
6955   CFLAGS="$CFLAGS -belf"
6956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6957 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6958 if ${lt_cv_cc_needs_belf+:} false; then :
6959   $as_echo_n "(cached) " >&6
6960 else
6961   ac_ext=c
6962 ac_cpp='$CPP $CPPFLAGS'
6963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6966
6967      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h.  */
6969
6970 int
6971 main ()
6972 {
6973
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 if ac_fn_c_try_link "$LINENO"; then :
6979   lt_cv_cc_needs_belf=yes
6980 else
6981   lt_cv_cc_needs_belf=no
6982 fi
6983 rm -f core conftest.err conftest.$ac_objext \
6984     conftest$ac_exeext conftest.$ac_ext
6985      ac_ext=c
6986 ac_cpp='$CPP $CPPFLAGS'
6987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6990
6991 fi
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6993 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6994   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6995     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6996     CFLAGS="$SAVE_CFLAGS"
6997   fi
6998   ;;
6999 *-*solaris*)
7000   # Find out which ABI we are using.
7001   echo 'int i;' > conftest.$ac_ext
7002   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7003   (eval $ac_compile) 2>&5
7004   ac_status=$?
7005   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7006   test $ac_status = 0; }; then
7007     case `/usr/bin/file conftest.o` in
7008     *64-bit*)
7009       case $lt_cv_prog_gnu_ld in
7010       yes*)
7011         case $host in
7012         i?86-*-solaris*)
7013           LD="${LD-ld} -m elf_x86_64"
7014           ;;
7015         sparc*-*-solaris*)
7016           LD="${LD-ld} -m elf64_sparc"
7017           ;;
7018         esac
7019         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7020         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7021           LD="${LD-ld}_sol2"
7022         fi
7023         ;;
7024       *)
7025         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7026           LD="${LD-ld} -64"
7027         fi
7028         ;;
7029       esac
7030       ;;
7031     esac
7032   fi
7033   rm -rf conftest*
7034   ;;
7035 esac
7036
7037 need_locks="$enable_libtool_lock"
7038
7039 if test -n "$ac_tool_prefix"; then
7040   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7041 set dummy ${ac_tool_prefix}mt; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7043 $as_echo_n "checking for $ac_word... " >&6; }
7044 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7045   $as_echo_n "(cached) " >&6
7046 else
7047   if test -n "$MANIFEST_TOOL"; then
7048   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7049 else
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7051 for as_dir in $PATH
7052 do
7053   IFS=$as_save_IFS
7054   test -z "$as_dir" && as_dir=.
7055     for ac_exec_ext in '' $ac_executable_extensions; do
7056   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7057     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7059     break 2
7060   fi
7061 done
7062   done
7063 IFS=$as_save_IFS
7064
7065 fi
7066 fi
7067 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7068 if test -n "$MANIFEST_TOOL"; then
7069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7070 $as_echo "$MANIFEST_TOOL" >&6; }
7071 else
7072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073 $as_echo "no" >&6; }
7074 fi
7075
7076
7077 fi
7078 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7079   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7080   # Extract the first word of "mt", so it can be a program name with args.
7081 set dummy mt; ac_word=$2
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7083 $as_echo_n "checking for $ac_word... " >&6; }
7084 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7085   $as_echo_n "(cached) " >&6
7086 else
7087   if test -n "$ac_ct_MANIFEST_TOOL"; then
7088   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7089 else
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7091 for as_dir in $PATH
7092 do
7093   IFS=$as_save_IFS
7094   test -z "$as_dir" && as_dir=.
7095     for ac_exec_ext in '' $ac_executable_extensions; do
7096   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7097     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7098     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7099     break 2
7100   fi
7101 done
7102   done
7103 IFS=$as_save_IFS
7104
7105 fi
7106 fi
7107 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7108 if test -n "$ac_ct_MANIFEST_TOOL"; then
7109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7110 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7111 else
7112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7113 $as_echo "no" >&6; }
7114 fi
7115
7116   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7117     MANIFEST_TOOL=":"
7118   else
7119     case $cross_compiling:$ac_tool_warned in
7120 yes:)
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7123 ac_tool_warned=yes ;;
7124 esac
7125     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7126   fi
7127 else
7128   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7129 fi
7130
7131 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7133 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7134 if ${lt_cv_path_mainfest_tool+:} false; then :
7135   $as_echo_n "(cached) " >&6
7136 else
7137   lt_cv_path_mainfest_tool=no
7138   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7139   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7140   cat conftest.err >&5
7141   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7142     lt_cv_path_mainfest_tool=yes
7143   fi
7144   rm -f conftest*
7145 fi
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7147 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7148 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7149   MANIFEST_TOOL=:
7150 fi
7151
7152
7153
7154
7155
7156
7157   case $host_os in
7158     rhapsody* | darwin*)
7159     if test -n "$ac_tool_prefix"; then
7160   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   if test -n "$DSYMUTIL"; then
7168   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_exec_ext in '' $ac_executable_extensions; do
7176   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182   done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7188 if test -n "$DSYMUTIL"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7190 $as_echo "$DSYMUTIL" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196
7197 fi
7198 if test -z "$ac_cv_prog_DSYMUTIL"; then
7199   ac_ct_DSYMUTIL=$DSYMUTIL
7200   # Extract the first word of "dsymutil", so it can be a program name with args.
7201 set dummy dsymutil; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7205   $as_echo_n "(cached) " >&6
7206 else
7207   if test -n "$ac_ct_DSYMUTIL"; then
7208   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7212 do
7213   IFS=$as_save_IFS
7214   test -z "$as_dir" && as_dir=.
7215     for ac_exec_ext in '' $ac_executable_extensions; do
7216   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7218     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219     break 2
7220   fi
7221 done
7222   done
7223 IFS=$as_save_IFS
7224
7225 fi
7226 fi
7227 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7228 if test -n "$ac_ct_DSYMUTIL"; then
7229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7230 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7231 else
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7234 fi
7235
7236   if test "x$ac_ct_DSYMUTIL" = x; then
7237     DSYMUTIL=":"
7238   else
7239     case $cross_compiling:$ac_tool_warned in
7240 yes:)
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7244 esac
7245     DSYMUTIL=$ac_ct_DSYMUTIL
7246   fi
7247 else
7248   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7249 fi
7250
7251     if test -n "$ac_tool_prefix"; then
7252   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7253 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_NMEDIT+:} false; then :
7257   $as_echo_n "(cached) " >&6
7258 else
7259   if test -n "$NMEDIT"; then
7260   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265   IFS=$as_save_IFS
7266   test -z "$as_dir" && as_dir=.
7267     for ac_exec_ext in '' $ac_executable_extensions; do
7268   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7270     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271     break 2
7272   fi
7273 done
7274   done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 NMEDIT=$ac_cv_prog_NMEDIT
7280 if test -n "$NMEDIT"; then
7281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7282 $as_echo "$NMEDIT" >&6; }
7283 else
7284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288
7289 fi
7290 if test -z "$ac_cv_prog_NMEDIT"; then
7291   ac_ct_NMEDIT=$NMEDIT
7292   # Extract the first word of "nmedit", so it can be a program name with args.
7293 set dummy nmedit; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7297   $as_echo_n "(cached) " >&6
7298 else
7299   if test -n "$ac_ct_NMEDIT"; then
7300   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7304 do
7305   IFS=$as_save_IFS
7306   test -z "$as_dir" && as_dir=.
7307     for ac_exec_ext in '' $ac_executable_extensions; do
7308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311     break 2
7312   fi
7313 done
7314   done
7315 IFS=$as_save_IFS
7316
7317 fi
7318 fi
7319 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7320 if test -n "$ac_ct_NMEDIT"; then
7321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7322 $as_echo "$ac_ct_NMEDIT" >&6; }
7323 else
7324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7326 fi
7327
7328   if test "x$ac_ct_NMEDIT" = x; then
7329     NMEDIT=":"
7330   else
7331     case $cross_compiling:$ac_tool_warned in
7332 yes:)
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335 ac_tool_warned=yes ;;
7336 esac
7337     NMEDIT=$ac_ct_NMEDIT
7338   fi
7339 else
7340   NMEDIT="$ac_cv_prog_NMEDIT"
7341 fi
7342
7343     if test -n "$ac_tool_prefix"; then
7344   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_LIPO+:} false; then :
7349   $as_echo_n "(cached) " >&6
7350 else
7351   if test -n "$LIPO"; then
7352   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359     for ac_exec_ext in '' $ac_executable_extensions; do
7360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366   done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 LIPO=$ac_cv_prog_LIPO
7372 if test -n "$LIPO"; then
7373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7374 $as_echo "$LIPO" >&6; }
7375 else
7376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380
7381 fi
7382 if test -z "$ac_cv_prog_LIPO"; then
7383   ac_ct_LIPO=$LIPO
7384   # Extract the first word of "lipo", so it can be a program name with args.
7385 set dummy lipo; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7389   $as_echo_n "(cached) " >&6
7390 else
7391   if test -n "$ac_ct_LIPO"; then
7392   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7396 do
7397   IFS=$as_save_IFS
7398   test -z "$as_dir" && as_dir=.
7399     for ac_exec_ext in '' $ac_executable_extensions; do
7400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401     ac_cv_prog_ac_ct_LIPO="lipo"
7402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403     break 2
7404   fi
7405 done
7406   done
7407 IFS=$as_save_IFS
7408
7409 fi
7410 fi
7411 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7412 if test -n "$ac_ct_LIPO"; then
7413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7414 $as_echo "$ac_ct_LIPO" >&6; }
7415 else
7416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7418 fi
7419
7420   if test "x$ac_ct_LIPO" = x; then
7421     LIPO=":"
7422   else
7423     case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429     LIPO=$ac_ct_LIPO
7430   fi
7431 else
7432   LIPO="$ac_cv_prog_LIPO"
7433 fi
7434
7435     if test -n "$ac_tool_prefix"; then
7436   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7437 set dummy ${ac_tool_prefix}otool; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_OTOOL+:} false; then :
7441   $as_echo_n "(cached) " >&6
7442 else
7443   if test -n "$OTOOL"; then
7444   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7448 do
7449   IFS=$as_save_IFS
7450   test -z "$as_dir" && as_dir=.
7451     for ac_exec_ext in '' $ac_executable_extensions; do
7452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455     break 2
7456   fi
7457 done
7458   done
7459 IFS=$as_save_IFS
7460
7461 fi
7462 fi
7463 OTOOL=$ac_cv_prog_OTOOL
7464 if test -n "$OTOOL"; then
7465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7466 $as_echo "$OTOOL" >&6; }
7467 else
7468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7470 fi
7471
7472
7473 fi
7474 if test -z "$ac_cv_prog_OTOOL"; then
7475   ac_ct_OTOOL=$OTOOL
7476   # Extract the first word of "otool", so it can be a program name with args.
7477 set dummy otool; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7481   $as_echo_n "(cached) " >&6
7482 else
7483   if test -n "$ac_ct_OTOOL"; then
7484   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7488 do
7489   IFS=$as_save_IFS
7490   test -z "$as_dir" && as_dir=.
7491     for ac_exec_ext in '' $ac_executable_extensions; do
7492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493     ac_cv_prog_ac_ct_OTOOL="otool"
7494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495     break 2
7496   fi
7497 done
7498   done
7499 IFS=$as_save_IFS
7500
7501 fi
7502 fi
7503 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7504 if test -n "$ac_ct_OTOOL"; then
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7506 $as_echo "$ac_ct_OTOOL" >&6; }
7507 else
7508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7510 fi
7511
7512   if test "x$ac_ct_OTOOL" = x; then
7513     OTOOL=":"
7514   else
7515     case $cross_compiling:$ac_tool_warned in
7516 yes:)
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7519 ac_tool_warned=yes ;;
7520 esac
7521     OTOOL=$ac_ct_OTOOL
7522   fi
7523 else
7524   OTOOL="$ac_cv_prog_OTOOL"
7525 fi
7526
7527     if test -n "$ac_tool_prefix"; then
7528   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7529 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531 $as_echo_n "checking for $ac_word... " >&6; }
7532 if ${ac_cv_prog_OTOOL64+:} false; then :
7533   $as_echo_n "(cached) " >&6
7534 else
7535   if test -n "$OTOOL64"; then
7536   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7537 else
7538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 for as_dir in $PATH
7540 do
7541   IFS=$as_save_IFS
7542   test -z "$as_dir" && as_dir=.
7543     for ac_exec_ext in '' $ac_executable_extensions; do
7544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7545     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547     break 2
7548   fi
7549 done
7550   done
7551 IFS=$as_save_IFS
7552
7553 fi
7554 fi
7555 OTOOL64=$ac_cv_prog_OTOOL64
7556 if test -n "$OTOOL64"; then
7557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7558 $as_echo "$OTOOL64" >&6; }
7559 else
7560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561 $as_echo "no" >&6; }
7562 fi
7563
7564
7565 fi
7566 if test -z "$ac_cv_prog_OTOOL64"; then
7567   ac_ct_OTOOL64=$OTOOL64
7568   # Extract the first word of "otool64", so it can be a program name with args.
7569 set dummy otool64; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7573   $as_echo_n "(cached) " >&6
7574 else
7575   if test -n "$ac_ct_OTOOL64"; then
7576   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7577 else
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7579 for as_dir in $PATH
7580 do
7581   IFS=$as_save_IFS
7582   test -z "$as_dir" && as_dir=.
7583     for ac_exec_ext in '' $ac_executable_extensions; do
7584   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7585     ac_cv_prog_ac_ct_OTOOL64="otool64"
7586     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587     break 2
7588   fi
7589 done
7590   done
7591 IFS=$as_save_IFS
7592
7593 fi
7594 fi
7595 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7596 if test -n "$ac_ct_OTOOL64"; then
7597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7598 $as_echo "$ac_ct_OTOOL64" >&6; }
7599 else
7600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7602 fi
7603
7604   if test "x$ac_ct_OTOOL64" = x; then
7605     OTOOL64=":"
7606   else
7607     case $cross_compiling:$ac_tool_warned in
7608 yes:)
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7611 ac_tool_warned=yes ;;
7612 esac
7613     OTOOL64=$ac_ct_OTOOL64
7614   fi
7615 else
7616   OTOOL64="$ac_cv_prog_OTOOL64"
7617 fi
7618
7619
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7646 $as_echo_n "checking for -single_module linker flag... " >&6; }
7647 if ${lt_cv_apple_cc_single_mod+:} false; then :
7648   $as_echo_n "(cached) " >&6
7649 else
7650   lt_cv_apple_cc_single_mod=no
7651       if test -z "${LT_MULTI_MODULE}"; then
7652         # By default we will add the -single_module flag. You can override
7653         # by either setting the environment variable LT_MULTI_MODULE
7654         # non-empty at configure time, or by adding -multi_module to the
7655         # link flags.
7656         rm -rf libconftest.dylib*
7657         echo "int foo(void){return 1;}" > conftest.c
7658         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7659 -dynamiclib -Wl,-single_module conftest.c" >&5
7660         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7661           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7662         _lt_result=$?
7663         # If there is a non-empty error log, and "single_module"
7664         # appears in it, assume the flag caused a linker warning
7665         if test -s conftest.err && $GREP single_module conftest.err; then
7666           cat conftest.err >&5
7667         # Otherwise, if the output was created with a 0 exit code from
7668         # the compiler, it worked.
7669         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7670           lt_cv_apple_cc_single_mod=yes
7671         else
7672           cat conftest.err >&5
7673         fi
7674         rm -rf libconftest.dylib*
7675         rm -f conftest.*
7676       fi
7677 fi
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7679 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7680
7681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7682 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7683 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7684   $as_echo_n "(cached) " >&6
7685 else
7686   lt_cv_ld_exported_symbols_list=no
7687       save_LDFLAGS=$LDFLAGS
7688       echo "_main" > conftest.sym
7689       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7690       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7691 /* end confdefs.h.  */
7692
7693 int
7694 main ()
7695 {
7696
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 if ac_fn_c_try_link "$LINENO"; then :
7702   lt_cv_ld_exported_symbols_list=yes
7703 else
7704   lt_cv_ld_exported_symbols_list=no
7705 fi
7706 rm -f core conftest.err conftest.$ac_objext \
7707     conftest$ac_exeext conftest.$ac_ext
7708         LDFLAGS="$save_LDFLAGS"
7709
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7712 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7713
7714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7715 $as_echo_n "checking for -force_load linker flag... " >&6; }
7716 if ${lt_cv_ld_force_load+:} false; then :
7717   $as_echo_n "(cached) " >&6
7718 else
7719   lt_cv_ld_force_load=no
7720       cat > conftest.c << _LT_EOF
7721 int forced_loaded() { return 2;}
7722 _LT_EOF
7723       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7724       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7725       echo "$AR cru libconftest.a conftest.o" >&5
7726       $AR cru libconftest.a conftest.o 2>&5
7727       echo "$RANLIB libconftest.a" >&5
7728       $RANLIB libconftest.a 2>&5
7729       cat > conftest.c << _LT_EOF
7730 int main() { return 0;}
7731 _LT_EOF
7732       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7733       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7734       _lt_result=$?
7735       if test -s conftest.err && $GREP force_load conftest.err; then
7736         cat conftest.err >&5
7737       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7738         lt_cv_ld_force_load=yes
7739       else
7740         cat conftest.err >&5
7741       fi
7742         rm -f conftest.err libconftest.a conftest conftest.c
7743         rm -rf conftest.dSYM
7744
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7747 $as_echo "$lt_cv_ld_force_load" >&6; }
7748     case $host_os in
7749     rhapsody* | darwin1.[012])
7750       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7751     darwin1.*)
7752       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7753     darwin*) # darwin 5.x on
7754       # if running on 10.5 or later, the deployment target defaults
7755       # to the OS version, if on x86, and 10.4, the deployment
7756       # target defaults to 10.4. Don't you love it?
7757       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7758         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7759           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7760         10.[012]*)
7761           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7762         10.*)
7763           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7764       esac
7765     ;;
7766   esac
7767     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7768       _lt_dar_single_mod='$single_module'
7769     fi
7770     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7771       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7772     else
7773       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7774     fi
7775     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7776       _lt_dsymutil='~$DSYMUTIL $lib || :'
7777     else
7778       _lt_dsymutil=
7779     fi
7780     ;;
7781   esac
7782
7783 ac_ext=c
7784 ac_cpp='$CPP $CPPFLAGS'
7785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7789 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7790 # On Suns, sometimes $CPP names a directory.
7791 if test -n "$CPP" && test -d "$CPP"; then
7792   CPP=
7793 fi
7794 if test -z "$CPP"; then
7795   if ${ac_cv_prog_CPP+:} false; then :
7796   $as_echo_n "(cached) " >&6
7797 else
7798       # Double quotes because CPP needs to be expanded
7799     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7800     do
7801       ac_preproc_ok=false
7802 for ac_c_preproc_warn_flag in '' yes
7803 do
7804   # Use a header file that comes with gcc, so configuring glibc
7805   # with a fresh cross-compiler works.
7806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7807   # <limits.h> exists even on freestanding compilers.
7808   # On the NeXT, cc -E runs the code through the compiler's parser,
7809   # not just through cpp. "Syntax error" is here to catch this case.
7810   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h.  */
7812 #ifdef __STDC__
7813 # include <limits.h>
7814 #else
7815 # include <assert.h>
7816 #endif
7817                      Syntax error
7818 _ACEOF
7819 if ac_fn_c_try_cpp "$LINENO"; then :
7820
7821 else
7822   # Broken: fails on valid input.
7823 continue
7824 fi
7825 rm -f conftest.err conftest.i conftest.$ac_ext
7826
7827   # OK, works on sane cases.  Now check whether nonexistent headers
7828   # can be detected and how.
7829   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h.  */
7831 #include <ac_nonexistent.h>
7832 _ACEOF
7833 if ac_fn_c_try_cpp "$LINENO"; then :
7834   # Broken: success on invalid input.
7835 continue
7836 else
7837   # Passes both tests.
7838 ac_preproc_ok=:
7839 break
7840 fi
7841 rm -f conftest.err conftest.i conftest.$ac_ext
7842
7843 done
7844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7845 rm -f conftest.i conftest.err conftest.$ac_ext
7846 if $ac_preproc_ok; then :
7847   break
7848 fi
7849
7850     done
7851     ac_cv_prog_CPP=$CPP
7852
7853 fi
7854   CPP=$ac_cv_prog_CPP
7855 else
7856   ac_cv_prog_CPP=$CPP
7857 fi
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7859 $as_echo "$CPP" >&6; }
7860 ac_preproc_ok=false
7861 for ac_c_preproc_warn_flag in '' yes
7862 do
7863   # Use a header file that comes with gcc, so configuring glibc
7864   # with a fresh cross-compiler works.
7865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7866   # <limits.h> exists even on freestanding compilers.
7867   # On the NeXT, cc -E runs the code through the compiler's parser,
7868   # not just through cpp. "Syntax error" is here to catch this case.
7869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h.  */
7871 #ifdef __STDC__
7872 # include <limits.h>
7873 #else
7874 # include <assert.h>
7875 #endif
7876                      Syntax error
7877 _ACEOF
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879
7880 else
7881   # Broken: fails on valid input.
7882 continue
7883 fi
7884 rm -f conftest.err conftest.i conftest.$ac_ext
7885
7886   # OK, works on sane cases.  Now check whether nonexistent headers
7887   # can be detected and how.
7888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h.  */
7890 #include <ac_nonexistent.h>
7891 _ACEOF
7892 if ac_fn_c_try_cpp "$LINENO"; then :
7893   # Broken: success on invalid input.
7894 continue
7895 else
7896   # Passes both tests.
7897 ac_preproc_ok=:
7898 break
7899 fi
7900 rm -f conftest.err conftest.i conftest.$ac_ext
7901
7902 done
7903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7904 rm -f conftest.i conftest.err conftest.$ac_ext
7905 if $ac_preproc_ok; then :
7906
7907 else
7908   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7910 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7911 See \`config.log' for more details" "$LINENO" 5; }
7912 fi
7913
7914 ac_ext=c
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7919
7920
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7922 $as_echo_n "checking for ANSI C header files... " >&6; }
7923 if ${ac_cv_header_stdc+:} false; then :
7924   $as_echo_n "(cached) " >&6
7925 else
7926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h.  */
7928 #include <stdlib.h>
7929 #include <stdarg.h>
7930 #include <string.h>
7931 #include <float.h>
7932
7933 int
7934 main ()
7935 {
7936
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 if ac_fn_c_try_compile "$LINENO"; then :
7942   ac_cv_header_stdc=yes
7943 else
7944   ac_cv_header_stdc=no
7945 fi
7946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7947
7948 if test $ac_cv_header_stdc = yes; then
7949   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951 /* end confdefs.h.  */
7952 #include <string.h>
7953
7954 _ACEOF
7955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7956   $EGREP "memchr" >/dev/null 2>&1; then :
7957
7958 else
7959   ac_cv_header_stdc=no
7960 fi
7961 rm -f conftest*
7962
7963 fi
7964
7965 if test $ac_cv_header_stdc = yes; then
7966   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h.  */
7969 #include <stdlib.h>
7970
7971 _ACEOF
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973   $EGREP "free" >/dev/null 2>&1; then :
7974
7975 else
7976   ac_cv_header_stdc=no
7977 fi
7978 rm -f conftest*
7979
7980 fi
7981
7982 if test $ac_cv_header_stdc = yes; then
7983   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7984   if test "$cross_compiling" = yes; then :
7985   :
7986 else
7987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h.  */
7989 #include <ctype.h>
7990 #include <stdlib.h>
7991 #if ((' ' & 0x0FF) == 0x020)
7992 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7993 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7994 #else
7995 # define ISLOWER(c) \
7996                    (('a' <= (c) && (c) <= 'i') \
7997                      || ('j' <= (c) && (c) <= 'r') \
7998                      || ('s' <= (c) && (c) <= 'z'))
7999 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8000 #endif
8001
8002 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8003 int
8004 main ()
8005 {
8006   int i;
8007   for (i = 0; i < 256; i++)
8008     if (XOR (islower (i), ISLOWER (i))
8009         || toupper (i) != TOUPPER (i))
8010       return 2;
8011   return 0;
8012 }
8013 _ACEOF
8014 if ac_fn_c_try_run "$LINENO"; then :
8015
8016 else
8017   ac_cv_header_stdc=no
8018 fi
8019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8020   conftest.$ac_objext conftest.beam conftest.$ac_ext
8021 fi
8022
8023 fi
8024 fi
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8026 $as_echo "$ac_cv_header_stdc" >&6; }
8027 if test $ac_cv_header_stdc = yes; then
8028
8029 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8030
8031 fi
8032
8033 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8034 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8035                   inttypes.h stdint.h unistd.h
8036 do :
8037   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8038 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8039 "
8040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8041   cat >>confdefs.h <<_ACEOF
8042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8043 _ACEOF
8044
8045 fi
8046
8047 done
8048
8049
8050 for ac_header in dlfcn.h
8051 do :
8052   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8053 "
8054 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8055   cat >>confdefs.h <<_ACEOF
8056 #define HAVE_DLFCN_H 1
8057 _ACEOF
8058
8059 fi
8060
8061 done
8062
8063
8064
8065
8066
8067 # Set options
8068
8069
8070
8071         enable_dlopen=no
8072
8073
8074   enable_win32_dll=no
8075
8076
8077             # Check whether --enable-shared was given.
8078 if test "${enable_shared+set}" = set; then :
8079   enableval=$enable_shared; p=${PACKAGE-default}
8080     case $enableval in
8081     yes) enable_shared=yes ;;
8082     no) enable_shared=no ;;
8083     *)
8084       enable_shared=no
8085       # Look at the argument we got.  We use all the common list separators.
8086       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8087       for pkg in $enableval; do
8088         IFS="$lt_save_ifs"
8089         if test "X$pkg" = "X$p"; then
8090           enable_shared=yes
8091         fi
8092       done
8093       IFS="$lt_save_ifs"
8094       ;;
8095     esac
8096 else
8097   enable_shared=yes
8098 fi
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108   # Check whether --enable-static was given.
8109 if test "${enable_static+set}" = set; then :
8110   enableval=$enable_static; p=${PACKAGE-default}
8111     case $enableval in
8112     yes) enable_static=yes ;;
8113     no) enable_static=no ;;
8114     *)
8115      enable_static=no
8116       # Look at the argument we got.  We use all the common list separators.
8117       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8118       for pkg in $enableval; do
8119         IFS="$lt_save_ifs"
8120         if test "X$pkg" = "X$p"; then
8121           enable_static=yes
8122         fi
8123       done
8124       IFS="$lt_save_ifs"
8125       ;;
8126     esac
8127 else
8128   enable_static=yes
8129 fi
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140 # Check whether --with-pic was given.
8141 if test "${with_pic+set}" = set; then :
8142   withval=$with_pic; lt_p=${PACKAGE-default}
8143     case $withval in
8144     yes|no) pic_mode=$withval ;;
8145     *)
8146       pic_mode=default
8147       # Look at the argument we got.  We use all the common list separators.
8148       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8149       for lt_pkg in $withval; do
8150         IFS="$lt_save_ifs"
8151         if test "X$lt_pkg" = "X$lt_p"; then
8152           pic_mode=yes
8153         fi
8154       done
8155       IFS="$lt_save_ifs"
8156       ;;
8157     esac
8158 else
8159   pic_mode=default
8160 fi
8161
8162
8163 test -z "$pic_mode" && pic_mode=default
8164
8165
8166
8167
8168
8169
8170
8171   # Check whether --enable-fast-install was given.
8172 if test "${enable_fast_install+set}" = set; then :
8173   enableval=$enable_fast_install; p=${PACKAGE-default}
8174     case $enableval in
8175     yes) enable_fast_install=yes ;;
8176     no) enable_fast_install=no ;;
8177     *)
8178       enable_fast_install=no
8179       # Look at the argument we got.  We use all the common list separators.
8180       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8181       for pkg in $enableval; do
8182         IFS="$lt_save_ifs"
8183         if test "X$pkg" = "X$p"; then
8184           enable_fast_install=yes
8185         fi
8186       done
8187       IFS="$lt_save_ifs"
8188       ;;
8189     esac
8190 else
8191   enable_fast_install=yes
8192 fi
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204 # This can be used to rebuild libtool when needed
8205 LIBTOOL_DEPS="$ltmain"
8206
8207 # Always use our own libtool.
8208 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8209
8210
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 test -z "$LN_S" && LN_S="ln -s"
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254 if test -n "${ZSH_VERSION+set}" ; then
8255    setopt NO_GLOB_SUBST
8256 fi
8257
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8259 $as_echo_n "checking for objdir... " >&6; }
8260 if ${lt_cv_objdir+:} false; then :
8261   $as_echo_n "(cached) " >&6
8262 else
8263   rm -f .libs 2>/dev/null
8264 mkdir .libs 2>/dev/null
8265 if test -d .libs; then
8266   lt_cv_objdir=.libs
8267 else
8268   # MS-DOS does not allow filenames that begin with a dot.
8269   lt_cv_objdir=_libs
8270 fi
8271 rmdir .libs 2>/dev/null
8272 fi
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8274 $as_echo "$lt_cv_objdir" >&6; }
8275 objdir=$lt_cv_objdir
8276
8277
8278
8279
8280
8281 cat >>confdefs.h <<_ACEOF
8282 #define LT_OBJDIR "$lt_cv_objdir/"
8283 _ACEOF
8284
8285
8286
8287
8288 case $host_os in
8289 aix3*)
8290   # AIX sometimes has problems with the GCC collect2 program.  For some
8291   # reason, if we set the COLLECT_NAMES environment variable, the problems
8292   # vanish in a puff of smoke.
8293   if test "X${COLLECT_NAMES+set}" != Xset; then
8294     COLLECT_NAMES=
8295     export COLLECT_NAMES
8296   fi
8297   ;;
8298 esac
8299
8300 # Global variables:
8301 ofile=libtool
8302 can_build_shared=yes
8303
8304 # All known linkers require a `.a' archive for static linking (except MSVC,
8305 # which needs '.lib').
8306 libext=a
8307
8308 with_gnu_ld="$lt_cv_prog_gnu_ld"
8309
8310 old_CC="$CC"
8311 old_CFLAGS="$CFLAGS"
8312
8313 # Set sane defaults for various variables
8314 test -z "$CC" && CC=cc
8315 test -z "$LTCC" && LTCC=$CC
8316 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8317 test -z "$LD" && LD=ld
8318 test -z "$ac_objext" && ac_objext=o
8319
8320 for cc_temp in $compiler""; do
8321   case $cc_temp in
8322     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8323     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8324     \-*) ;;
8325     *) break;;
8326   esac
8327 done
8328 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8329
8330
8331 # Only perform the check for file, if the check method requires it
8332 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8333 case $deplibs_check_method in
8334 file_magic*)
8335   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8336     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8337 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8338 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   case $MAGIC_CMD in
8342 [\\/*] |  ?:[\\/]*)
8343   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8344   ;;
8345 *)
8346   lt_save_MAGIC_CMD="$MAGIC_CMD"
8347   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8348   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8349   for ac_dir in $ac_dummy; do
8350     IFS="$lt_save_ifs"
8351     test -z "$ac_dir" && ac_dir=.
8352     if test -f $ac_dir/${ac_tool_prefix}file; then
8353       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8354       if test -n "$file_magic_test_file"; then
8355         case $deplibs_check_method in
8356         "file_magic "*)
8357           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8358           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8359           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8360             $EGREP "$file_magic_regex" > /dev/null; then
8361             :
8362           else
8363             cat <<_LT_EOF 1>&2
8364
8365 *** Warning: the command libtool uses to detect shared libraries,
8366 *** $file_magic_cmd, produces output that libtool cannot recognize.
8367 *** The result is that libtool may fail to recognize shared libraries
8368 *** as such.  This will affect the creation of libtool libraries that
8369 *** depend on shared libraries, but programs linked with such libtool
8370 *** libraries will work regardless of this problem.  Nevertheless, you
8371 *** may want to report the problem to your system manager and/or to
8372 *** bug-libtool@gnu.org
8373
8374 _LT_EOF
8375           fi ;;
8376         esac
8377       fi
8378       break
8379     fi
8380   done
8381   IFS="$lt_save_ifs"
8382   MAGIC_CMD="$lt_save_MAGIC_CMD"
8383   ;;
8384 esac
8385 fi
8386
8387 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8388 if test -n "$MAGIC_CMD"; then
8389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8390 $as_echo "$MAGIC_CMD" >&6; }
8391 else
8392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8394 fi
8395
8396
8397
8398
8399
8400 if test -z "$lt_cv_path_MAGIC_CMD"; then
8401   if test -n "$ac_tool_prefix"; then
8402     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8403 $as_echo_n "checking for file... " >&6; }
8404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8405   $as_echo_n "(cached) " >&6
8406 else
8407   case $MAGIC_CMD in
8408 [\\/*] |  ?:[\\/]*)
8409   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8410   ;;
8411 *)
8412   lt_save_MAGIC_CMD="$MAGIC_CMD"
8413   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8414   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8415   for ac_dir in $ac_dummy; do
8416     IFS="$lt_save_ifs"
8417     test -z "$ac_dir" && ac_dir=.
8418     if test -f $ac_dir/file; then
8419       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8420       if test -n "$file_magic_test_file"; then
8421         case $deplibs_check_method in
8422         "file_magic "*)
8423           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8424           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8425           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8426             $EGREP "$file_magic_regex" > /dev/null; then
8427             :
8428           else
8429             cat <<_LT_EOF 1>&2
8430
8431 *** Warning: the command libtool uses to detect shared libraries,
8432 *** $file_magic_cmd, produces output that libtool cannot recognize.
8433 *** The result is that libtool may fail to recognize shared libraries
8434 *** as such.  This will affect the creation of libtool libraries that
8435 *** depend on shared libraries, but programs linked with such libtool
8436 *** libraries will work regardless of this problem.  Nevertheless, you
8437 *** may want to report the problem to your system manager and/or to
8438 *** bug-libtool@gnu.org
8439
8440 _LT_EOF
8441           fi ;;
8442         esac
8443       fi
8444       break
8445     fi
8446   done
8447   IFS="$lt_save_ifs"
8448   MAGIC_CMD="$lt_save_MAGIC_CMD"
8449   ;;
8450 esac
8451 fi
8452
8453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8454 if test -n "$MAGIC_CMD"; then
8455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8456 $as_echo "$MAGIC_CMD" >&6; }
8457 else
8458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8460 fi
8461
8462
8463   else
8464     MAGIC_CMD=:
8465   fi
8466 fi
8467
8468   fi
8469   ;;
8470 esac
8471
8472 # Use C for the default configuration in the libtool script
8473
8474 lt_save_CC="$CC"
8475 ac_ext=c
8476 ac_cpp='$CPP $CPPFLAGS'
8477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8480
8481
8482 # Source file extension for C test sources.
8483 ac_ext=c
8484
8485 # Object file extension for compiled C test sources.
8486 objext=o
8487 objext=$objext
8488
8489 # Code to be used in simple compile tests
8490 lt_simple_compile_test_code="int some_variable = 0;"
8491
8492 # Code to be used in simple link tests
8493 lt_simple_link_test_code='int main(){return(0);}'
8494
8495
8496
8497
8498
8499
8500
8501 # If no C compiler was specified, use CC.
8502 LTCC=${LTCC-"$CC"}
8503
8504 # If no C compiler flags were specified, use CFLAGS.
8505 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8506
8507 # Allow CC to be a program name with arguments.
8508 compiler=$CC
8509
8510 # Save the default compiler, since it gets overwritten when the other
8511 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8512 compiler_DEFAULT=$CC
8513
8514 # save warnings/boilerplate of simple test code
8515 ac_outfile=conftest.$ac_objext
8516 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8517 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8518 _lt_compiler_boilerplate=`cat conftest.err`
8519 $RM conftest*
8520
8521 ac_outfile=conftest.$ac_objext
8522 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8523 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8524 _lt_linker_boilerplate=`cat conftest.err`
8525 $RM -r conftest*
8526
8527
8528 ## CAVEAT EMPTOR:
8529 ## There is no encapsulation within the following macros, do not change
8530 ## the running order or otherwise move them around unless you know exactly
8531 ## what you are doing...
8532 if test -n "$compiler"; then
8533
8534 lt_prog_compiler_no_builtin_flag=
8535
8536 if test "$GCC" = yes; then
8537   case $cc_basename in
8538   nvcc*)
8539     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8540   *)
8541     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8542   esac
8543
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8545 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8546 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8547   $as_echo_n "(cached) " >&6
8548 else
8549   lt_cv_prog_compiler_rtti_exceptions=no
8550    ac_outfile=conftest.$ac_objext
8551    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8552    lt_compiler_flag="-fno-rtti -fno-exceptions"
8553    # Insert the option either (1) after the last *FLAGS variable, or
8554    # (2) before a word containing "conftest.", or (3) at the end.
8555    # Note that $ac_compile itself does not contain backslashes and begins
8556    # with a dollar sign (not a hyphen), so the echo should work correctly.
8557    # The option is referenced via a variable to avoid confusing sed.
8558    lt_compile=`echo "$ac_compile" | $SED \
8559    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8560    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8561    -e 's:$: $lt_compiler_flag:'`
8562    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8563    (eval "$lt_compile" 2>conftest.err)
8564    ac_status=$?
8565    cat conftest.err >&5
8566    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567    if (exit $ac_status) && test -s "$ac_outfile"; then
8568      # The compiler can only warn and ignore the option if not recognized
8569      # So say no if there are warnings other than the usual output.
8570      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8571      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8572      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8573        lt_cv_prog_compiler_rtti_exceptions=yes
8574      fi
8575    fi
8576    $RM conftest*
8577
8578 fi
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8580 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8581
8582 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8583     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8584 else
8585     :
8586 fi
8587
8588 fi
8589
8590
8591
8592
8593
8594
8595   lt_prog_compiler_wl=
8596 lt_prog_compiler_pic=
8597 lt_prog_compiler_static=
8598
8599
8600   if test "$GCC" = yes; then
8601     lt_prog_compiler_wl='-Wl,'
8602     lt_prog_compiler_static='-static'
8603
8604     case $host_os in
8605       aix*)
8606       # All AIX code is PIC.
8607       if test "$host_cpu" = ia64; then
8608         # AIX 5 now supports IA64 processor
8609         lt_prog_compiler_static='-Bstatic'
8610       fi
8611       ;;
8612
8613     amigaos*)
8614       case $host_cpu in
8615       powerpc)
8616             # see comment about AmigaOS4 .so support
8617             lt_prog_compiler_pic='-fPIC'
8618         ;;
8619       m68k)
8620             # FIXME: we need at least 68020 code to build shared libraries, but
8621             # adding the `-m68020' flag to GCC prevents building anything better,
8622             # like `-m68040'.
8623             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8624         ;;
8625       esac
8626       ;;
8627
8628     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8629       # PIC is the default for these OSes.
8630       ;;
8631
8632     mingw* | cygwin* | pw32* | os2* | cegcc*)
8633       # This hack is so that the source file can tell whether it is being
8634       # built for inclusion in a dll (and should export symbols for example).
8635       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8636       # (--disable-auto-import) libraries
8637       lt_prog_compiler_pic='-DDLL_EXPORT'
8638       ;;
8639
8640     darwin* | rhapsody*)
8641       # PIC is the default on this platform
8642       # Common symbols not allowed in MH_DYLIB files
8643       lt_prog_compiler_pic='-fno-common'
8644       ;;
8645
8646     haiku*)
8647       # PIC is the default for Haiku.
8648       # The "-static" flag exists, but is broken.
8649       lt_prog_compiler_static=
8650       ;;
8651
8652     hpux*)
8653       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8654       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8655       # sets the default TLS model and affects inlining.
8656       case $host_cpu in
8657       hppa*64*)
8658         # +Z the default
8659         ;;
8660       *)
8661         lt_prog_compiler_pic='-fPIC'
8662         ;;
8663       esac
8664       ;;
8665
8666     interix[3-9]*)
8667       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8668       # Instead, we relocate shared libraries at runtime.
8669       ;;
8670
8671     msdosdjgpp*)
8672       # Just because we use GCC doesn't mean we suddenly get shared libraries
8673       # on systems that don't support them.
8674       lt_prog_compiler_can_build_shared=no
8675       enable_shared=no
8676       ;;
8677
8678     *nto* | *qnx*)
8679       # QNX uses GNU C++, but need to define -shared option too, otherwise
8680       # it will coredump.
8681       lt_prog_compiler_pic='-fPIC -shared'
8682       ;;
8683
8684     sysv4*MP*)
8685       if test -d /usr/nec; then
8686         lt_prog_compiler_pic=-Kconform_pic
8687       fi
8688       ;;
8689
8690     *)
8691       lt_prog_compiler_pic='-fPIC'
8692       ;;
8693     esac
8694
8695     case $cc_basename in
8696     nvcc*) # Cuda Compiler Driver 2.2
8697       lt_prog_compiler_wl='-Xlinker '
8698       if test -n "$lt_prog_compiler_pic"; then
8699         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8700       fi
8701       ;;
8702     esac
8703   else
8704     # PORTME Check for flag to pass linker flags through the system compiler.
8705     case $host_os in
8706     aix*)
8707       lt_prog_compiler_wl='-Wl,'
8708       if test "$host_cpu" = ia64; then
8709         # AIX 5 now supports IA64 processor
8710         lt_prog_compiler_static='-Bstatic'
8711       else
8712         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8713       fi
8714       ;;
8715
8716     mingw* | cygwin* | pw32* | os2* | cegcc*)
8717       # This hack is so that the source file can tell whether it is being
8718       # built for inclusion in a dll (and should export symbols for example).
8719       lt_prog_compiler_pic='-DDLL_EXPORT'
8720       ;;
8721
8722     hpux9* | hpux10* | hpux11*)
8723       lt_prog_compiler_wl='-Wl,'
8724       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8725       # not for PA HP-UX.
8726       case $host_cpu in
8727       hppa*64*|ia64*)
8728         # +Z the default
8729         ;;
8730       *)
8731         lt_prog_compiler_pic='+Z'
8732         ;;
8733       esac
8734       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8735       lt_prog_compiler_static='${wl}-a ${wl}archive'
8736       ;;
8737
8738     irix5* | irix6* | nonstopux*)
8739       lt_prog_compiler_wl='-Wl,'
8740       # PIC (with -KPIC) is the default.
8741       lt_prog_compiler_static='-non_shared'
8742       ;;
8743
8744     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8745       case $cc_basename in
8746       # old Intel for x86_64 which still supported -KPIC.
8747       ecc*)
8748         lt_prog_compiler_wl='-Wl,'
8749         lt_prog_compiler_pic='-KPIC'
8750         lt_prog_compiler_static='-static'
8751         ;;
8752       # icc used to be incompatible with GCC.
8753       # ICC 10 doesn't accept -KPIC any more.
8754       icc* | ifort*)
8755         lt_prog_compiler_wl='-Wl,'
8756         lt_prog_compiler_pic='-fPIC'
8757         lt_prog_compiler_static='-static'
8758         ;;
8759       # Lahey Fortran 8.1.
8760       lf95*)
8761         lt_prog_compiler_wl='-Wl,'
8762         lt_prog_compiler_pic='--shared'
8763         lt_prog_compiler_static='--static'
8764         ;;
8765       nagfor*)
8766         # NAG Fortran compiler
8767         lt_prog_compiler_wl='-Wl,-Wl,,'
8768         lt_prog_compiler_pic='-PIC'
8769         lt_prog_compiler_static='-Bstatic'
8770         ;;
8771       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8772         # Portland Group compilers (*not* the Pentium gcc compiler,
8773         # which looks to be a dead project)
8774         lt_prog_compiler_wl='-Wl,'
8775         lt_prog_compiler_pic='-fpic'
8776         lt_prog_compiler_static='-Bstatic'
8777         ;;
8778       ccc*)
8779         lt_prog_compiler_wl='-Wl,'
8780         # All Alpha code is PIC.
8781         lt_prog_compiler_static='-non_shared'
8782         ;;
8783       xl* | bgxl* | bgf* | mpixl*)
8784         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8785         lt_prog_compiler_wl='-Wl,'
8786         lt_prog_compiler_pic='-qpic'
8787         lt_prog_compiler_static='-qstaticlink'
8788         ;;
8789       *)
8790         case `$CC -V 2>&1 | sed 5q` in
8791         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8792           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8793           lt_prog_compiler_pic='-KPIC'
8794           lt_prog_compiler_static='-Bstatic'
8795           lt_prog_compiler_wl=''
8796           ;;
8797         *Sun\ F* | *Sun*Fortran*)
8798           lt_prog_compiler_pic='-KPIC'
8799           lt_prog_compiler_static='-Bstatic'
8800           lt_prog_compiler_wl='-Qoption ld '
8801           ;;
8802         *Sun\ C*)
8803           # Sun C 5.9
8804           lt_prog_compiler_pic='-KPIC'
8805           lt_prog_compiler_static='-Bstatic'
8806           lt_prog_compiler_wl='-Wl,'
8807           ;;
8808         *Intel*\ [CF]*Compiler*)
8809           lt_prog_compiler_wl='-Wl,'
8810           lt_prog_compiler_pic='-fPIC'
8811           lt_prog_compiler_static='-static'
8812           ;;
8813         *Portland\ Group*)
8814           lt_prog_compiler_wl='-Wl,'
8815           lt_prog_compiler_pic='-fpic'
8816           lt_prog_compiler_static='-Bstatic'
8817           ;;
8818         esac
8819         ;;
8820       esac
8821       ;;
8822
8823     newsos6)
8824       lt_prog_compiler_pic='-KPIC'
8825       lt_prog_compiler_static='-Bstatic'
8826       ;;
8827
8828     *nto* | *qnx*)
8829       # QNX uses GNU C++, but need to define -shared option too, otherwise
8830       # it will coredump.
8831       lt_prog_compiler_pic='-fPIC -shared'
8832       ;;
8833
8834     osf3* | osf4* | osf5*)
8835       lt_prog_compiler_wl='-Wl,'
8836       # All OSF/1 code is PIC.
8837       lt_prog_compiler_static='-non_shared'
8838       ;;
8839
8840     rdos*)
8841       lt_prog_compiler_static='-non_shared'
8842       ;;
8843
8844     solaris*)
8845       lt_prog_compiler_pic='-KPIC'
8846       lt_prog_compiler_static='-Bstatic'
8847       case $cc_basename in
8848       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8849         lt_prog_compiler_wl='-Qoption ld ';;
8850       *)
8851         lt_prog_compiler_wl='-Wl,';;
8852       esac
8853       ;;
8854
8855     sunos4*)
8856       lt_prog_compiler_wl='-Qoption ld '
8857       lt_prog_compiler_pic='-PIC'
8858       lt_prog_compiler_static='-Bstatic'
8859       ;;
8860
8861     sysv4 | sysv4.2uw2* | sysv4.3*)
8862       lt_prog_compiler_wl='-Wl,'
8863       lt_prog_compiler_pic='-KPIC'
8864       lt_prog_compiler_static='-Bstatic'
8865       ;;
8866
8867     sysv4*MP*)
8868       if test -d /usr/nec ;then
8869         lt_prog_compiler_pic='-Kconform_pic'
8870         lt_prog_compiler_static='-Bstatic'
8871       fi
8872       ;;
8873
8874     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8875       lt_prog_compiler_wl='-Wl,'
8876       lt_prog_compiler_pic='-KPIC'
8877       lt_prog_compiler_static='-Bstatic'
8878       ;;
8879
8880     unicos*)
8881       lt_prog_compiler_wl='-Wl,'
8882       lt_prog_compiler_can_build_shared=no
8883       ;;
8884
8885     uts4*)
8886       lt_prog_compiler_pic='-pic'
8887       lt_prog_compiler_static='-Bstatic'
8888       ;;
8889
8890     *)
8891       lt_prog_compiler_can_build_shared=no
8892       ;;
8893     esac
8894   fi
8895
8896 case $host_os in
8897   # For platforms which do not support PIC, -DPIC is meaningless:
8898   *djgpp*)
8899     lt_prog_compiler_pic=
8900     ;;
8901   *)
8902     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8903     ;;
8904 esac
8905
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8907 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8908 if ${lt_cv_prog_compiler_pic+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8914 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8915 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8916
8917 #
8918 # Check to make sure the PIC flag actually works.
8919 #
8920 if test -n "$lt_prog_compiler_pic"; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8922 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8923 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8924   $as_echo_n "(cached) " >&6
8925 else
8926   lt_cv_prog_compiler_pic_works=no
8927    ac_outfile=conftest.$ac_objext
8928    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8929    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8930    # Insert the option either (1) after the last *FLAGS variable, or
8931    # (2) before a word containing "conftest.", or (3) at the end.
8932    # Note that $ac_compile itself does not contain backslashes and begins
8933    # with a dollar sign (not a hyphen), so the echo should work correctly.
8934    # The option is referenced via a variable to avoid confusing sed.
8935    lt_compile=`echo "$ac_compile" | $SED \
8936    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8937    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8938    -e 's:$: $lt_compiler_flag:'`
8939    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8940    (eval "$lt_compile" 2>conftest.err)
8941    ac_status=$?
8942    cat conftest.err >&5
8943    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944    if (exit $ac_status) && test -s "$ac_outfile"; then
8945      # The compiler can only warn and ignore the option if not recognized
8946      # So say no if there are warnings other than the usual output.
8947      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8948      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8949      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8950        lt_cv_prog_compiler_pic_works=yes
8951      fi
8952    fi
8953    $RM conftest*
8954
8955 fi
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8957 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8958
8959 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8960     case $lt_prog_compiler_pic in
8961      "" | " "*) ;;
8962      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8963      esac
8964 else
8965     lt_prog_compiler_pic=
8966      lt_prog_compiler_can_build_shared=no
8967 fi
8968
8969 fi
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981 #
8982 # Check to make sure the static flag actually works.
8983 #
8984 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8986 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8987 if ${lt_cv_prog_compiler_static_works+:} false; then :
8988   $as_echo_n "(cached) " >&6
8989 else
8990   lt_cv_prog_compiler_static_works=no
8991    save_LDFLAGS="$LDFLAGS"
8992    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8993    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8994    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8995      # The linker can only warn and ignore the option if not recognized
8996      # So say no if there are warnings
8997      if test -s conftest.err; then
8998        # Append any errors to the config.log.
8999        cat conftest.err 1>&5
9000        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9001        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9002        if diff conftest.exp conftest.er2 >/dev/null; then
9003          lt_cv_prog_compiler_static_works=yes
9004        fi
9005      else
9006        lt_cv_prog_compiler_static_works=yes
9007      fi
9008    fi
9009    $RM -r conftest*
9010    LDFLAGS="$save_LDFLAGS"
9011
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9014 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9015
9016 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9017     :
9018 else
9019     lt_prog_compiler_static=
9020 fi
9021
9022
9023
9024
9025
9026
9027
9028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9030 if ${lt_cv_prog_compiler_c_o+:} false; then :
9031   $as_echo_n "(cached) " >&6
9032 else
9033   lt_cv_prog_compiler_c_o=no
9034    $RM -r conftest 2>/dev/null
9035    mkdir conftest
9036    cd conftest
9037    mkdir out
9038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039
9040    lt_compiler_flag="-o out/conftest2.$ac_objext"
9041    # Insert the option either (1) after the last *FLAGS variable, or
9042    # (2) before a word containing "conftest.", or (3) at the end.
9043    # Note that $ac_compile itself does not contain backslashes and begins
9044    # with a dollar sign (not a hyphen), so the echo should work correctly.
9045    lt_compile=`echo "$ac_compile" | $SED \
9046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9048    -e 's:$: $lt_compiler_flag:'`
9049    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9050    (eval "$lt_compile" 2>out/conftest.err)
9051    ac_status=$?
9052    cat out/conftest.err >&5
9053    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9055    then
9056      # The compiler can only warn and ignore the option if not recognized
9057      # So say no if there are warnings
9058      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9059      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9060      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9061        lt_cv_prog_compiler_c_o=yes
9062      fi
9063    fi
9064    chmod u+w . 2>&5
9065    $RM conftest*
9066    # SGI C++ compiler will create directory out/ii_files/ for
9067    # template instantiation
9068    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9069    $RM out/* && rmdir out
9070    cd ..
9071    $RM -r conftest
9072    $RM conftest*
9073
9074 fi
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9076 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9077
9078
9079
9080
9081
9082
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9084 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9085 if ${lt_cv_prog_compiler_c_o+:} false; then :
9086   $as_echo_n "(cached) " >&6
9087 else
9088   lt_cv_prog_compiler_c_o=no
9089    $RM -r conftest 2>/dev/null
9090    mkdir conftest
9091    cd conftest
9092    mkdir out
9093    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094
9095    lt_compiler_flag="-o out/conftest2.$ac_objext"
9096    # Insert the option either (1) after the last *FLAGS variable, or
9097    # (2) before a word containing "conftest.", or (3) at the end.
9098    # Note that $ac_compile itself does not contain backslashes and begins
9099    # with a dollar sign (not a hyphen), so the echo should work correctly.
9100    lt_compile=`echo "$ac_compile" | $SED \
9101    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103    -e 's:$: $lt_compiler_flag:'`
9104    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105    (eval "$lt_compile" 2>out/conftest.err)
9106    ac_status=$?
9107    cat out/conftest.err >&5
9108    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9110    then
9111      # The compiler can only warn and ignore the option if not recognized
9112      # So say no if there are warnings
9113      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9114      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9115      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9116        lt_cv_prog_compiler_c_o=yes
9117      fi
9118    fi
9119    chmod u+w . 2>&5
9120    $RM conftest*
9121    # SGI C++ compiler will create directory out/ii_files/ for
9122    # template instantiation
9123    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9124    $RM out/* && rmdir out
9125    cd ..
9126    $RM -r conftest
9127    $RM conftest*
9128
9129 fi
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9131 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9132
9133
9134
9135
9136 hard_links="nottested"
9137 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9138   # do not overwrite the value of need_locks provided by the user
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9140 $as_echo_n "checking if we can lock with hard links... " >&6; }
9141   hard_links=yes
9142   $RM conftest*
9143   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9144   touch conftest.a
9145   ln conftest.a conftest.b 2>&5 || hard_links=no
9146   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9148 $as_echo "$hard_links" >&6; }
9149   if test "$hard_links" = no; then
9150     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9151 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9152     need_locks=warn
9153   fi
9154 else
9155   need_locks=no
9156 fi
9157
9158
9159
9160
9161
9162
9163   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9164 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9165
9166   runpath_var=
9167   allow_undefined_flag=
9168   always_export_symbols=no
9169   archive_cmds=
9170   archive_expsym_cmds=
9171   compiler_needs_object=no
9172   enable_shared_with_static_runtimes=no
9173   export_dynamic_flag_spec=
9174   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9175   hardcode_automatic=no
9176   hardcode_direct=no
9177   hardcode_direct_absolute=no
9178   hardcode_libdir_flag_spec=
9179   hardcode_libdir_separator=
9180   hardcode_minus_L=no
9181   hardcode_shlibpath_var=unsupported
9182   inherit_rpath=no
9183   link_all_deplibs=unknown
9184   module_cmds=
9185   module_expsym_cmds=
9186   old_archive_from_new_cmds=
9187   old_archive_from_expsyms_cmds=
9188   thread_safe_flag_spec=
9189   whole_archive_flag_spec=
9190   # include_expsyms should be a list of space-separated symbols to be *always*
9191   # included in the symbol list
9192   include_expsyms=
9193   # exclude_expsyms can be an extended regexp of symbols to exclude
9194   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9195   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9196   # as well as any symbol that contains `d'.
9197   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9198   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9199   # platforms (ab)use it in PIC code, but their linkers get confused if
9200   # the symbol is explicitly referenced.  Since portable code cannot
9201   # rely on this symbol name, it's probably fine to never include it in
9202   # preloaded symbol tables.
9203   # Exclude shared library initialization/finalization symbols.
9204   extract_expsyms_cmds=
9205
9206   case $host_os in
9207   cygwin* | mingw* | pw32* | cegcc*)
9208     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9209     # When not using gcc, we currently assume that we are using
9210     # Microsoft Visual C++.
9211     if test "$GCC" != yes; then
9212       with_gnu_ld=no
9213     fi
9214     ;;
9215   interix*)
9216     # we just hope/assume this is gcc and not c89 (= MSVC++)
9217     with_gnu_ld=yes
9218     ;;
9219   openbsd*)
9220     with_gnu_ld=no
9221     ;;
9222   esac
9223
9224   ld_shlibs=yes
9225
9226   # On some targets, GNU ld is compatible enough with the native linker
9227   # that we're better off using the native interface for both.
9228   lt_use_gnu_ld_interface=no
9229   if test "$with_gnu_ld" = yes; then
9230     case $host_os in
9231       aix*)
9232         # The AIX port of GNU ld has always aspired to compatibility
9233         # with the native linker.  However, as the warning in the GNU ld
9234         # block says, versions before 2.19.5* couldn't really create working
9235         # shared libraries, regardless of the interface used.
9236         case `$LD -v 2>&1` in
9237           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9238           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9239           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9240           *)
9241             lt_use_gnu_ld_interface=yes
9242             ;;
9243         esac
9244         ;;
9245       *)
9246         lt_use_gnu_ld_interface=yes
9247         ;;
9248     esac
9249   fi
9250
9251   if test "$lt_use_gnu_ld_interface" = yes; then
9252     # If archive_cmds runs LD, not CC, wlarc should be empty
9253     wlarc='${wl}'
9254
9255     # Set some defaults for GNU ld with shared library support. These
9256     # are reset later if shared libraries are not supported. Putting them
9257     # here allows them to be overridden if necessary.
9258     runpath_var=LD_RUN_PATH
9259     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9260     export_dynamic_flag_spec='${wl}--export-dynamic'
9261     # ancient GNU ld didn't support --whole-archive et. al.
9262     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9263       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9264     else
9265       whole_archive_flag_spec=
9266     fi
9267     supports_anon_versioning=no
9268     case `$LD -v 2>&1` in
9269       *GNU\ gold*) supports_anon_versioning=yes ;;
9270       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9271       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9272       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9273       *\ 2.11.*) ;; # other 2.11 versions
9274       *) supports_anon_versioning=yes ;;
9275     esac
9276
9277     # See if GNU ld supports shared libraries.
9278     case $host_os in
9279     aix[3-9]*)
9280       # On AIX/PPC, the GNU linker is very broken
9281       if test "$host_cpu" != ia64; then
9282         ld_shlibs=no
9283         cat <<_LT_EOF 1>&2
9284
9285 *** Warning: the GNU linker, at least up to release 2.19, is reported
9286 *** to be unable to reliably create shared libraries on AIX.
9287 *** Therefore, libtool is disabling shared libraries support.  If you
9288 *** really care for shared libraries, you may want to install binutils
9289 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9290 *** You will then need to restart the configuration process.
9291
9292 _LT_EOF
9293       fi
9294       ;;
9295
9296     amigaos*)
9297       case $host_cpu in
9298       powerpc)
9299             # see comment about AmigaOS4 .so support
9300             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9301             archive_expsym_cmds=''
9302         ;;
9303       m68k)
9304             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)'
9305             hardcode_libdir_flag_spec='-L$libdir'
9306             hardcode_minus_L=yes
9307         ;;
9308       esac
9309       ;;
9310
9311     beos*)
9312       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9313         allow_undefined_flag=unsupported
9314         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9315         # support --undefined.  This deserves some investigation.  FIXME
9316         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9317       else
9318         ld_shlibs=no
9319       fi
9320       ;;
9321
9322     cygwin* | mingw* | pw32* | cegcc*)
9323       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9324       # as there is no search path for DLLs.
9325       hardcode_libdir_flag_spec='-L$libdir'
9326       export_dynamic_flag_spec='${wl}--export-all-symbols'
9327       allow_undefined_flag=unsupported
9328       always_export_symbols=no
9329       enable_shared_with_static_runtimes=yes
9330       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'
9331       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9332
9333       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9334         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9335         # If the export-symbols file already is a .def file (1st line
9336         # is EXPORTS), use it as is; otherwise, prepend...
9337         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9338           cp $export_symbols $output_objdir/$soname.def;
9339         else
9340           echo EXPORTS > $output_objdir/$soname.def;
9341           cat $export_symbols >> $output_objdir/$soname.def;
9342         fi~
9343         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9344       else
9345         ld_shlibs=no
9346       fi
9347       ;;
9348
9349     haiku*)
9350       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9351       link_all_deplibs=yes
9352       ;;
9353
9354     interix[3-9]*)
9355       hardcode_direct=no
9356       hardcode_shlibpath_var=no
9357       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9358       export_dynamic_flag_spec='${wl}-E'
9359       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9360       # Instead, shared libraries are loaded at an image base (0x10000000 by
9361       # default) and relocated if they conflict, which is a slow very memory
9362       # consuming and fragmenting process.  To avoid this, we pick a random,
9363       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9364       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9365       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9366       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'
9367       ;;
9368
9369     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9370       tmp_diet=no
9371       if test "$host_os" = linux-dietlibc; then
9372         case $cc_basename in
9373           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9374         esac
9375       fi
9376       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9377          && test "$tmp_diet" = no
9378       then
9379         tmp_addflag=' $pic_flag'
9380         tmp_sharedflag='-shared'
9381         case $cc_basename,$host_cpu in
9382         pgcc*)                          # Portland Group C compiler
9383           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'
9384           tmp_addflag=' $pic_flag'
9385           ;;
9386         pgf77* | pgf90* | pgf95* | pgfortran*)
9387                                         # Portland Group f77 and f90 compilers
9388           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'
9389           tmp_addflag=' $pic_flag -Mnomain' ;;
9390         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9391           tmp_addflag=' -i_dynamic' ;;
9392         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9393           tmp_addflag=' -i_dynamic -nofor_main' ;;
9394         ifc* | ifort*)                  # Intel Fortran compiler
9395           tmp_addflag=' -nofor_main' ;;
9396         lf95*)                          # Lahey Fortran 8.1
9397           whole_archive_flag_spec=
9398           tmp_sharedflag='--shared' ;;
9399         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9400           tmp_sharedflag='-qmkshrobj'
9401           tmp_addflag= ;;
9402         nvcc*)  # Cuda Compiler Driver 2.2
9403           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'
9404           compiler_needs_object=yes
9405           ;;
9406         esac
9407         case `$CC -V 2>&1 | sed 5q` in
9408         *Sun\ C*)                       # Sun C 5.9
9409           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'
9410           compiler_needs_object=yes
9411           tmp_sharedflag='-G' ;;
9412         *Sun\ F*)                       # Sun Fortran 8.3
9413           tmp_sharedflag='-G' ;;
9414         esac
9415         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416
9417         if test "x$supports_anon_versioning" = xyes; then
9418           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9419             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9420             echo "local: *; };" >> $output_objdir/$libname.ver~
9421             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9422         fi
9423
9424         case $cc_basename in
9425         xlf* | bgf* | bgxlf* | mpixlf*)
9426           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9427           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9428           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9429           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9430           if test "x$supports_anon_versioning" = xyes; then
9431             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9432               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9433               echo "local: *; };" >> $output_objdir/$libname.ver~
9434               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9435           fi
9436           ;;
9437         esac
9438       else
9439         ld_shlibs=no
9440       fi
9441       ;;
9442
9443     netbsd*)
9444       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9445         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9446         wlarc=
9447       else
9448         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9449         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9450       fi
9451       ;;
9452
9453     solaris*)
9454       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9455         ld_shlibs=no
9456         cat <<_LT_EOF 1>&2
9457
9458 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9459 *** create shared libraries on Solaris systems.  Therefore, libtool
9460 *** is disabling shared libraries support.  We urge you to upgrade GNU
9461 *** binutils to release 2.9.1 or newer.  Another option is to modify
9462 *** your PATH or compiler configuration so that the native linker is
9463 *** used, and then restart.
9464
9465 _LT_EOF
9466       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9467         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469       else
9470         ld_shlibs=no
9471       fi
9472       ;;
9473
9474     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9475       case `$LD -v 2>&1` in
9476         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9477         ld_shlibs=no
9478         cat <<_LT_EOF 1>&2
9479
9480 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9481 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9482 *** is disabling shared libraries support.  We urge you to upgrade GNU
9483 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9484 *** your PATH or compiler configuration so that the native linker is
9485 *** used, and then restart.
9486
9487 _LT_EOF
9488         ;;
9489         *)
9490           # For security reasons, it is highly recommended that you always
9491           # use absolute paths for naming shared libraries, and exclude the
9492           # DT_RUNPATH tag from executables and libraries.  But doing so
9493           # requires that you compile everything twice, which is a pain.
9494           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9495             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498           else
9499             ld_shlibs=no
9500           fi
9501         ;;
9502       esac
9503       ;;
9504
9505     sunos4*)
9506       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9507       wlarc=
9508       hardcode_direct=yes
9509       hardcode_shlibpath_var=no
9510       ;;
9511
9512     *)
9513       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9514         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9515         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9516       else
9517         ld_shlibs=no
9518       fi
9519       ;;
9520     esac
9521
9522     if test "$ld_shlibs" = no; then
9523       runpath_var=
9524       hardcode_libdir_flag_spec=
9525       export_dynamic_flag_spec=
9526       whole_archive_flag_spec=
9527     fi
9528   else
9529     # PORTME fill in a description of your system's linker (not GNU ld)
9530     case $host_os in
9531     aix3*)
9532       allow_undefined_flag=unsupported
9533       always_export_symbols=yes
9534       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'
9535       # Note: this linker hardcodes the directories in LIBPATH if there
9536       # are no directories specified by -L.
9537       hardcode_minus_L=yes
9538       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9539         # Neither direct hardcoding nor static linking is supported with a
9540         # broken collect2.
9541         hardcode_direct=unsupported
9542       fi
9543       ;;
9544
9545     aix[4-9]*)
9546       if test "$host_cpu" = ia64; then
9547         # On IA64, the linker does run time linking by default, so we don't
9548         # have to do anything special.
9549         aix_use_runtimelinking=no
9550         exp_sym_flag='-Bexport'
9551         no_entry_flag=""
9552       else
9553         # If we're using GNU nm, then we don't want the "-C" option.
9554         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9555         # Also, AIX nm treats weak defined symbols like other global
9556         # defined symbols, whereas GNU nm marks them as "W".
9557         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9558           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'
9559         else
9560           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'
9561         fi
9562         aix_use_runtimelinking=no
9563
9564         # Test if we are trying to use run time linking or normal
9565         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9566         # need to do runtime linking.
9567         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9568           for ld_flag in $LDFLAGS; do
9569           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9570             aix_use_runtimelinking=yes
9571             break
9572           fi
9573           done
9574           ;;
9575         esac
9576
9577         exp_sym_flag='-bexport'
9578         no_entry_flag='-bnoentry'
9579       fi
9580
9581       # When large executables or shared objects are built, AIX ld can
9582       # have problems creating the table of contents.  If linking a library
9583       # or program results in "error TOC overflow" add -mminimal-toc to
9584       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9585       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9586
9587       archive_cmds=''
9588       hardcode_direct=yes
9589       hardcode_direct_absolute=yes
9590       hardcode_libdir_separator=':'
9591       link_all_deplibs=yes
9592       file_list_spec='${wl}-f,'
9593
9594       if test "$GCC" = yes; then
9595         case $host_os in aix4.[012]|aix4.[012].*)
9596         # We only want to do this on AIX 4.2 and lower, the check
9597         # below for broken collect2 doesn't work under 4.3+
9598           collect2name=`${CC} -print-prog-name=collect2`
9599           if test -f "$collect2name" &&
9600            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9601           then
9602           # We have reworked collect2
9603           :
9604           else
9605           # We have old collect2
9606           hardcode_direct=unsupported
9607           # It fails to find uninstalled libraries when the uninstalled
9608           # path is not listed in the libpath.  Setting hardcode_minus_L
9609           # to unsupported forces relinking
9610           hardcode_minus_L=yes
9611           hardcode_libdir_flag_spec='-L$libdir'
9612           hardcode_libdir_separator=
9613           fi
9614           ;;
9615         esac
9616         shared_flag='-shared'
9617         if test "$aix_use_runtimelinking" = yes; then
9618           shared_flag="$shared_flag "'${wl}-G'
9619         fi
9620       else
9621         # not using gcc
9622         if test "$host_cpu" = ia64; then
9623         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9624         # chokes on -Wl,-G. The following line is correct:
9625           shared_flag='-G'
9626         else
9627           if test "$aix_use_runtimelinking" = yes; then
9628             shared_flag='${wl}-G'
9629           else
9630             shared_flag='${wl}-bM:SRE'
9631           fi
9632         fi
9633       fi
9634
9635       export_dynamic_flag_spec='${wl}-bexpall'
9636       # It seems that -bexpall does not export symbols beginning with
9637       # underscore (_), so it is better to generate a list of symbols to export.
9638       always_export_symbols=yes
9639       if test "$aix_use_runtimelinking" = yes; then
9640         # Warning - without using the other runtime loading flags (-brtl),
9641         # -berok will link without error, but may produce a broken library.
9642         allow_undefined_flag='-berok'
9643         # Determine the default libpath from the value encoded in an
9644         # empty executable.
9645         if test "${lt_cv_aix_libpath+set}" = set; then
9646   aix_libpath=$lt_cv_aix_libpath
9647 else
9648   if ${lt_cv_aix_libpath_+:} false; then :
9649   $as_echo_n "(cached) " >&6
9650 else
9651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h.  */
9653
9654 int
9655 main ()
9656 {
9657
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 if ac_fn_c_try_link "$LINENO"; then :
9663
9664   lt_aix_libpath_sed='
9665       /Import File Strings/,/^$/ {
9666           /^0/ {
9667               s/^0  *\([^ ]*\) *$/\1/
9668               p
9669           }
9670       }'
9671   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672   # Check for a 64-bit object if we didn't find anything.
9673   if test -z "$lt_cv_aix_libpath_"; then
9674     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9675   fi
9676 fi
9677 rm -f core conftest.err conftest.$ac_objext \
9678     conftest$ac_exeext conftest.$ac_ext
9679   if test -z "$lt_cv_aix_libpath_"; then
9680     lt_cv_aix_libpath_="/usr/lib:/lib"
9681   fi
9682
9683 fi
9684
9685   aix_libpath=$lt_cv_aix_libpath_
9686 fi
9687
9688         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9689         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"
9690       else
9691         if test "$host_cpu" = ia64; then
9692           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9693           allow_undefined_flag="-z nodefs"
9694           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"
9695         else
9696          # Determine the default libpath from the value encoded in an
9697          # empty executable.
9698          if test "${lt_cv_aix_libpath+set}" = set; then
9699   aix_libpath=$lt_cv_aix_libpath
9700 else
9701   if ${lt_cv_aix_libpath_+:} false; then :
9702   $as_echo_n "(cached) " >&6
9703 else
9704   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h.  */
9706
9707 int
9708 main ()
9709 {
9710
9711   ;
9712   return 0;
9713 }
9714 _ACEOF
9715 if ac_fn_c_try_link "$LINENO"; then :
9716
9717   lt_aix_libpath_sed='
9718       /Import File Strings/,/^$/ {
9719           /^0/ {
9720               s/^0  *\([^ ]*\) *$/\1/
9721               p
9722           }
9723       }'
9724   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9725   # Check for a 64-bit object if we didn't find anything.
9726   if test -z "$lt_cv_aix_libpath_"; then
9727     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9728   fi
9729 fi
9730 rm -f core conftest.err conftest.$ac_objext \
9731     conftest$ac_exeext conftest.$ac_ext
9732   if test -z "$lt_cv_aix_libpath_"; then
9733     lt_cv_aix_libpath_="/usr/lib:/lib"
9734   fi
9735
9736 fi
9737
9738   aix_libpath=$lt_cv_aix_libpath_
9739 fi
9740
9741          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9742           # Warning - without using the other run time loading flags,
9743           # -berok will link without error, but may produce a broken library.
9744           no_undefined_flag=' ${wl}-bernotok'
9745           allow_undefined_flag=' ${wl}-berok'
9746           if test "$with_gnu_ld" = yes; then
9747             # We only use this code for GNU lds that support --whole-archive.
9748             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9749           else
9750             # Exported symbols can be pulled into shared objects from archives
9751             whole_archive_flag_spec='$convenience'
9752           fi
9753           archive_cmds_need_lc=yes
9754           # This is similar to how AIX traditionally builds its shared libraries.
9755           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'
9756         fi
9757       fi
9758       ;;
9759
9760     amigaos*)
9761       case $host_cpu in
9762       powerpc)
9763             # see comment about AmigaOS4 .so support
9764             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9765             archive_expsym_cmds=''
9766         ;;
9767       m68k)
9768             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)'
9769             hardcode_libdir_flag_spec='-L$libdir'
9770             hardcode_minus_L=yes
9771         ;;
9772       esac
9773       ;;
9774
9775     bsdi[45]*)
9776       export_dynamic_flag_spec=-rdynamic
9777       ;;
9778
9779     cygwin* | mingw* | pw32* | cegcc*)
9780       # When not using gcc, we currently assume that we are using
9781       # Microsoft Visual C++.
9782       # hardcode_libdir_flag_spec is actually meaningless, as there is
9783       # no search path for DLLs.
9784       case $cc_basename in
9785       cl*)
9786         # Native MSVC
9787         hardcode_libdir_flag_spec=' '
9788         allow_undefined_flag=unsupported
9789         always_export_symbols=yes
9790         file_list_spec='@'
9791         # Tell ltmain to make .lib files, not .a files.
9792         libext=lib
9793         # Tell ltmain to make .dll files, not .so files.
9794         shrext_cmds=".dll"
9795         # FIXME: Setting linknames here is a bad hack.
9796         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9797         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9798             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9799           else
9800             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9801           fi~
9802           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9803           linknames='
9804         # The linker will not automatically build a static lib if we build a DLL.
9805         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9806         enable_shared_with_static_runtimes=yes
9807         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9808         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9809         # Don't use ranlib
9810         old_postinstall_cmds='chmod 644 $oldlib'
9811         postlink_cmds='lt_outputfile="@OUTPUT@"~
9812           lt_tool_outputfile="@TOOL_OUTPUT@"~
9813           case $lt_outputfile in
9814             *.exe|*.EXE) ;;
9815             *)
9816               lt_outputfile="$lt_outputfile.exe"
9817               lt_tool_outputfile="$lt_tool_outputfile.exe"
9818               ;;
9819           esac~
9820           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9821             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9822             $RM "$lt_outputfile.manifest";
9823           fi'
9824         ;;
9825       *)
9826         # Assume MSVC wrapper
9827         hardcode_libdir_flag_spec=' '
9828         allow_undefined_flag=unsupported
9829         # Tell ltmain to make .lib files, not .a files.
9830         libext=lib
9831         # Tell ltmain to make .dll files, not .so files.
9832         shrext_cmds=".dll"
9833         # FIXME: Setting linknames here is a bad hack.
9834         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9835         # The linker will automatically build a .lib file if we build a DLL.
9836         old_archive_from_new_cmds='true'
9837         # FIXME: Should let the user specify the lib program.
9838         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9839         enable_shared_with_static_runtimes=yes
9840         ;;
9841       esac
9842       ;;
9843
9844     darwin* | rhapsody*)
9845
9846
9847   archive_cmds_need_lc=no
9848   hardcode_direct=no
9849   hardcode_automatic=yes
9850   hardcode_shlibpath_var=unsupported
9851   if test "$lt_cv_ld_force_load" = "yes"; then
9852     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\"`'
9853
9854   else
9855     whole_archive_flag_spec=''
9856   fi
9857   link_all_deplibs=yes
9858   allow_undefined_flag="$_lt_dar_allow_undefined"
9859   case $cc_basename in
9860      ifort*) _lt_dar_can_shared=yes ;;
9861      *) _lt_dar_can_shared=$GCC ;;
9862   esac
9863   if test "$_lt_dar_can_shared" = "yes"; then
9864     output_verbose_link_cmd=func_echo_all
9865     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9866     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9867     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}"
9868     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}"
9869
9870   else
9871   ld_shlibs=no
9872   fi
9873
9874       ;;
9875
9876     dgux*)
9877       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9878       hardcode_libdir_flag_spec='-L$libdir'
9879       hardcode_shlibpath_var=no
9880       ;;
9881
9882     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9883     # support.  Future versions do this automatically, but an explicit c++rt0.o
9884     # does not break anything, and helps significantly (at the cost of a little
9885     # extra space).
9886     freebsd2.2*)
9887       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9888       hardcode_libdir_flag_spec='-R$libdir'
9889       hardcode_direct=yes
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9894     freebsd2.*)
9895       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9896       hardcode_direct=yes
9897       hardcode_minus_L=yes
9898       hardcode_shlibpath_var=no
9899       ;;
9900
9901     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9902     freebsd* | dragonfly*)
9903       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9904       hardcode_libdir_flag_spec='-R$libdir'
9905       hardcode_direct=yes
9906       hardcode_shlibpath_var=no
9907       ;;
9908
9909     hpux9*)
9910       if test "$GCC" = yes; then
9911         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'
9912       else
9913         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'
9914       fi
9915       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9916       hardcode_libdir_separator=:
9917       hardcode_direct=yes
9918
9919       # hardcode_minus_L: Not really in the search PATH,
9920       # but as the default location of the library.
9921       hardcode_minus_L=yes
9922       export_dynamic_flag_spec='${wl}-E'
9923       ;;
9924
9925     hpux10*)
9926       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9927         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9928       else
9929         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9930       fi
9931       if test "$with_gnu_ld" = no; then
9932         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9933         hardcode_libdir_separator=:
9934         hardcode_direct=yes
9935         hardcode_direct_absolute=yes
9936         export_dynamic_flag_spec='${wl}-E'
9937         # hardcode_minus_L: Not really in the search PATH,
9938         # but as the default location of the library.
9939         hardcode_minus_L=yes
9940       fi
9941       ;;
9942
9943     hpux11*)
9944       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9945         case $host_cpu in
9946         hppa*64*)
9947           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9948           ;;
9949         ia64*)
9950           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9951           ;;
9952         *)
9953           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9954           ;;
9955         esac
9956       else
9957         case $host_cpu in
9958         hppa*64*)
9959           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9960           ;;
9961         ia64*)
9962           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9963           ;;
9964         *)
9965
9966           # Older versions of the 11.00 compiler do not understand -b yet
9967           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9968           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9969 $as_echo_n "checking if $CC understands -b... " >&6; }
9970 if ${lt_cv_prog_compiler__b+:} false; then :
9971   $as_echo_n "(cached) " >&6
9972 else
9973   lt_cv_prog_compiler__b=no
9974    save_LDFLAGS="$LDFLAGS"
9975    LDFLAGS="$LDFLAGS -b"
9976    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9977    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9978      # The linker can only warn and ignore the option if not recognized
9979      # So say no if there are warnings
9980      if test -s conftest.err; then
9981        # Append any errors to the config.log.
9982        cat conftest.err 1>&5
9983        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9984        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9985        if diff conftest.exp conftest.er2 >/dev/null; then
9986          lt_cv_prog_compiler__b=yes
9987        fi
9988      else
9989        lt_cv_prog_compiler__b=yes
9990      fi
9991    fi
9992    $RM -r conftest*
9993    LDFLAGS="$save_LDFLAGS"
9994
9995 fi
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9997 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9998
9999 if test x"$lt_cv_prog_compiler__b" = xyes; then
10000     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10001 else
10002     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10003 fi
10004
10005           ;;
10006         esac
10007       fi
10008       if test "$with_gnu_ld" = no; then
10009         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10010         hardcode_libdir_separator=:
10011
10012         case $host_cpu in
10013         hppa*64*|ia64*)
10014           hardcode_direct=no
10015           hardcode_shlibpath_var=no
10016           ;;
10017         *)
10018           hardcode_direct=yes
10019           hardcode_direct_absolute=yes
10020           export_dynamic_flag_spec='${wl}-E'
10021
10022           # hardcode_minus_L: Not really in the search PATH,
10023           # but as the default location of the library.
10024           hardcode_minus_L=yes
10025           ;;
10026         esac
10027       fi
10028       ;;
10029
10030     irix5* | irix6* | nonstopux*)
10031       if test "$GCC" = yes; then
10032         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'
10033         # Try to use the -exported_symbol ld option, if it does not
10034         # work, assume that -exports_file does not work either and
10035         # implicitly export all symbols.
10036         # This should be the same for all languages, so no per-tag cache variable.
10037         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10038 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10039 if ${lt_cv_irix_exported_symbol+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   save_LDFLAGS="$LDFLAGS"
10043            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10044            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h.  */
10046 int foo (void) { return 0; }
10047 _ACEOF
10048 if ac_fn_c_try_link "$LINENO"; then :
10049   lt_cv_irix_exported_symbol=yes
10050 else
10051   lt_cv_irix_exported_symbol=no
10052 fi
10053 rm -f core conftest.err conftest.$ac_objext \
10054     conftest$ac_exeext conftest.$ac_ext
10055            LDFLAGS="$save_LDFLAGS"
10056 fi
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10058 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10059         if test "$lt_cv_irix_exported_symbol" = yes; then
10060           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'
10061         fi
10062       else
10063         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'
10064         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'
10065       fi
10066       archive_cmds_need_lc='no'
10067       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068       hardcode_libdir_separator=:
10069       inherit_rpath=yes
10070       link_all_deplibs=yes
10071       ;;
10072
10073     netbsd*)
10074       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10075         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10076       else
10077         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10078       fi
10079       hardcode_libdir_flag_spec='-R$libdir'
10080       hardcode_direct=yes
10081       hardcode_shlibpath_var=no
10082       ;;
10083
10084     newsos6)
10085       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086       hardcode_direct=yes
10087       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088       hardcode_libdir_separator=:
10089       hardcode_shlibpath_var=no
10090       ;;
10091
10092     *nto* | *qnx*)
10093       ;;
10094
10095     openbsd*)
10096       if test -f /usr/libexec/ld.so; then
10097         hardcode_direct=yes
10098         hardcode_shlibpath_var=no
10099         hardcode_direct_absolute=yes
10100         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10101           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10102           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10103           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10104           export_dynamic_flag_spec='${wl}-E'
10105         else
10106           case $host_os in
10107            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10108              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10109              hardcode_libdir_flag_spec='-R$libdir'
10110              ;;
10111            *)
10112              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10113              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10114              ;;
10115           esac
10116         fi
10117       else
10118         ld_shlibs=no
10119       fi
10120       ;;
10121
10122     os2*)
10123       hardcode_libdir_flag_spec='-L$libdir'
10124       hardcode_minus_L=yes
10125       allow_undefined_flag=unsupported
10126       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'
10127       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10128       ;;
10129
10130     osf3*)
10131       if test "$GCC" = yes; then
10132         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10133         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'
10134       else
10135         allow_undefined_flag=' -expect_unresolved \*'
10136         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'
10137       fi
10138       archive_cmds_need_lc='no'
10139       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140       hardcode_libdir_separator=:
10141       ;;
10142
10143     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10144       if test "$GCC" = yes; then
10145         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10146         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'
10147         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148       else
10149         allow_undefined_flag=' -expect_unresolved \*'
10150         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'
10151         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~
10152         $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'
10153
10154         # Both c and cxx compiler support -rpath directly
10155         hardcode_libdir_flag_spec='-rpath $libdir'
10156       fi
10157       archive_cmds_need_lc='no'
10158       hardcode_libdir_separator=:
10159       ;;
10160
10161     solaris*)
10162       no_undefined_flag=' -z defs'
10163       if test "$GCC" = yes; then
10164         wlarc='${wl}'
10165         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10166         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10167           $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'
10168       else
10169         case `$CC -V 2>&1` in
10170         *"Compilers 5.0"*)
10171           wlarc=''
10172           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10174           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10175           ;;
10176         *)
10177           wlarc='${wl}'
10178           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10179           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10181           ;;
10182         esac
10183       fi
10184       hardcode_libdir_flag_spec='-R$libdir'
10185       hardcode_shlibpath_var=no
10186       case $host_os in
10187       solaris2.[0-5] | solaris2.[0-5].*) ;;
10188       *)
10189         # The compiler driver will combine and reorder linker options,
10190         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10191         # but is careful enough not to reorder.
10192         # Supported since Solaris 2.6 (maybe 2.5.1?)
10193         if test "$GCC" = yes; then
10194           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10195         else
10196           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10197         fi
10198         ;;
10199       esac
10200       link_all_deplibs=yes
10201       ;;
10202
10203     sunos4*)
10204       if test "x$host_vendor" = xsequent; then
10205         # Use $CC to link under sequent, because it throws in some extra .o
10206         # files that make .init and .fini sections work.
10207         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10208       else
10209         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10210       fi
10211       hardcode_libdir_flag_spec='-L$libdir'
10212       hardcode_direct=yes
10213       hardcode_minus_L=yes
10214       hardcode_shlibpath_var=no
10215       ;;
10216
10217     sysv4)
10218       case $host_vendor in
10219         sni)
10220           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221           hardcode_direct=yes # is this really true???
10222         ;;
10223         siemens)
10224           ## LD is ld it makes a PLAMLIB
10225           ## CC just makes a GrossModule.
10226           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10227           reload_cmds='$CC -r -o $output$reload_objs'
10228           hardcode_direct=no
10229         ;;
10230         motorola)
10231           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10233         ;;
10234       esac
10235       runpath_var='LD_RUN_PATH'
10236       hardcode_shlibpath_var=no
10237       ;;
10238
10239     sysv4.3*)
10240       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241       hardcode_shlibpath_var=no
10242       export_dynamic_flag_spec='-Bexport'
10243       ;;
10244
10245     sysv4*MP*)
10246       if test -d /usr/nec; then
10247         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248         hardcode_shlibpath_var=no
10249         runpath_var=LD_RUN_PATH
10250         hardcode_runpath_var=yes
10251         ld_shlibs=yes
10252       fi
10253       ;;
10254
10255     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10256       no_undefined_flag='${wl}-z,text'
10257       archive_cmds_need_lc=no
10258       hardcode_shlibpath_var=no
10259       runpath_var='LD_RUN_PATH'
10260
10261       if test "$GCC" = yes; then
10262         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264       else
10265         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10267       fi
10268       ;;
10269
10270     sysv5* | sco3.2v5* | sco5v6*)
10271       # Note: We can NOT use -z defs as we might desire, because we do not
10272       # link with -lc, and that would cause any symbols used from libc to
10273       # always be unresolved, which means just about no library would
10274       # ever link correctly.  If we're not using GNU ld we use -z text
10275       # though, which does catch some bad symbols but isn't as heavy-handed
10276       # as -z defs.
10277       no_undefined_flag='${wl}-z,text'
10278       allow_undefined_flag='${wl}-z,nodefs'
10279       archive_cmds_need_lc=no
10280       hardcode_shlibpath_var=no
10281       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10282       hardcode_libdir_separator=':'
10283       link_all_deplibs=yes
10284       export_dynamic_flag_spec='${wl}-Bexport'
10285       runpath_var='LD_RUN_PATH'
10286
10287       if test "$GCC" = yes; then
10288         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290       else
10291         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293       fi
10294       ;;
10295
10296     uts4*)
10297       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298       hardcode_libdir_flag_spec='-L$libdir'
10299       hardcode_shlibpath_var=no
10300       ;;
10301
10302     *)
10303       ld_shlibs=no
10304       ;;
10305     esac
10306
10307     if test x$host_vendor = xsni; then
10308       case $host in
10309       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10310         export_dynamic_flag_spec='${wl}-Blargedynsym'
10311         ;;
10312       esac
10313     fi
10314   fi
10315
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10317 $as_echo "$ld_shlibs" >&6; }
10318 test "$ld_shlibs" = no && can_build_shared=no
10319
10320 with_gnu_ld=$with_gnu_ld
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336 #
10337 # Do we need to explicitly link libc?
10338 #
10339 case "x$archive_cmds_need_lc" in
10340 x|xyes)
10341   # Assume -lc should be added
10342   archive_cmds_need_lc=yes
10343
10344   if test "$enable_shared" = yes && test "$GCC" = yes; then
10345     case $archive_cmds in
10346     *'~'*)
10347       # FIXME: we may have to deal with multi-command sequences.
10348       ;;
10349     '$CC '*)
10350       # Test whether the compiler implicitly links with -lc since on some
10351       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10352       # to ld, don't add -lc before -lgcc.
10353       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10354 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10355 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10356   $as_echo_n "(cached) " >&6
10357 else
10358   $RM conftest*
10359         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10360
10361         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10362   (eval $ac_compile) 2>&5
10363   ac_status=$?
10364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365   test $ac_status = 0; } 2>conftest.err; then
10366           soname=conftest
10367           lib=conftest
10368           libobjs=conftest.$ac_objext
10369           deplibs=
10370           wl=$lt_prog_compiler_wl
10371           pic_flag=$lt_prog_compiler_pic
10372           compiler_flags=-v
10373           linker_flags=-v
10374           verstring=
10375           output_objdir=.
10376           libname=conftest
10377           lt_save_allow_undefined_flag=$allow_undefined_flag
10378           allow_undefined_flag=
10379           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10380   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10381   ac_status=$?
10382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383   test $ac_status = 0; }
10384           then
10385             lt_cv_archive_cmds_need_lc=no
10386           else
10387             lt_cv_archive_cmds_need_lc=yes
10388           fi
10389           allow_undefined_flag=$lt_save_allow_undefined_flag
10390         else
10391           cat conftest.err 1>&5
10392         fi
10393         $RM conftest*
10394
10395 fi
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10397 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10398       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10399       ;;
10400     esac
10401   fi
10402   ;;
10403 esac
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10557 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10558
10559 if test "$GCC" = yes; then
10560   case $host_os in
10561     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10562     *) lt_awk_arg="/^libraries:/" ;;
10563   esac
10564   case $host_os in
10565     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10566     *) lt_sed_strip_eq="s,=/,/,g" ;;
10567   esac
10568   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10569   case $lt_search_path_spec in
10570   *\;*)
10571     # if the path contains ";" then we assume it to be the separator
10572     # otherwise default to the standard path separator (i.e. ":") - it is
10573     # assumed that no part of a normal pathname contains ";" but that should
10574     # okay in the real world where ";" in dirpaths is itself problematic.
10575     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10576     ;;
10577   *)
10578     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10579     ;;
10580   esac
10581   # Ok, now we have the path, separated by spaces, we can step through it
10582   # and add multilib dir if necessary.
10583   lt_tmp_lt_search_path_spec=
10584   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10585   for lt_sys_path in $lt_search_path_spec; do
10586     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10587       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10588     else
10589       test -d "$lt_sys_path" && \
10590         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10591     fi
10592   done
10593   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10594 BEGIN {RS=" "; FS="/|\n";} {
10595   lt_foo="";
10596   lt_count=0;
10597   for (lt_i = NF; lt_i > 0; lt_i--) {
10598     if ($lt_i != "" && $lt_i != ".") {
10599       if ($lt_i == "..") {
10600         lt_count++;
10601       } else {
10602         if (lt_count == 0) {
10603           lt_foo="/" $lt_i lt_foo;
10604         } else {
10605           lt_count--;
10606         }
10607       }
10608     }
10609   }
10610   if (lt_foo != "") { lt_freq[lt_foo]++; }
10611   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10612 }'`
10613   # AWK program above erroneously prepends '/' to C:/dos/paths
10614   # for these hosts.
10615   case $host_os in
10616     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10617       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10618   esac
10619   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10620 else
10621   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10622 fi
10623 library_names_spec=
10624 libname_spec='lib$name'
10625 soname_spec=
10626 shrext_cmds=".so"
10627 postinstall_cmds=
10628 postuninstall_cmds=
10629 finish_cmds=
10630 finish_eval=
10631 shlibpath_var=
10632 shlibpath_overrides_runpath=unknown
10633 version_type=none
10634 dynamic_linker="$host_os ld.so"
10635 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10636 need_lib_prefix=unknown
10637 hardcode_into_libs=no
10638
10639 # when you set need_version to no, make sure it does not cause -set_version
10640 # flags to be left without arguments
10641 need_version=unknown
10642
10643 case $host_os in
10644 aix3*)
10645   version_type=linux # correct to gnu/linux during the next big refactor
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10647   shlibpath_var=LIBPATH
10648
10649   # AIX 3 has no versioning support, so we append a major version to the name.
10650   soname_spec='${libname}${release}${shared_ext}$major'
10651   ;;
10652
10653 aix[4-9]*)
10654   version_type=linux # correct to gnu/linux during the next big refactor
10655   need_lib_prefix=no
10656   need_version=no
10657   hardcode_into_libs=yes
10658   if test "$host_cpu" = ia64; then
10659     # AIX 5 supports IA64
10660     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10661     shlibpath_var=LD_LIBRARY_PATH
10662   else
10663     # With GCC up to 2.95.x, collect2 would create an import file
10664     # for dependence libraries.  The import file would start with
10665     # the line `#! .'.  This would cause the generated library to
10666     # depend on `.', always an invalid library.  This was fixed in
10667     # development snapshots of GCC prior to 3.0.
10668     case $host_os in
10669       aix4 | aix4.[01] | aix4.[01].*)
10670       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10671            echo ' yes '
10672            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10673         :
10674       else
10675         can_build_shared=no
10676       fi
10677       ;;
10678     esac
10679     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10680     # soname into executable. Probably we can add versioning support to
10681     # collect2, so additional links can be useful in future.
10682     if test "$aix_use_runtimelinking" = yes; then
10683       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10684       # instead of lib<name>.a to let people know that these are not
10685       # typical AIX shared libraries.
10686       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687     else
10688       # We preserve .a as extension for shared libraries through AIX4.2
10689       # and later when we are not doing run time linking.
10690       library_names_spec='${libname}${release}.a $libname.a'
10691       soname_spec='${libname}${release}${shared_ext}$major'
10692     fi
10693     shlibpath_var=LIBPATH
10694   fi
10695   ;;
10696
10697 amigaos*)
10698   case $host_cpu in
10699   powerpc)
10700     # Since July 2007 AmigaOS4 officially supports .so libraries.
10701     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10702     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10703     ;;
10704   m68k)
10705     library_names_spec='$libname.ixlibrary $libname.a'
10706     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10707     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'
10708     ;;
10709   esac
10710   ;;
10711
10712 beos*)
10713   library_names_spec='${libname}${shared_ext}'
10714   dynamic_linker="$host_os ld.so"
10715   shlibpath_var=LIBRARY_PATH
10716   ;;
10717
10718 bsdi[45]*)
10719   version_type=linux # correct to gnu/linux during the next big refactor
10720   need_version=no
10721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722   soname_spec='${libname}${release}${shared_ext}$major'
10723   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10724   shlibpath_var=LD_LIBRARY_PATH
10725   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10726   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10727   # the default ld.so.conf also contains /usr/contrib/lib and
10728   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10729   # libtool to hard-code these into programs
10730   ;;
10731
10732 cygwin* | mingw* | pw32* | cegcc*)
10733   version_type=windows
10734   shrext_cmds=".dll"
10735   need_version=no
10736   need_lib_prefix=no
10737
10738   case $GCC,$cc_basename in
10739   yes,*)
10740     # gcc
10741     library_names_spec='$libname.dll.a'
10742     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10743     postinstall_cmds='base_file=`basename \${file}`~
10744       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10745       dldir=$destdir/`dirname \$dlpath`~
10746       test -d \$dldir || mkdir -p \$dldir~
10747       $install_prog $dir/$dlname \$dldir/$dlname~
10748       chmod a+x \$dldir/$dlname~
10749       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10750         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10751       fi'
10752     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10753       dlpath=$dir/\$dldll~
10754        $RM \$dlpath'
10755     shlibpath_overrides_runpath=yes
10756
10757     case $host_os in
10758     cygwin*)
10759       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10760       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10761
10762       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10763       ;;
10764     mingw* | cegcc*)
10765       # MinGW DLLs use traditional 'lib' prefix
10766       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10767       ;;
10768     pw32*)
10769       # pw32 DLLs use 'pw' prefix rather than 'lib'
10770       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10771       ;;
10772     esac
10773     dynamic_linker='Win32 ld.exe'
10774     ;;
10775
10776   *,cl*)
10777     # Native MSVC
10778     libname_spec='$name'
10779     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10780     library_names_spec='${libname}.dll.lib'
10781
10782     case $build_os in
10783     mingw*)
10784       sys_lib_search_path_spec=
10785       lt_save_ifs=$IFS
10786       IFS=';'
10787       for lt_path in $LIB
10788       do
10789         IFS=$lt_save_ifs
10790         # Let DOS variable expansion print the short 8.3 style file name.
10791         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10792         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10793       done
10794       IFS=$lt_save_ifs
10795       # Convert to MSYS style.
10796       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10797       ;;
10798     cygwin*)
10799       # Convert to unix form, then to dos form, then back to unix form
10800       # but this time dos style (no spaces!) so that the unix form looks
10801       # like /cygdrive/c/PROGRA~1:/cygdr...
10802       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10803       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10804       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10805       ;;
10806     *)
10807       sys_lib_search_path_spec="$LIB"
10808       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10809         # It is most probably a Windows format PATH.
10810         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10811       else
10812         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10813       fi
10814       # FIXME: find the short name or the path components, as spaces are
10815       # common. (e.g. "Program Files" -> "PROGRA~1")
10816       ;;
10817     esac
10818
10819     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10820     postinstall_cmds='base_file=`basename \${file}`~
10821       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10822       dldir=$destdir/`dirname \$dlpath`~
10823       test -d \$dldir || mkdir -p \$dldir~
10824       $install_prog $dir/$dlname \$dldir/$dlname'
10825     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10826       dlpath=$dir/\$dldll~
10827        $RM \$dlpath'
10828     shlibpath_overrides_runpath=yes
10829     dynamic_linker='Win32 link.exe'
10830     ;;
10831
10832   *)
10833     # Assume MSVC wrapper
10834     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10835     dynamic_linker='Win32 ld.exe'
10836     ;;
10837   esac
10838   # FIXME: first we should search . and the directory the executable is in
10839   shlibpath_var=PATH
10840   ;;
10841
10842 darwin* | rhapsody*)
10843   dynamic_linker="$host_os dyld"
10844   version_type=darwin
10845   need_lib_prefix=no
10846   need_version=no
10847   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10848   soname_spec='${libname}${release}${major}$shared_ext'
10849   shlibpath_overrides_runpath=yes
10850   shlibpath_var=DYLD_LIBRARY_PATH
10851   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10852
10853   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10854   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10855   ;;
10856
10857 dgux*)
10858   version_type=linux # correct to gnu/linux during the next big refactor
10859   need_lib_prefix=no
10860   need_version=no
10861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10862   soname_spec='${libname}${release}${shared_ext}$major'
10863   shlibpath_var=LD_LIBRARY_PATH
10864   ;;
10865
10866 freebsd* | dragonfly*)
10867   # DragonFly does not have aout.  When/if they implement a new
10868   # versioning mechanism, adjust this.
10869   if test -x /usr/bin/objformat; then
10870     objformat=`/usr/bin/objformat`
10871   else
10872     case $host_os in
10873     freebsd[23].*) objformat=aout ;;
10874     *) objformat=elf ;;
10875     esac
10876   fi
10877   version_type=freebsd-$objformat
10878   case $version_type in
10879     freebsd-elf*)
10880       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10881       need_version=no
10882       need_lib_prefix=no
10883       ;;
10884     freebsd-*)
10885       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10886       need_version=yes
10887       ;;
10888   esac
10889   shlibpath_var=LD_LIBRARY_PATH
10890   case $host_os in
10891   freebsd2.*)
10892     shlibpath_overrides_runpath=yes
10893     ;;
10894   freebsd3.[01]* | freebsdelf3.[01]*)
10895     shlibpath_overrides_runpath=yes
10896     hardcode_into_libs=yes
10897     ;;
10898   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10899   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10900     shlibpath_overrides_runpath=no
10901     hardcode_into_libs=yes
10902     ;;
10903   *) # from 4.6 on, and DragonFly
10904     shlibpath_overrides_runpath=yes
10905     hardcode_into_libs=yes
10906     ;;
10907   esac
10908   ;;
10909
10910 gnu*)
10911   version_type=linux # correct to gnu/linux during the next big refactor
10912   need_lib_prefix=no
10913   need_version=no
10914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10915   soname_spec='${libname}${release}${shared_ext}$major'
10916   shlibpath_var=LD_LIBRARY_PATH
10917   shlibpath_overrides_runpath=no
10918   hardcode_into_libs=yes
10919   ;;
10920
10921 haiku*)
10922   version_type=linux # correct to gnu/linux during the next big refactor
10923   need_lib_prefix=no
10924   need_version=no
10925   dynamic_linker="$host_os runtime_loader"
10926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10927   soname_spec='${libname}${release}${shared_ext}$major'
10928   shlibpath_var=LIBRARY_PATH
10929   shlibpath_overrides_runpath=yes
10930   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10931   hardcode_into_libs=yes
10932   ;;
10933
10934 hpux9* | hpux10* | hpux11*)
10935   # Give a soname corresponding to the major version so that dld.sl refuses to
10936   # link against other versions.
10937   version_type=sunos
10938   need_lib_prefix=no
10939   need_version=no
10940   case $host_cpu in
10941   ia64*)
10942     shrext_cmds='.so'
10943     hardcode_into_libs=yes
10944     dynamic_linker="$host_os dld.so"
10945     shlibpath_var=LD_LIBRARY_PATH
10946     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10947     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948     soname_spec='${libname}${release}${shared_ext}$major'
10949     if test "X$HPUX_IA64_MODE" = X32; then
10950       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10951     else
10952       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10953     fi
10954     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10955     ;;
10956   hppa*64*)
10957     shrext_cmds='.sl'
10958     hardcode_into_libs=yes
10959     dynamic_linker="$host_os dld.sl"
10960     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10961     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10962     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10963     soname_spec='${libname}${release}${shared_ext}$major'
10964     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10965     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10966     ;;
10967   *)
10968     shrext_cmds='.sl'
10969     dynamic_linker="$host_os dld.sl"
10970     shlibpath_var=SHLIB_PATH
10971     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10972     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973     soname_spec='${libname}${release}${shared_ext}$major'
10974     ;;
10975   esac
10976   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10977   postinstall_cmds='chmod 555 $lib'
10978   # or fails outright, so override atomically:
10979   install_override_mode=555
10980   ;;
10981
10982 interix[3-9]*)
10983   version_type=linux # correct to gnu/linux during the next big refactor
10984   need_lib_prefix=no
10985   need_version=no
10986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10987   soname_spec='${libname}${release}${shared_ext}$major'
10988   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10989   shlibpath_var=LD_LIBRARY_PATH
10990   shlibpath_overrides_runpath=no
10991   hardcode_into_libs=yes
10992   ;;
10993
10994 irix5* | irix6* | nonstopux*)
10995   case $host_os in
10996     nonstopux*) version_type=nonstopux ;;
10997     *)
10998         if test "$lt_cv_prog_gnu_ld" = yes; then
10999                 version_type=linux # correct to gnu/linux during the next big refactor
11000         else
11001                 version_type=irix
11002         fi ;;
11003   esac
11004   need_lib_prefix=no
11005   need_version=no
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11008   case $host_os in
11009   irix5* | nonstopux*)
11010     libsuff= shlibsuff=
11011     ;;
11012   *)
11013     case $LD in # libtool.m4 will add one of these switches to LD
11014     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11015       libsuff= shlibsuff= libmagic=32-bit;;
11016     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11017       libsuff=32 shlibsuff=N32 libmagic=N32;;
11018     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11019       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11020     *) libsuff= shlibsuff= libmagic=never-match;;
11021     esac
11022     ;;
11023   esac
11024   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11025   shlibpath_overrides_runpath=no
11026   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11027   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11028   hardcode_into_libs=yes
11029   ;;
11030
11031 # No shared lib support for Linux oldld, aout, or coff.
11032 linux*oldld* | linux*aout* | linux*coff*)
11033   dynamic_linker=no
11034   ;;
11035
11036 # This must be glibc/ELF.
11037 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11038   version_type=linux # correct to gnu/linux during the next big refactor
11039   need_lib_prefix=no
11040   need_version=no
11041   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042   soname_spec='${libname}${release}${shared_ext}$major'
11043   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11044   shlibpath_var=LD_LIBRARY_PATH
11045   shlibpath_overrides_runpath=no
11046
11047   # Some binutils ld are patched to set DT_RUNPATH
11048   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11049   $as_echo_n "(cached) " >&6
11050 else
11051   lt_cv_shlibpath_overrides_runpath=no
11052     save_LDFLAGS=$LDFLAGS
11053     save_libdir=$libdir
11054     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11055          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11056     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11057 /* end confdefs.h.  */
11058
11059 int
11060 main ()
11061 {
11062
11063   ;
11064   return 0;
11065 }
11066 _ACEOF
11067 if ac_fn_c_try_link "$LINENO"; then :
11068   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11069   lt_cv_shlibpath_overrides_runpath=yes
11070 fi
11071 fi
11072 rm -f core conftest.err conftest.$ac_objext \
11073     conftest$ac_exeext conftest.$ac_ext
11074     LDFLAGS=$save_LDFLAGS
11075     libdir=$save_libdir
11076
11077 fi
11078
11079   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11080
11081   # This implies no fast_install, which is unacceptable.
11082   # Some rework will be needed to allow for fast_install
11083   # before this can be enabled.
11084   hardcode_into_libs=yes
11085
11086   # Add ABI-specific directories to the system library path.
11087   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11088
11089   # Append ld.so.conf contents to the search path
11090   if test -f /etc/ld.so.conf; then
11091     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' ' '`
11092     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11093
11094   fi
11095
11096   # We used to test for /lib/ld.so.1 and disable shared libraries on
11097   # powerpc, because MkLinux only supported shared libraries with the
11098   # GNU dynamic linker.  Since this was broken with cross compilers,
11099   # most powerpc-linux boxes support dynamic linking these days and
11100   # people can always --disable-shared, the test was removed, and we
11101   # assume the GNU/Linux dynamic linker is in use.
11102   dynamic_linker='GNU/Linux ld.so'
11103   ;;
11104
11105 netbsd*)
11106   version_type=sunos
11107   need_lib_prefix=no
11108   need_version=no
11109   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11110     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11111     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11112     dynamic_linker='NetBSD (a.out) ld.so'
11113   else
11114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11115     soname_spec='${libname}${release}${shared_ext}$major'
11116     dynamic_linker='NetBSD ld.elf_so'
11117   fi
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=yes
11120   hardcode_into_libs=yes
11121   ;;
11122
11123 newsos6)
11124   version_type=linux # correct to gnu/linux during the next big refactor
11125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11126   shlibpath_var=LD_LIBRARY_PATH
11127   shlibpath_overrides_runpath=yes
11128   ;;
11129
11130 *nto* | *qnx*)
11131   version_type=qnx
11132   need_lib_prefix=no
11133   need_version=no
11134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11135   soname_spec='${libname}${release}${shared_ext}$major'
11136   shlibpath_var=LD_LIBRARY_PATH
11137   shlibpath_overrides_runpath=no
11138   hardcode_into_libs=yes
11139   dynamic_linker='ldqnx.so'
11140   ;;
11141
11142 openbsd*)
11143   version_type=sunos
11144   sys_lib_dlsearch_path_spec="/usr/lib"
11145   need_lib_prefix=no
11146   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11147   case $host_os in
11148     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11149     *)                          need_version=no  ;;
11150   esac
11151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11155     case $host_os in
11156       openbsd2.[89] | openbsd2.[89].*)
11157         shlibpath_overrides_runpath=no
11158         ;;
11159       *)
11160         shlibpath_overrides_runpath=yes
11161         ;;
11162       esac
11163   else
11164     shlibpath_overrides_runpath=yes
11165   fi
11166   ;;
11167
11168 os2*)
11169   libname_spec='$name'
11170   shrext_cmds=".dll"
11171   need_lib_prefix=no
11172   library_names_spec='$libname${shared_ext} $libname.a'
11173   dynamic_linker='OS/2 ld.exe'
11174   shlibpath_var=LIBPATH
11175   ;;
11176
11177 osf3* | osf4* | osf5*)
11178   version_type=osf
11179   need_lib_prefix=no
11180   need_version=no
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183   shlibpath_var=LD_LIBRARY_PATH
11184   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11185   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11186   ;;
11187
11188 rdos*)
11189   dynamic_linker=no
11190   ;;
11191
11192 solaris*)
11193   version_type=linux # correct to gnu/linux during the next big refactor
11194   need_lib_prefix=no
11195   need_version=no
11196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11197   soname_spec='${libname}${release}${shared_ext}$major'
11198   shlibpath_var=LD_LIBRARY_PATH
11199   shlibpath_overrides_runpath=yes
11200   hardcode_into_libs=yes
11201   # ldd complains unless libraries are executable
11202   postinstall_cmds='chmod +x $lib'
11203   ;;
11204
11205 sunos4*)
11206   version_type=sunos
11207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11209   shlibpath_var=LD_LIBRARY_PATH
11210   shlibpath_overrides_runpath=yes
11211   if test "$with_gnu_ld" = yes; then
11212     need_lib_prefix=no
11213   fi
11214   need_version=yes
11215   ;;
11216
11217 sysv4 | sysv4.3*)
11218   version_type=linux # correct to gnu/linux during the next big refactor
11219   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220   soname_spec='${libname}${release}${shared_ext}$major'
11221   shlibpath_var=LD_LIBRARY_PATH
11222   case $host_vendor in
11223     sni)
11224       shlibpath_overrides_runpath=no
11225       need_lib_prefix=no
11226       runpath_var=LD_RUN_PATH
11227       ;;
11228     siemens)
11229       need_lib_prefix=no
11230       ;;
11231     motorola)
11232       need_lib_prefix=no
11233       need_version=no
11234       shlibpath_overrides_runpath=no
11235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11236       ;;
11237   esac
11238   ;;
11239
11240 sysv4*MP*)
11241   if test -d /usr/nec ;then
11242     version_type=linux # correct to gnu/linux during the next big refactor
11243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11244     soname_spec='$libname${shared_ext}.$major'
11245     shlibpath_var=LD_LIBRARY_PATH
11246   fi
11247   ;;
11248
11249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11250   version_type=freebsd-elf
11251   need_lib_prefix=no
11252   need_version=no
11253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11254   soname_spec='${libname}${release}${shared_ext}$major'
11255   shlibpath_var=LD_LIBRARY_PATH
11256   shlibpath_overrides_runpath=yes
11257   hardcode_into_libs=yes
11258   if test "$with_gnu_ld" = yes; then
11259     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11260   else
11261     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11262     case $host_os in
11263       sco3.2v5*)
11264         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11265         ;;
11266     esac
11267   fi
11268   sys_lib_dlsearch_path_spec='/usr/lib'
11269   ;;
11270
11271 tpf*)
11272   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11273   version_type=linux # correct to gnu/linux during the next big refactor
11274   need_lib_prefix=no
11275   need_version=no
11276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11277   shlibpath_var=LD_LIBRARY_PATH
11278   shlibpath_overrides_runpath=no
11279   hardcode_into_libs=yes
11280   ;;
11281
11282 uts4*)
11283   version_type=linux # correct to gnu/linux during the next big refactor
11284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285   soname_spec='${libname}${release}${shared_ext}$major'
11286   shlibpath_var=LD_LIBRARY_PATH
11287   ;;
11288
11289 *)
11290   dynamic_linker=no
11291   ;;
11292 esac
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11294 $as_echo "$dynamic_linker" >&6; }
11295 test "$dynamic_linker" = no && can_build_shared=no
11296
11297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11298 if test "$GCC" = yes; then
11299   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11300 fi
11301
11302 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11303   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11304 fi
11305 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11306   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11307 fi
11308
11309
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11401 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11402 hardcode_action=
11403 if test -n "$hardcode_libdir_flag_spec" ||
11404    test -n "$runpath_var" ||
11405    test "X$hardcode_automatic" = "Xyes" ; then
11406
11407   # We can hardcode non-existent directories.
11408   if test "$hardcode_direct" != no &&
11409      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11410      # have to relink, otherwise we might link with an installed library
11411      # when we should be linking with a yet-to-be-installed one
11412      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11413      test "$hardcode_minus_L" != no; then
11414     # Linking always hardcodes the temporary library directory.
11415     hardcode_action=relink
11416   else
11417     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11418     hardcode_action=immediate
11419   fi
11420 else
11421   # We cannot hardcode anything, or else we can only hardcode existing
11422   # directories.
11423   hardcode_action=unsupported
11424 fi
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11426 $as_echo "$hardcode_action" >&6; }
11427
11428 if test "$hardcode_action" = relink ||
11429    test "$inherit_rpath" = yes; then
11430   # Fast installation is not supported
11431   enable_fast_install=no
11432 elif test "$shlibpath_overrides_runpath" = yes ||
11433      test "$enable_shared" = no; then
11434   # Fast installation is not necessary
11435   enable_fast_install=needless
11436 fi
11437
11438
11439
11440
11441
11442
11443   if test "x$enable_dlopen" != xyes; then
11444   enable_dlopen=unknown
11445   enable_dlopen_self=unknown
11446   enable_dlopen_self_static=unknown
11447 else
11448   lt_cv_dlopen=no
11449   lt_cv_dlopen_libs=
11450
11451   case $host_os in
11452   beos*)
11453     lt_cv_dlopen="load_add_on"
11454     lt_cv_dlopen_libs=
11455     lt_cv_dlopen_self=yes
11456     ;;
11457
11458   mingw* | pw32* | cegcc*)
11459     lt_cv_dlopen="LoadLibrary"
11460     lt_cv_dlopen_libs=
11461     ;;
11462
11463   cygwin*)
11464     lt_cv_dlopen="dlopen"
11465     lt_cv_dlopen_libs=
11466     ;;
11467
11468   darwin*)
11469   # if libdl is installed we need to link against it
11470     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11471 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11472 if ${ac_cv_lib_dl_dlopen+:} false; then :
11473   $as_echo_n "(cached) " >&6
11474 else
11475   ac_check_lib_save_LIBS=$LIBS
11476 LIBS="-ldl  $LIBS"
11477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479
11480 /* Override any GCC internal prototype to avoid an error.
11481    Use char because int might match the return type of a GCC
11482    builtin and then its argument prototype would still apply.  */
11483 #ifdef __cplusplus
11484 extern "C"
11485 #endif
11486 char dlopen ();
11487 int
11488 main ()
11489 {
11490 return dlopen ();
11491   ;
11492   return 0;
11493 }
11494 _ACEOF
11495 if ac_fn_c_try_link "$LINENO"; then :
11496   ac_cv_lib_dl_dlopen=yes
11497 else
11498   ac_cv_lib_dl_dlopen=no
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext \
11501     conftest$ac_exeext conftest.$ac_ext
11502 LIBS=$ac_check_lib_save_LIBS
11503 fi
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11505 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11506 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11507   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11508 else
11509
11510     lt_cv_dlopen="dyld"
11511     lt_cv_dlopen_libs=
11512     lt_cv_dlopen_self=yes
11513
11514 fi
11515
11516     ;;
11517
11518   *)
11519     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11520 if test "x$ac_cv_func_shl_load" = xyes; then :
11521   lt_cv_dlopen="shl_load"
11522 else
11523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11524 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11525 if ${ac_cv_lib_dld_shl_load+:} false; then :
11526   $as_echo_n "(cached) " >&6
11527 else
11528   ac_check_lib_save_LIBS=$LIBS
11529 LIBS="-ldld  $LIBS"
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h.  */
11532
11533 /* Override any GCC internal prototype to avoid an error.
11534    Use char because int might match the return type of a GCC
11535    builtin and then its argument prototype would still apply.  */
11536 #ifdef __cplusplus
11537 extern "C"
11538 #endif
11539 char shl_load ();
11540 int
11541 main ()
11542 {
11543 return shl_load ();
11544   ;
11545   return 0;
11546 }
11547 _ACEOF
11548 if ac_fn_c_try_link "$LINENO"; then :
11549   ac_cv_lib_dld_shl_load=yes
11550 else
11551   ac_cv_lib_dld_shl_load=no
11552 fi
11553 rm -f core conftest.err conftest.$ac_objext \
11554     conftest$ac_exeext conftest.$ac_ext
11555 LIBS=$ac_check_lib_save_LIBS
11556 fi
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11558 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11559 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11560   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11561 else
11562   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11563 if test "x$ac_cv_func_dlopen" = xyes; then :
11564   lt_cv_dlopen="dlopen"
11565 else
11566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11567 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11568 if ${ac_cv_lib_dl_dlopen+:} false; then :
11569   $as_echo_n "(cached) " >&6
11570 else
11571   ac_check_lib_save_LIBS=$LIBS
11572 LIBS="-ldl  $LIBS"
11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11574 /* end confdefs.h.  */
11575
11576 /* Override any GCC internal prototype to avoid an error.
11577    Use char because int might match the return type of a GCC
11578    builtin and then its argument prototype would still apply.  */
11579 #ifdef __cplusplus
11580 extern "C"
11581 #endif
11582 char dlopen ();
11583 int
11584 main ()
11585 {
11586 return dlopen ();
11587   ;
11588   return 0;
11589 }
11590 _ACEOF
11591 if ac_fn_c_try_link "$LINENO"; then :
11592   ac_cv_lib_dl_dlopen=yes
11593 else
11594   ac_cv_lib_dl_dlopen=no
11595 fi
11596 rm -f core conftest.err conftest.$ac_objext \
11597     conftest$ac_exeext conftest.$ac_ext
11598 LIBS=$ac_check_lib_save_LIBS
11599 fi
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11601 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11602 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11603   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11604 else
11605   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11606 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11607 if ${ac_cv_lib_svld_dlopen+:} false; then :
11608   $as_echo_n "(cached) " >&6
11609 else
11610   ac_check_lib_save_LIBS=$LIBS
11611 LIBS="-lsvld  $LIBS"
11612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11613 /* end confdefs.h.  */
11614
11615 /* Override any GCC internal prototype to avoid an error.
11616    Use char because int might match the return type of a GCC
11617    builtin and then its argument prototype would still apply.  */
11618 #ifdef __cplusplus
11619 extern "C"
11620 #endif
11621 char dlopen ();
11622 int
11623 main ()
11624 {
11625 return dlopen ();
11626   ;
11627   return 0;
11628 }
11629 _ACEOF
11630 if ac_fn_c_try_link "$LINENO"; then :
11631   ac_cv_lib_svld_dlopen=yes
11632 else
11633   ac_cv_lib_svld_dlopen=no
11634 fi
11635 rm -f core conftest.err conftest.$ac_objext \
11636     conftest$ac_exeext conftest.$ac_ext
11637 LIBS=$ac_check_lib_save_LIBS
11638 fi
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11640 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11641 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11642   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11643 else
11644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11645 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11646 if ${ac_cv_lib_dld_dld_link+:} false; then :
11647   $as_echo_n "(cached) " >&6
11648 else
11649   ac_check_lib_save_LIBS=$LIBS
11650 LIBS="-ldld  $LIBS"
11651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11652 /* end confdefs.h.  */
11653
11654 /* Override any GCC internal prototype to avoid an error.
11655    Use char because int might match the return type of a GCC
11656    builtin and then its argument prototype would still apply.  */
11657 #ifdef __cplusplus
11658 extern "C"
11659 #endif
11660 char dld_link ();
11661 int
11662 main ()
11663 {
11664 return dld_link ();
11665   ;
11666   return 0;
11667 }
11668 _ACEOF
11669 if ac_fn_c_try_link "$LINENO"; then :
11670   ac_cv_lib_dld_dld_link=yes
11671 else
11672   ac_cv_lib_dld_dld_link=no
11673 fi
11674 rm -f core conftest.err conftest.$ac_objext \
11675     conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11679 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11680 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11681   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11682 fi
11683
11684
11685 fi
11686
11687
11688 fi
11689
11690
11691 fi
11692
11693
11694 fi
11695
11696
11697 fi
11698
11699     ;;
11700   esac
11701
11702   if test "x$lt_cv_dlopen" != xno; then
11703     enable_dlopen=yes
11704   else
11705     enable_dlopen=no
11706   fi
11707
11708   case $lt_cv_dlopen in
11709   dlopen)
11710     save_CPPFLAGS="$CPPFLAGS"
11711     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11712
11713     save_LDFLAGS="$LDFLAGS"
11714     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11715
11716     save_LIBS="$LIBS"
11717     LIBS="$lt_cv_dlopen_libs $LIBS"
11718
11719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11720 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11721 if ${lt_cv_dlopen_self+:} false; then :
11722   $as_echo_n "(cached) " >&6
11723 else
11724           if test "$cross_compiling" = yes; then :
11725   lt_cv_dlopen_self=cross
11726 else
11727   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11728   lt_status=$lt_dlunknown
11729   cat > conftest.$ac_ext <<_LT_EOF
11730 #line $LINENO "configure"
11731 #include "confdefs.h"
11732
11733 #if HAVE_DLFCN_H
11734 #include <dlfcn.h>
11735 #endif
11736
11737 #include <stdio.h>
11738
11739 #ifdef RTLD_GLOBAL
11740 #  define LT_DLGLOBAL           RTLD_GLOBAL
11741 #else
11742 #  ifdef DL_GLOBAL
11743 #    define LT_DLGLOBAL         DL_GLOBAL
11744 #  else
11745 #    define LT_DLGLOBAL         0
11746 #  endif
11747 #endif
11748
11749 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11750    find out it does not work in some platform. */
11751 #ifndef LT_DLLAZY_OR_NOW
11752 #  ifdef RTLD_LAZY
11753 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11754 #  else
11755 #    ifdef DL_LAZY
11756 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11757 #    else
11758 #      ifdef RTLD_NOW
11759 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11760 #      else
11761 #        ifdef DL_NOW
11762 #          define LT_DLLAZY_OR_NOW      DL_NOW
11763 #        else
11764 #          define LT_DLLAZY_OR_NOW      0
11765 #        endif
11766 #      endif
11767 #    endif
11768 #  endif
11769 #endif
11770
11771 /* When -fvisbility=hidden is used, assume the code has been annotated
11772    correspondingly for the symbols needed.  */
11773 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11774 int fnord () __attribute__((visibility("default")));
11775 #endif
11776
11777 int fnord () { return 42; }
11778 int main ()
11779 {
11780   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11781   int status = $lt_dlunknown;
11782
11783   if (self)
11784     {
11785       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11786       else
11787         {
11788           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11789           else puts (dlerror ());
11790         }
11791       /* dlclose (self); */
11792     }
11793   else
11794     puts (dlerror ());
11795
11796   return status;
11797 }
11798 _LT_EOF
11799   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11800   (eval $ac_link) 2>&5
11801   ac_status=$?
11802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11803   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11804     (./conftest; exit; ) >&5 2>/dev/null
11805     lt_status=$?
11806     case x$lt_status in
11807       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11808       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11809       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11810     esac
11811   else :
11812     # compilation failed
11813     lt_cv_dlopen_self=no
11814   fi
11815 fi
11816 rm -fr conftest*
11817
11818
11819 fi
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11821 $as_echo "$lt_cv_dlopen_self" >&6; }
11822
11823     if test "x$lt_cv_dlopen_self" = xyes; then
11824       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11825       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11826 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11827 if ${lt_cv_dlopen_self_static+:} false; then :
11828   $as_echo_n "(cached) " >&6
11829 else
11830           if test "$cross_compiling" = yes; then :
11831   lt_cv_dlopen_self_static=cross
11832 else
11833   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11834   lt_status=$lt_dlunknown
11835   cat > conftest.$ac_ext <<_LT_EOF
11836 #line $LINENO "configure"
11837 #include "confdefs.h"
11838
11839 #if HAVE_DLFCN_H
11840 #include <dlfcn.h>
11841 #endif
11842
11843 #include <stdio.h>
11844
11845 #ifdef RTLD_GLOBAL
11846 #  define LT_DLGLOBAL           RTLD_GLOBAL
11847 #else
11848 #  ifdef DL_GLOBAL
11849 #    define LT_DLGLOBAL         DL_GLOBAL
11850 #  else
11851 #    define LT_DLGLOBAL         0
11852 #  endif
11853 #endif
11854
11855 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11856    find out it does not work in some platform. */
11857 #ifndef LT_DLLAZY_OR_NOW
11858 #  ifdef RTLD_LAZY
11859 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11860 #  else
11861 #    ifdef DL_LAZY
11862 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11863 #    else
11864 #      ifdef RTLD_NOW
11865 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11866 #      else
11867 #        ifdef DL_NOW
11868 #          define LT_DLLAZY_OR_NOW      DL_NOW
11869 #        else
11870 #          define LT_DLLAZY_OR_NOW      0
11871 #        endif
11872 #      endif
11873 #    endif
11874 #  endif
11875 #endif
11876
11877 /* When -fvisbility=hidden is used, assume the code has been annotated
11878    correspondingly for the symbols needed.  */
11879 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11880 int fnord () __attribute__((visibility("default")));
11881 #endif
11882
11883 int fnord () { return 42; }
11884 int main ()
11885 {
11886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11887   int status = $lt_dlunknown;
11888
11889   if (self)
11890     {
11891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11892       else
11893         {
11894           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11895           else puts (dlerror ());
11896         }
11897       /* dlclose (self); */
11898     }
11899   else
11900     puts (dlerror ());
11901
11902   return status;
11903 }
11904 _LT_EOF
11905   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11906   (eval $ac_link) 2>&5
11907   ac_status=$?
11908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11910     (./conftest; exit; ) >&5 2>/dev/null
11911     lt_status=$?
11912     case x$lt_status in
11913       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11914       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11915       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11916     esac
11917   else :
11918     # compilation failed
11919     lt_cv_dlopen_self_static=no
11920   fi
11921 fi
11922 rm -fr conftest*
11923
11924
11925 fi
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11927 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11928     fi
11929
11930     CPPFLAGS="$save_CPPFLAGS"
11931     LDFLAGS="$save_LDFLAGS"
11932     LIBS="$save_LIBS"
11933     ;;
11934   esac
11935
11936   case $lt_cv_dlopen_self in
11937   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11938   *) enable_dlopen_self=unknown ;;
11939   esac
11940
11941   case $lt_cv_dlopen_self_static in
11942   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11943   *) enable_dlopen_self_static=unknown ;;
11944   esac
11945 fi
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 striplib=
11964 old_striplib=
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11966 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11967 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11968   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11969   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11971 $as_echo "yes" >&6; }
11972 else
11973 # FIXME - insert some real tests, host_os isn't really good enough
11974   case $host_os in
11975   darwin*)
11976     if test -n "$STRIP" ; then
11977       striplib="$STRIP -x"
11978       old_striplib="$STRIP -S"
11979       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11980 $as_echo "yes" >&6; }
11981     else
11982       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984     fi
11985     ;;
11986   *)
11987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11988 $as_echo "no" >&6; }
11989     ;;
11990   esac
11991 fi
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004   # Report which library types will actually be built
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12006 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12008 $as_echo "$can_build_shared" >&6; }
12009
12010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12011 $as_echo_n "checking whether to build shared libraries... " >&6; }
12012   test "$can_build_shared" = "no" && enable_shared=no
12013
12014   # On AIX, shared libraries and static libraries use the same namespace, and
12015   # are all built from PIC.
12016   case $host_os in
12017   aix3*)
12018     test "$enable_shared" = yes && enable_static=no
12019     if test -n "$RANLIB"; then
12020       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12021       postinstall_cmds='$RANLIB $lib'
12022     fi
12023     ;;
12024
12025   aix[4-9]*)
12026     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12027       test "$enable_shared" = yes && enable_static=no
12028     fi
12029     ;;
12030   esac
12031   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12032 $as_echo "$enable_shared" >&6; }
12033
12034   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12035 $as_echo_n "checking whether to build static libraries... " >&6; }
12036   # Make sure either enable_shared or enable_static is yes.
12037   test "$enable_shared" = yes || enable_static=yes
12038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12039 $as_echo "$enable_static" >&6; }
12040
12041
12042
12043
12044 fi
12045 ac_ext=c
12046 ac_cpp='$CPP $CPPFLAGS'
12047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12050
12051 CC="$lt_save_CC"
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067         ac_config_commands="$ac_config_commands libtool"
12068
12069
12070
12071
12072 # Only expand once:
12073
12074
12075
12076
12077 # Test for 64-bit build.
12078 # The cast to long int works around a bug in the HP C Compiler
12079 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12080 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12081 # This bug is HP SR number 8606223364.
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12083 $as_echo_n "checking size of size_t... " >&6; }
12084 if ${ac_cv_sizeof_size_t+:} false; then :
12085   $as_echo_n "(cached) " >&6
12086 else
12087   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12088
12089 else
12090   if test "$ac_cv_type_size_t" = yes; then
12091      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12092 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12093 as_fn_error 77 "cannot compute sizeof (size_t)
12094 See \`config.log' for more details" "$LINENO" 5; }
12095    else
12096      ac_cv_sizeof_size_t=0
12097    fi
12098 fi
12099
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12102 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12103
12104
12105
12106 cat >>confdefs.h <<_ACEOF
12107 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12108 _ACEOF
12109
12110
12111
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12113 $as_echo_n "checking for C compiler vendor... " >&6; }
12114 if ${ax_cv_c_compiler_vendor+:} false; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   # note: don't check for gcc first since some other compilers define __GNUC__
12118   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12119            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12120            pathscale: __PATHCC__,__PATHSCALE__
12121            clang:     __clang__
12122            gnu:       __GNUC__
12123            sun:       __SUNPRO_C,__SUNPRO_CC
12124            hp:        __HP_cc,__HP_aCC
12125            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12126            borland:   __BORLANDC__,__TURBOC__
12127            comeau:    __COMO__
12128            cray:      _CRAYC
12129            kai:       __KCC
12130            lcc:       __LCC__
12131            sgi:       __sgi,sgi
12132            microsoft: _MSC_VER
12133            metrowerks: __MWERKS__
12134            watcom:    __WATCOMC__
12135            portland:  __PGI
12136            unknown:   UNKNOWN"
12137   for ventest in $vendors; do
12138     case $ventest in
12139       *:) vendor=$ventest; continue ;;
12140       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12141     esac
12142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12143 /* end confdefs.h.  */
12144
12145 int
12146 main ()
12147 {
12148
12149       #if !($vencpp)
12150         thisisanerror;
12151       #endif
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_compile "$LINENO"; then :
12158   break
12159 fi
12160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12161   done
12162   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12163
12164 fi
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12166 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12167
12168
12169
12170
12171
12172
12173 # Check whether --enable-portable-binary was given.
12174 if test "${enable_portable_binary+set}" = set; then :
12175   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12176 else
12177   acx_maxopt_portable=no
12178 fi
12179
12180
12181 # Try to determine "good" native compiler flags if none specified via CFLAGS
12182 if test "$ac_test_CFLAGS" != "set"; then
12183   CFLAGS=""
12184   case $ax_cv_c_compiler_vendor in
12185     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12186          if test "x$acx_maxopt_portable" = xno; then
12187            CFLAGS="$CFLAGS -arch host"
12188          fi;;
12189
12190     sun) CFLAGS="-native -fast -xO5 -dalign"
12191          if test "x$acx_maxopt_portable" = xyes; then
12192            CFLAGS="$CFLAGS -xarch=generic"
12193          fi;;
12194
12195     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12196          if test "x$acx_maxopt_portable" = xyes; then
12197            CFLAGS="$CFLAGS +DAportable"
12198          fi;;
12199
12200     ibm) if test "x$acx_maxopt_portable" = xno; then
12201            xlc_opt="-qarch=auto -qtune=auto"
12202          else
12203            xlc_opt="-qtune=auto"
12204          fi
12205          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12207 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12208 if eval \${$as_CACHEVAR+:} false; then :
12209   $as_echo_n "(cached) " >&6
12210 else
12211
12212   ax_check_save_flags=$CFLAGS
12213   CFLAGS="$CFLAGS  $xlc_opt"
12214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h.  */
12216
12217 int
12218 main ()
12219 {
12220
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 if ac_fn_c_try_compile "$LINENO"; then :
12226   eval "$as_CACHEVAR=yes"
12227 else
12228   eval "$as_CACHEVAR=no"
12229 fi
12230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12231   CFLAGS=$ax_check_save_flags
12232 fi
12233 eval ac_res=\$$as_CACHEVAR
12234                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12235 $as_echo "$ac_res" >&6; }
12236 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12237   CFLAGS="-O3 -qansialias -w $xlc_opt"
12238 else
12239   CFLAGS="-O3 -qansialias -w"
12240                 echo "******************************************************"
12241                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12242                 echo "*  recommended for best performance that you use:    *"
12243                 echo "*                                                    *"
12244                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12245                 echo "*                      ^^^        ^^^                *"
12246                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12247                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12248                 echo "*  and re-run configure.)  For more info, man cc.    *"
12249                 echo "******************************************************"
12250 fi
12251
12252          ;;
12253
12254     intel) CFLAGS="-O3 -ansi_alias"
12255         if test "x$acx_maxopt_portable" = xno; then
12256           icc_archflag=unknown
12257           icc_flags=""
12258           case $host_cpu in
12259             i686*|x86_64*)
12260               # icc accepts gcc assembly syntax, so these should work:
12261
12262 ac_ext=c
12263 ac_cpp='$CPP $CPPFLAGS'
12264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12267
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12269 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12270 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12271   $as_echo_n "(cached) " >&6
12272 else
12273   if test "$cross_compiling" = yes; then :
12274   ax_cv_gcc_x86_cpuid_0=unknown
12275 else
12276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278 #include <stdio.h>
12279 int
12280 main ()
12281 {
12282
12283      int op = 0, eax, ebx, ecx, edx;
12284      FILE *f;
12285       __asm__("cpuid"
12286         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12287         : "a" (op));
12288      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12289      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12290      fclose(f);
12291      return 0;
12292
12293   ;
12294   return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_run "$LINENO"; then :
12298   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12299 else
12300   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12301 fi
12302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12303   conftest.$ac_objext conftest.beam conftest.$ac_ext
12304 fi
12305
12306 fi
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12308 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12309 ac_ext=c
12310 ac_cpp='$CPP $CPPFLAGS'
12311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12314
12315
12316
12317 ac_ext=c
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12324 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12325 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12326   $as_echo_n "(cached) " >&6
12327 else
12328   if test "$cross_compiling" = yes; then :
12329   ax_cv_gcc_x86_cpuid_1=unknown
12330 else
12331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h.  */
12333 #include <stdio.h>
12334 int
12335 main ()
12336 {
12337
12338      int op = 1, eax, ebx, ecx, edx;
12339      FILE *f;
12340       __asm__("cpuid"
12341         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12342         : "a" (op));
12343      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12344      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12345      fclose(f);
12346      return 0;
12347
12348   ;
12349   return 0;
12350 }
12351 _ACEOF
12352 if ac_fn_c_try_run "$LINENO"; then :
12353   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12354 else
12355   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12356 fi
12357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12358   conftest.$ac_objext conftest.beam conftest.$ac_ext
12359 fi
12360
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12363 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12364 ac_ext=c
12365 ac_cpp='$CPP $CPPFLAGS'
12366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12369
12370
12371               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12372                 *:756e6547:*:*) # Intel
12373                   case $ax_cv_gcc_x86_cpuid_1 in
12374                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12375                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12376                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12377                   esac ;;
12378               esac ;;
12379           esac
12380           if test "x$icc_flags" != x; then
12381             for flag in $icc_flags; do
12382               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12384 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12385 if eval \${$as_CACHEVAR+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388
12389   ax_check_save_flags=$CFLAGS
12390   CFLAGS="$CFLAGS  $flag"
12391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h.  */
12393
12394 int
12395 main ()
12396 {
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_compile "$LINENO"; then :
12403   eval "$as_CACHEVAR=yes"
12404 else
12405   eval "$as_CACHEVAR=no"
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408   CFLAGS=$ax_check_save_flags
12409 fi
12410 eval ac_res=\$$as_CACHEVAR
12411                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12412 $as_echo "$ac_res" >&6; }
12413 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12414   icc_archflag=$flag; break
12415 else
12416   :
12417 fi
12418
12419             done
12420           fi
12421           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12422 $as_echo_n "checking for icc architecture flag... " >&6; }
12423           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12424 $as_echo "$icc_archflag" >&6; }
12425           if test "x$icc_archflag" != xunknown; then
12426             CFLAGS="$CFLAGS $icc_archflag"
12427           fi
12428         fi
12429         ;;
12430
12431     gnu)
12432      # default optimization flags for gcc on all systems
12433      CFLAGS="-O3 -fomit-frame-pointer"
12434
12435      # -malign-double for x86 systems
12436      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12437      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12438
12439      #  -fstrict-aliasing for gcc-2.95+
12440      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12441 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12442 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12443   $as_echo_n "(cached) " >&6
12444 else
12445
12446   ax_check_save_flags=$CFLAGS
12447   CFLAGS="$CFLAGS  -fstrict-aliasing"
12448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449 /* end confdefs.h.  */
12450
12451 int
12452 main ()
12453 {
12454
12455   ;
12456   return 0;
12457 }
12458 _ACEOF
12459 if ac_fn_c_try_compile "$LINENO"; then :
12460   ax_cv_check_cflags___fstrict_aliasing=yes
12461 else
12462   ax_cv_check_cflags___fstrict_aliasing=no
12463 fi
12464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12465   CFLAGS=$ax_check_save_flags
12466 fi
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12468 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12469 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12470   CFLAGS="$CFLAGS -fstrict-aliasing"
12471 else
12472   :
12473 fi
12474
12475
12476      # note that we enable "unsafe" fp optimization with other compilers, too
12477      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12478 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12479 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12480   $as_echo_n "(cached) " >&6
12481 else
12482
12483   ax_check_save_flags=$CFLAGS
12484   CFLAGS="$CFLAGS  -ffast-math"
12485   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 /* end confdefs.h.  */
12487
12488 int
12489 main ()
12490 {
12491
12492   ;
12493   return 0;
12494 }
12495 _ACEOF
12496 if ac_fn_c_try_compile "$LINENO"; then :
12497   ax_cv_check_cflags___ffast_math=yes
12498 else
12499   ax_cv_check_cflags___ffast_math=no
12500 fi
12501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502   CFLAGS=$ax_check_save_flags
12503 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12505 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12506 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12507   CFLAGS="$CFLAGS -ffast-math"
12508 else
12509   :
12510 fi
12511
12512
12513
12514
12515
12516
12517 # Check whether --with-gcc-arch was given.
12518 if test "${with_gcc_arch+set}" = set; then :
12519   withval=$with_gcc_arch; ax_gcc_arch=$withval
12520 else
12521   ax_gcc_arch=yes
12522 fi
12523
12524
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12526 $as_echo_n "checking for gcc architecture flag... " >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12528 $as_echo "" >&6; }
12529 if ${ax_cv_gcc_archflag+:} false; then :
12530   $as_echo_n "(cached) " >&6
12531 else
12532
12533 ax_cv_gcc_archflag="unknown"
12534
12535 if test "$GCC" = yes; then
12536
12537 if test "x$ax_gcc_arch" = xyes; then
12538 ax_gcc_arch=""
12539 if test "$cross_compiling" = no; then
12540 case $host_cpu in
12541   i[3456]86*|x86_64*) # use cpuid codes
12542
12543 ac_ext=c
12544 ac_cpp='$CPP $CPPFLAGS'
12545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12548
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12550 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12551 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12552   $as_echo_n "(cached) " >&6
12553 else
12554   if test "$cross_compiling" = yes; then :
12555   ax_cv_gcc_x86_cpuid_0=unknown
12556 else
12557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12558 /* end confdefs.h.  */
12559 #include <stdio.h>
12560 int
12561 main ()
12562 {
12563
12564      int op = 0, eax, ebx, ecx, edx;
12565      FILE *f;
12566       __asm__("cpuid"
12567         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12568         : "a" (op));
12569      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12570      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12571      fclose(f);
12572      return 0;
12573
12574   ;
12575   return 0;
12576 }
12577 _ACEOF
12578 if ac_fn_c_try_run "$LINENO"; then :
12579   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12580 else
12581   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12582 fi
12583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12584   conftest.$ac_objext conftest.beam conftest.$ac_ext
12585 fi
12586
12587 fi
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12589 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12590 ac_ext=c
12591 ac_cpp='$CPP $CPPFLAGS'
12592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12595
12596
12597
12598 ac_ext=c
12599 ac_cpp='$CPP $CPPFLAGS'
12600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12603
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12605 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12606 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12607   $as_echo_n "(cached) " >&6
12608 else
12609   if test "$cross_compiling" = yes; then :
12610   ax_cv_gcc_x86_cpuid_1=unknown
12611 else
12612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12613 /* end confdefs.h.  */
12614 #include <stdio.h>
12615 int
12616 main ()
12617 {
12618
12619      int op = 1, eax, ebx, ecx, edx;
12620      FILE *f;
12621       __asm__("cpuid"
12622         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12623         : "a" (op));
12624      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12625      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12626      fclose(f);
12627      return 0;
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 if ac_fn_c_try_run "$LINENO"; then :
12634   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12635 else
12636   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12637 fi
12638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12639   conftest.$ac_objext conftest.beam conftest.$ac_ext
12640 fi
12641
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12644 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12645 ac_ext=c
12646 ac_cpp='$CPP $CPPFLAGS'
12647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12650
12651
12652      case $ax_cv_gcc_x86_cpuid_0 in
12653        *:756e6547:*:*) # Intel
12654           case $ax_cv_gcc_x86_cpuid_1 in
12655             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12656             *5??:*:*:*) ax_gcc_arch=pentium ;;
12657             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12658             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12659             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12660             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12661             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12662             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12663             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12664             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12665             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12666             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12667             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12668             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12669             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12670                 case $host_cpu in
12671                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12672                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12673                 esac ;;
12674             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12675           esac ;;
12676        *:68747541:*:*) # AMD
12677           case $ax_cv_gcc_x86_cpuid_1 in
12678             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12679             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12680             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12681             *60?:*:*:*) ax_gcc_arch=k7 ;;
12682             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12683             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12684             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12685             *6[68a]?:*:*:*)
12686
12687 ac_ext=c
12688 ac_cpp='$CPP $CPPFLAGS'
12689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12692
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12694 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12695 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   if test "$cross_compiling" = yes; then :
12699   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12700 else
12701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h.  */
12703 #include <stdio.h>
12704 int
12705 main ()
12706 {
12707
12708      int op = 0x80000006, eax, ebx, ecx, edx;
12709      FILE *f;
12710       __asm__("cpuid"
12711         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12712         : "a" (op));
12713      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12714      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12715      fclose(f);
12716      return 0;
12717
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_c_try_run "$LINENO"; then :
12723   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12724 else
12725   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12726 fi
12727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12728   conftest.$ac_objext conftest.beam conftest.$ac_ext
12729 fi
12730
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12733 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12734 ac_ext=c
12735 ac_cpp='$CPP $CPPFLAGS'
12736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739
12740  # L2 cache size
12741                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12742                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12743                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12744                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12745                esac ;;
12746             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12747             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12748             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12749             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12750             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12751             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12752             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12753           esac ;;
12754         *:746e6543:*:*) # IDT
12755            case $ax_cv_gcc_x86_cpuid_1 in
12756              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12757              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12758              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12759              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12760            esac ;;
12761      esac
12762      if test x"$ax_gcc_arch" = x; then # fallback
12763         case $host_cpu in
12764           i586*) ax_gcc_arch=pentium ;;
12765           i686*) ax_gcc_arch=pentiumpro ;;
12766         esac
12767      fi
12768      ;;
12769
12770   sparc*)
12771      # Extract the first word of "prtdiag", so it can be a program name with args.
12772 set dummy prtdiag; ac_word=$2
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774 $as_echo_n "checking for $ac_word... " >&6; }
12775 if ${ac_cv_path_PRTDIAG+:} false; then :
12776   $as_echo_n "(cached) " >&6
12777 else
12778   case $PRTDIAG in
12779   [\\/]* | ?:[\\/]*)
12780   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12781   ;;
12782   *)
12783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12784 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12785 for as_dir in $as_dummy
12786 do
12787   IFS=$as_save_IFS
12788   test -z "$as_dir" && as_dir=.
12789     for ac_exec_ext in '' $ac_executable_extensions; do
12790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12791     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12793     break 2
12794   fi
12795 done
12796   done
12797 IFS=$as_save_IFS
12798
12799   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12800   ;;
12801 esac
12802 fi
12803 PRTDIAG=$ac_cv_path_PRTDIAG
12804 if test -n "$PRTDIAG"; then
12805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12806 $as_echo "$PRTDIAG" >&6; }
12807 else
12808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12809 $as_echo "no" >&6; }
12810 fi
12811
12812
12813      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`
12814      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12815      case $cputype in
12816          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12817          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12818          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12819          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12820          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12821          *cypress*) ax_gcc_arch=cypress ;;
12822      esac ;;
12823
12824   alphaev5) ax_gcc_arch=ev5 ;;
12825   alphaev56) ax_gcc_arch=ev56 ;;
12826   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12827   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12828   alphaev6) ax_gcc_arch=ev6 ;;
12829   alphaev67) ax_gcc_arch=ev67 ;;
12830   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12831   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12832   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12833   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12834
12835   powerpc*)
12836      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`
12837      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12838      case $cputype in
12839        *750*) ax_gcc_arch="750 G3" ;;
12840        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12841        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12842        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12843        *970*) ax_gcc_arch="970 G5 power4";;
12844        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12845        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12846        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12847        *) ax_gcc_arch=$cputype ;;
12848      esac
12849      ax_gcc_arch="$ax_gcc_arch powerpc"
12850      ;;
12851 esac
12852 fi # not cross-compiling
12853 fi # guess arch
12854
12855 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12856 for arch in $ax_gcc_arch; do
12857   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12858     flags="-mtune=$arch"
12859     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12860     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12861     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12862   else
12863     flags="-march=$arch -mcpu=$arch -m$arch"
12864   fi
12865   for flag in $flags; do
12866     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12868 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12869 if eval \${$as_CACHEVAR+:} false; then :
12870   $as_echo_n "(cached) " >&6
12871 else
12872
12873   ax_check_save_flags=$CFLAGS
12874   CFLAGS="$CFLAGS  $flag"
12875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12876 /* end confdefs.h.  */
12877
12878 int
12879 main ()
12880 {
12881
12882   ;
12883   return 0;
12884 }
12885 _ACEOF
12886 if ac_fn_c_try_compile "$LINENO"; then :
12887   eval "$as_CACHEVAR=yes"
12888 else
12889   eval "$as_CACHEVAR=no"
12890 fi
12891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12892   CFLAGS=$ax_check_save_flags
12893 fi
12894 eval ac_res=\$$as_CACHEVAR
12895                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12896 $as_echo "$ac_res" >&6; }
12897 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12898   ax_cv_gcc_archflag=$flag; break
12899 else
12900   :
12901 fi
12902
12903   done
12904   test "x$ax_cv_gcc_archflag" = xunknown || break
12905 done
12906 fi
12907
12908 fi # $GCC=yes
12909
12910 fi
12911
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12913 $as_echo_n "checking for gcc architecture flag... " >&6; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12915 $as_echo "$ax_cv_gcc_archflag" >&6; }
12916 if test "x$ax_cv_gcc_archflag" = xunknown; then
12917   :
12918 else
12919   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12920 fi
12921
12922      ;;
12923   esac
12924
12925   if test -z "$CFLAGS"; then
12926         echo ""
12927         echo "********************************************************"
12928         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12929         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12930         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12931         echo "********************************************************"
12932         echo ""
12933         CFLAGS="-O3"
12934   fi
12935
12936   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12938 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12939 if eval \${$as_CACHEVAR+:} false; then :
12940   $as_echo_n "(cached) " >&6
12941 else
12942
12943   ax_check_save_flags=$CFLAGS
12944   CFLAGS="$CFLAGS  $CFLAGS"
12945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h.  */
12947
12948 int
12949 main ()
12950 {
12951
12952   ;
12953   return 0;
12954 }
12955 _ACEOF
12956 if ac_fn_c_try_compile "$LINENO"; then :
12957   eval "$as_CACHEVAR=yes"
12958 else
12959   eval "$as_CACHEVAR=no"
12960 fi
12961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12962   CFLAGS=$ax_check_save_flags
12963 fi
12964 eval ac_res=\$$as_CACHEVAR
12965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12966 $as_echo "$ac_res" >&6; }
12967 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12968   :
12969 else
12970
12971         echo ""
12972         echo "********************************************************"
12973         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12974         echo "* your compiler.                                       *"
12975         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12976         echo "********************************************************"
12977         echo ""
12978         CFLAGS=""
12979
12980 fi
12981
12982
12983 fi
12984
12985 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12986 # compiler.
12987 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12988   if ${CFLAGS+:} false; then :
12989   case " $CFLAGS " in
12990     *"  "*)
12991       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12992   (: CFLAGS already contains ) 2>&5
12993   ac_status=$?
12994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995   test $ac_status = 0; }
12996       ;;
12997     *)
12998       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12999   (: CFLAGS="$CFLAGS ") 2>&5
13000   ac_status=$?
13001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13002   test $ac_status = 0; }
13003       CFLAGS="$CFLAGS "
13004       ;;
13005    esac
13006 else
13007   CFLAGS=""
13008 fi
13009
13010 ac_ext=c
13011 ac_cpp='$CPP $CPPFLAGS'
13012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13015
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13017 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13018 if ${ac_cv_cflags_warn_all+:} false; then :
13019   $as_echo_n "(cached) " >&6
13020 else
13021   ac_cv_cflags_warn_all="no, unknown"
13022 ac_save_CFLAGS="$CFLAGS"
13023 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"    #
13024 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13025    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h.  */
13027
13028 int
13029 main ()
13030 {
13031
13032   ;
13033   return 0;
13034 }
13035 _ACEOF
13036 if ac_fn_c_try_compile "$LINENO"; then :
13037   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13038 fi
13039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13040 done
13041 CFLAGS="$ac_save_CFLAGS"
13042
13043 fi
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13045 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13046
13047 case ".$ac_cv_cflags_warn_all" in
13048      .ok|.ok,*)  ;;
13049    .|.no|.no,*)  ;;
13050    *) if ${CFLAGS+:} false; then :
13051   case " $CFLAGS " in
13052     *" $ac_cv_cflags_warn_all "*)
13053       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13054   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13055   ac_status=$?
13056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13057   test $ac_status = 0; }
13058       ;;
13059     *)
13060       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13061   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13062   ac_status=$?
13063   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13064   test $ac_status = 0; }
13065       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13066       ;;
13067    esac
13068 else
13069   CFLAGS="$ac_cv_cflags_warn_all"
13070 fi
13071  ;;
13072 esac
13073
13074 ac_ext=c
13075 ac_cpp='$CPP $CPPFLAGS'
13076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13079
13080
13081 fi
13082
13083 if test "x$GCC" = "xyes"; then
13084   CFLAGS="$CFLAGS -fexceptions"
13085   touch local.exp
13086 else
13087   cat > local.exp <<EOF
13088 set CC_FOR_TARGET "$CC"
13089 EOF
13090 fi
13091
13092
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13094 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13095     # Check whether --enable-maintainer-mode was given.
13096 if test "${enable_maintainer_mode+set}" = set; then :
13097   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13098 else
13099   USE_MAINTAINER_MODE=no
13100 fi
13101
13102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13103 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13104    if test $USE_MAINTAINER_MODE = yes; then
13105   MAINTAINER_MODE_TRUE=
13106   MAINTAINER_MODE_FALSE='#'
13107 else
13108   MAINTAINER_MODE_TRUE='#'
13109   MAINTAINER_MODE_FALSE=
13110 fi
13111
13112   MAINT=$MAINTAINER_MODE_TRUE
13113
13114
13115
13116 for ac_header in sys/mman.h
13117 do :
13118   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13119 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13120   cat >>confdefs.h <<_ACEOF
13121 #define HAVE_SYS_MMAN_H 1
13122 _ACEOF
13123
13124 fi
13125
13126 done
13127
13128 for ac_func in mmap
13129 do :
13130   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13131 if test "x$ac_cv_func_mmap" = xyes; then :
13132   cat >>confdefs.h <<_ACEOF
13133 #define HAVE_MMAP 1
13134 _ACEOF
13135
13136 fi
13137 done
13138
13139
13140 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13141 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13142   libffi_header_sys_mman_h=yes
13143 else
13144   libffi_header_sys_mman_h=no
13145 fi
13146
13147
13148 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13149 if test "x$ac_cv_func_mmap" = xyes; then :
13150   libffi_func_mmap=yes
13151 else
13152   libffi_func_mmap=no
13153 fi
13154
13155 if test "$libffi_header_sys_mman_h" != yes \
13156  || test "$libffi_func_mmap" != yes; then
13157    ac_cv_func_mmap_file=no
13158    ac_cv_func_mmap_dev_zero=no
13159    ac_cv_func_mmap_anon=no
13160 else
13161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13162 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13163 if ${ac_cv_func_mmap_file+:} false; then :
13164   $as_echo_n "(cached) " >&6
13165 else
13166   # Add a system to this blacklist if
13167    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13168    # memory area containing the same data that you'd get if you applied
13169    # read() to the same fd.  The only system known to have a problem here
13170    # is VMS, where text files have record structure.
13171    case "$host_os" in
13172      vms* | ultrix*)
13173         ac_cv_func_mmap_file=no ;;
13174      *)
13175         ac_cv_func_mmap_file=yes;;
13176    esac
13177 fi
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13179 $as_echo "$ac_cv_func_mmap_file" >&6; }
13180    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13181 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13182 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13183   $as_echo_n "(cached) " >&6
13184 else
13185   # Add a system to this blacklist if it has mmap() but /dev/zero
13186    # does not exist, or if mmapping /dev/zero does not give anonymous
13187    # zeroed pages with both the following properties:
13188    # 1. If you map N consecutive pages in with one call, and then
13189    #    unmap any subset of those pages, the pages that were not
13190    #    explicitly unmapped remain accessible.
13191    # 2. If you map two adjacent blocks of memory and then unmap them
13192    #    both at once, they must both go away.
13193    # Systems known to be in this category are Windows (all variants),
13194    # VMS, and Darwin.
13195    case "$host_os" in
13196      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13197         ac_cv_func_mmap_dev_zero=no ;;
13198      *)
13199         ac_cv_func_mmap_dev_zero=yes;;
13200    esac
13201 fi
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13203 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13204
13205    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13206    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13207 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13208 if ${ac_cv_decl_map_anon+:} false; then :
13209   $as_echo_n "(cached) " >&6
13210 else
13211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213 #include <sys/types.h>
13214 #include <sys/mman.h>
13215 #include <unistd.h>
13216
13217 #ifndef MAP_ANONYMOUS
13218 #define MAP_ANONYMOUS MAP_ANON
13219 #endif
13220
13221 int
13222 main ()
13223 {
13224 int n = MAP_ANONYMOUS;
13225   ;
13226   return 0;
13227 }
13228 _ACEOF
13229 if ac_fn_c_try_compile "$LINENO"; then :
13230   ac_cv_decl_map_anon=yes
13231 else
13232   ac_cv_decl_map_anon=no
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13235 fi
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13237 $as_echo "$ac_cv_decl_map_anon" >&6; }
13238
13239    if test $ac_cv_decl_map_anon = no; then
13240      ac_cv_func_mmap_anon=no
13241    else
13242      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13243 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13244 if ${ac_cv_func_mmap_anon+:} false; then :
13245   $as_echo_n "(cached) " >&6
13246 else
13247   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13248    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13249    # doesn't give anonymous zeroed pages with the same properties listed
13250    # above for use of /dev/zero.
13251    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13252    case "$host_os" in
13253      vms* | cygwin* | pe | mingw* | sco* | udk* )
13254         ac_cv_func_mmap_anon=no ;;
13255      *)
13256         ac_cv_func_mmap_anon=yes;;
13257    esac
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13260 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13261    fi
13262 fi
13263
13264 if test $ac_cv_func_mmap_file = yes; then
13265
13266 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13267
13268 fi
13269 if test $ac_cv_func_mmap_dev_zero = yes; then
13270
13271 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13272
13273 fi
13274 if test $ac_cv_func_mmap_anon = yes; then
13275
13276 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13277
13278 fi
13279
13280
13281  if test -d $srcdir/testsuite; then
13282   TESTSUBDIR_TRUE=
13283   TESTSUBDIR_FALSE='#'
13284 else
13285   TESTSUBDIR_TRUE='#'
13286   TESTSUBDIR_FALSE=
13287 fi
13288
13289
13290 TARGETDIR="unknown"
13291 case "$host" in
13292   aarch64*-*-*)
13293         TARGET=AARCH64; TARGETDIR=aarch64
13294         ;;
13295
13296   alpha*-*-*)
13297         TARGET=ALPHA; TARGETDIR=alpha;
13298         # Support 128-bit long double, changeable via command-line switch.
13299         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13300         ;;
13301
13302   arm*-*-*)
13303         TARGET=ARM; TARGETDIR=arm
13304         ;;
13305
13306   amd64-*-freebsd* | amd64-*-openbsd*)
13307         TARGET=X86_64; TARGETDIR=x86
13308         ;;
13309
13310   amd64-*-freebsd*)
13311         TARGET=X86_64; TARGETDIR=x86
13312         ;;
13313
13314   amd64-*-freebsd*)
13315         TARGET=X86_64; TARGETDIR=x86
13316         ;;
13317
13318   avr32*-*-*)
13319         TARGET=AVR32; TARGETDIR=avr32
13320         ;;
13321
13322   bfin*)
13323         TARGET=BFIN; TARGETDIR=bfin
13324         ;;
13325
13326   cris-*-*)
13327         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13328         ;;
13329
13330   frv-*-*)
13331         TARGET=FRV; TARGETDIR=frv
13332         ;;
13333
13334   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13335         TARGET=PA_LINUX; TARGETDIR=pa
13336         ;;
13337   hppa*64-*-hpux*)
13338         TARGET=PA64_HPUX; TARGETDIR=pa
13339         ;;
13340   hppa*-*-hpux*)
13341         TARGET=PA_HPUX; TARGETDIR=pa
13342         ;;
13343
13344   i?86-*-freebsd* | i?86-*-openbsd*)
13345         TARGET=X86_FREEBSD; TARGETDIR=x86
13346         ;;
13347   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13348         TARGET=X86_WIN32; TARGETDIR=x86
13349         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13350         # We must also check with_cross_host to decide if this is a native
13351         # or cross-build and select where to install dlls appropriately.
13352         if test -n "$with_cross_host" &&
13353            test x"$with_cross_host" != x"no"; then
13354           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13355         else
13356           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13357         fi
13358         ;;
13359   i?86-*-darwin*)
13360         TARGET=X86_DARWIN; TARGETDIR=x86
13361         ;;
13362   i?86-*-solaris2.1[0-9]*)
13363         TARGETDIR=x86
13364         if test $ac_cv_sizeof_size_t = 4; then
13365           TARGET=X86;
13366         else
13367           TARGET=X86_64;
13368         fi
13369         ;;
13370
13371   x86_64-*-darwin*)
13372         TARGET=X86_DARWIN; TARGETDIR=x86
13373         ;;
13374
13375   x86_64-*-cygwin* | x86_64-*-mingw*)
13376         TARGET=X86_WIN64; TARGETDIR=x86
13377         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13378         # We must also check with_cross_host to decide if this is a native
13379         # or cross-build and select where to install dlls appropriately.
13380         if test -n "$with_cross_host" &&
13381            test x"$with_cross_host" != x"no"; then
13382           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13383         else
13384           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13385         fi
13386         ;;
13387
13388   i?86-*-* | x86_64-*-*)
13389         TARGETDIR=x86
13390         if test $ac_cv_sizeof_size_t = 4; then
13391           case "$host" in
13392             *-gnux32)
13393               TARGET=X86_64
13394               ;;
13395             *)
13396               TARGET=X86
13397               ;;
13398           esac
13399         else
13400           TARGET=X86_64;
13401         fi
13402         ;;
13403
13404   ia64*-*-*)
13405         TARGET=IA64; TARGETDIR=ia64
13406         ;;
13407
13408   m32r*-*-*)
13409         TARGET=M32R; TARGETDIR=m32r
13410         ;;
13411
13412   m68k-*-*)
13413         TARGET=M68K; TARGETDIR=m68k
13414         ;;
13415
13416   microblaze*-*-*)
13417         TARGET=MICROBLAZE; TARGETDIR=microblaze
13418         ;;
13419
13420   moxie-*-*)
13421         TARGET=MOXIE; TARGETDIR=moxie
13422         ;;
13423
13424   metag-*-*)
13425         TARGET=METAG; TARGETDIR=metag
13426         ;;
13427
13428   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13429         TARGET=MIPS; TARGETDIR=mips
13430         ;;
13431   mips*-*-linux* | mips*-*-openbsd*)
13432         # Support 128-bit long double for NewABI.
13433         HAVE_LONG_DOUBLE='defined(__mips64)'
13434         TARGET=MIPS; TARGETDIR=mips
13435         ;;
13436
13437   powerpc*-*-linux* | powerpc-*-sysv*)
13438         TARGET=POWERPC; TARGETDIR=powerpc
13439         ;;
13440   powerpc-*-amigaos*)
13441         TARGET=POWERPC; TARGETDIR=powerpc
13442         ;;
13443   powerpc-*-beos*)
13444         TARGET=POWERPC; TARGETDIR=powerpc
13445         ;;
13446   powerpc-*-darwin* | powerpc64-*-darwin*)
13447         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13448         ;;
13449   powerpc-*-aix* | rs6000-*-aix*)
13450         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13451         ;;
13452   powerpc-*-freebsd* | powerpc-*-openbsd*)
13453         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13454         ;;
13455   powerpc64-*-freebsd*)
13456         TARGET=POWERPC; TARGETDIR=powerpc
13457         ;;
13458   powerpc*-*-rtems*)
13459         TARGET=POWERPC; TARGETDIR=powerpc
13460         ;;
13461
13462   s390-*-* | s390x-*-*)
13463         TARGET=S390; TARGETDIR=s390
13464         ;;
13465
13466   sh-*-* | sh[34]*-*-*)
13467         TARGET=SH; TARGETDIR=sh
13468         ;;
13469   sh64-*-* | sh5*-*-*)
13470         TARGET=SH64; TARGETDIR=sh64
13471         ;;
13472
13473   sparc*-*-*)
13474         TARGET=SPARC; TARGETDIR=sparc
13475         ;;
13476
13477   tile*-*)
13478         TARGET=TILE; TARGETDIR=tile
13479         ;;
13480
13481   xtensa*-*)
13482         TARGET=XTENSA; TARGETDIR=xtensa
13483         ;;
13484
13485 esac
13486
13487
13488
13489
13490 if test $TARGETDIR = unknown; then
13491   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13492 fi
13493
13494  if test x$TARGET = xMIPS; then
13495   MIPS_TRUE=
13496   MIPS_FALSE='#'
13497 else
13498   MIPS_TRUE='#'
13499   MIPS_FALSE=
13500 fi
13501
13502  if test x$TARGET = xBFIN; then
13503   BFIN_TRUE=
13504   BFIN_FALSE='#'
13505 else
13506   BFIN_TRUE='#'
13507   BFIN_FALSE=
13508 fi
13509
13510  if test x$TARGET = xSPARC; then
13511   SPARC_TRUE=
13512   SPARC_FALSE='#'
13513 else
13514   SPARC_TRUE='#'
13515   SPARC_FALSE=
13516 fi
13517
13518  if test x$TARGET = xX86; then
13519   X86_TRUE=
13520   X86_FALSE='#'
13521 else
13522   X86_TRUE='#'
13523   X86_FALSE=
13524 fi
13525
13526  if test x$TARGET = xX86_FREEBSD; then
13527   X86_FREEBSD_TRUE=
13528   X86_FREEBSD_FALSE='#'
13529 else
13530   X86_FREEBSD_TRUE='#'
13531   X86_FREEBSD_FALSE=
13532 fi
13533
13534  if test x$TARGET = xX86_WIN32; then
13535   X86_WIN32_TRUE=
13536   X86_WIN32_FALSE='#'
13537 else
13538   X86_WIN32_TRUE='#'
13539   X86_WIN32_FALSE=
13540 fi
13541
13542  if test x$TARGET = xX86_WIN64; then
13543   X86_WIN64_TRUE=
13544   X86_WIN64_FALSE='#'
13545 else
13546   X86_WIN64_TRUE='#'
13547   X86_WIN64_FALSE=
13548 fi
13549
13550  if test x$TARGET = xX86_DARWIN; then
13551   X86_DARWIN_TRUE=
13552   X86_DARWIN_FALSE='#'
13553 else
13554   X86_DARWIN_TRUE='#'
13555   X86_DARWIN_FALSE=
13556 fi
13557
13558  if test x$TARGET = xALPHA; then
13559   ALPHA_TRUE=
13560   ALPHA_FALSE='#'
13561 else
13562   ALPHA_TRUE='#'
13563   ALPHA_FALSE=
13564 fi
13565
13566  if test x$TARGET = xIA64; then
13567   IA64_TRUE=
13568   IA64_FALSE='#'
13569 else
13570   IA64_TRUE='#'
13571   IA64_FALSE=
13572 fi
13573
13574  if test x$TARGET = xM32R; then
13575   M32R_TRUE=
13576   M32R_FALSE='#'
13577 else
13578   M32R_TRUE='#'
13579   M32R_FALSE=
13580 fi
13581
13582  if test x$TARGET = xM68K; then
13583   M68K_TRUE=
13584   M68K_FALSE='#'
13585 else
13586   M68K_TRUE='#'
13587   M68K_FALSE=
13588 fi
13589
13590  if test x$TARGET = xMICROBLAZE; then
13591   MICROBLAZE_TRUE=
13592   MICROBLAZE_FALSE='#'
13593 else
13594   MICROBLAZE_TRUE='#'
13595   MICROBLAZE_FALSE=
13596 fi
13597
13598  if test x$TARGET = xMETAG; then
13599   METAG_TRUE=
13600   METAG_FALSE='#'
13601 else
13602   METAG_TRUE='#'
13603   METAG_FALSE=
13604 fi
13605
13606  if test x$TARGET = xMOXIE; then
13607   MOXIE_TRUE=
13608   MOXIE_FALSE='#'
13609 else
13610   MOXIE_TRUE='#'
13611   MOXIE_FALSE=
13612 fi
13613
13614  if test x$TARGET = xPOWERPC; then
13615   POWERPC_TRUE=
13616   POWERPC_FALSE='#'
13617 else
13618   POWERPC_TRUE='#'
13619   POWERPC_FALSE=
13620 fi
13621
13622  if test x$TARGET = xPOWERPC_AIX; then
13623   POWERPC_AIX_TRUE=
13624   POWERPC_AIX_FALSE='#'
13625 else
13626   POWERPC_AIX_TRUE='#'
13627   POWERPC_AIX_FALSE=
13628 fi
13629
13630  if test x$TARGET = xPOWERPC_DARWIN; then
13631   POWERPC_DARWIN_TRUE=
13632   POWERPC_DARWIN_FALSE='#'
13633 else
13634   POWERPC_DARWIN_TRUE='#'
13635   POWERPC_DARWIN_FALSE=
13636 fi
13637
13638  if test x$TARGET = xPOWERPC_FREEBSD; then
13639   POWERPC_FREEBSD_TRUE=
13640   POWERPC_FREEBSD_FALSE='#'
13641 else
13642   POWERPC_FREEBSD_TRUE='#'
13643   POWERPC_FREEBSD_FALSE=
13644 fi
13645
13646  if test x$TARGET = xAARCH64; then
13647   AARCH64_TRUE=
13648   AARCH64_FALSE='#'
13649 else
13650   AARCH64_TRUE='#'
13651   AARCH64_FALSE=
13652 fi
13653
13654  if test x$TARGET = xARM; then
13655   ARM_TRUE=
13656   ARM_FALSE='#'
13657 else
13658   ARM_TRUE='#'
13659   ARM_FALSE=
13660 fi
13661
13662  if test x$TARGET = xAVR32; then
13663   AVR32_TRUE=
13664   AVR32_FALSE='#'
13665 else
13666   AVR32_TRUE='#'
13667   AVR32_FALSE=
13668 fi
13669
13670  if test x$TARGET = xLIBFFI_CRIS; then
13671   LIBFFI_CRIS_TRUE=
13672   LIBFFI_CRIS_FALSE='#'
13673 else
13674   LIBFFI_CRIS_TRUE='#'
13675   LIBFFI_CRIS_FALSE=
13676 fi
13677
13678  if test x$TARGET = xFRV; then
13679   FRV_TRUE=
13680   FRV_FALSE='#'
13681 else
13682   FRV_TRUE='#'
13683   FRV_FALSE=
13684 fi
13685
13686  if test x$TARGET = xS390; then
13687   S390_TRUE=
13688   S390_FALSE='#'
13689 else
13690   S390_TRUE='#'
13691   S390_FALSE=
13692 fi
13693
13694  if test x$TARGET = xX86_64; then
13695   X86_64_TRUE=
13696   X86_64_FALSE='#'
13697 else
13698   X86_64_TRUE='#'
13699   X86_64_FALSE=
13700 fi
13701
13702  if test x$TARGET = xSH; then
13703   SH_TRUE=
13704   SH_FALSE='#'
13705 else
13706   SH_TRUE='#'
13707   SH_FALSE=
13708 fi
13709
13710  if test x$TARGET = xSH64; then
13711   SH64_TRUE=
13712   SH64_FALSE='#'
13713 else
13714   SH64_TRUE='#'
13715   SH64_FALSE=
13716 fi
13717
13718  if test x$TARGET = xPA_LINUX; then
13719   PA_LINUX_TRUE=
13720   PA_LINUX_FALSE='#'
13721 else
13722   PA_LINUX_TRUE='#'
13723   PA_LINUX_FALSE=
13724 fi
13725
13726  if test x$TARGET = xPA_HPUX; then
13727   PA_HPUX_TRUE=
13728   PA_HPUX_FALSE='#'
13729 else
13730   PA_HPUX_TRUE='#'
13731   PA_HPUX_FALSE=
13732 fi
13733
13734  if test x$TARGET = xPA64_HPUX; then
13735   PA64_HPUX_TRUE=
13736   PA64_HPUX_FALSE='#'
13737 else
13738   PA64_HPUX_TRUE='#'
13739   PA64_HPUX_FALSE=
13740 fi
13741
13742  if test x$TARGET = xTILE; then
13743   TILE_TRUE=
13744   TILE_FALSE='#'
13745 else
13746   TILE_TRUE='#'
13747   TILE_FALSE=
13748 fi
13749
13750  if test x$TARGET = xXTENSA; then
13751   XTENSA_TRUE=
13752   XTENSA_FALSE='#'
13753 else
13754   XTENSA_TRUE='#'
13755   XTENSA_FALSE=
13756 fi
13757
13758
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13760 $as_echo_n "checking for ANSI C header files... " >&6; }
13761 if ${ac_cv_header_stdc+:} false; then :
13762   $as_echo_n "(cached) " >&6
13763 else
13764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766 #include <stdlib.h>
13767 #include <stdarg.h>
13768 #include <string.h>
13769 #include <float.h>
13770
13771 int
13772 main ()
13773 {
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_c_try_compile "$LINENO"; then :
13780   ac_cv_header_stdc=yes
13781 else
13782   ac_cv_header_stdc=no
13783 fi
13784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13785
13786 if test $ac_cv_header_stdc = yes; then
13787   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13789 /* end confdefs.h.  */
13790 #include <string.h>
13791
13792 _ACEOF
13793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13794   $EGREP "memchr" >/dev/null 2>&1; then :
13795
13796 else
13797   ac_cv_header_stdc=no
13798 fi
13799 rm -f conftest*
13800
13801 fi
13802
13803 if test $ac_cv_header_stdc = yes; then
13804   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h.  */
13807 #include <stdlib.h>
13808
13809 _ACEOF
13810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13811   $EGREP "free" >/dev/null 2>&1; then :
13812
13813 else
13814   ac_cv_header_stdc=no
13815 fi
13816 rm -f conftest*
13817
13818 fi
13819
13820 if test $ac_cv_header_stdc = yes; then
13821   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13822   if test "$cross_compiling" = yes; then :
13823   :
13824 else
13825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h.  */
13827 #include <ctype.h>
13828 #include <stdlib.h>
13829 #if ((' ' & 0x0FF) == 0x020)
13830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13832 #else
13833 # define ISLOWER(c) \
13834                    (('a' <= (c) && (c) <= 'i') \
13835                      || ('j' <= (c) && (c) <= 'r') \
13836                      || ('s' <= (c) && (c) <= 'z'))
13837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13838 #endif
13839
13840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13841 int
13842 main ()
13843 {
13844   int i;
13845   for (i = 0; i < 256; i++)
13846     if (XOR (islower (i), ISLOWER (i))
13847         || toupper (i) != TOUPPER (i))
13848       return 2;
13849   return 0;
13850 }
13851 _ACEOF
13852 if ac_fn_c_try_run "$LINENO"; then :
13853
13854 else
13855   ac_cv_header_stdc=no
13856 fi
13857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13858   conftest.$ac_objext conftest.beam conftest.$ac_ext
13859 fi
13860
13861 fi
13862 fi
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13864 $as_echo "$ac_cv_header_stdc" >&6; }
13865 if test $ac_cv_header_stdc = yes; then
13866
13867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13868
13869 fi
13870
13871 for ac_func in memcpy
13872 do :
13873   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13874 if test "x$ac_cv_func_memcpy" = xyes; then :
13875   cat >>confdefs.h <<_ACEOF
13876 #define HAVE_MEMCPY 1
13877 _ACEOF
13878
13879 fi
13880 done
13881
13882 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13883 if test "x$ac_cv_type_size_t" = xyes; then :
13884
13885 else
13886
13887 cat >>confdefs.h <<_ACEOF
13888 #define size_t unsigned int
13889 _ACEOF
13890
13891 fi
13892
13893 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13894 # for constant arguments.  Useless!
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13896 $as_echo_n "checking for working alloca.h... " >&6; }
13897 if ${ac_cv_working_alloca_h+:} false; then :
13898   $as_echo_n "(cached) " >&6
13899 else
13900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13901 /* end confdefs.h.  */
13902 #include <alloca.h>
13903 int
13904 main ()
13905 {
13906 char *p = (char *) alloca (2 * sizeof (int));
13907                           if (p) return 0;
13908   ;
13909   return 0;
13910 }
13911 _ACEOF
13912 if ac_fn_c_try_link "$LINENO"; then :
13913   ac_cv_working_alloca_h=yes
13914 else
13915   ac_cv_working_alloca_h=no
13916 fi
13917 rm -f core conftest.err conftest.$ac_objext \
13918     conftest$ac_exeext conftest.$ac_ext
13919 fi
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13921 $as_echo "$ac_cv_working_alloca_h" >&6; }
13922 if test $ac_cv_working_alloca_h = yes; then
13923
13924 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13925
13926 fi
13927
13928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13929 $as_echo_n "checking for alloca... " >&6; }
13930 if ${ac_cv_func_alloca_works+:} false; then :
13931   $as_echo_n "(cached) " >&6
13932 else
13933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13934 /* end confdefs.h.  */
13935 #ifdef __GNUC__
13936 # define alloca __builtin_alloca
13937 #else
13938 # ifdef _MSC_VER
13939 #  include <malloc.h>
13940 #  define alloca _alloca
13941 # else
13942 #  ifdef HAVE_ALLOCA_H
13943 #   include <alloca.h>
13944 #  else
13945 #   ifdef _AIX
13946  #pragma alloca
13947 #   else
13948 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13949 void *alloca (size_t);
13950 #    endif
13951 #   endif
13952 #  endif
13953 # endif
13954 #endif
13955
13956 int
13957 main ()
13958 {
13959 char *p = (char *) alloca (1);
13960                                     if (p) return 0;
13961   ;
13962   return 0;
13963 }
13964 _ACEOF
13965 if ac_fn_c_try_link "$LINENO"; then :
13966   ac_cv_func_alloca_works=yes
13967 else
13968   ac_cv_func_alloca_works=no
13969 fi
13970 rm -f core conftest.err conftest.$ac_objext \
13971     conftest$ac_exeext conftest.$ac_ext
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13974 $as_echo "$ac_cv_func_alloca_works" >&6; }
13975
13976 if test $ac_cv_func_alloca_works = yes; then
13977
13978 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13979
13980 else
13981   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13982 # that cause trouble.  Some versions do not even contain alloca or
13983 # contain a buggy version.  If you still want to use their alloca,
13984 # use ar to extract alloca.o from them instead of compiling alloca.c.
13985
13986 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13987
13988 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13989
13990
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13992 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13993 if ${ac_cv_os_cray+:} false; then :
13994   $as_echo_n "(cached) " >&6
13995 else
13996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13997 /* end confdefs.h.  */
13998 #if defined CRAY && ! defined CRAY2
13999 webecray
14000 #else
14001 wenotbecray
14002 #endif
14003
14004 _ACEOF
14005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14006   $EGREP "webecray" >/dev/null 2>&1; then :
14007   ac_cv_os_cray=yes
14008 else
14009   ac_cv_os_cray=no
14010 fi
14011 rm -f conftest*
14012
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14015 $as_echo "$ac_cv_os_cray" >&6; }
14016 if test $ac_cv_os_cray = yes; then
14017   for ac_func in _getb67 GETB67 getb67; do
14018     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14019 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14020 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14021
14022 cat >>confdefs.h <<_ACEOF
14023 #define CRAY_STACKSEG_END $ac_func
14024 _ACEOF
14025
14026     break
14027 fi
14028
14029   done
14030 fi
14031
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14033 $as_echo_n "checking stack direction for C alloca... " >&6; }
14034 if ${ac_cv_c_stack_direction+:} false; then :
14035   $as_echo_n "(cached) " >&6
14036 else
14037   if test "$cross_compiling" = yes; then :
14038   ac_cv_c_stack_direction=0
14039 else
14040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h.  */
14042 $ac_includes_default
14043 int
14044 find_stack_direction (int *addr, int depth)
14045 {
14046   int dir, dummy = 0;
14047   if (! addr)
14048     addr = &dummy;
14049   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14050   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14051   return dir + dummy;
14052 }
14053
14054 int
14055 main (int argc, char **argv)
14056 {
14057   return find_stack_direction (0, argc + !argv + 20) < 0;
14058 }
14059 _ACEOF
14060 if ac_fn_c_try_run "$LINENO"; then :
14061   ac_cv_c_stack_direction=1
14062 else
14063   ac_cv_c_stack_direction=-1
14064 fi
14065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14066   conftest.$ac_objext conftest.beam conftest.$ac_ext
14067 fi
14068
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14071 $as_echo "$ac_cv_c_stack_direction" >&6; }
14072 cat >>confdefs.h <<_ACEOF
14073 #define STACK_DIRECTION $ac_cv_c_stack_direction
14074 _ACEOF
14075
14076
14077 fi
14078
14079
14080 # The cast to long int works around a bug in the HP C Compiler
14081 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14082 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14083 # This bug is HP SR number 8606223364.
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14085 $as_echo_n "checking size of double... " >&6; }
14086 if ${ac_cv_sizeof_double+:} false; then :
14087   $as_echo_n "(cached) " >&6
14088 else
14089   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14090
14091 else
14092   if test "$ac_cv_type_double" = yes; then
14093      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14095 as_fn_error 77 "cannot compute sizeof (double)
14096 See \`config.log' for more details" "$LINENO" 5; }
14097    else
14098      ac_cv_sizeof_double=0
14099    fi
14100 fi
14101
14102 fi
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14104 $as_echo "$ac_cv_sizeof_double" >&6; }
14105
14106
14107
14108 cat >>confdefs.h <<_ACEOF
14109 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14110 _ACEOF
14111
14112
14113 # The cast to long int works around a bug in the HP C Compiler
14114 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14115 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14116 # This bug is HP SR number 8606223364.
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14118 $as_echo_n "checking size of long double... " >&6; }
14119 if ${ac_cv_sizeof_long_double+:} false; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14123
14124 else
14125   if test "$ac_cv_type_long_double" = yes; then
14126      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14128 as_fn_error 77 "cannot compute sizeof (long double)
14129 See \`config.log' for more details" "$LINENO" 5; }
14130    else
14131      ac_cv_sizeof_long_double=0
14132    fi
14133 fi
14134
14135 fi
14136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14137 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14138
14139
14140
14141 cat >>confdefs.h <<_ACEOF
14142 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14143 _ACEOF
14144
14145
14146
14147 # Also AC_SUBST this variable for ffi.h.
14148 if test -z "$HAVE_LONG_DOUBLE"; then
14149   HAVE_LONG_DOUBLE=0
14150   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14151     if test $ac_cv_sizeof_long_double != 0; then
14152       HAVE_LONG_DOUBLE=1
14153
14154 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14155
14156     fi
14157   fi
14158 fi
14159
14160
14161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14162 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14163 if ${ac_cv_c_bigendian+:} false; then :
14164   $as_echo_n "(cached) " >&6
14165 else
14166   ac_cv_c_bigendian=unknown
14167     # See if we're dealing with a universal compiler.
14168     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14169 /* end confdefs.h.  */
14170 #ifndef __APPLE_CC__
14171                not a universal capable compiler
14172              #endif
14173              typedef int dummy;
14174
14175 _ACEOF
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177
14178         # Check for potential -arch flags.  It is not universal unless
14179         # there are at least two -arch flags with different values.
14180         ac_arch=
14181         ac_prev=
14182         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14183          if test -n "$ac_prev"; then
14184            case $ac_word in
14185              i?86 | x86_64 | ppc | ppc64)
14186                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14187                  ac_arch=$ac_word
14188                else
14189                  ac_cv_c_bigendian=universal
14190                  break
14191                fi
14192                ;;
14193            esac
14194            ac_prev=
14195          elif test "x$ac_word" = "x-arch"; then
14196            ac_prev=arch
14197          fi
14198        done
14199 fi
14200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14201     if test $ac_cv_c_bigendian = unknown; then
14202       # See if sys/param.h defines the BYTE_ORDER macro.
14203       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205 #include <sys/types.h>
14206              #include <sys/param.h>
14207
14208 int
14209 main ()
14210 {
14211 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14212                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14213                      && LITTLE_ENDIAN)
14214               bogus endian macros
14215              #endif
14216
14217   ;
14218   return 0;
14219 }
14220 _ACEOF
14221 if ac_fn_c_try_compile "$LINENO"; then :
14222   # It does; now see whether it defined to BIG_ENDIAN or not.
14223          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h.  */
14225 #include <sys/types.h>
14226                 #include <sys/param.h>
14227
14228 int
14229 main ()
14230 {
14231 #if BYTE_ORDER != BIG_ENDIAN
14232                  not big endian
14233                 #endif
14234
14235   ;
14236   return 0;
14237 }
14238 _ACEOF
14239 if ac_fn_c_try_compile "$LINENO"; then :
14240   ac_cv_c_bigendian=yes
14241 else
14242   ac_cv_c_bigendian=no
14243 fi
14244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247     fi
14248     if test $ac_cv_c_bigendian = unknown; then
14249       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14251 /* end confdefs.h.  */
14252 #include <limits.h>
14253
14254 int
14255 main ()
14256 {
14257 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14258               bogus endian macros
14259              #endif
14260
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 if ac_fn_c_try_compile "$LINENO"; then :
14266   # It does; now see whether it defined to _BIG_ENDIAN or not.
14267          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14268 /* end confdefs.h.  */
14269 #include <limits.h>
14270
14271 int
14272 main ()
14273 {
14274 #ifndef _BIG_ENDIAN
14275                  not big endian
14276                 #endif
14277
14278   ;
14279   return 0;
14280 }
14281 _ACEOF
14282 if ac_fn_c_try_compile "$LINENO"; then :
14283   ac_cv_c_bigendian=yes
14284 else
14285   ac_cv_c_bigendian=no
14286 fi
14287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14288 fi
14289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14290     fi
14291     if test $ac_cv_c_bigendian = unknown; then
14292       # Compile a test program.
14293       if test "$cross_compiling" = yes; then :
14294   # Try to guess by grepping values from an object file.
14295          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h.  */
14297 short int ascii_mm[] =
14298                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14299                 short int ascii_ii[] =
14300                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14301                 int use_ascii (int i) {
14302                   return ascii_mm[i] + ascii_ii[i];
14303                 }
14304                 short int ebcdic_ii[] =
14305                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14306                 short int ebcdic_mm[] =
14307                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14308                 int use_ebcdic (int i) {
14309                   return ebcdic_mm[i] + ebcdic_ii[i];
14310                 }
14311                 extern int foo;
14312
14313 int
14314 main ()
14315 {
14316 return use_ascii (foo) == use_ebcdic (foo);
14317   ;
14318   return 0;
14319 }
14320 _ACEOF
14321 if ac_fn_c_try_compile "$LINENO"; then :
14322   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14323               ac_cv_c_bigendian=yes
14324             fi
14325             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14326               if test "$ac_cv_c_bigendian" = unknown; then
14327                 ac_cv_c_bigendian=no
14328               else
14329                 # finding both strings is unlikely to happen, but who knows?
14330                 ac_cv_c_bigendian=unknown
14331               fi
14332             fi
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14335 else
14336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14337 /* end confdefs.h.  */
14338 $ac_includes_default
14339 int
14340 main ()
14341 {
14342
14343              /* Are we little or big endian?  From Harbison&Steele.  */
14344              union
14345              {
14346                long int l;
14347                char c[sizeof (long int)];
14348              } u;
14349              u.l = 1;
14350              return u.c[sizeof (long int) - 1] == 1;
14351
14352   ;
14353   return 0;
14354 }
14355 _ACEOF
14356 if ac_fn_c_try_run "$LINENO"; then :
14357   ac_cv_c_bigendian=no
14358 else
14359   ac_cv_c_bigendian=yes
14360 fi
14361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14362   conftest.$ac_objext conftest.beam conftest.$ac_ext
14363 fi
14364
14365     fi
14366 fi
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14368 $as_echo "$ac_cv_c_bigendian" >&6; }
14369  case $ac_cv_c_bigendian in #(
14370    yes)
14371      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14372 ;; #(
14373    no)
14374       ;; #(
14375    universal)
14376
14377 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14378
14379      ;; #(
14380    *)
14381      as_fn_error $? "unknown endianness
14382  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14383  esac
14384
14385
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14387 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14388 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14389   $as_echo_n "(cached) " >&6
14390 else
14391
14392     gcc_cv_as_cfi_pseudo_op=unknown
14393     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h.  */
14395 asm (".cfi_startproc\n\t.cfi_endproc");
14396 int
14397 main ()
14398 {
14399
14400   ;
14401   return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_c_try_compile "$LINENO"; then :
14405   gcc_cv_as_cfi_pseudo_op=yes
14406 else
14407   gcc_cv_as_cfi_pseudo_op=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14410
14411 fi
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14413 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14414  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14415
14416 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14417
14418  fi
14419
14420
14421 if test x$TARGET = xSPARC; then
14422     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14423 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14424 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14425   $as_echo_n "(cached) " >&6
14426 else
14427
14428         save_CFLAGS="$CFLAGS"
14429         save_LDFLAGS="$LDFLAGS"
14430         CFLAGS="$CFLAGS -fpic"
14431         LDFLAGS="$LDFLAGS -shared"
14432         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h.  */
14434 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14435 int
14436 main ()
14437 {
14438
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 if ac_fn_c_try_link "$LINENO"; then :
14444   libffi_cv_as_sparc_ua_pcrel=yes
14445 else
14446   libffi_cv_as_sparc_ua_pcrel=no
14447 fi
14448 rm -f core conftest.err conftest.$ac_objext \
14449     conftest$ac_exeext conftest.$ac_ext
14450         CFLAGS="$save_CFLAGS"
14451         LDFLAGS="$save_LDFLAGS"
14452 fi
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14454 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14455     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14456
14457 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14458
14459     fi
14460
14461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14462 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14463 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14464   $as_echo_n "(cached) " >&6
14465 else
14466
14467        libffi_cv_as_register_pseudo_op=unknown
14468        # Check if we have .register
14469        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14470 /* end confdefs.h.  */
14471
14472 int
14473 main ()
14474 {
14475 asm (".register %g2, #scratch");
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 if ac_fn_c_try_compile "$LINENO"; then :
14481   libffi_cv_as_register_pseudo_op=yes
14482 else
14483   libffi_cv_as_register_pseudo_op=no
14484 fi
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14486
14487 fi
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14489 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14490     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14491
14492 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14493
14494     fi
14495 fi
14496
14497 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14499 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14500 if ${libffi_cv_as_x86_pcrel+:} false; then :
14501   $as_echo_n "(cached) " >&6
14502 else
14503
14504         libffi_cv_as_x86_pcrel=no
14505         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14506         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14507             libffi_cv_as_x86_pcrel=yes
14508         fi
14509
14510 fi
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14512 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14513     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14514
14515 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14516
14517     fi
14518
14519     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14520 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14521 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14522   $as_echo_n "(cached) " >&6
14523 else
14524
14525        libffi_cv_as_ascii_pseudo_op=unknown
14526        # Check if we have .ascii
14527        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14528 /* end confdefs.h.  */
14529
14530 int
14531 main ()
14532 {
14533 asm (".ascii \\"string\\"");
14534   ;
14535   return 0;
14536 }
14537 _ACEOF
14538 if ac_fn_c_try_compile "$LINENO"; then :
14539   libffi_cv_as_ascii_pseudo_op=yes
14540 else
14541   libffi_cv_as_ascii_pseudo_op=no
14542 fi
14543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544
14545 fi
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14547 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14548     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14549
14550 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14551
14552     fi
14553
14554     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14555 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14556 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14557   $as_echo_n "(cached) " >&6
14558 else
14559
14560        libffi_cv_as_string_pseudo_op=unknown
14561        # Check if we have .string
14562        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14563 /* end confdefs.h.  */
14564
14565 int
14566 main ()
14567 {
14568 asm (".string \\"string\\"");
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"; then :
14574   libffi_cv_as_string_pseudo_op=yes
14575 else
14576   libffi_cv_as_string_pseudo_op=no
14577 fi
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579
14580 fi
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14582 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14583     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14584
14585 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14586
14587     fi
14588 fi
14589
14590 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14591 # Check whether --enable-pax_emutramp was given.
14592 if test "${enable_pax_emutramp+set}" = set; then :
14593   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14594
14595 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14596
14597   fi
14598 fi
14599
14600
14601 if test x$TARGET = xX86_WIN64; then
14602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14603 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14604 if ${lt_cv_sys_symbol_underscore+:} false; then :
14605   $as_echo_n "(cached) " >&6
14606 else
14607   lt_cv_sys_symbol_underscore=no
14608   cat > conftest.$ac_ext <<_LT_EOF
14609 void nm_test_func(){}
14610 int main(){nm_test_func;return 0;}
14611 _LT_EOF
14612   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14613   (eval $ac_compile) 2>&5
14614   ac_status=$?
14615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616   test $ac_status = 0; }; then
14617     # Now try to grab the symbols.
14618     ac_nlist=conftest.nm
14619     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14620   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14621   ac_status=$?
14622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623   test $ac_status = 0; } && test -s "$ac_nlist"; then
14624       # See whether the symbols have a leading underscore.
14625       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14626         lt_cv_sys_symbol_underscore=yes
14627       else
14628         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14629           :
14630         else
14631           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14632         fi
14633       fi
14634     else
14635       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14636     fi
14637   else
14638     echo "configure: failed program was:" >&5
14639     cat conftest.c >&5
14640   fi
14641   rm -rf conftest*
14642
14643 fi
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14645 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14646   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14647
14648
14649     if test "x$sys_symbol_underscore" = xyes; then
14650
14651 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14652
14653     fi
14654 fi
14655
14656 FFI_EXEC_TRAMPOLINE_TABLE=0
14657 case "$target" in
14658      *arm*-apple-darwin*)
14659        FFI_EXEC_TRAMPOLINE_TABLE=1
14660
14661 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14662
14663      ;;
14664      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14665
14666 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14667
14668      ;;
14669 esac
14670  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14671   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14672   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14673 else
14674   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14675   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14676 fi
14677
14678
14679
14680 if test x$TARGET = xX86_64; then
14681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14682 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14683 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14684   $as_echo_n "(cached) " >&6
14685 else
14686
14687         libffi_cv_as_x86_64_unwind_section_type=yes
14688         echo '.section .eh_frame,"a",@unwind' > conftest.s
14689         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14690             libffi_cv_as_x86_64_unwind_section_type=no
14691         fi
14692
14693 fi
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14695 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14696     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14697
14698 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14699
14700     fi
14701 fi
14702
14703 if test "x$GCC" = "xyes"; then
14704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14705 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14706 if ${libffi_cv_ro_eh_frame+:} false; then :
14707   $as_echo_n "(cached) " >&6
14708 else
14709
14710         libffi_cv_ro_eh_frame=no
14711         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14712         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14713             objdump -h conftest.o > conftest.dump 2>&1
14714             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14715             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14716             sed -n $libffi_test_line conftest.dump > conftest.line
14717             if grep READONLY conftest.line > /dev/null; then
14718                 libffi_cv_ro_eh_frame=yes
14719             fi
14720         fi
14721         rm -f conftest.*
14722
14723 fi
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14725 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14726   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14727
14728 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14729
14730
14731 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14732
14733   else
14734
14735 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14736
14737   fi
14738
14739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14740 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14741 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14742   $as_echo_n "(cached) " >&6
14743 else
14744
14745         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14746         libffi_cv_hidden_visibility_attribute=no
14747         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14748   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14749   (eval $ac_try) 2>&5
14750   ac_status=$?
14751   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14752   test $ac_status = 0; }; }; then
14753             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14754                 libffi_cv_hidden_visibility_attribute=yes
14755             fi
14756         fi
14757         rm -f conftest.*
14758
14759 fi
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14761 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14762   if test $libffi_cv_hidden_visibility_attribute = yes; then
14763
14764 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14765
14766   fi
14767 fi
14768
14769
14770
14771
14772
14773
14774
14775
14776 # Check whether --enable-debug was given.
14777 if test "${enable_debug+set}" = set; then :
14778   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14779
14780 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14781
14782   fi
14783 fi
14784
14785  if test "$enable_debug" = "yes"; then
14786   FFI_DEBUG_TRUE=
14787   FFI_DEBUG_FALSE='#'
14788 else
14789   FFI_DEBUG_TRUE='#'
14790   FFI_DEBUG_FALSE=
14791 fi
14792
14793
14794 # Check whether --enable-structs was given.
14795 if test "${enable_structs+set}" = set; then :
14796   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14797
14798 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14799
14800   fi
14801 fi
14802
14803  if test "$enable_debug" = "yes"; then
14804   FFI_DEBUG_TRUE=
14805   FFI_DEBUG_FALSE='#'
14806 else
14807   FFI_DEBUG_TRUE='#'
14808   FFI_DEBUG_FALSE=
14809 fi
14810
14811
14812 # Check whether --enable-raw-api was given.
14813 if test "${enable_raw_api+set}" = set; then :
14814   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14815
14816 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14817
14818   fi
14819 fi
14820
14821
14822 # Check whether --enable-purify-safety was given.
14823 if test "${enable_purify_safety+set}" = set; then :
14824   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14825
14826 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14827
14828   fi
14829 fi
14830
14831
14832 # These variables are only ever used when we cross-build to X86_WIN32.
14833 # And we only support this with GCC, so...
14834 if test "x$GCC" = "xyes"; then
14835   if test -n "$with_cross_host" &&
14836      test x"$with_cross_host" != x"no"; then
14837     toolexecdir='$(exec_prefix)/$(target_alias)'
14838     toolexeclibdir='$(toolexecdir)/lib'
14839   else
14840     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14841     toolexeclibdir='$(libdir)'
14842   fi
14843   multi_os_directory=`$CC -print-multi-os-directory`
14844   case $multi_os_directory in
14845     .) ;; # Avoid trailing /.
14846     ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14847   esac
14848
14849 else
14850   toolexeclibdir='$(libdir)'
14851 fi
14852
14853
14854 ac_config_commands="$ac_config_commands include"
14855
14856 ac_config_commands="$ac_config_commands src"
14857
14858
14859 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14860
14861
14862 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14863
14864
14865 cat >confcache <<\_ACEOF
14866 # This file is a shell script that caches the results of configure
14867 # tests run on this system so they can be shared between configure
14868 # scripts and configure runs, see configure's option --config-cache.
14869 # It is not useful on other systems.  If it contains results you don't
14870 # want to keep, you may remove or edit it.
14871 #
14872 # config.status only pays attention to the cache file if you give it
14873 # the --recheck option to rerun configure.
14874 #
14875 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14876 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14877 # following values.
14878
14879 _ACEOF
14880
14881 # The following way of writing the cache mishandles newlines in values,
14882 # but we know of no workaround that is simple, portable, and efficient.
14883 # So, we kill variables containing newlines.
14884 # Ultrix sh set writes to stderr and can't be redirected directly,
14885 # and sets the high bit in the cache file unless we assign to the vars.
14886 (
14887   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14888     eval ac_val=\$$ac_var
14889     case $ac_val in #(
14890     *${as_nl}*)
14891       case $ac_var in #(
14892       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14893 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14894       esac
14895       case $ac_var in #(
14896       _ | IFS | as_nl) ;; #(
14897       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14898       *) { eval $ac_var=; unset $ac_var;} ;;
14899       esac ;;
14900     esac
14901   done
14902
14903   (set) 2>&1 |
14904     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14905     *${as_nl}ac_space=\ *)
14906       # `set' does not quote correctly, so add quotes: double-quote
14907       # substitution turns \\\\ into \\, and sed turns \\ into \.
14908       sed -n \
14909         "s/'/'\\\\''/g;
14910           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14911       ;; #(
14912     *)
14913       # `set' quotes correctly as required by POSIX, so do not add quotes.
14914       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14915       ;;
14916     esac |
14917     sort
14918 ) |
14919   sed '
14920      /^ac_cv_env_/b end
14921      t clear
14922      :clear
14923      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14924      t end
14925      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14926      :end' >>confcache
14927 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14928   if test -w "$cache_file"; then
14929     if test "x$cache_file" != "x/dev/null"; then
14930       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14931 $as_echo "$as_me: updating cache $cache_file" >&6;}
14932       if test ! -f "$cache_file" || test -h "$cache_file"; then
14933         cat confcache >"$cache_file"
14934       else
14935         case $cache_file in #(
14936         */* | ?:*)
14937           mv -f confcache "$cache_file"$$ &&
14938           mv -f "$cache_file"$$ "$cache_file" ;; #(
14939         *)
14940           mv -f confcache "$cache_file" ;;
14941         esac
14942       fi
14943     fi
14944   else
14945     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14946 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14947   fi
14948 fi
14949 rm -f confcache
14950
14951 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14952 # Let make expand exec_prefix.
14953 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14954
14955 DEFS=-DHAVE_CONFIG_H
14956
14957 ac_libobjs=
14958 ac_ltlibobjs=
14959 U=
14960 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14961   # 1. Remove the extension, and $U if already installed.
14962   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14963   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14964   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14965   #    will be set to the directory where LIBOBJS objects are built.
14966   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14967   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14968 done
14969 LIBOBJS=$ac_libobjs
14970
14971 LTLIBOBJS=$ac_ltlibobjs
14972
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14975 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14976    if test -n "$am_sleep_pid"; then
14977      # Hide warnings about reused PIDs.
14978      wait $am_sleep_pid 2>/dev/null
14979    fi
14980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14981 $as_echo "done" >&6; }
14982  if test -n "$EXEEXT"; then
14983   am__EXEEXT_TRUE=
14984   am__EXEEXT_FALSE='#'
14985 else
14986   am__EXEEXT_TRUE='#'
14987   am__EXEEXT_FALSE=
14988 fi
14989
14990 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14991   as_fn_error $? "conditional \"AMDEP\" was never defined.
14992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14993 fi
14994 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14995   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14997 fi
14998 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14999   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15001 fi
15002 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15003   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15005 fi
15006 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15007   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
15008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15009 fi
15010 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15011   as_fn_error $? "conditional \"MIPS\" was never defined.
15012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15013 fi
15014 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15015   as_fn_error $? "conditional \"BFIN\" was never defined.
15016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15017 fi
15018 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15019   as_fn_error $? "conditional \"SPARC\" was never defined.
15020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15021 fi
15022 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15023   as_fn_error $? "conditional \"X86\" was never defined.
15024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15025 fi
15026 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15027   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15029 fi
15030 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15031   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15033 fi
15034 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15035   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15037 fi
15038 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15039   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15041 fi
15042 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15043   as_fn_error $? "conditional \"ALPHA\" was never defined.
15044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15045 fi
15046 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15047   as_fn_error $? "conditional \"IA64\" was never defined.
15048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15049 fi
15050 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15051   as_fn_error $? "conditional \"M32R\" was never defined.
15052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15053 fi
15054 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15055   as_fn_error $? "conditional \"M68K\" was never defined.
15056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15057 fi
15058 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15059   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15060 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15061 fi
15062 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
15063   as_fn_error $? "conditional \"METAG\" was never defined.
15064 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15065 fi
15066 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15067   as_fn_error $? "conditional \"MOXIE\" was never defined.
15068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15069 fi
15070 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15071   as_fn_error $? "conditional \"POWERPC\" was never defined.
15072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15073 fi
15074 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15075   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15077 fi
15078 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15079   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15081 fi
15082 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15083   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15085 fi
15086 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15087   as_fn_error $? "conditional \"AARCH64\" was never defined.
15088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15089 fi
15090 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15091   as_fn_error $? "conditional \"ARM\" was never defined.
15092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15093 fi
15094 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15095   as_fn_error $? "conditional \"AVR32\" was never defined.
15096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15097 fi
15098 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15099   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15101 fi
15102 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15103   as_fn_error $? "conditional \"FRV\" was never defined.
15104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15105 fi
15106 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15107   as_fn_error $? "conditional \"S390\" was never defined.
15108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15109 fi
15110 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15111   as_fn_error $? "conditional \"X86_64\" was never defined.
15112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15113 fi
15114 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15115   as_fn_error $? "conditional \"SH\" was never defined.
15116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15117 fi
15118 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15119   as_fn_error $? "conditional \"SH64\" was never defined.
15120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15121 fi
15122 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15123   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15125 fi
15126 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15127   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15129 fi
15130 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15131   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15133 fi
15134 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15135   as_fn_error $? "conditional \"TILE\" was never defined.
15136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15137 fi
15138 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15139   as_fn_error $? "conditional \"XTENSA\" was never defined.
15140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15141 fi
15142
15143 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15144   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15146 fi
15147 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15148   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150 fi
15151 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15152   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15154 fi
15155
15156 : "${CONFIG_STATUS=./config.status}"
15157 ac_write_fail=0
15158 ac_clean_files_save=$ac_clean_files
15159 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15161 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15162 as_write_fail=0
15163 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15164 #! $SHELL
15165 # Generated by $as_me.
15166 # Run this file to recreate the current configuration.
15167 # Compiler output produced by configure, useful for debugging
15168 # configure, is in config.log if it exists.
15169
15170 debug=false
15171 ac_cs_recheck=false
15172 ac_cs_silent=false
15173
15174 SHELL=\${CONFIG_SHELL-$SHELL}
15175 export SHELL
15176 _ASEOF
15177 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15178 ## -------------------- ##
15179 ## M4sh Initialization. ##
15180 ## -------------------- ##
15181
15182 # Be more Bourne compatible
15183 DUALCASE=1; export DUALCASE # for MKS sh
15184 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15185   emulate sh
15186   NULLCMD=:
15187   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15188   # is contrary to our usage.  Disable this feature.
15189   alias -g '${1+"$@"}'='"$@"'
15190   setopt NO_GLOB_SUBST
15191 else
15192   case `(set -o) 2>/dev/null` in #(
15193   *posix*) :
15194     set -o posix ;; #(
15195   *) :
15196      ;;
15197 esac
15198 fi
15199
15200
15201 as_nl='
15202 '
15203 export as_nl
15204 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15205 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15206 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15207 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15208 # Prefer a ksh shell builtin over an external printf program on Solaris,
15209 # but without wasting forks for bash or zsh.
15210 if test -z "$BASH_VERSION$ZSH_VERSION" \
15211     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15212   as_echo='print -r --'
15213   as_echo_n='print -rn --'
15214 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15215   as_echo='printf %s\n'
15216   as_echo_n='printf %s'
15217 else
15218   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15219     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15220     as_echo_n='/usr/ucb/echo -n'
15221   else
15222     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15223     as_echo_n_body='eval
15224       arg=$1;
15225       case $arg in #(
15226       *"$as_nl"*)
15227         expr "X$arg" : "X\\(.*\\)$as_nl";
15228         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15229       esac;
15230       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15231     '
15232     export as_echo_n_body
15233     as_echo_n='sh -c $as_echo_n_body as_echo'
15234   fi
15235   export as_echo_body
15236   as_echo='sh -c $as_echo_body as_echo'
15237 fi
15238
15239 # The user is always right.
15240 if test "${PATH_SEPARATOR+set}" != set; then
15241   PATH_SEPARATOR=:
15242   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15243     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15244       PATH_SEPARATOR=';'
15245   }
15246 fi
15247
15248
15249 # IFS
15250 # We need space, tab and new line, in precisely that order.  Quoting is
15251 # there to prevent editors from complaining about space-tab.
15252 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15253 # splitting by setting IFS to empty value.)
15254 IFS=" ""        $as_nl"
15255
15256 # Find who we are.  Look in the path if we contain no directory separator.
15257 as_myself=
15258 case $0 in #((
15259   *[\\/]* ) as_myself=$0 ;;
15260   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15261 for as_dir in $PATH
15262 do
15263   IFS=$as_save_IFS
15264   test -z "$as_dir" && as_dir=.
15265     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15266   done
15267 IFS=$as_save_IFS
15268
15269      ;;
15270 esac
15271 # We did not find ourselves, most probably we were run as `sh COMMAND'
15272 # in which case we are not to be found in the path.
15273 if test "x$as_myself" = x; then
15274   as_myself=$0
15275 fi
15276 if test ! -f "$as_myself"; then
15277   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15278   exit 1
15279 fi
15280
15281 # Unset variables that we do not need and which cause bugs (e.g. in
15282 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15283 # suppresses any "Segmentation fault" message there.  '((' could
15284 # trigger a bug in pdksh 5.2.14.
15285 for as_var in BASH_ENV ENV MAIL MAILPATH
15286 do eval test x\${$as_var+set} = xset \
15287   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15288 done
15289 PS1='$ '
15290 PS2='> '
15291 PS4='+ '
15292
15293 # NLS nuisances.
15294 LC_ALL=C
15295 export LC_ALL
15296 LANGUAGE=C
15297 export LANGUAGE
15298
15299 # CDPATH.
15300 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15301
15302
15303 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15304 # ----------------------------------------
15305 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15306 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15307 # script with STATUS, using 1 if that was 0.
15308 as_fn_error ()
15309 {
15310   as_status=$1; test $as_status -eq 0 && as_status=1
15311   if test "$4"; then
15312     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15313     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15314   fi
15315   $as_echo "$as_me: error: $2" >&2
15316   as_fn_exit $as_status
15317 } # as_fn_error
15318
15319
15320 # as_fn_set_status STATUS
15321 # -----------------------
15322 # Set $? to STATUS, without forking.
15323 as_fn_set_status ()
15324 {
15325   return $1
15326 } # as_fn_set_status
15327
15328 # as_fn_exit STATUS
15329 # -----------------
15330 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15331 as_fn_exit ()
15332 {
15333   set +e
15334   as_fn_set_status $1
15335   exit $1
15336 } # as_fn_exit
15337
15338 # as_fn_unset VAR
15339 # ---------------
15340 # Portably unset VAR.
15341 as_fn_unset ()
15342 {
15343   { eval $1=; unset $1;}
15344 }
15345 as_unset=as_fn_unset
15346 # as_fn_append VAR VALUE
15347 # ----------------------
15348 # Append the text in VALUE to the end of the definition contained in VAR. Take
15349 # advantage of any shell optimizations that allow amortized linear growth over
15350 # repeated appends, instead of the typical quadratic growth present in naive
15351 # implementations.
15352 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15353   eval 'as_fn_append ()
15354   {
15355     eval $1+=\$2
15356   }'
15357 else
15358   as_fn_append ()
15359   {
15360     eval $1=\$$1\$2
15361   }
15362 fi # as_fn_append
15363
15364 # as_fn_arith ARG...
15365 # ------------------
15366 # Perform arithmetic evaluation on the ARGs, and store the result in the
15367 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15368 # must be portable across $(()) and expr.
15369 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15370   eval 'as_fn_arith ()
15371   {
15372     as_val=$(( $* ))
15373   }'
15374 else
15375   as_fn_arith ()
15376   {
15377     as_val=`expr "$@" || test $? -eq 1`
15378   }
15379 fi # as_fn_arith
15380
15381
15382 if expr a : '\(a\)' >/dev/null 2>&1 &&
15383    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15384   as_expr=expr
15385 else
15386   as_expr=false
15387 fi
15388
15389 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15390   as_basename=basename
15391 else
15392   as_basename=false
15393 fi
15394
15395 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15396   as_dirname=dirname
15397 else
15398   as_dirname=false
15399 fi
15400
15401 as_me=`$as_basename -- "$0" ||
15402 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15403          X"$0" : 'X\(//\)$' \| \
15404          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15405 $as_echo X/"$0" |
15406     sed '/^.*\/\([^/][^/]*\)\/*$/{
15407             s//\1/
15408             q
15409           }
15410           /^X\/\(\/\/\)$/{
15411             s//\1/
15412             q
15413           }
15414           /^X\/\(\/\).*/{
15415             s//\1/
15416             q
15417           }
15418           s/.*/./; q'`
15419
15420 # Avoid depending upon Character Ranges.
15421 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15422 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15423 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15424 as_cr_digits='0123456789'
15425 as_cr_alnum=$as_cr_Letters$as_cr_digits
15426
15427 ECHO_C= ECHO_N= ECHO_T=
15428 case `echo -n x` in #(((((
15429 -n*)
15430   case `echo 'xy\c'` in
15431   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15432   xy)  ECHO_C='\c';;
15433   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15434        ECHO_T=' ';;
15435   esac;;
15436 *)
15437   ECHO_N='-n';;
15438 esac
15439
15440 rm -f conf$$ conf$$.exe conf$$.file
15441 if test -d conf$$.dir; then
15442   rm -f conf$$.dir/conf$$.file
15443 else
15444   rm -f conf$$.dir
15445   mkdir conf$$.dir 2>/dev/null
15446 fi
15447 if (echo >conf$$.file) 2>/dev/null; then
15448   if ln -s conf$$.file conf$$ 2>/dev/null; then
15449     as_ln_s='ln -s'
15450     # ... but there are two gotchas:
15451     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15452     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15453     # In both cases, we have to default to `cp -pR'.
15454     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15455       as_ln_s='cp -pR'
15456   elif ln conf$$.file conf$$ 2>/dev/null; then
15457     as_ln_s=ln
15458   else
15459     as_ln_s='cp -pR'
15460   fi
15461 else
15462   as_ln_s='cp -pR'
15463 fi
15464 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15465 rmdir conf$$.dir 2>/dev/null
15466
15467
15468 # as_fn_mkdir_p
15469 # -------------
15470 # Create "$as_dir" as a directory, including parents if necessary.
15471 as_fn_mkdir_p ()
15472 {
15473
15474   case $as_dir in #(
15475   -*) as_dir=./$as_dir;;
15476   esac
15477   test -d "$as_dir" || eval $as_mkdir_p || {
15478     as_dirs=
15479     while :; do
15480       case $as_dir in #(
15481       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15482       *) as_qdir=$as_dir;;
15483       esac
15484       as_dirs="'$as_qdir' $as_dirs"
15485       as_dir=`$as_dirname -- "$as_dir" ||
15486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15487          X"$as_dir" : 'X\(//\)[^/]' \| \
15488          X"$as_dir" : 'X\(//\)$' \| \
15489          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15490 $as_echo X"$as_dir" |
15491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15492             s//\1/
15493             q
15494           }
15495           /^X\(\/\/\)[^/].*/{
15496             s//\1/
15497             q
15498           }
15499           /^X\(\/\/\)$/{
15500             s//\1/
15501             q
15502           }
15503           /^X\(\/\).*/{
15504             s//\1/
15505             q
15506           }
15507           s/.*/./; q'`
15508       test -d "$as_dir" && break
15509     done
15510     test -z "$as_dirs" || eval "mkdir $as_dirs"
15511   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15512
15513
15514 } # as_fn_mkdir_p
15515 if mkdir -p . 2>/dev/null; then
15516   as_mkdir_p='mkdir -p "$as_dir"'
15517 else
15518   test -d ./-p && rmdir ./-p
15519   as_mkdir_p=false
15520 fi
15521
15522
15523 # as_fn_executable_p FILE
15524 # -----------------------
15525 # Test if FILE is an executable regular file.
15526 as_fn_executable_p ()
15527 {
15528   test -f "$1" && test -x "$1"
15529 } # as_fn_executable_p
15530 as_test_x='test -x'
15531 as_executable_p=as_fn_executable_p
15532
15533 # Sed expression to map a string onto a valid CPP name.
15534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15535
15536 # Sed expression to map a string onto a valid variable name.
15537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15538
15539
15540 exec 6>&1
15541 ## ----------------------------------- ##
15542 ## Main body of $CONFIG_STATUS script. ##
15543 ## ----------------------------------- ##
15544 _ASEOF
15545 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15546
15547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15548 # Save the log message, to keep $0 and so on meaningful, and to
15549 # report actual input values of CONFIG_FILES etc. instead of their
15550 # values after options handling.
15551 ac_log="
15552 This file was extended by libffi $as_me 3.0.13, which was
15553 generated by GNU Autoconf 2.69.  Invocation command line was
15554
15555   CONFIG_FILES    = $CONFIG_FILES
15556   CONFIG_HEADERS  = $CONFIG_HEADERS
15557   CONFIG_LINKS    = $CONFIG_LINKS
15558   CONFIG_COMMANDS = $CONFIG_COMMANDS
15559   $ $0 $@
15560
15561 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15562 "
15563
15564 _ACEOF
15565
15566 case $ac_config_files in *"
15567 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15568 esac
15569
15570 case $ac_config_headers in *"
15571 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15572 esac
15573
15574
15575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15576 # Files that config.status was made for.
15577 config_files="$ac_config_files"
15578 config_headers="$ac_config_headers"
15579 config_links="$ac_config_links"
15580 config_commands="$ac_config_commands"
15581
15582 _ACEOF
15583
15584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 ac_cs_usage="\
15586 \`$as_me' instantiates files and other configuration actions
15587 from templates according to the current configuration.  Unless the files
15588 and actions are specified as TAGs, all are instantiated by default.
15589
15590 Usage: $0 [OPTION]... [TAG]...
15591
15592   -h, --help       print this help, then exit
15593   -V, --version    print version number and configuration settings, then exit
15594       --config     print configuration, then exit
15595   -q, --quiet, --silent
15596                    do not print progress messages
15597   -d, --debug      don't remove temporary files
15598       --recheck    update $as_me by reconfiguring in the same conditions
15599       --file=FILE[:TEMPLATE]
15600                    instantiate the configuration file FILE
15601       --header=FILE[:TEMPLATE]
15602                    instantiate the configuration header FILE
15603
15604 Configuration files:
15605 $config_files
15606
15607 Configuration headers:
15608 $config_headers
15609
15610 Configuration links:
15611 $config_links
15612
15613 Configuration commands:
15614 $config_commands
15615
15616 Report bugs to <http://github.com/atgreen/libffi/issues>."
15617
15618 _ACEOF
15619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15620 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15621 ac_cs_version="\\
15622 libffi config.status 3.0.13
15623 configured by $0, generated by GNU Autoconf 2.69,
15624   with options \\"\$ac_cs_config\\"
15625
15626 Copyright (C) 2012 Free Software Foundation, Inc.
15627 This config.status script is free software; the Free Software Foundation
15628 gives unlimited permission to copy, distribute and modify it."
15629
15630 ac_pwd='$ac_pwd'
15631 srcdir='$srcdir'
15632 INSTALL='$INSTALL'
15633 MKDIR_P='$MKDIR_P'
15634 AWK='$AWK'
15635 test -n "\$AWK" || AWK=awk
15636 _ACEOF
15637
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 # The default lists apply if the user does not specify any file.
15640 ac_need_defaults=:
15641 while test $# != 0
15642 do
15643   case $1 in
15644   --*=?*)
15645     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15646     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15647     ac_shift=:
15648     ;;
15649   --*=)
15650     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15651     ac_optarg=
15652     ac_shift=:
15653     ;;
15654   *)
15655     ac_option=$1
15656     ac_optarg=$2
15657     ac_shift=shift
15658     ;;
15659   esac
15660
15661   case $ac_option in
15662   # Handling of the options.
15663   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15664     ac_cs_recheck=: ;;
15665   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15666     $as_echo "$ac_cs_version"; exit ;;
15667   --config | --confi | --conf | --con | --co | --c )
15668     $as_echo "$ac_cs_config"; exit ;;
15669   --debug | --debu | --deb | --de | --d | -d )
15670     debug=: ;;
15671   --file | --fil | --fi | --f )
15672     $ac_shift
15673     case $ac_optarg in
15674     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15675     '') as_fn_error $? "missing file argument" ;;
15676     esac
15677     as_fn_append CONFIG_FILES " '$ac_optarg'"
15678     ac_need_defaults=false;;
15679   --header | --heade | --head | --hea )
15680     $ac_shift
15681     case $ac_optarg in
15682     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15683     esac
15684     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15685     ac_need_defaults=false;;
15686   --he | --h)
15687     # Conflict between --help and --header
15688     as_fn_error $? "ambiguous option: \`$1'
15689 Try \`$0 --help' for more information.";;
15690   --help | --hel | -h )
15691     $as_echo "$ac_cs_usage"; exit ;;
15692   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15693   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15694     ac_cs_silent=: ;;
15695
15696   # This is an error.
15697   -*) as_fn_error $? "unrecognized option: \`$1'
15698 Try \`$0 --help' for more information." ;;
15699
15700   *) as_fn_append ac_config_targets " $1"
15701      ac_need_defaults=false ;;
15702
15703   esac
15704   shift
15705 done
15706
15707 ac_configure_extra_args=
15708
15709 if $ac_cs_silent; then
15710   exec 6>/dev/null
15711   ac_configure_extra_args="$ac_configure_extra_args --silent"
15712 fi
15713
15714 _ACEOF
15715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15716 if \$ac_cs_recheck; then
15717   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15718   shift
15719   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15720   CONFIG_SHELL='$SHELL'
15721   export CONFIG_SHELL
15722   exec "\$@"
15723 fi
15724
15725 _ACEOF
15726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 exec 5>>config.log
15728 {
15729   echo
15730   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15731 ## Running $as_me. ##
15732 _ASBOX
15733   $as_echo "$ac_log"
15734 } >&5
15735
15736 _ACEOF
15737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15738 #
15739 # INIT-COMMANDS
15740 #
15741 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15742 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15743 ax_enable_builddir_version="$VERSION"                  # $VERSION
15744 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15745 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15746 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15747 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15748
15749 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15750
15751
15752 # The HP-UX ksh and POSIX shell print the target directory to stdout
15753 # if CDPATH is set.
15754 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15755
15756 sed_quote_subst='$sed_quote_subst'
15757 double_quote_subst='$double_quote_subst'
15758 delay_variable_subst='$delay_variable_subst'
15759 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15760 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15761 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15762 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15763 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15764 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15765 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15766 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15767 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15768 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15769 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15770 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15771 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15772 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15773 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15774 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15775 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15776 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15777 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15778 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15779 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15780 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15781 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15782 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15783 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15784 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15785 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15786 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15787 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15788 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15789 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15790 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15791 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15792 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15793 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15794 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15795 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15796 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15797 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15798 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15799 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15800 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15801 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15802 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15803 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15804 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15805 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15806 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15807 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15808 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15809 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15810 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15811 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15812 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15813 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15814 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15815 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"`'
15816 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15817 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15818 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15819 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15820 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15821 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15822 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15823 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15824 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15825 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15826 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15827 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15828 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15829 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15830 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15831 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15832 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15833 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15834 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15835 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15836 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15837 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15838 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15839 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15840 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15841 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15842 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15843 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15844 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15845 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15846 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15847 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15848 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15849 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15850 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15851 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15852 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15853 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15854 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15855 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15856 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15857 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15858 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15859 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15860 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15861 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15862 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15863 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15864 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15865 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15866 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15867 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15868 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15869 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15870 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15871 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15872 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15873 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15874 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15875 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15876 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15877 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15878 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15879 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15880 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15881 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15882 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15883 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15884 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15885 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15886 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15887 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15888 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15889
15890 LTCC='$LTCC'
15891 LTCFLAGS='$LTCFLAGS'
15892 compiler='$compiler_DEFAULT'
15893
15894 # A function that is used when there is no print builtin or printf.
15895 func_fallback_echo ()
15896 {
15897   eval 'cat <<_LTECHO_EOF
15898 \$1
15899 _LTECHO_EOF'
15900 }
15901
15902 # Quote evaled strings.
15903 for var in SHELL \
15904 ECHO \
15905 PATH_SEPARATOR \
15906 SED \
15907 GREP \
15908 EGREP \
15909 FGREP \
15910 LD \
15911 NM \
15912 LN_S \
15913 lt_SP2NL \
15914 lt_NL2SP \
15915 reload_flag \
15916 OBJDUMP \
15917 deplibs_check_method \
15918 file_magic_cmd \
15919 file_magic_glob \
15920 want_nocaseglob \
15921 DLLTOOL \
15922 sharedlib_from_linklib_cmd \
15923 AR \
15924 AR_FLAGS \
15925 archiver_list_spec \
15926 STRIP \
15927 RANLIB \
15928 CC \
15929 CFLAGS \
15930 compiler \
15931 lt_cv_sys_global_symbol_pipe \
15932 lt_cv_sys_global_symbol_to_cdecl \
15933 lt_cv_sys_global_symbol_to_c_name_address \
15934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15935 nm_file_list_spec \
15936 lt_prog_compiler_no_builtin_flag \
15937 lt_prog_compiler_pic \
15938 lt_prog_compiler_wl \
15939 lt_prog_compiler_static \
15940 lt_cv_prog_compiler_c_o \
15941 need_locks \
15942 MANIFEST_TOOL \
15943 DSYMUTIL \
15944 NMEDIT \
15945 LIPO \
15946 OTOOL \
15947 OTOOL64 \
15948 shrext_cmds \
15949 export_dynamic_flag_spec \
15950 whole_archive_flag_spec \
15951 compiler_needs_object \
15952 with_gnu_ld \
15953 allow_undefined_flag \
15954 no_undefined_flag \
15955 hardcode_libdir_flag_spec \
15956 hardcode_libdir_separator \
15957 exclude_expsyms \
15958 include_expsyms \
15959 file_list_spec \
15960 variables_saved_for_relink \
15961 libname_spec \
15962 library_names_spec \
15963 soname_spec \
15964 install_override_mode \
15965 finish_eval \
15966 old_striplib \
15967 striplib; do
15968     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15969     *[\\\\\\\`\\"\\\$]*)
15970       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15971       ;;
15972     *)
15973       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15974       ;;
15975     esac
15976 done
15977
15978 # Double-quote double-evaled strings.
15979 for var in reload_cmds \
15980 old_postinstall_cmds \
15981 old_postuninstall_cmds \
15982 old_archive_cmds \
15983 extract_expsyms_cmds \
15984 old_archive_from_new_cmds \
15985 old_archive_from_expsyms_cmds \
15986 archive_cmds \
15987 archive_expsym_cmds \
15988 module_cmds \
15989 module_expsym_cmds \
15990 export_symbols_cmds \
15991 prelink_cmds \
15992 postlink_cmds \
15993 postinstall_cmds \
15994 postuninstall_cmds \
15995 finish_cmds \
15996 sys_lib_search_path_spec \
15997 sys_lib_dlsearch_path_spec; do
15998     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15999     *[\\\\\\\`\\"\\\$]*)
16000       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16001       ;;
16002     *)
16003       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16004       ;;
16005     esac
16006 done
16007
16008 ac_aux_dir='$ac_aux_dir'
16009 xsi_shell='$xsi_shell'
16010 lt_shell_append='$lt_shell_append'
16011
16012 # See if we are running on zsh, and set the options which allow our
16013 # commands through without removal of \ escapes INIT.
16014 if test -n "\${ZSH_VERSION+set}" ; then
16015    setopt NO_GLOB_SUBST
16016 fi
16017
16018
16019     PACKAGE='$PACKAGE'
16020     VERSION='$VERSION'
16021     TIMESTAMP='$TIMESTAMP'
16022     RM='$RM'
16023     ofile='$ofile'
16024
16025
16026
16027 TARGETDIR="$TARGETDIR"
16028
16029 _ACEOF
16030
16031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16032
16033 # Handling of arguments.
16034 for ac_config_target in $ac_config_targets
16035 do
16036   case $ac_config_target in
16037     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16038     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16039     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16040     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16041     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16042     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16043     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16044     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16045     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16046     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16047     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16048     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16049     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16050
16051   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16052   esac
16053 done
16054
16055
16056 # If the user did not use the arguments to specify the items to instantiate,
16057 # then the envvar interface is used.  Set only those that are not.
16058 # We use the long form for the default assignment because of an extremely
16059 # bizarre bug on SunOS 4.1.3.
16060 if $ac_need_defaults; then
16061   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16062   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16063   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16064   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16065 fi
16066
16067 # Have a temporary directory for convenience.  Make it in the build tree
16068 # simply because there is no reason against having it here, and in addition,
16069 # creating and moving files from /tmp can sometimes cause problems.
16070 # Hook for its removal unless debugging.
16071 # Note that there is a small window in which the directory will not be cleaned:
16072 # after its creation but before its name has been assigned to `$tmp'.
16073 $debug ||
16074 {
16075   tmp= ac_tmp=
16076   trap 'exit_status=$?
16077   : "${ac_tmp:=$tmp}"
16078   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16079 ' 0
16080   trap 'as_fn_exit 1' 1 2 13 15
16081 }
16082 # Create a (secure) tmp directory for tmp files.
16083
16084 {
16085   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16086   test -d "$tmp"
16087 }  ||
16088 {
16089   tmp=./conf$$-$RANDOM
16090   (umask 077 && mkdir "$tmp")
16091 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16092 ac_tmp=$tmp
16093
16094 # Set up the scripts for CONFIG_FILES section.
16095 # No need to generate them if there are no CONFIG_FILES.
16096 # This happens for instance with `./config.status config.h'.
16097 if test -n "$CONFIG_FILES"; then
16098
16099
16100 ac_cr=`echo X | tr X '\015'`
16101 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16102 # But we know of no other shell where ac_cr would be empty at this
16103 # point, so we can use a bashism as a fallback.
16104 if test "x$ac_cr" = x; then
16105   eval ac_cr=\$\'\\r\'
16106 fi
16107 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16108 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16109   ac_cs_awk_cr='\\r'
16110 else
16111   ac_cs_awk_cr=$ac_cr
16112 fi
16113
16114 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16115 _ACEOF
16116
16117
16118 {
16119   echo "cat >conf$$subs.awk <<_ACEOF" &&
16120   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16121   echo "_ACEOF"
16122 } >conf$$subs.sh ||
16123   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16124 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16125 ac_delim='%!_!# '
16126 for ac_last_try in false false false false false :; do
16127   . ./conf$$subs.sh ||
16128     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16129
16130   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16131   if test $ac_delim_n = $ac_delim_num; then
16132     break
16133   elif $ac_last_try; then
16134     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16135   else
16136     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16137   fi
16138 done
16139 rm -f conf$$subs.sh
16140
16141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16142 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16143 _ACEOF
16144 sed -n '
16145 h
16146 s/^/S["/; s/!.*/"]=/
16147 p
16148 g
16149 s/^[^!]*!//
16150 :repl
16151 t repl
16152 s/'"$ac_delim"'$//
16153 t delim
16154 :nl
16155 h
16156 s/\(.\{148\}\)..*/\1/
16157 t more1
16158 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16159 p
16160 n
16161 b repl
16162 :more1
16163 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16164 p
16165 g
16166 s/.\{148\}//
16167 t nl
16168 :delim
16169 h
16170 s/\(.\{148\}\)..*/\1/
16171 t more2
16172 s/["\\]/\\&/g; s/^/"/; s/$/"/
16173 p
16174 b
16175 :more2
16176 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16177 p
16178 g
16179 s/.\{148\}//
16180 t delim
16181 ' <conf$$subs.awk | sed '
16182 /^[^""]/{
16183   N
16184   s/\n//
16185 }
16186 ' >>$CONFIG_STATUS || ac_write_fail=1
16187 rm -f conf$$subs.awk
16188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16189 _ACAWK
16190 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16191   for (key in S) S_is_set[key] = 1
16192   FS = "\a"
16193
16194 }
16195 {
16196   line = $ 0
16197   nfields = split(line, field, "@")
16198   substed = 0
16199   len = length(field[1])
16200   for (i = 2; i < nfields; i++) {
16201     key = field[i]
16202     keylen = length(key)
16203     if (S_is_set[key]) {
16204       value = S[key]
16205       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16206       len += length(value) + length(field[++i])
16207       substed = 1
16208     } else
16209       len += 1 + keylen
16210   }
16211
16212   print line
16213 }
16214
16215 _ACAWK
16216 _ACEOF
16217 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16218 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16219   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16220 else
16221   cat
16222 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16223   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16224 _ACEOF
16225
16226 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16227 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16228 # trailing colons and then remove the whole line if VPATH becomes empty
16229 # (actually we leave an empty line to preserve line numbers).
16230 if test "x$srcdir" = x.; then
16231   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16232 h
16233 s///
16234 s/^/:/
16235 s/[      ]*$/:/
16236 s/:\$(srcdir):/:/g
16237 s/:\${srcdir}:/:/g
16238 s/:@srcdir@:/:/g
16239 s/^:*//
16240 s/:*$//
16241 x
16242 s/\(=[   ]*\).*/\1/
16243 G
16244 s/\n//
16245 s/^[^=]*=[       ]*$//
16246 }'
16247 fi
16248
16249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16250 fi # test -n "$CONFIG_FILES"
16251
16252 # Set up the scripts for CONFIG_HEADERS section.
16253 # No need to generate them if there are no CONFIG_HEADERS.
16254 # This happens for instance with `./config.status Makefile'.
16255 if test -n "$CONFIG_HEADERS"; then
16256 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16257 BEGIN {
16258 _ACEOF
16259
16260 # Transform confdefs.h into an awk script `defines.awk', embedded as
16261 # here-document in config.status, that substitutes the proper values into
16262 # config.h.in to produce config.h.
16263
16264 # Create a delimiter string that does not exist in confdefs.h, to ease
16265 # handling of long lines.
16266 ac_delim='%!_!# '
16267 for ac_last_try in false false :; do
16268   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16269   if test -z "$ac_tt"; then
16270     break
16271   elif $ac_last_try; then
16272     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16273   else
16274     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16275   fi
16276 done
16277
16278 # For the awk script, D is an array of macro values keyed by name,
16279 # likewise P contains macro parameters if any.  Preserve backslash
16280 # newline sequences.
16281
16282 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16283 sed -n '
16284 s/.\{148\}/&'"$ac_delim"'/g
16285 t rset
16286 :rset
16287 s/^[     ]*#[    ]*define[       ][      ]*/ /
16288 t def
16289 d
16290 :def
16291 s/\\$//
16292 t bsnl
16293 s/["\\]/\\&/g
16294 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16295 D["\1"]=" \3"/p
16296 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16297 d
16298 :bsnl
16299 s/["\\]/\\&/g
16300 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16301 D["\1"]=" \3\\\\\\n"\\/p
16302 t cont
16303 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16304 t cont
16305 d
16306 :cont
16307 n
16308 s/.\{148\}/&'"$ac_delim"'/g
16309 t clear
16310 :clear
16311 s/\\$//
16312 t bsnlc
16313 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16314 d
16315 :bsnlc
16316 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16317 b cont
16318 ' <confdefs.h | sed '
16319 s/'"$ac_delim"'/"\\\
16320 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16321
16322 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16323   for (key in D) D_is_set[key] = 1
16324   FS = "\a"
16325 }
16326 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16327   line = \$ 0
16328   split(line, arg, " ")
16329   if (arg[1] == "#") {
16330     defundef = arg[2]
16331     mac1 = arg[3]
16332   } else {
16333     defundef = substr(arg[1], 2)
16334     mac1 = arg[2]
16335   }
16336   split(mac1, mac2, "(") #)
16337   macro = mac2[1]
16338   prefix = substr(line, 1, index(line, defundef) - 1)
16339   if (D_is_set[macro]) {
16340     # Preserve the white space surrounding the "#".
16341     print prefix "define", macro P[macro] D[macro]
16342     next
16343   } else {
16344     # Replace #undef with comments.  This is necessary, for example,
16345     # in the case of _POSIX_SOURCE, which is predefined and required
16346     # on some systems where configure will not decide to define it.
16347     if (defundef == "undef") {
16348       print "/*", prefix defundef, macro, "*/"
16349       next
16350     }
16351   }
16352 }
16353 { print }
16354 _ACAWK
16355 _ACEOF
16356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16357   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16358 fi # test -n "$CONFIG_HEADERS"
16359
16360
16361 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16362 shift
16363 for ac_tag
16364 do
16365   case $ac_tag in
16366   :[FHLC]) ac_mode=$ac_tag; continue;;
16367   esac
16368   case $ac_mode$ac_tag in
16369   :[FHL]*:*);;
16370   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16371   :[FH]-) ac_tag=-:-;;
16372   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16373   esac
16374   ac_save_IFS=$IFS
16375   IFS=:
16376   set x $ac_tag
16377   IFS=$ac_save_IFS
16378   shift
16379   ac_file=$1
16380   shift
16381
16382   case $ac_mode in
16383   :L) ac_source=$1;;
16384   :[FH])
16385     ac_file_inputs=
16386     for ac_f
16387     do
16388       case $ac_f in
16389       -) ac_f="$ac_tmp/stdin";;
16390       *) # Look for the file first in the build tree, then in the source tree
16391          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16392          # because $ac_f cannot contain `:'.
16393          test -f "$ac_f" ||
16394            case $ac_f in
16395            [\\/$]*) false;;
16396            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16397            esac ||
16398            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16399       esac
16400       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16401       as_fn_append ac_file_inputs " '$ac_f'"
16402     done
16403
16404     # Let's still pretend it is `configure' which instantiates (i.e., don't
16405     # use $as_me), people would be surprised to read:
16406     #    /* config.h.  Generated by config.status.  */
16407     configure_input='Generated from '`
16408           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16409         `' by configure.'
16410     if test x"$ac_file" != x-; then
16411       configure_input="$ac_file.  $configure_input"
16412       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16413 $as_echo "$as_me: creating $ac_file" >&6;}
16414     fi
16415     # Neutralize special characters interpreted by sed in replacement strings.
16416     case $configure_input in #(
16417     *\&* | *\|* | *\\* )
16418        ac_sed_conf_input=`$as_echo "$configure_input" |
16419        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16420     *) ac_sed_conf_input=$configure_input;;
16421     esac
16422
16423     case $ac_tag in
16424     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16425       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16426     esac
16427     ;;
16428   esac
16429
16430   ac_dir=`$as_dirname -- "$ac_file" ||
16431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16432          X"$ac_file" : 'X\(//\)[^/]' \| \
16433          X"$ac_file" : 'X\(//\)$' \| \
16434          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16435 $as_echo X"$ac_file" |
16436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16437             s//\1/
16438             q
16439           }
16440           /^X\(\/\/\)[^/].*/{
16441             s//\1/
16442             q
16443           }
16444           /^X\(\/\/\)$/{
16445             s//\1/
16446             q
16447           }
16448           /^X\(\/\).*/{
16449             s//\1/
16450             q
16451           }
16452           s/.*/./; q'`
16453   as_dir="$ac_dir"; as_fn_mkdir_p
16454   ac_builddir=.
16455
16456 case "$ac_dir" in
16457 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16458 *)
16459   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16460   # A ".." for each directory in $ac_dir_suffix.
16461   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16462   case $ac_top_builddir_sub in
16463   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16464   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16465   esac ;;
16466 esac
16467 ac_abs_top_builddir=$ac_pwd
16468 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16469 # for backward compatibility:
16470 ac_top_builddir=$ac_top_build_prefix
16471
16472 case $srcdir in
16473   .)  # We are building in place.
16474     ac_srcdir=.
16475     ac_top_srcdir=$ac_top_builddir_sub
16476     ac_abs_top_srcdir=$ac_pwd ;;
16477   [\\/]* | ?:[\\/]* )  # Absolute name.
16478     ac_srcdir=$srcdir$ac_dir_suffix;
16479     ac_top_srcdir=$srcdir
16480     ac_abs_top_srcdir=$srcdir ;;
16481   *) # Relative name.
16482     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16483     ac_top_srcdir=$ac_top_build_prefix$srcdir
16484     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16485 esac
16486 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16487
16488
16489   case $ac_mode in
16490   :F)
16491   #
16492   # CONFIG_FILE
16493   #
16494
16495   case $INSTALL in
16496   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16497   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16498   esac
16499   ac_MKDIR_P=$MKDIR_P
16500   case $MKDIR_P in
16501   [\\/$]* | ?:[\\/]* ) ;;
16502   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16503   esac
16504 _ACEOF
16505
16506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16507 # If the template does not know about datarootdir, expand it.
16508 # FIXME: This hack should be removed a few years after 2.60.
16509 ac_datarootdir_hack=; ac_datarootdir_seen=
16510 ac_sed_dataroot='
16511 /datarootdir/ {
16512   p
16513   q
16514 }
16515 /@datadir@/p
16516 /@docdir@/p
16517 /@infodir@/p
16518 /@localedir@/p
16519 /@mandir@/p'
16520 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16521 *datarootdir*) ac_datarootdir_seen=yes;;
16522 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16523   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16524 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16525 _ACEOF
16526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16527   ac_datarootdir_hack='
16528   s&@datadir@&$datadir&g
16529   s&@docdir@&$docdir&g
16530   s&@infodir@&$infodir&g
16531   s&@localedir@&$localedir&g
16532   s&@mandir@&$mandir&g
16533   s&\\\${datarootdir}&$datarootdir&g' ;;
16534 esac
16535 _ACEOF
16536
16537 # Neutralize VPATH when `$srcdir' = `.'.
16538 # Shell code in configure.ac might set extrasub.
16539 # FIXME: do we really want to maintain this feature?
16540 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16541 ac_sed_extra="$ac_vpsub
16542 $extrasub
16543 _ACEOF
16544 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16545 :t
16546 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16547 s|@configure_input@|$ac_sed_conf_input|;t t
16548 s&@top_builddir@&$ac_top_builddir_sub&;t t
16549 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16550 s&@srcdir@&$ac_srcdir&;t t
16551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16552 s&@top_srcdir@&$ac_top_srcdir&;t t
16553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16554 s&@builddir@&$ac_builddir&;t t
16555 s&@abs_builddir@&$ac_abs_builddir&;t t
16556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16557 s&@INSTALL@&$ac_INSTALL&;t t
16558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16559 $ac_datarootdir_hack
16560 "
16561 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16562   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16563
16564 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16565   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16566   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16567       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16569 which seems to be undefined.  Please make sure it is defined" >&5
16570 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16571 which seems to be undefined.  Please make sure it is defined" >&2;}
16572
16573   rm -f "$ac_tmp/stdin"
16574   case $ac_file in
16575   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16576   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16577   esac \
16578   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16579  ;;
16580   :H)
16581   #
16582   # CONFIG_HEADER
16583   #
16584   if test x"$ac_file" != x-; then
16585     {
16586       $as_echo "/* $configure_input  */" \
16587       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16588     } >"$ac_tmp/config.h" \
16589       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16590     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16591       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16592 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16593     else
16594       rm -f "$ac_file"
16595       mv "$ac_tmp/config.h" "$ac_file" \
16596         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16597     fi
16598   else
16599     $as_echo "/* $configure_input  */" \
16600       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16601       || as_fn_error $? "could not create -" "$LINENO" 5
16602   fi
16603 # Compute "$ac_file"'s index in $config_headers.
16604 _am_arg="$ac_file"
16605 _am_stamp_count=1
16606 for _am_header in $config_headers :; do
16607   case $_am_header in
16608     $_am_arg | $_am_arg:* )
16609       break ;;
16610     * )
16611       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16612   esac
16613 done
16614 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16615 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16616          X"$_am_arg" : 'X\(//\)[^/]' \| \
16617          X"$_am_arg" : 'X\(//\)$' \| \
16618          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16619 $as_echo X"$_am_arg" |
16620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16621             s//\1/
16622             q
16623           }
16624           /^X\(\/\/\)[^/].*/{
16625             s//\1/
16626             q
16627           }
16628           /^X\(\/\/\)$/{
16629             s//\1/
16630             q
16631           }
16632           /^X\(\/\).*/{
16633             s//\1/
16634             q
16635           }
16636           s/.*/./; q'`/stamp-h$_am_stamp_count
16637  ;;
16638   :L)
16639   #
16640   # CONFIG_LINK
16641   #
16642
16643   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16644     :
16645   else
16646     # Prefer the file from the source tree if names are identical.
16647     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16648       ac_source=$srcdir/$ac_source
16649     fi
16650
16651     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16652 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16653
16654     if test ! -r "$ac_source"; then
16655       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16656     fi
16657     rm -f "$ac_file"
16658
16659     # Try a relative symlink, then a hard link, then a copy.
16660     case $ac_source in
16661     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16662         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16663     esac
16664     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16665       ln "$ac_source" "$ac_file" 2>/dev/null ||
16666       cp -p "$ac_source" "$ac_file" ||
16667       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16668   fi
16669  ;;
16670   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16671 $as_echo "$as_me: executing $ac_file commands" >&6;}
16672  ;;
16673   esac
16674
16675
16676   case $ac_file$ac_mode in
16677     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16678   if test ".$ax_enable_builddir" = ".." ; then
16679     if test -f "$top_srcdir/Makefile" ; then
16680       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16681 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16682     else
16683       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16684 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16685     fi
16686   else
16687     if test -f "$ac_top_srcdir/Makefile" ; then
16688       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16689       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16690     fi
16691     if test -f "$ac_top_srcdir/Makefile" ; then
16692         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16693         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16694       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16695       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16696       then rm $ac_top_srcdir/Makefile ; fi
16697       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16698     fi
16699     if test ! -f "$ac_top_srcdir/Makefile" ; then
16700       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16701 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16702       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16703 /^\$/n
16704 x
16705 /^\$/bS
16706 x
16707 /\\\\\$/{H;d;}
16708 {H;s/.*//;x;}
16709 bM
16710 :S
16711 x
16712 /\\\\\$/{h;d;}
16713 {h;s/.*//;x;}
16714 :M
16715 s/\\(\\n\\)     /\\1 /g
16716 /^      /d
16717 /^[      ]*[\\#]/d
16718 /^VPATH *=/d
16719 s/^srcdir *=.*/srcdir = ./
16720 s/^top_srcdir *=.*/top_srcdir = ./
16721 /[:=]/!d
16722 /^\\./d
16723 / = /b
16724 / .= /b
16725 /:/!b
16726 s/:.*/:/
16727 s/ /  /g
16728 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16729 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16730 s/  / /g
16731 /^all all-all[ :]/i\\
16732 all-configured : all-all
16733 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16734 /-all-all/d
16735 a\\
16736         @ HOST="\$(HOST)\" \\\\\\
16737         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16738         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16739         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16740         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16741         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16742         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16743         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16744         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16745         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16746 /dist-all *:/a\\
16747         @ HOST="\$(HOST)\" \\\\\\
16748         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16749         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16750         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16751         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16752         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16753         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16754         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16755         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16756         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16757 /dist-[a-zA-Z0-9]*-all *:/a\\
16758         @ HOST="\$(HOST)\" \\\\\\
16759         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16760         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16761         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16762         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16763         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16764         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16765         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16766         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16767         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16768 /distclean-all *:/a\\
16769         @ HOST="\$(HOST)\" \\\\\\
16770         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16771         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16772         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16773         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16774         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16775         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16776         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16777         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16778         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16779         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16780         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16781 _EOF
16782       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16783       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16784       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16785         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16786 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16787         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16788       fi ; xxxx="####"
16789       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16790       # sanity check
16791       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16792         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16793 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16794         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16795           >$ac_top_srcdir/Makefile~
16796         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16797       fi
16798     else
16799       xxxx="\\#\\#\\#\\#"
16800       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16801       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16802       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16803         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16804         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16805       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16806         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16807 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16808         rm "$tmp/mkfile.tmp"
16809       else
16810         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16811 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16812         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16813       fi
16814     fi
16815     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16816 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16817     xxxx="####"
16818     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16819   fi
16820  ;;
16821     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16822   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16823   # are listed without --file.  Let's play safe and only enable the eval
16824   # if we detect the quoting.
16825   case $CONFIG_FILES in
16826   *\'*) eval set x "$CONFIG_FILES" ;;
16827   *)   set x $CONFIG_FILES ;;
16828   esac
16829   shift
16830   for mf
16831   do
16832     # Strip MF so we end up with the name of the file.
16833     mf=`echo "$mf" | sed -e 's/:.*$//'`
16834     # Check whether this is an Automake generated Makefile or not.
16835     # We used to match only the files named 'Makefile.in', but
16836     # some people rename them; so instead we look at the file content.
16837     # Grep'ing the first line is not enough: some people post-process
16838     # each Makefile.in and add a new line on top of each file to say so.
16839     # Grep'ing the whole file is not good either: AIX grep has a line
16840     # limit of 2048, but all sed's we know have understand at least 4000.
16841     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16842       dirpart=`$as_dirname -- "$mf" ||
16843 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16844          X"$mf" : 'X\(//\)[^/]' \| \
16845          X"$mf" : 'X\(//\)$' \| \
16846          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16847 $as_echo X"$mf" |
16848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16849             s//\1/
16850             q
16851           }
16852           /^X\(\/\/\)[^/].*/{
16853             s//\1/
16854             q
16855           }
16856           /^X\(\/\/\)$/{
16857             s//\1/
16858             q
16859           }
16860           /^X\(\/\).*/{
16861             s//\1/
16862             q
16863           }
16864           s/.*/./; q'`
16865     else
16866       continue
16867     fi
16868     # Extract the definition of DEPDIR, am__include, and am__quote
16869     # from the Makefile without running 'make'.
16870     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16871     test -z "$DEPDIR" && continue
16872     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16873     test -z "am__include" && continue
16874     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16875     # Find all dependency output files, they are included files with
16876     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16877     # simplest approach to changing $(DEPDIR) to its actual value in the
16878     # expansion.
16879     for file in `sed -n "
16880       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16881          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16882       # Make sure the directory exists.
16883       test -f "$dirpart/$file" && continue
16884       fdir=`$as_dirname -- "$file" ||
16885 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16886          X"$file" : 'X\(//\)[^/]' \| \
16887          X"$file" : 'X\(//\)$' \| \
16888          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16889 $as_echo X"$file" |
16890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16891             s//\1/
16892             q
16893           }
16894           /^X\(\/\/\)[^/].*/{
16895             s//\1/
16896             q
16897           }
16898           /^X\(\/\/\)$/{
16899             s//\1/
16900             q
16901           }
16902           /^X\(\/\).*/{
16903             s//\1/
16904             q
16905           }
16906           s/.*/./; q'`
16907       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16908       # echo "creating $dirpart/$file"
16909       echo '# dummy' > "$dirpart/$file"
16910     done
16911   done
16912 }
16913  ;;
16914     "libtool":C)
16915
16916     # See if we are running on zsh, and set the options which allow our
16917     # commands through without removal of \ escapes.
16918     if test -n "${ZSH_VERSION+set}" ; then
16919       setopt NO_GLOB_SUBST
16920     fi
16921
16922     cfgfile="${ofile}T"
16923     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16924     $RM "$cfgfile"
16925
16926     cat <<_LT_EOF >> "$cfgfile"
16927 #! $SHELL
16928
16929 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16930 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16931 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16932 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16933 #
16934 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16935 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16936 #                 Foundation, Inc.
16937 #   Written by Gordon Matzigkeit, 1996
16938 #
16939 #   This file is part of GNU Libtool.
16940 #
16941 # GNU Libtool is free software; you can redistribute it and/or
16942 # modify it under the terms of the GNU General Public License as
16943 # published by the Free Software Foundation; either version 2 of
16944 # the License, or (at your option) any later version.
16945 #
16946 # As a special exception to the GNU General Public License,
16947 # if you distribute this file as part of a program or library that
16948 # is built using GNU Libtool, you may include this file under the
16949 # same distribution terms that you use for the rest of that program.
16950 #
16951 # GNU Libtool is distributed in the hope that it will be useful,
16952 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16953 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16954 # GNU General Public License for more details.
16955 #
16956 # You should have received a copy of the GNU General Public License
16957 # along with GNU Libtool; see the file COPYING.  If not, a copy
16958 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16959 # obtained by writing to the Free Software Foundation, Inc.,
16960 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16961
16962
16963 # The names of the tagged configurations supported by this script.
16964 available_tags=""
16965
16966 # ### BEGIN LIBTOOL CONFIG
16967
16968 # Which release of libtool.m4 was used?
16969 macro_version=$macro_version
16970 macro_revision=$macro_revision
16971
16972 # Whether or not to build shared libraries.
16973 build_libtool_libs=$enable_shared
16974
16975 # Whether or not to build static libraries.
16976 build_old_libs=$enable_static
16977
16978 # What type of objects to build.
16979 pic_mode=$pic_mode
16980
16981 # Whether or not to optimize for fast installation.
16982 fast_install=$enable_fast_install
16983
16984 # Shell to use when invoking shell scripts.
16985 SHELL=$lt_SHELL
16986
16987 # An echo program that protects backslashes.
16988 ECHO=$lt_ECHO
16989
16990 # The PATH separator for the build system.
16991 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16992
16993 # The host system.
16994 host_alias=$host_alias
16995 host=$host
16996 host_os=$host_os
16997
16998 # The build system.
16999 build_alias=$build_alias
17000 build=$build
17001 build_os=$build_os
17002
17003 # A sed program that does not truncate output.
17004 SED=$lt_SED
17005
17006 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17007 Xsed="\$SED -e 1s/^X//"
17008
17009 # A grep program that handles long lines.
17010 GREP=$lt_GREP
17011
17012 # An ERE matcher.
17013 EGREP=$lt_EGREP
17014
17015 # A literal string matcher.
17016 FGREP=$lt_FGREP
17017
17018 # A BSD- or MS-compatible name lister.
17019 NM=$lt_NM
17020
17021 # Whether we need soft or hard links.
17022 LN_S=$lt_LN_S
17023
17024 # What is the maximum length of a command?
17025 max_cmd_len=$max_cmd_len
17026
17027 # Object file suffix (normally "o").
17028 objext=$ac_objext
17029
17030 # Executable file suffix (normally "").
17031 exeext=$exeext
17032
17033 # whether the shell understands "unset".
17034 lt_unset=$lt_unset
17035
17036 # turn spaces into newlines.
17037 SP2NL=$lt_lt_SP2NL
17038
17039 # turn newlines into spaces.
17040 NL2SP=$lt_lt_NL2SP
17041
17042 # convert \$build file names to \$host format.
17043 to_host_file_cmd=$lt_cv_to_host_file_cmd
17044
17045 # convert \$build files to toolchain format.
17046 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17047
17048 # An object symbol dumper.
17049 OBJDUMP=$lt_OBJDUMP
17050
17051 # Method to check whether dependent libraries are shared objects.
17052 deplibs_check_method=$lt_deplibs_check_method
17053
17054 # Command to use when deplibs_check_method = "file_magic".
17055 file_magic_cmd=$lt_file_magic_cmd
17056
17057 # How to find potential files when deplibs_check_method = "file_magic".
17058 file_magic_glob=$lt_file_magic_glob
17059
17060 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17061 want_nocaseglob=$lt_want_nocaseglob
17062
17063 # DLL creation program.
17064 DLLTOOL=$lt_DLLTOOL
17065
17066 # Command to associate shared and link libraries.
17067 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17068
17069 # The archiver.
17070 AR=$lt_AR
17071
17072 # Flags to create an archive.
17073 AR_FLAGS=$lt_AR_FLAGS
17074
17075 # How to feed a file listing to the archiver.
17076 archiver_list_spec=$lt_archiver_list_spec
17077
17078 # A symbol stripping program.
17079 STRIP=$lt_STRIP
17080
17081 # Commands used to install an old-style archive.
17082 RANLIB=$lt_RANLIB
17083 old_postinstall_cmds=$lt_old_postinstall_cmds
17084 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17085
17086 # Whether to use a lock for old archive extraction.
17087 lock_old_archive_extraction=$lock_old_archive_extraction
17088
17089 # A C compiler.
17090 LTCC=$lt_CC
17091
17092 # LTCC compiler flags.
17093 LTCFLAGS=$lt_CFLAGS
17094
17095 # Take the output of nm and produce a listing of raw symbols and C names.
17096 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17097
17098 # Transform the output of nm in a proper C declaration.
17099 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17100
17101 # Transform the output of nm in a C name address pair.
17102 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17103
17104 # Transform the output of nm in a C name address pair when lib prefix is needed.
17105 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17106
17107 # Specify filename containing input files for \$NM.
17108 nm_file_list_spec=$lt_nm_file_list_spec
17109
17110 # The root where to search for dependent libraries,and in which our libraries should be installed.
17111 lt_sysroot=$lt_sysroot
17112
17113 # The name of the directory that contains temporary libtool files.
17114 objdir=$objdir
17115
17116 # Used to examine libraries when file_magic_cmd begins with "file".
17117 MAGIC_CMD=$MAGIC_CMD
17118
17119 # Must we lock files when doing compilation?
17120 need_locks=$lt_need_locks
17121
17122 # Manifest tool.
17123 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17124
17125 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17126 DSYMUTIL=$lt_DSYMUTIL
17127
17128 # Tool to change global to local symbols on Mac OS X.
17129 NMEDIT=$lt_NMEDIT
17130
17131 # Tool to manipulate fat objects and archives on Mac OS X.
17132 LIPO=$lt_LIPO
17133
17134 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17135 OTOOL=$lt_OTOOL
17136
17137 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17138 OTOOL64=$lt_OTOOL64
17139
17140 # Old archive suffix (normally "a").
17141 libext=$libext
17142
17143 # Shared library suffix (normally ".so").
17144 shrext_cmds=$lt_shrext_cmds
17145
17146 # The commands to extract the exported symbol list from a shared archive.
17147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17148
17149 # Variables whose values should be saved in libtool wrapper scripts and
17150 # restored at link time.
17151 variables_saved_for_relink=$lt_variables_saved_for_relink
17152
17153 # Do we need the "lib" prefix for modules?
17154 need_lib_prefix=$need_lib_prefix
17155
17156 # Do we need a version for libraries?
17157 need_version=$need_version
17158
17159 # Library versioning type.
17160 version_type=$version_type
17161
17162 # Shared library runtime path variable.
17163 runpath_var=$runpath_var
17164
17165 # Shared library path variable.
17166 shlibpath_var=$shlibpath_var
17167
17168 # Is shlibpath searched before the hard-coded library search path?
17169 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17170
17171 # Format of library name prefix.
17172 libname_spec=$lt_libname_spec
17173
17174 # List of archive names.  First name is the real one, the rest are links.
17175 # The last name is the one that the linker finds with -lNAME
17176 library_names_spec=$lt_library_names_spec
17177
17178 # The coded name of the library, if different from the real name.
17179 soname_spec=$lt_soname_spec
17180
17181 # Permission mode override for installation of shared libraries.
17182 install_override_mode=$lt_install_override_mode
17183
17184 # Command to use after installation of a shared archive.
17185 postinstall_cmds=$lt_postinstall_cmds
17186
17187 # Command to use after uninstallation of a shared archive.
17188 postuninstall_cmds=$lt_postuninstall_cmds
17189
17190 # Commands used to finish a libtool library installation in a directory.
17191 finish_cmds=$lt_finish_cmds
17192
17193 # As "finish_cmds", except a single script fragment to be evaled but
17194 # not shown.
17195 finish_eval=$lt_finish_eval
17196
17197 # Whether we should hardcode library paths into libraries.
17198 hardcode_into_libs=$hardcode_into_libs
17199
17200 # Compile-time system search path for libraries.
17201 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17202
17203 # Run-time system search path for libraries.
17204 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17205
17206 # Whether dlopen is supported.
17207 dlopen_support=$enable_dlopen
17208
17209 # Whether dlopen of programs is supported.
17210 dlopen_self=$enable_dlopen_self
17211
17212 # Whether dlopen of statically linked programs is supported.
17213 dlopen_self_static=$enable_dlopen_self_static
17214
17215 # Commands to strip libraries.
17216 old_striplib=$lt_old_striplib
17217 striplib=$lt_striplib
17218
17219
17220 # The linker used to build libraries.
17221 LD=$lt_LD
17222
17223 # How to create reloadable object files.
17224 reload_flag=$lt_reload_flag
17225 reload_cmds=$lt_reload_cmds
17226
17227 # Commands used to build an old-style archive.
17228 old_archive_cmds=$lt_old_archive_cmds
17229
17230 # A language specific compiler.
17231 CC=$lt_compiler
17232
17233 # Is the compiler the GNU compiler?
17234 with_gcc=$GCC
17235
17236 # Compiler flag to turn off builtin functions.
17237 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17238
17239 # Additional compiler flags for building library objects.
17240 pic_flag=$lt_lt_prog_compiler_pic
17241
17242 # How to pass a linker flag through the compiler.
17243 wl=$lt_lt_prog_compiler_wl
17244
17245 # Compiler flag to prevent dynamic linking.
17246 link_static_flag=$lt_lt_prog_compiler_static
17247
17248 # Does compiler simultaneously support -c and -o options?
17249 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17250
17251 # Whether or not to add -lc for building shared libraries.
17252 build_libtool_need_lc=$archive_cmds_need_lc
17253
17254 # Whether or not to disallow shared libs when runtime libs are static.
17255 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17256
17257 # Compiler flag to allow reflexive dlopens.
17258 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17259
17260 # Compiler flag to generate shared objects directly from archives.
17261 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17262
17263 # Whether the compiler copes with passing no objects directly.
17264 compiler_needs_object=$lt_compiler_needs_object
17265
17266 # Create an old-style archive from a shared archive.
17267 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17268
17269 # Create a temporary old-style archive to link instead of a shared archive.
17270 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17271
17272 # Commands used to build a shared archive.
17273 archive_cmds=$lt_archive_cmds
17274 archive_expsym_cmds=$lt_archive_expsym_cmds
17275
17276 # Commands used to build a loadable module if different from building
17277 # a shared archive.
17278 module_cmds=$lt_module_cmds
17279 module_expsym_cmds=$lt_module_expsym_cmds
17280
17281 # Whether we are building with GNU ld or not.
17282 with_gnu_ld=$lt_with_gnu_ld
17283
17284 # Flag that allows shared libraries with undefined symbols to be built.
17285 allow_undefined_flag=$lt_allow_undefined_flag
17286
17287 # Flag that enforces no undefined symbols.
17288 no_undefined_flag=$lt_no_undefined_flag
17289
17290 # Flag to hardcode \$libdir into a binary during linking.
17291 # This must work even if \$libdir does not exist
17292 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17293
17294 # Whether we need a single "-rpath" flag with a separated argument.
17295 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17296
17297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17298 # DIR into the resulting binary.
17299 hardcode_direct=$hardcode_direct
17300
17301 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17302 # DIR into the resulting binary and the resulting library dependency is
17303 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17304 # library is relocated.
17305 hardcode_direct_absolute=$hardcode_direct_absolute
17306
17307 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17308 # into the resulting binary.
17309 hardcode_minus_L=$hardcode_minus_L
17310
17311 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17312 # into the resulting binary.
17313 hardcode_shlibpath_var=$hardcode_shlibpath_var
17314
17315 # Set to "yes" if building a shared library automatically hardcodes DIR
17316 # into the library and all subsequent libraries and executables linked
17317 # against it.
17318 hardcode_automatic=$hardcode_automatic
17319
17320 # Set to yes if linker adds runtime paths of dependent libraries
17321 # to runtime path list.
17322 inherit_rpath=$inherit_rpath
17323
17324 # Whether libtool must link a program against all its dependency libraries.
17325 link_all_deplibs=$link_all_deplibs
17326
17327 # Set to "yes" if exported symbols are required.
17328 always_export_symbols=$always_export_symbols
17329
17330 # The commands to list exported symbols.
17331 export_symbols_cmds=$lt_export_symbols_cmds
17332
17333 # Symbols that should not be listed in the preloaded symbols.
17334 exclude_expsyms=$lt_exclude_expsyms
17335
17336 # Symbols that must always be exported.
17337 include_expsyms=$lt_include_expsyms
17338
17339 # Commands necessary for linking programs (against libraries) with templates.
17340 prelink_cmds=$lt_prelink_cmds
17341
17342 # Commands necessary for finishing linking programs.
17343 postlink_cmds=$lt_postlink_cmds
17344
17345 # Specify filename containing input files.
17346 file_list_spec=$lt_file_list_spec
17347
17348 # How to hardcode a shared library path into an executable.
17349 hardcode_action=$hardcode_action
17350
17351 # ### END LIBTOOL CONFIG
17352
17353 _LT_EOF
17354
17355   case $host_os in
17356   aix3*)
17357     cat <<\_LT_EOF >> "$cfgfile"
17358 # AIX sometimes has problems with the GCC collect2 program.  For some
17359 # reason, if we set the COLLECT_NAMES environment variable, the problems
17360 # vanish in a puff of smoke.
17361 if test "X${COLLECT_NAMES+set}" != Xset; then
17362   COLLECT_NAMES=
17363   export COLLECT_NAMES
17364 fi
17365 _LT_EOF
17366     ;;
17367   esac
17368
17369
17370 ltmain="$ac_aux_dir/ltmain.sh"
17371
17372
17373   # We use sed instead of cat because bash on DJGPP gets confused if
17374   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17375   # text mode, it properly converts lines to CR/LF.  This bash problem
17376   # is reportedly fixed, but why not run on old versions too?
17377   sed '$q' "$ltmain" >> "$cfgfile" \
17378      || (rm -f "$cfgfile"; exit 1)
17379
17380   if test x"$xsi_shell" = xyes; then
17381   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17382 func_dirname ()\
17383 {\
17384 \    case ${1} in\
17385 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17386 \      *  ) func_dirname_result="${3}" ;;\
17387 \    esac\
17388 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17389   && mv -f "$cfgfile.tmp" "$cfgfile" \
17390     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17391 test 0 -eq $? || _lt_function_replace_fail=:
17392
17393
17394   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17395 func_basename ()\
17396 {\
17397 \    func_basename_result="${1##*/}"\
17398 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17399   && mv -f "$cfgfile.tmp" "$cfgfile" \
17400     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17401 test 0 -eq $? || _lt_function_replace_fail=:
17402
17403
17404   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17405 func_dirname_and_basename ()\
17406 {\
17407 \    case ${1} in\
17408 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17409 \      *  ) func_dirname_result="${3}" ;;\
17410 \    esac\
17411 \    func_basename_result="${1##*/}"\
17412 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17413   && mv -f "$cfgfile.tmp" "$cfgfile" \
17414     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17415 test 0 -eq $? || _lt_function_replace_fail=:
17416
17417
17418   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17419 func_stripname ()\
17420 {\
17421 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17422 \    # positional parameters, so assign one to ordinary parameter first.\
17423 \    func_stripname_result=${3}\
17424 \    func_stripname_result=${func_stripname_result#"${1}"}\
17425 \    func_stripname_result=${func_stripname_result%"${2}"}\
17426 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17427   && mv -f "$cfgfile.tmp" "$cfgfile" \
17428     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17429 test 0 -eq $? || _lt_function_replace_fail=:
17430
17431
17432   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17433 func_split_long_opt ()\
17434 {\
17435 \    func_split_long_opt_name=${1%%=*}\
17436 \    func_split_long_opt_arg=${1#*=}\
17437 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17438   && mv -f "$cfgfile.tmp" "$cfgfile" \
17439     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17440 test 0 -eq $? || _lt_function_replace_fail=:
17441
17442
17443   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17444 func_split_short_opt ()\
17445 {\
17446 \    func_split_short_opt_arg=${1#??}\
17447 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17448 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17449   && mv -f "$cfgfile.tmp" "$cfgfile" \
17450     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17451 test 0 -eq $? || _lt_function_replace_fail=:
17452
17453
17454   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17455 func_lo2o ()\
17456 {\
17457 \    case ${1} in\
17458 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17459 \      *)    func_lo2o_result=${1} ;;\
17460 \    esac\
17461 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17462   && mv -f "$cfgfile.tmp" "$cfgfile" \
17463     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17464 test 0 -eq $? || _lt_function_replace_fail=:
17465
17466
17467   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17468 func_xform ()\
17469 {\
17470     func_xform_result=${1%.*}.lo\
17471 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17472   && mv -f "$cfgfile.tmp" "$cfgfile" \
17473     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17474 test 0 -eq $? || _lt_function_replace_fail=:
17475
17476
17477   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17478 func_arith ()\
17479 {\
17480     func_arith_result=$(( $* ))\
17481 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17482   && mv -f "$cfgfile.tmp" "$cfgfile" \
17483     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17484 test 0 -eq $? || _lt_function_replace_fail=:
17485
17486
17487   sed -e '/^func_len ()$/,/^} # func_len /c\
17488 func_len ()\
17489 {\
17490     func_len_result=${#1}\
17491 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17492   && mv -f "$cfgfile.tmp" "$cfgfile" \
17493     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17494 test 0 -eq $? || _lt_function_replace_fail=:
17495
17496 fi
17497
17498 if test x"$lt_shell_append" = xyes; then
17499   sed -e '/^func_append ()$/,/^} # func_append /c\
17500 func_append ()\
17501 {\
17502     eval "${1}+=\\${2}"\
17503 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17504   && mv -f "$cfgfile.tmp" "$cfgfile" \
17505     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17506 test 0 -eq $? || _lt_function_replace_fail=:
17507
17508
17509   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17510 func_append_quoted ()\
17511 {\
17512 \    func_quote_for_eval "${2}"\
17513 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17514 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17515   && mv -f "$cfgfile.tmp" "$cfgfile" \
17516     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17517 test 0 -eq $? || _lt_function_replace_fail=:
17518
17519
17520   # Save a `func_append' function call where possible by direct use of '+='
17521   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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 else
17526   # Save a `func_append' function call even when '+=' is not available
17527   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17528     && mv -f "$cfgfile.tmp" "$cfgfile" \
17529       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17530   test 0 -eq $? || _lt_function_replace_fail=:
17531 fi
17532
17533 if test x"$_lt_function_replace_fail" = x":"; then
17534   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17535 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17536 fi
17537
17538
17539    mv -f "$cfgfile" "$ofile" ||
17540     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17541   chmod +x "$ofile"
17542
17543  ;;
17544     "include":C) test -d include || mkdir include ;;
17545     "src":C)
17546 test -d src || mkdir src
17547 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17548  ;;
17549
17550   esac
17551 done # for ac_tag
17552
17553
17554 as_fn_exit 0
17555 _ACEOF
17556 ac_clean_files=$ac_clean_files_save
17557
17558 test $ac_write_fail = 0 ||
17559   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17560
17561
17562 # configure is writing to config.log, and then calls config.status.
17563 # config.status does its own redirection, appending to config.log.
17564 # Unfortunately, on DOS this fails, as config.log is still kept open
17565 # by configure, so config.status won't be able to write to it; its
17566 # output is simply discarded.  So we exec the FD to /dev/null,
17567 # effectively closing config.log, so it can be properly (re)opened and
17568 # appended to by config.status.  When coming back to configure, we
17569 # need to make the FD available again.
17570 if test "$no_create" != yes; then
17571   ac_cs_success=:
17572   ac_config_status_args=
17573   test "$silent" = yes &&
17574     ac_config_status_args="$ac_config_status_args --quiet"
17575   exec 5>/dev/null
17576   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17577   exec 5>>config.log
17578   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17579   # would make configure fail if this is the last instruction.
17580   $ac_cs_success || as_fn_exit 1
17581 fi
17582 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17583   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17584 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17585 fi
17586