Add moxie support. Release 3.0.12.
[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.12.
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.12'
594 PACKAGE_STRING='libffi 3.0.12'
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 MICROBLAZE_FALSE
689 MICROBLAZE_TRUE
690 M68K_FALSE
691 M68K_TRUE
692 M32R_FALSE
693 M32R_TRUE
694 IA64_FALSE
695 IA64_TRUE
696 ALPHA_FALSE
697 ALPHA_TRUE
698 X86_DARWIN_FALSE
699 X86_DARWIN_TRUE
700 X86_WIN64_FALSE
701 X86_WIN64_TRUE
702 X86_WIN32_FALSE
703 X86_WIN32_TRUE
704 X86_FREEBSD_FALSE
705 X86_FREEBSD_TRUE
706 X86_FALSE
707 X86_TRUE
708 SPARC_FALSE
709 SPARC_TRUE
710 BFIN_FALSE
711 BFIN_TRUE
712 MIPS_FALSE
713 MIPS_TRUE
714 AM_LTLDFLAGS
715 AM_RUNTESTFLAGS
716 TESTSUBDIR_FALSE
717 TESTSUBDIR_TRUE
718 MAINT
719 MAINTAINER_MODE_FALSE
720 MAINTAINER_MODE_TRUE
721 PRTDIAG
722 CPP
723 OTOOL64
724 OTOOL
725 LIPO
726 NMEDIT
727 DSYMUTIL
728 MANIFEST_TOOL
729 RANLIB
730 ac_ct_AR
731 AR
732 DLLTOOL
733 OBJDUMP
734 LN_S
735 NM
736 ac_ct_DUMPBIN
737 DUMPBIN
738 LD
739 FGREP
740 EGREP
741 GREP
742 SED
743 LIBTOOL
744 am__fastdepCCAS_FALSE
745 am__fastdepCCAS_TRUE
746 CCASDEPMODE
747 CCASFLAGS
748 CCAS
749 am__fastdepCC_FALSE
750 am__fastdepCC_TRUE
751 CCDEPMODE
752 am__nodep
753 AMDEPBACKSLASH
754 AMDEP_FALSE
755 AMDEP_TRUE
756 am__quote
757 am__include
758 DEPDIR
759 OBJEXT
760 EXEEXT
761 ac_ct_CC
762 CPPFLAGS
763 LDFLAGS
764 CFLAGS
765 CC
766 am__untar
767 am__tar
768 AMTAR
769 am__leading_dot
770 SET_MAKE
771 AWK
772 mkdir_p
773 MKDIR_P
774 INSTALL_STRIP_PROGRAM
775 STRIP
776 install_sh
777 MAKEINFO
778 AUTOHEADER
779 AUTOMAKE
780 AUTOCONF
781 ACLOCAL
782 VERSION
783 PACKAGE
784 CYGPATH_W
785 am__isrc
786 INSTALL_DATA
787 INSTALL_SCRIPT
788 INSTALL_PROGRAM
789 ax_enable_builddir_sed
790 target_os
791 target_vendor
792 target_cpu
793 target
794 host_os
795 host_vendor
796 host_cpu
797 host
798 build_os
799 build_vendor
800 build_cpu
801 build
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 enable_builddir
844 enable_dependency_tracking
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 with_gnu_ld
850 with_sysroot
851 enable_libtool_lock
852 enable_portable_binary
853 with_gcc_arch
854 enable_maintainer_mode
855 enable_pax_emutramp
856 enable_debug
857 enable_structs
858 enable_raw_api
859 enable_purify_safety
860 '
861       ac_precious_vars='build_alias
862 host_alias
863 target_alias
864 CCAS
865 CCASFLAGS
866 CPP
867 CPPFLAGS'
868
869
870 # Initialize some variables set by options.
871 ac_init_help=
872 ac_init_version=false
873 ac_unrecognized_opts=
874 ac_unrecognized_sep=
875 # The variables have the same names as the options, with
876 # dashes changed to underlines.
877 cache_file=/dev/null
878 exec_prefix=NONE
879 no_create=
880 no_recursion=
881 prefix=NONE
882 program_prefix=NONE
883 program_suffix=NONE
884 program_transform_name=s,x,x,
885 silent=
886 site=
887 srcdir=
888 verbose=
889 x_includes=NONE
890 x_libraries=NONE
891
892 # Installation directory options.
893 # These are left unexpanded so users can "make install exec_prefix=/foo"
894 # and all the variables that are supposed to be based on exec_prefix
895 # by default will actually change.
896 # Use braces instead of parens because sh, perl, etc. also accept them.
897 # (The list follows the same order as the GNU Coding Standards.)
898 bindir='${exec_prefix}/bin'
899 sbindir='${exec_prefix}/sbin'
900 libexecdir='${exec_prefix}/libexec'
901 datarootdir='${prefix}/share'
902 datadir='${datarootdir}'
903 sysconfdir='${prefix}/etc'
904 sharedstatedir='${prefix}/com'
905 localstatedir='${prefix}/var'
906 includedir='${prefix}/include'
907 oldincludedir='/usr/include'
908 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909 infodir='${datarootdir}/info'
910 htmldir='${docdir}'
911 dvidir='${docdir}'
912 pdfdir='${docdir}'
913 psdir='${docdir}'
914 libdir='${exec_prefix}/lib'
915 localedir='${datarootdir}/locale'
916 mandir='${datarootdir}/man'
917
918 ac_prev=
919 ac_dashdash=
920 for ac_option
921 do
922   # If the previous option needs an argument, assign it.
923   if test -n "$ac_prev"; then
924     eval $ac_prev=\$ac_option
925     ac_prev=
926     continue
927   fi
928
929   case $ac_option in
930   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931   *=)   ac_optarg= ;;
932   *)    ac_optarg=yes ;;
933   esac
934
935   # Accept the important Cygnus configure options, so we can diagnose typos.
936
937   case $ac_dashdash$ac_option in
938   --)
939     ac_dashdash=yes ;;
940
941   -bindir | --bindir | --bindi | --bind | --bin | --bi)
942     ac_prev=bindir ;;
943   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944     bindir=$ac_optarg ;;
945
946   -build | --build | --buil | --bui | --bu)
947     ac_prev=build_alias ;;
948   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949     build_alias=$ac_optarg ;;
950
951   -cache-file | --cache-file | --cache-fil | --cache-fi \
952   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953     ac_prev=cache_file ;;
954   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956     cache_file=$ac_optarg ;;
957
958   --config-cache | -C)
959     cache_file=config.cache ;;
960
961   -datadir | --datadir | --datadi | --datad)
962     ac_prev=datadir ;;
963   -datadir=* | --datadir=* | --datadi=* | --datad=*)
964     datadir=$ac_optarg ;;
965
966   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967   | --dataroo | --dataro | --datar)
968     ac_prev=datarootdir ;;
969   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971     datarootdir=$ac_optarg ;;
972
973   -disable-* | --disable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=no ;;
988
989   -docdir | --docdir | --docdi | --doc | --do)
990     ac_prev=docdir ;;
991   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992     docdir=$ac_optarg ;;
993
994   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995     ac_prev=dvidir ;;
996   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997     dvidir=$ac_optarg ;;
998
999   -enable-* | --enable-*)
1000     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001     # Reject names that are not valid shell variable names.
1002     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003       as_fn_error $? "invalid feature name: $ac_useropt"
1004     ac_useropt_orig=$ac_useropt
1005     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006     case $ac_user_opts in
1007       *"
1008 "enable_$ac_useropt"
1009 "*) ;;
1010       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011          ac_unrecognized_sep=', ';;
1012     esac
1013     eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017   | --exec | --exe | --ex)
1018     ac_prev=exec_prefix ;;
1019   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021   | --exec=* | --exe=* | --ex=*)
1022     exec_prefix=$ac_optarg ;;
1023
1024   -gas | --gas | --ga | --g)
1025     # Obsolete; use --with-gas.
1026     with_gas=yes ;;
1027
1028   -help | --help | --hel | --he | -h)
1029     ac_init_help=long ;;
1030   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031     ac_init_help=recursive ;;
1032   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033     ac_init_help=short ;;
1034
1035   -host | --host | --hos | --ho)
1036     ac_prev=host_alias ;;
1037   -host=* | --host=* | --hos=* | --ho=*)
1038     host_alias=$ac_optarg ;;
1039
1040   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041     ac_prev=htmldir ;;
1042   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043   | --ht=*)
1044     htmldir=$ac_optarg ;;
1045
1046   -includedir | --includedir | --includedi | --included | --include \
1047   | --includ | --inclu | --incl | --inc)
1048     ac_prev=includedir ;;
1049   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050   | --includ=* | --inclu=* | --incl=* | --inc=*)
1051     includedir=$ac_optarg ;;
1052
1053   -infodir | --infodir | --infodi | --infod | --info | --inf)
1054     ac_prev=infodir ;;
1055   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056     infodir=$ac_optarg ;;
1057
1058   -libdir | --libdir | --libdi | --libd)
1059     ac_prev=libdir ;;
1060   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061     libdir=$ac_optarg ;;
1062
1063   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064   | --libexe | --libex | --libe)
1065     ac_prev=libexecdir ;;
1066   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067   | --libexe=* | --libex=* | --libe=*)
1068     libexecdir=$ac_optarg ;;
1069
1070   -localedir | --localedir | --localedi | --localed | --locale)
1071     ac_prev=localedir ;;
1072   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073     localedir=$ac_optarg ;;
1074
1075   -localstatedir | --localstatedir | --localstatedi | --localstated \
1076   | --localstate | --localstat | --localsta | --localst | --locals)
1077     ac_prev=localstatedir ;;
1078   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080     localstatedir=$ac_optarg ;;
1081
1082   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083     ac_prev=mandir ;;
1084   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085     mandir=$ac_optarg ;;
1086
1087   -nfp | --nfp | --nf)
1088     # Obsolete; use --without-fp.
1089     with_fp=no ;;
1090
1091   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092   | --no-cr | --no-c | -n)
1093     no_create=yes ;;
1094
1095   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097     no_recursion=yes ;;
1098
1099   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101   | --oldin | --oldi | --old | --ol | --o)
1102     ac_prev=oldincludedir ;;
1103   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106     oldincludedir=$ac_optarg ;;
1107
1108   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109     ac_prev=prefix ;;
1110   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111     prefix=$ac_optarg ;;
1112
1113   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114   | --program-pre | --program-pr | --program-p)
1115     ac_prev=program_prefix ;;
1116   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118     program_prefix=$ac_optarg ;;
1119
1120   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121   | --program-suf | --program-su | --program-s)
1122     ac_prev=program_suffix ;;
1123   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125     program_suffix=$ac_optarg ;;
1126
1127   -program-transform-name | --program-transform-name \
1128   | --program-transform-nam | --program-transform-na \
1129   | --program-transform-n | --program-transform- \
1130   | --program-transform | --program-transfor \
1131   | --program-transfo | --program-transf \
1132   | --program-trans | --program-tran \
1133   | --progr-tra | --program-tr | --program-t)
1134     ac_prev=program_transform_name ;;
1135   -program-transform-name=* | --program-transform-name=* \
1136   | --program-transform-nam=* | --program-transform-na=* \
1137   | --program-transform-n=* | --program-transform-=* \
1138   | --program-transform=* | --program-transfor=* \
1139   | --program-transfo=* | --program-transf=* \
1140   | --program-trans=* | --program-tran=* \
1141   | --progr-tra=* | --program-tr=* | --program-t=*)
1142     program_transform_name=$ac_optarg ;;
1143
1144   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145     ac_prev=pdfdir ;;
1146   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147     pdfdir=$ac_optarg ;;
1148
1149   -psdir | --psdir | --psdi | --psd | --ps)
1150     ac_prev=psdir ;;
1151   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152     psdir=$ac_optarg ;;
1153
1154   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155   | -silent | --silent | --silen | --sile | --sil)
1156     silent=yes ;;
1157
1158   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159     ac_prev=sbindir ;;
1160   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161   | --sbi=* | --sb=*)
1162     sbindir=$ac_optarg ;;
1163
1164   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166   | --sharedst | --shareds | --shared | --share | --shar \
1167   | --sha | --sh)
1168     ac_prev=sharedstatedir ;;
1169   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172   | --sha=* | --sh=*)
1173     sharedstatedir=$ac_optarg ;;
1174
1175   -site | --site | --sit)
1176     ac_prev=site ;;
1177   -site=* | --site=* | --sit=*)
1178     site=$ac_optarg ;;
1179
1180   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181     ac_prev=srcdir ;;
1182   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1183     srcdir=$ac_optarg ;;
1184
1185   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186   | --syscon | --sysco | --sysc | --sys | --sy)
1187     ac_prev=sysconfdir ;;
1188   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1190     sysconfdir=$ac_optarg ;;
1191
1192   -target | --target | --targe | --targ | --tar | --ta | --t)
1193     ac_prev=target_alias ;;
1194   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1195     target_alias=$ac_optarg ;;
1196
1197   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198     verbose=yes ;;
1199
1200   -version | --version | --versio | --versi | --vers | -V)
1201     ac_init_version=: ;;
1202
1203   -with-* | --with-*)
1204     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1205     # Reject names that are not valid shell variable names.
1206     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207       as_fn_error $? "invalid package name: $ac_useropt"
1208     ac_useropt_orig=$ac_useropt
1209     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1210     case $ac_user_opts in
1211       *"
1212 "with_$ac_useropt"
1213 "*) ;;
1214       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1215          ac_unrecognized_sep=', ';;
1216     esac
1217     eval with_$ac_useropt=\$ac_optarg ;;
1218
1219   -without-* | --without-*)
1220     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1221     # Reject names that are not valid shell variable names.
1222     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223       as_fn_error $? "invalid package name: $ac_useropt"
1224     ac_useropt_orig=$ac_useropt
1225     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226     case $ac_user_opts in
1227       *"
1228 "with_$ac_useropt"
1229 "*) ;;
1230       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231          ac_unrecognized_sep=', ';;
1232     esac
1233     eval with_$ac_useropt=no ;;
1234
1235   --x)
1236     # Obsolete; use --with-x.
1237     with_x=yes ;;
1238
1239   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240   | --x-incl | --x-inc | --x-in | --x-i)
1241     ac_prev=x_includes ;;
1242   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1244     x_includes=$ac_optarg ;;
1245
1246   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248     ac_prev=x_libraries ;;
1249   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1251     x_libraries=$ac_optarg ;;
1252
1253   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1254 Try \`$0 --help' for more information"
1255     ;;
1256
1257   *=*)
1258     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1259     # Reject names that are not valid shell variable names.
1260     case $ac_envvar in #(
1261       '' | [0-9]* | *[!_$as_cr_alnum]* )
1262       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1263     esac
1264     eval $ac_envvar=\$ac_optarg
1265     export $ac_envvar ;;
1266
1267   *)
1268     # FIXME: should be removed in autoconf 3.0.
1269     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1270     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1272     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1273     ;;
1274
1275   esac
1276 done
1277
1278 if test -n "$ac_prev"; then
1279   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1280   as_fn_error $? "missing argument to $ac_option"
1281 fi
1282
1283 if test -n "$ac_unrecognized_opts"; then
1284   case $enable_option_checking in
1285     no) ;;
1286     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1287     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1288   esac
1289 fi
1290
1291 # Check all directory arguments for consistency.
1292 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293                 datadir sysconfdir sharedstatedir localstatedir includedir \
1294                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295                 libdir localedir mandir
1296 do
1297   eval ac_val=\$$ac_var
1298   # Remove trailing slashes.
1299   case $ac_val in
1300     */ )
1301       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1302       eval $ac_var=\$ac_val;;
1303   esac
1304   # Be sure to have absolute directory names.
1305   case $ac_val in
1306     [\\/$]* | ?:[\\/]* )  continue;;
1307     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1308   esac
1309   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1310 done
1311
1312 # There might be people who depend on the old broken behavior: `$host'
1313 # used to hold the argument of --host etc.
1314 # FIXME: To remove some day.
1315 build=$build_alias
1316 host=$host_alias
1317 target=$target_alias
1318
1319 # FIXME: To remove some day.
1320 if test "x$host_alias" != x; then
1321   if test "x$build_alias" = x; then
1322     cross_compiling=maybe
1323   elif test "x$build_alias" != "x$host_alias"; then
1324     cross_compiling=yes
1325   fi
1326 fi
1327
1328 ac_tool_prefix=
1329 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330
1331 test "$silent" = yes && exec 6>/dev/null
1332
1333
1334 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1335 ac_ls_di=`ls -di .` &&
1336 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1337   as_fn_error $? "working directory cannot be determined"
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339   as_fn_error $? "pwd does not report name of working directory"
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344   ac_srcdir_defaulted=yes
1345   # Try the directory containing this script, then the parent directory.
1346   ac_confdir=`$as_dirname -- "$as_myself" ||
1347 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348          X"$as_myself" : 'X\(//\)[^/]' \| \
1349          X"$as_myself" : 'X\(//\)$' \| \
1350          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1351 $as_echo X"$as_myself" |
1352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)[^/].*/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\/\)$/{
1361             s//\1/
1362             q
1363           }
1364           /^X\(\/\).*/{
1365             s//\1/
1366             q
1367           }
1368           s/.*/./; q'`
1369   srcdir=$ac_confdir
1370   if test ! -r "$srcdir/$ac_unique_file"; then
1371     srcdir=..
1372   fi
1373 else
1374   ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1379 fi
1380 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 ac_abs_confdir=`(
1382         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1383         pwd)`
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1386   srcdir=.
1387 fi
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1391 case $srcdir in
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 esac
1394 for ac_var in $ac_precious_vars; do
1395   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_env_${ac_var}_value=\$${ac_var}
1397   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1399 done
1400
1401 #
1402 # Report the --help message.
1403 #
1404 if test "$ac_init_help" = "long"; then
1405   # Omit some internal or obsolete options to make the list less imposing.
1406   # This message is too long to be a string in the A/UX 3.1 sh.
1407   cat <<_ACEOF
1408 \`configure' configures libffi 3.0.12 to adapt to many kinds of systems.
1409
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1411
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE.  See below for descriptions of some of the useful variables.
1414
1415 Defaults for the options are specified in brackets.
1416
1417 Configuration:
1418   -h, --help              display this help and exit
1419       --help=short        display options specific to this package
1420       --help=recursive    display the short help of all the included packages
1421   -V, --version           display version information and exit
1422   -q, --quiet, --silent   do not print \`checking ...' messages
1423       --cache-file=FILE   cache test results in FILE [disabled]
1424   -C, --config-cache      alias for \`--cache-file=config.cache'
1425   -n, --no-create         do not create output files
1426       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1427
1428 Installation directories:
1429   --prefix=PREFIX         install architecture-independent files in PREFIX
1430                           [$ac_default_prefix]
1431   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1432                           [PREFIX]
1433
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1438
1439 For better control, use the options below.
1440
1441 Fine tuning of the installation directories:
1442   --bindir=DIR            user executables [EPREFIX/bin]
1443   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1444   --libexecdir=DIR        program executables [EPREFIX/libexec]
1445   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1446   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1447   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1448   --libdir=DIR            object code libraries [EPREFIX/lib]
1449   --includedir=DIR        C header files [PREFIX/include]
1450   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1451   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1452   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1453   --infodir=DIR           info documentation [DATAROOTDIR/info]
1454   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1455   --mandir=DIR            man documentation [DATAROOTDIR/man]
1456   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1457   --htmldir=DIR           html documentation [DOCDIR]
1458   --dvidir=DIR            dvi documentation [DOCDIR]
1459   --pdfdir=DIR            pdf documentation [DOCDIR]
1460   --psdir=DIR             ps documentation [DOCDIR]
1461 _ACEOF
1462
1463   cat <<\_ACEOF
1464
1465 Program names:
1466   --program-prefix=PREFIX            prepend PREFIX to installed program names
1467   --program-suffix=SUFFIX            append SUFFIX to installed program names
1468   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1469
1470 System types:
1471   --build=BUILD     configure for building on BUILD [guessed]
1472   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1473   --target=TARGET   configure for building compilers for TARGET [HOST]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478   case $ac_init_help in
1479      short | recursive ) echo "Configuration of libffi 3.0.12:";;
1480    esac
1481   cat <<\_ACEOF
1482
1483 Optional Features:
1484   --disable-option-checking  ignore unrecognized --enable/--with options
1485   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1486   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1487   --disable-builddir      disable automatic build in subdir of sources
1488
1489   --enable-dependency-tracking
1490                           do not reject slow dependency extractors
1491   --disable-dependency-tracking
1492                           speeds up one-time build
1493   --enable-shared[=PKGS]  build shared libraries [default=yes]
1494   --enable-static[=PKGS]  build static libraries [default=yes]
1495   --enable-fast-install[=PKGS]
1496                           optimize for fast installation [default=yes]
1497   --disable-libtool-lock  avoid locking (might break parallel builds)
1498   --enable-portable-binary
1499                           disable compiler optimizations that would produce
1500                           unportable binaries
1501   --enable-maintainer-mode
1502                           enable make rules and dependencies not useful (and
1503                           sometimes confusing) to the casual installer
1504   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1505   --enable-debug          debugging mode
1506   --disable-structs       omit code for struct support
1507   --disable-raw-api       make the raw api unavailable
1508   --enable-purify-safety  purify-safe mode
1509
1510 Optional Packages:
1511   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1512   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1513   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1514                           both]
1515   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1516   --with-sysroot=DIR Search for dependent libraries within DIR
1517                         (or the compiler's sysroot if not specified).
1518   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1519                           instead of guessing
1520
1521 Some influential environment variables:
1522   CC          C compiler command
1523   CFLAGS      C compiler flags
1524   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1525               nonstandard directory <lib dir>
1526   LIBS        libraries to pass to the linker, e.g. -l<library>
1527   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1528               you have headers in a nonstandard directory <include dir>
1529   CCAS        assembler compiler command (defaults to CC)
1530   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1531   CPP         C preprocessor
1532
1533 Use these variables to override the choices made by `configure' or to help
1534 it to find libraries and programs with nonstandard names/locations.
1535
1536 Report bugs to <http://github.com/atgreen/libffi/issues>.
1537 _ACEOF
1538 ac_status=$?
1539 fi
1540
1541 if test "$ac_init_help" = "recursive"; then
1542   # If there are subdirs, report their specific --help.
1543   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544     test -d "$ac_dir" ||
1545       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546       continue
1547     ac_builddir=.
1548
1549 case "$ac_dir" in
1550 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 *)
1552   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553   # A ".." for each directory in $ac_dir_suffix.
1554   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555   case $ac_top_builddir_sub in
1556   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558   esac ;;
1559 esac
1560 ac_abs_top_builddir=$ac_pwd
1561 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562 # for backward compatibility:
1563 ac_top_builddir=$ac_top_build_prefix
1564
1565 case $srcdir in
1566   .)  # We are building in place.
1567     ac_srcdir=.
1568     ac_top_srcdir=$ac_top_builddir_sub
1569     ac_abs_top_srcdir=$ac_pwd ;;
1570   [\\/]* | ?:[\\/]* )  # Absolute name.
1571     ac_srcdir=$srcdir$ac_dir_suffix;
1572     ac_top_srcdir=$srcdir
1573     ac_abs_top_srcdir=$srcdir ;;
1574   *) # Relative name.
1575     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576     ac_top_srcdir=$ac_top_build_prefix$srcdir
1577     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 esac
1579 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581     cd "$ac_dir" || { ac_status=$?; continue; }
1582     # Check for guested configure.
1583     if test -f "$ac_srcdir/configure.gnu"; then
1584       echo &&
1585       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586     elif test -f "$ac_srcdir/configure"; then
1587       echo &&
1588       $SHELL "$ac_srcdir/configure" --help=recursive
1589     else
1590       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591     fi || ac_status=$?
1592     cd "$ac_pwd" || { ac_status=$?; break; }
1593   done
1594 fi
1595
1596 test -n "$ac_init_help" && exit $ac_status
1597 if $ac_init_version; then
1598   cat <<\_ACEOF
1599 libffi configure 3.0.12
1600 generated by GNU Autoconf 2.69
1601
1602 Copyright (C) 2012 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1605 _ACEOF
1606   exit
1607 fi
1608
1609 ## ------------------------ ##
1610 ## Autoconf initialization. ##
1611 ## ------------------------ ##
1612
1613 # ac_fn_c_try_compile LINENO
1614 # --------------------------
1615 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1616 ac_fn_c_try_compile ()
1617 {
1618   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619   rm -f conftest.$ac_objext
1620   if { { ac_try="$ac_compile"
1621 case "(($ac_try" in
1622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623   *) ac_try_echo=$ac_try;;
1624 esac
1625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626 $as_echo "$ac_try_echo"; } >&5
1627   (eval "$ac_compile") 2>conftest.err
1628   ac_status=$?
1629   if test -s conftest.err; then
1630     grep -v '^ *+' conftest.err >conftest.er1
1631     cat conftest.er1 >&5
1632     mv -f conftest.er1 conftest.err
1633   fi
1634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635   test $ac_status = 0; } && {
1636          test -z "$ac_c_werror_flag" ||
1637          test ! -s conftest.err
1638        } && test -s conftest.$ac_objext; then :
1639   ac_retval=0
1640 else
1641   $as_echo "$as_me: failed program was:" >&5
1642 sed 's/^/| /' conftest.$ac_ext >&5
1643
1644         ac_retval=1
1645 fi
1646   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647   as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_c_try_link LINENO
1652 # -----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_link ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext conftest$ac_exeext
1658   if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_link") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest$ac_exeext && {
1677          test "$cross_compiling" = yes ||
1678          test -x conftest$ac_exeext
1679        }; then :
1680   ac_retval=0
1681 else
1682   $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1684
1685         ac_retval=1
1686 fi
1687   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1688   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1689   # interfere with the next link command; also delete a directory that is
1690   # left behind by Apple's compiler.  We do this before executing the actions.
1691   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1692   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1693   as_fn_set_status $ac_retval
1694
1695 } # ac_fn_c_try_link
1696
1697 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1698 # -------------------------------------------------------
1699 # Tests whether HEADER exists and can be compiled using the include files in
1700 # INCLUDES, setting the cache variable VAR accordingly.
1701 ac_fn_c_check_header_compile ()
1702 {
1703   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1705 $as_echo_n "checking for $2... " >&6; }
1706 if eval \${$3+:} false; then :
1707   $as_echo_n "(cached) " >&6
1708 else
1709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1710 /* end confdefs.h.  */
1711 $4
1712 #include <$2>
1713 _ACEOF
1714 if ac_fn_c_try_compile "$LINENO"; then :
1715   eval "$3=yes"
1716 else
1717   eval "$3=no"
1718 fi
1719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1720 fi
1721 eval ac_res=\$$3
1722                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726 } # ac_fn_c_check_header_compile
1727
1728 # ac_fn_c_try_cpp LINENO
1729 # ----------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_c_try_cpp ()
1732 {
1733   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734   if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737   *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742   ac_status=$?
1743   if test -s conftest.err; then
1744     grep -v '^ *+' conftest.err >conftest.er1
1745     cat conftest.er1 >&5
1746     mv -f conftest.er1 conftest.err
1747   fi
1748   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749   test $ac_status = 0; } > conftest.i && {
1750          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751          test ! -s conftest.err
1752        }; then :
1753   ac_retval=0
1754 else
1755   $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1757
1758     ac_retval=1
1759 fi
1760   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761   as_fn_set_status $ac_retval
1762
1763 } # ac_fn_c_try_cpp
1764
1765 # ac_fn_c_try_run LINENO
1766 # ----------------------
1767 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1768 # that executables *can* be run.
1769 ac_fn_c_try_run ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_link"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_link") 2>&5
1780   ac_status=$?
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783   { { case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_try") 2>&5
1790   ac_status=$?
1791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792   test $ac_status = 0; }; }; then :
1793   ac_retval=0
1794 else
1795   $as_echo "$as_me: program exited with status $ac_status" >&5
1796        $as_echo "$as_me: failed program was:" >&5
1797 sed 's/^/| /' conftest.$ac_ext >&5
1798
1799        ac_retval=$ac_status
1800 fi
1801   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1803   as_fn_set_status $ac_retval
1804
1805 } # ac_fn_c_try_run
1806
1807 # ac_fn_c_check_func LINENO FUNC VAR
1808 # ----------------------------------
1809 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1810 ac_fn_c_check_func ()
1811 {
1812   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1814 $as_echo_n "checking for $2... " >&6; }
1815 if eval \${$3+:} false; then :
1816   $as_echo_n "(cached) " >&6
1817 else
1818   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h.  */
1820 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1821    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1822 #define $2 innocuous_$2
1823
1824 /* System header to define __stub macros and hopefully few prototypes,
1825     which can conflict with char $2 (); below.
1826     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1827     <limits.h> exists even on freestanding compilers.  */
1828
1829 #ifdef __STDC__
1830 # include <limits.h>
1831 #else
1832 # include <assert.h>
1833 #endif
1834
1835 #undef $2
1836
1837 /* Override any GCC internal prototype to avoid an error.
1838    Use char because int might match the return type of a GCC
1839    builtin and then its argument prototype would still apply.  */
1840 #ifdef __cplusplus
1841 extern "C"
1842 #endif
1843 char $2 ();
1844 /* The GNU C library defines this for functions which it implements
1845     to always fail with ENOSYS.  Some functions are actually named
1846     something starting with __ and the normal name is an alias.  */
1847 #if defined __stub_$2 || defined __stub___$2
1848 choke me
1849 #endif
1850
1851 int
1852 main ()
1853 {
1854 return $2 ();
1855   ;
1856   return 0;
1857 }
1858 _ACEOF
1859 if ac_fn_c_try_link "$LINENO"; then :
1860   eval "$3=yes"
1861 else
1862   eval "$3=no"
1863 fi
1864 rm -f core conftest.err conftest.$ac_objext \
1865     conftest$ac_exeext conftest.$ac_ext
1866 fi
1867 eval ac_res=\$$3
1868                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869 $as_echo "$ac_res" >&6; }
1870   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871
1872 } # ac_fn_c_check_func
1873
1874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1875 # --------------------------------------------
1876 # Tries to find the compile-time value of EXPR in a program that includes
1877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1878 # computed
1879 ac_fn_c_compute_int ()
1880 {
1881   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882   if test "$cross_compiling" = yes; then
1883     # Depending upon the size, compute the lo and hi bounds.
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h.  */
1886 $4
1887 int
1888 main ()
1889 {
1890 static int test_array [1 - 2 * !(($2) >= 0)];
1891 test_array [0] = 0;
1892 return test_array [0];
1893
1894   ;
1895   return 0;
1896 }
1897 _ACEOF
1898 if ac_fn_c_try_compile "$LINENO"; then :
1899   ac_lo=0 ac_mid=0
1900   while :; do
1901     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902 /* end confdefs.h.  */
1903 $4
1904 int
1905 main ()
1906 {
1907 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1908 test_array [0] = 0;
1909 return test_array [0];
1910
1911   ;
1912   return 0;
1913 }
1914 _ACEOF
1915 if ac_fn_c_try_compile "$LINENO"; then :
1916   ac_hi=$ac_mid; break
1917 else
1918   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1919                         if test $ac_lo -le $ac_mid; then
1920                           ac_lo= ac_hi=
1921                           break
1922                         fi
1923                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1924 fi
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926   done
1927 else
1928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h.  */
1930 $4
1931 int
1932 main ()
1933 {
1934 static int test_array [1 - 2 * !(($2) < 0)];
1935 test_array [0] = 0;
1936 return test_array [0];
1937
1938   ;
1939   return 0;
1940 }
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943   ac_hi=-1 ac_mid=-1
1944   while :; do
1945     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h.  */
1947 $4
1948 int
1949 main ()
1950 {
1951 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1952 test_array [0] = 0;
1953 return test_array [0];
1954
1955   ;
1956   return 0;
1957 }
1958 _ACEOF
1959 if ac_fn_c_try_compile "$LINENO"; then :
1960   ac_lo=$ac_mid; break
1961 else
1962   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1963                         if test $ac_mid -le $ac_hi; then
1964                           ac_lo= ac_hi=
1965                           break
1966                         fi
1967                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970   done
1971 else
1972   ac_lo= ac_hi=
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 # Binary search between lo and hi bounds.
1978 while test "x$ac_lo" != "x$ac_hi"; do
1979   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h.  */
1982 $4
1983 int
1984 main ()
1985 {
1986 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1987 test_array [0] = 0;
1988 return test_array [0];
1989
1990   ;
1991   return 0;
1992 }
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995   ac_hi=$ac_mid
1996 else
1997   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1998 fi
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 done
2001 case $ac_lo in #((
2002 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2003 '') ac_retval=1 ;;
2004 esac
2005   else
2006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h.  */
2008 $4
2009 static long int longval () { return $2; }
2010 static unsigned long int ulongval () { return $2; }
2011 #include <stdio.h>
2012 #include <stdlib.h>
2013 int
2014 main ()
2015 {
2016
2017   FILE *f = fopen ("conftest.val", "w");
2018   if (! f)
2019     return 1;
2020   if (($2) < 0)
2021     {
2022       long int i = longval ();
2023       if (i != ($2))
2024         return 1;
2025       fprintf (f, "%ld", i);
2026     }
2027   else
2028     {
2029       unsigned long int i = ulongval ();
2030       if (i != ($2))
2031         return 1;
2032       fprintf (f, "%lu", i);
2033     }
2034   /* Do not output a trailing newline, as this causes \r\n confusion
2035      on some platforms.  */
2036   return ferror (f) || fclose (f) != 0;
2037
2038   ;
2039   return 0;
2040 }
2041 _ACEOF
2042 if ac_fn_c_try_run "$LINENO"; then :
2043   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2044 else
2045   ac_retval=1
2046 fi
2047 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2048   conftest.$ac_objext conftest.beam conftest.$ac_ext
2049 rm -f conftest.val
2050
2051   fi
2052   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053   as_fn_set_status $ac_retval
2054
2055 } # ac_fn_c_compute_int
2056
2057 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2058 # -------------------------------------------------------
2059 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2060 # the include files in INCLUDES and setting the cache variable VAR
2061 # accordingly.
2062 ac_fn_c_check_header_mongrel ()
2063 {
2064   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065   if eval \${$3+:} false; then :
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069   $as_echo_n "(cached) " >&6
2070 fi
2071 eval ac_res=\$$3
2072                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2074 else
2075   # Is the header compilable?
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2077 $as_echo_n "checking $2 usability... " >&6; }
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h.  */
2080 $4
2081 #include <$2>
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   ac_header_compiler=yes
2085 else
2086   ac_header_compiler=no
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2090 $as_echo "$ac_header_compiler" >&6; }
2091
2092 # Is the header present?
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2094 $as_echo_n "checking $2 presence... " >&6; }
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 #include <$2>
2098 _ACEOF
2099 if ac_fn_c_try_cpp "$LINENO"; then :
2100   ac_header_preproc=yes
2101 else
2102   ac_header_preproc=no
2103 fi
2104 rm -f conftest.err conftest.i conftest.$ac_ext
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2106 $as_echo "$ac_header_preproc" >&6; }
2107
2108 # So?  What about this header?
2109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2110   yes:no: )
2111     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2112 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2113     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115     ;;
2116   no:yes:* )
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2118 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2120 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2122 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2124 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2125     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ( $as_echo "## ------------------------------------------------------ ##
2128 ## Report this to http://github.com/atgreen/libffi/issues ##
2129 ## ------------------------------------------------------ ##"
2130      ) | sed "s/^/$as_me: WARNING:     /" >&2
2131     ;;
2132 esac
2133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136   $as_echo_n "(cached) " >&6
2137 else
2138   eval "$3=\$ac_header_compiler"
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 fi
2144   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145
2146 } # ac_fn_c_check_header_mongrel
2147
2148 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2149 # -------------------------------------------
2150 # Tests whether TYPE exists after having included INCLUDES, setting cache
2151 # variable VAR accordingly.
2152 ac_fn_c_check_type ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158   $as_echo_n "(cached) " >&6
2159 else
2160   eval "$3=no"
2161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h.  */
2163 $4
2164 int
2165 main ()
2166 {
2167 if (sizeof ($2))
2168          return 0;
2169   ;
2170   return 0;
2171 }
2172 _ACEOF
2173 if ac_fn_c_try_compile "$LINENO"; then :
2174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175 /* end confdefs.h.  */
2176 $4
2177 int
2178 main ()
2179 {
2180 if (sizeof (($2)))
2181             return 0;
2182   ;
2183   return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187
2188 else
2189   eval "$3=yes"
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 fi
2193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 fi
2195 eval ac_res=\$$3
2196                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2197 $as_echo "$ac_res" >&6; }
2198   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200 } # ac_fn_c_check_type
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by libffi $as_me 3.0.12, which was
2206 generated by GNU Autoconf 2.69.  Invocation command line was
2207
2208   $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2226
2227 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2228 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2231 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2232 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2233 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242     $as_echo "PATH: $as_dir"
2243   done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269   for ac_arg
2270   do
2271     case $ac_arg in
2272     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274     | -silent | --silent | --silen | --sile | --sil)
2275       continue ;;
2276     *\'*)
2277       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278     esac
2279     case $ac_pass in
2280     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281     2)
2282       as_fn_append ac_configure_args1 " '$ac_arg'"
2283       if test $ac_must_keep_next = true; then
2284         ac_must_keep_next=false # Got value, back to normal.
2285       else
2286         case $ac_arg in
2287           *=* | --config-cache | -C | -disable-* | --disable-* \
2288           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290           | -with-* | --with-* | -without-* | --without-* | --x)
2291             case "$ac_configure_args0 " in
2292               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293             esac
2294             ;;
2295           -* ) ac_must_keep_next=true ;;
2296         esac
2297       fi
2298       as_fn_append ac_configure_args " '$ac_arg'"
2299       ;;
2300     esac
2301   done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log.  We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312   # Save into config.log some information that might help in debugging.
2313   {
2314     echo
2315
2316     $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2319     echo
2320     # The following way of writing the cache mishandles newlines in values,
2321 (
2322   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323     eval ac_val=\$$ac_var
2324     case $ac_val in #(
2325     *${as_nl}*)
2326       case $ac_var in #(
2327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329       esac
2330       case $ac_var in #(
2331       _ | IFS | as_nl) ;; #(
2332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333       *) { eval $ac_var=; unset $ac_var;} ;;
2334       esac ;;
2335     esac
2336   done
2337   (set) 2>&1 |
2338     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339     *${as_nl}ac_space=\ *)
2340       sed -n \
2341         "s/'\''/'\''\\\\'\'''\''/g;
2342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343       ;; #(
2344     *)
2345       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346       ;;
2347     esac |
2348     sort
2349 )
2350     echo
2351
2352     $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2355     echo
2356     for ac_var in $ac_subst_vars
2357     do
2358       eval ac_val=\$$ac_var
2359       case $ac_val in
2360       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361       esac
2362       $as_echo "$ac_var='\''$ac_val'\''"
2363     done | sort
2364     echo
2365
2366     if test -n "$ac_subst_files"; then
2367       $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2370       echo
2371       for ac_var in $ac_subst_files
2372       do
2373         eval ac_val=\$$ac_var
2374         case $ac_val in
2375         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376         esac
2377         $as_echo "$ac_var='\''$ac_val'\''"
2378       done | sort
2379       echo
2380     fi
2381
2382     if test -s confdefs.h; then
2383       $as_echo "## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##"
2386       echo
2387       cat confdefs.h
2388       echo
2389     fi
2390     test "$ac_signal" != 0 &&
2391       $as_echo "$as_me: caught signal $ac_signal"
2392     $as_echo "$as_me: exit $exit_status"
2393   } >&5
2394   rm -f core *.core core.conftest.* &&
2395     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396     exit $exit_status
2397 ' 0
2398 for ac_signal in 1 2 13 15; do
2399   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2402
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2405
2406 $as_echo "/* confdefs.h */" > confdefs.h
2407
2408 # Predefined preprocessor variables.
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2432 _ACEOF
2433
2434
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 ac_site_file1=NONE
2438 ac_site_file2=NONE
2439 if test -n "$CONFIG_SITE"; then
2440   # We do not want a PATH search for config.site.
2441   case $CONFIG_SITE in #((
2442     -*)  ac_site_file1=./$CONFIG_SITE;;
2443     */*) ac_site_file1=$CONFIG_SITE;;
2444     *)   ac_site_file1=./$CONFIG_SITE;;
2445   esac
2446 elif test "x$prefix" != xNONE; then
2447   ac_site_file1=$prefix/share/config.site
2448   ac_site_file2=$prefix/etc/config.site
2449 else
2450   ac_site_file1=$ac_default_prefix/share/config.site
2451   ac_site_file2=$ac_default_prefix/etc/config.site
2452 fi
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 do
2455   test "x$ac_site_file" = xNONE && continue
2456   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459     sed 's/^/| /' "$ac_site_file" >&5
2460     . "$ac_site_file" \
2461       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2465   fi
2466 done
2467
2468 if test -r "$cache_file"; then
2469   # Some versions of bash will fail to source /dev/null (special files
2470   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2471   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2474     case $cache_file in
2475       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476       *)                      . "./$cache_file";;
2477     esac
2478   fi
2479 else
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2482   >$cache_file
2483 fi
2484
2485 # Check that the precious variables saved in the cache have kept the same
2486 # value.
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490   eval ac_new_set=\$ac_env_${ac_var}_set
2491   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492   eval ac_new_val=\$ac_env_${ac_var}_value
2493   case $ac_old_set,$ac_new_set in
2494     set,)
2495       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497       ac_cache_corrupted=: ;;
2498     ,set)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,);;
2503     *)
2504       if test "x$ac_old_val" != "x$ac_new_val"; then
2505         # differences in whitespace do not lead to failure.
2506         ac_old_val_w=`echo x $ac_old_val`
2507         ac_new_val_w=`echo x $ac_new_val`
2508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511           ac_cache_corrupted=:
2512         else
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515           eval $ac_var=\$ac_old_val
2516         fi
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2518 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2521       fi;;
2522   esac
2523   # Pass precious variables to config.status.
2524   if test "$ac_new_set" = set; then
2525     case $ac_new_val in
2526     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     *) ac_arg=$ac_var=$ac_new_val ;;
2528     esac
2529     case " $ac_configure_args " in
2530       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2531       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2532     esac
2533   fi
2534 done
2535 if $ac_cache_corrupted; then
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2541 fi
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2545
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551
2552
2553 ac_config_headers="$ac_config_headers fficonfig.h"
2554
2555
2556 ac_aux_dir=
2557 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2558   if test -f "$ac_dir/install-sh"; then
2559     ac_aux_dir=$ac_dir
2560     ac_install_sh="$ac_aux_dir/install-sh -c"
2561     break
2562   elif test -f "$ac_dir/install.sh"; then
2563     ac_aux_dir=$ac_dir
2564     ac_install_sh="$ac_aux_dir/install.sh -c"
2565     break
2566   elif test -f "$ac_dir/shtool"; then
2567     ac_aux_dir=$ac_dir
2568     ac_install_sh="$ac_aux_dir/shtool install -c"
2569     break
2570   fi
2571 done
2572 if test -z "$ac_aux_dir"; then
2573   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2574 fi
2575
2576 # These three variables are undocumented and unsupported,
2577 # and are intended to be withdrawn in a future Autoconf release.
2578 # They can cause serious problems if a builder's source tree is in a directory
2579 # whose full name contains unusual characters.
2580 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2581 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2582 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2583
2584
2585 # Make sure we can run config.sub.
2586 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2587   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2590 $as_echo_n "checking build system type... " >&6; }
2591 if ${ac_cv_build+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   ac_build_alias=$build_alias
2595 test "x$ac_build_alias" = x &&
2596   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2597 test "x$ac_build_alias" = x &&
2598   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2599 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2600   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2601
2602 fi
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2604 $as_echo "$ac_cv_build" >&6; }
2605 case $ac_cv_build in
2606 *-*-*) ;;
2607 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2608 esac
2609 build=$ac_cv_build
2610 ac_save_IFS=$IFS; IFS='-'
2611 set x $ac_cv_build
2612 shift
2613 build_cpu=$1
2614 build_vendor=$2
2615 shift; shift
2616 # Remember, the first character of IFS is used to create $*,
2617 # except with old shells:
2618 build_os=$*
2619 IFS=$ac_save_IFS
2620 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2621
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2624 $as_echo_n "checking host system type... " >&6; }
2625 if ${ac_cv_host+:} false; then :
2626   $as_echo_n "(cached) " >&6
2627 else
2628   if test "x$host_alias" = x; then
2629   ac_cv_host=$ac_cv_build
2630 else
2631   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2632     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2633 fi
2634
2635 fi
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2637 $as_echo "$ac_cv_host" >&6; }
2638 case $ac_cv_host in
2639 *-*-*) ;;
2640 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2641 esac
2642 host=$ac_cv_host
2643 ac_save_IFS=$IFS; IFS='-'
2644 set x $ac_cv_host
2645 shift
2646 host_cpu=$1
2647 host_vendor=$2
2648 shift; shift
2649 # Remember, the first character of IFS is used to create $*,
2650 # except with old shells:
2651 host_os=$*
2652 IFS=$ac_save_IFS
2653 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2654
2655
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2657 $as_echo_n "checking target system type... " >&6; }
2658 if ${ac_cv_target+:} false; then :
2659   $as_echo_n "(cached) " >&6
2660 else
2661   if test "x$target_alias" = x; then
2662   ac_cv_target=$ac_cv_host
2663 else
2664   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2665     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2666 fi
2667
2668 fi
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2670 $as_echo "$ac_cv_target" >&6; }
2671 case $ac_cv_target in
2672 *-*-*) ;;
2673 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2674 esac
2675 target=$ac_cv_target
2676 ac_save_IFS=$IFS; IFS='-'
2677 set x $ac_cv_target
2678 shift
2679 target_cpu=$1
2680 target_vendor=$2
2681 shift; shift
2682 # Remember, the first character of IFS is used to create $*,
2683 # except with old shells:
2684 target_os=$*
2685 IFS=$ac_save_IFS
2686 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2687
2688
2689 # The aliases save the names the user supplied, while $host etc.
2690 # will get canonicalized.
2691 test -n "$target_alias" &&
2692   test "$program_prefix$program_suffix$program_transform_name" = \
2693     NONENONEs,x,x, &&
2694   program_prefix=${target_alias}-
2695
2696 target_alias=${target_alias-$host_alias}
2697
2698 . ${srcdir}/configure.host
2699
2700
2701    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2702    if test "${ac_configure_args+set}" != "set" ; then
2703       ac_configure_args=
2704       for ac_arg in ${1+"$@"}; do
2705          ac_configure_args="$ac_configure_args '$ac_arg'"
2706       done
2707    fi
2708
2709 # expand $ac_aux_dir to an absolute path
2710 am_aux_dir=`cd $ac_aux_dir && pwd`
2711
2712
2713 ax_enable_builddir="."
2714 # Check whether --enable-builddir was given.
2715 if test "${enable_builddir+set}" = set; then :
2716   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2717 else
2718   ax_enable_builddir="auto"
2719 fi
2720
2721 if test ".$ac_srcdir_defaulted" != ".no" ; then
2722 if test ".$srcdir" = ".." ; then
2723   if test -f config.status ; then
2724     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2725 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2726   else
2727     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2728     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2729     test ".$TARGET" = "." && TARGET="$target"
2730     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2731     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2732       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2733       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2734       cd $ax_enable_builddir
2735       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2736         rm conftest.tmp
2737         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2738 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2739       else
2740         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2741       fi
2742       srcdir=`echo "$ax_enable_builddir" |
2743               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2744       # going to restart from subdirectory location
2745       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2746       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2747       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2748       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2749       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2750 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2751       case "$0" in # restart
2752        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2753        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2754       esac ; exit $?
2755     fi
2756   fi
2757 fi fi
2758 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2759 # Extract the first word of "gsed sed", so it can be a program name with args.
2760 set dummy gsed sed; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2764   $as_echo_n "(cached) " >&6
2765 else
2766   case $ax_enable_builddir_sed in
2767   [\\/]* | ?:[\\/]*)
2768   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2769   ;;
2770   *)
2771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 for as_dir in $PATH
2773 do
2774   IFS=$as_save_IFS
2775   test -z "$as_dir" && as_dir=.
2776     for ac_exec_ext in '' $ac_executable_extensions; do
2777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2778     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2780     break 2
2781   fi
2782 done
2783   done
2784 IFS=$as_save_IFS
2785
2786   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2787   ;;
2788 esac
2789 fi
2790 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2791 if test -n "$ax_enable_builddir_sed"; then
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2793 $as_echo "$ax_enable_builddir_sed" >&6; }
2794 else
2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2797 fi
2798
2799
2800 ax_enable_builddir_auxdir="$am_aux_dir"
2801 ac_config_commands="$ac_config_commands buildir"
2802
2803
2804 am__api_version='1.12'
2805
2806 # Find a good install program.  We prefer a C program (faster),
2807 # so one script is as good as another.  But avoid the broken or
2808 # incompatible versions:
2809 # SysV /etc/install, /usr/sbin/install
2810 # SunOS /usr/etc/install
2811 # IRIX /sbin/install
2812 # AIX /bin/install
2813 # AmigaOS /C/install, which installs bootblocks on floppy discs
2814 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2815 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2816 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2817 # OS/2's system install, which has a completely different semantic
2818 # ./install, which can be erroneously created by make from ./install.sh.
2819 # Reject install programs that cannot install multiple files.
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2821 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2822 if test -z "$INSTALL"; then
2823 if ${ac_cv_path_install+:} false; then :
2824   $as_echo_n "(cached) " >&6
2825 else
2826   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 for as_dir in $PATH
2828 do
2829   IFS=$as_save_IFS
2830   test -z "$as_dir" && as_dir=.
2831     # Account for people who put trailing slashes in PATH elements.
2832 case $as_dir/ in #((
2833   ./ | .// | /[cC]/* | \
2834   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2835   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2836   /usr/ucb/* ) ;;
2837   *)
2838     # OSF1 and SCO ODT 3.0 have their own names for install.
2839     # Don't use installbsd from OSF since it installs stuff as root
2840     # by default.
2841     for ac_prog in ginstall scoinst install; do
2842       for ac_exec_ext in '' $ac_executable_extensions; do
2843         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2844           if test $ac_prog = install &&
2845             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846             # AIX install.  It has an incompatible calling convention.
2847             :
2848           elif test $ac_prog = install &&
2849             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2850             # program-specific install script used by HP pwplus--don't use.
2851             :
2852           else
2853             rm -rf conftest.one conftest.two conftest.dir
2854             echo one > conftest.one
2855             echo two > conftest.two
2856             mkdir conftest.dir
2857             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2858               test -s conftest.one && test -s conftest.two &&
2859               test -s conftest.dir/conftest.one &&
2860               test -s conftest.dir/conftest.two
2861             then
2862               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2863               break 3
2864             fi
2865           fi
2866         fi
2867       done
2868     done
2869     ;;
2870 esac
2871
2872   done
2873 IFS=$as_save_IFS
2874
2875 rm -rf conftest.one conftest.two conftest.dir
2876
2877 fi
2878   if test "${ac_cv_path_install+set}" = set; then
2879     INSTALL=$ac_cv_path_install
2880   else
2881     # As a last resort, use the slow shell script.  Don't cache a
2882     # value for INSTALL within a source directory, because that will
2883     # break other packages using the cache if that directory is
2884     # removed, or if the value is a relative name.
2885     INSTALL=$ac_install_sh
2886   fi
2887 fi
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2889 $as_echo "$INSTALL" >&6; }
2890
2891 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2892 # It thinks the first close brace ends the variable substitution.
2893 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2894
2895 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2896
2897 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2898
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2900 $as_echo_n "checking whether build environment is sane... " >&6; }
2901 # Reject unsafe characters in $srcdir or the absolute working directory
2902 # name.  Accept space and tab only in the latter.
2903 am_lf='
2904 '
2905 case `pwd` in
2906   *[\\\"\#\$\&\'\`$am_lf]*)
2907     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2908 esac
2909 case $srcdir in
2910   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2911     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2912 esac
2913
2914 # Do 'set' in a subshell so we don't clobber the current shell's
2915 # arguments.  Must try -L first in case configure is actually a
2916 # symlink; some systems play weird games with the mod time of symlinks
2917 # (eg FreeBSD returns the mod time of the symlink's containing
2918 # directory).
2919 if (
2920    am_has_slept=no
2921    for am_try in 1 2; do
2922      echo "timestamp, slept: $am_has_slept" > conftest.file
2923      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2924      if test "$*" = "X"; then
2925         # -L didn't work.
2926         set X `ls -t "$srcdir/configure" conftest.file`
2927      fi
2928      if test "$*" != "X $srcdir/configure conftest.file" \
2929         && test "$*" != "X conftest.file $srcdir/configure"; then
2930
2931         # If neither matched, then we have a broken ls.  This can happen
2932         # if, for instance, CONFIG_SHELL is bash and it inherits a
2933         # broken ls alias from the environment.  This has actually
2934         # happened.  Such a system could not be considered "sane".
2935         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2936   alias in your environment" "$LINENO" 5
2937      fi
2938      if test "$2" = conftest.file || test $am_try -eq 2; then
2939        break
2940      fi
2941      # Just in case.
2942      sleep 1
2943      am_has_slept=yes
2944    done
2945    test "$2" = conftest.file
2946    )
2947 then
2948    # Ok.
2949    :
2950 else
2951    as_fn_error $? "newly created file is older than distributed files!
2952 Check your system clock" "$LINENO" 5
2953 fi
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2955 $as_echo "yes" >&6; }
2956 # If we didn't sleep, we still need to ensure time stamps of config.status and
2957 # generated files are strictly newer.
2958 am_sleep_pid=
2959 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2960   ( sleep 1 ) &
2961   am_sleep_pid=$!
2962 fi
2963
2964 rm -f conftest.file
2965
2966 test "$program_prefix" != NONE &&
2967   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2968 # Use a double $ so make ignores it.
2969 test "$program_suffix" != NONE &&
2970   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2971 # Double any \ or $.
2972 # By default was `s,x,x', remove it if useless.
2973 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2974 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2975
2976 if test x"${MISSING+set}" != xset; then
2977   case $am_aux_dir in
2978   *\ * | *\     *)
2979     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2980   *)
2981     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2982   esac
2983 fi
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --run true"; then
2986   am_missing_run="$MISSING --run "
2987 else
2988   am_missing_run=
2989   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2991 fi
2992
2993 if test x"${install_sh}" != xset; then
2994   case $am_aux_dir in
2995   *\ * | *\     *)
2996     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2997   *)
2998     install_sh="\${SHELL} $am_aux_dir/install-sh"
2999   esac
3000 fi
3001
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip".  However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no; then
3007   if test -n "$ac_tool_prefix"; then
3008   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy ${ac_tool_prefix}strip; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false; then :
3013   $as_echo_n "(cached) " >&6
3014 else
3015   if test -n "$STRIP"; then
3016   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3017 else
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3020 do
3021   IFS=$as_save_IFS
3022   test -z "$as_dir" && as_dir=.
3023     for ac_exec_ext in '' $ac_executable_extensions; do
3024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3025     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3027     break 2
3028   fi
3029 done
3030   done
3031 IFS=$as_save_IFS
3032
3033 fi
3034 fi
3035 STRIP=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3039 else
3040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 fi
3043
3044
3045 fi
3046 if test -z "$ac_cv_prog_STRIP"; then
3047   ac_ct_STRIP=$STRIP
3048   # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip; ac_word=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3053   $as_echo_n "(cached) " >&6
3054 else
3055   if test -n "$ac_ct_STRIP"; then
3056   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3057 else
3058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3059 for as_dir in $PATH
3060 do
3061   IFS=$as_save_IFS
3062   test -z "$as_dir" && as_dir=.
3063     for ac_exec_ext in '' $ac_executable_extensions; do
3064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3065     ac_cv_prog_ac_ct_STRIP="strip"
3066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3067     break 2
3068   fi
3069 done
3070   done
3071 IFS=$as_save_IFS
3072
3073 fi
3074 fi
3075 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3079 else
3080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3082 fi
3083
3084   if test "x$ac_ct_STRIP" = x; then
3085     STRIP=":"
3086   else
3087     case $cross_compiling:$ac_tool_warned in
3088 yes:)
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned=yes ;;
3092 esac
3093     STRIP=$ac_ct_STRIP
3094   fi
3095 else
3096   STRIP="$ac_cv_prog_STRIP"
3097 fi
3098
3099 fi
3100 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3101
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105   if ${ac_cv_path_mkdir+:} false; then :
3106   $as_echo_n "(cached) " >&6
3107 else
3108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3110 do
3111   IFS=$as_save_IFS
3112   test -z "$as_dir" && as_dir=.
3113     for ac_prog in mkdir gmkdir; do
3114          for ac_exec_ext in '' $ac_executable_extensions; do
3115            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3116            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117              'mkdir (GNU coreutils) '* | \
3118              'mkdir (coreutils) '* | \
3119              'mkdir (fileutils) '4.1*)
3120                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3121                break 3;;
3122            esac
3123          done
3124        done
3125   done
3126 IFS=$as_save_IFS
3127
3128 fi
3129
3130   test -d ./--version && rmdir ./--version
3131   if test "${ac_cv_path_mkdir+set}" = set; then
3132     MKDIR_P="$ac_cv_path_mkdir -p"
3133   else
3134     # As a last resort, use the slow shell script.  Don't cache a
3135     # value for MKDIR_P within a source directory, because that will
3136     # break other packages using the cache if that directory is
3137     # removed, or if the value is a relative name.
3138     MKDIR_P="$ac_install_sh -d"
3139   fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3143
3144 for ac_prog in gawk mawk nawk awk
3145 do
3146   # Extract the first word of "$ac_prog", so it can be a program name with args.
3147 set dummy $ac_prog; ac_word=$2
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3149 $as_echo_n "checking for $ac_word... " >&6; }
3150 if ${ac_cv_prog_AWK+:} false; then :
3151   $as_echo_n "(cached) " >&6
3152 else
3153   if test -n "$AWK"; then
3154   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3155 else
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157 for as_dir in $PATH
3158 do
3159   IFS=$as_save_IFS
3160   test -z "$as_dir" && as_dir=.
3161     for ac_exec_ext in '' $ac_executable_extensions; do
3162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3163     ac_cv_prog_AWK="$ac_prog"
3164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3165     break 2
3166   fi
3167 done
3168   done
3169 IFS=$as_save_IFS
3170
3171 fi
3172 fi
3173 AWK=$ac_cv_prog_AWK
3174 if test -n "$AWK"; then
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3176 $as_echo "$AWK" >&6; }
3177 else
3178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179 $as_echo "no" >&6; }
3180 fi
3181
3182
3183   test -n "$AWK" && break
3184 done
3185
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3187 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3188 set x ${MAKE-make}
3189 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3190 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3191   $as_echo_n "(cached) " >&6
3192 else
3193   cat >conftest.make <<\_ACEOF
3194 SHELL = /bin/sh
3195 all:
3196         @echo '@@@%%%=$(MAKE)=@@@%%%'
3197 _ACEOF
3198 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3200   *@@@%%%=?*=@@@%%%*)
3201     eval ac_cv_prog_make_${ac_make}_set=yes;;
3202   *)
3203     eval ac_cv_prog_make_${ac_make}_set=no;;
3204 esac
3205 rm -f conftest.make
3206 fi
3207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210   SET_MAKE=
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214   SET_MAKE="MAKE=${MAKE-make}"
3215 fi
3216
3217 rm -rf .tst 2>/dev/null
3218 mkdir .tst 2>/dev/null
3219 if test -d .tst; then
3220   am__leading_dot=.
3221 else
3222   am__leading_dot=_
3223 fi
3224 rmdir .tst 2>/dev/null
3225
3226 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3227   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3228   # is not polluted with repeated "-I."
3229   am__isrc=' -I$(srcdir)'
3230   # test to see if srcdir already configured
3231   if test -f $srcdir/config.status; then
3232     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3233   fi
3234 fi
3235
3236 # test whether we have cygpath
3237 if test -z "$CYGPATH_W"; then
3238   if (cygpath --version) >/dev/null 2>/dev/null; then
3239     CYGPATH_W='cygpath -w'
3240   else
3241     CYGPATH_W=echo
3242   fi
3243 fi
3244
3245
3246 # Define the identity of the package.
3247  PACKAGE='libffi'
3248  VERSION='3.0.12'
3249
3250
3251 cat >>confdefs.h <<_ACEOF
3252 #define PACKAGE "$PACKAGE"
3253 _ACEOF
3254
3255
3256 cat >>confdefs.h <<_ACEOF
3257 #define VERSION "$VERSION"
3258 _ACEOF
3259
3260 # Some tools Automake needs.
3261
3262 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3263
3264
3265 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3266
3267
3268 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3269
3270
3271 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3272
3273
3274 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3275
3276 # For better backward compatibility.  To be removed once Automake 1.9.x
3277 # dies out for good.  For more background, see:
3278 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3279 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3280 mkdir_p='$(MKDIR_P)'
3281
3282 # We need awk for the "check" target.  The system "awk" is bad on
3283 # some platforms.
3284 # Always define AMTAR for backward compatibility.  Yes, it's still used
3285 # in the wild :-(  We should find a proper way to deprecate it ...
3286 AMTAR='$${TAR-tar}'
3287
3288 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3289
3290
3291
3292
3293
3294
3295 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3296 # We must force CC to /not/ be precious variables; otherwise
3297 # the wrong, non-multilib-adjusted value will be used in multilibs.
3298 # As a side effect, we have to subst CFLAGS ourselves.
3299 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3300 # defaults of its own if none are provided.
3301
3302
3303
3304 save_CFLAGS=$CFLAGS
3305 ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 if test -n "$ac_tool_prefix"; then
3311   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3312 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 $as_echo_n "checking for $ac_word... " >&6; }
3315 if ${ac_cv_prog_CC+:} false; then :
3316   $as_echo_n "(cached) " >&6
3317 else
3318   if test -n "$CC"; then
3319   ac_cv_prog_CC="$CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324   IFS=$as_save_IFS
3325   test -z "$as_dir" && as_dir=.
3326     for ac_exec_ext in '' $ac_executable_extensions; do
3327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330     break 2
3331   fi
3332 done
3333   done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$ac_cv_prog_CC"; then
3350   ac_ct_CC=$CC
3351   # Extract the first word of "gcc", so it can be a program name with args.
3352 set dummy gcc; ac_word=$2
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3354 $as_echo_n "checking for $ac_word... " >&6; }
3355 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3356   $as_echo_n "(cached) " >&6
3357 else
3358   if test -n "$ac_ct_CC"; then
3359   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364   IFS=$as_save_IFS
3365   test -z "$as_dir" && as_dir=.
3366     for ac_exec_ext in '' $ac_executable_extensions; do
3367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368     ac_cv_prog_ac_ct_CC="gcc"
3369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3370     break 2
3371   fi
3372 done
3373   done
3374 IFS=$as_save_IFS
3375
3376 fi
3377 fi
3378 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3379 if test -n "$ac_ct_CC"; then
3380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3381 $as_echo "$ac_ct_CC" >&6; }
3382 else
3383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384 $as_echo "no" >&6; }
3385 fi
3386
3387   if test "x$ac_ct_CC" = x; then
3388     CC=""
3389   else
3390     case $cross_compiling:$ac_tool_warned in
3391 yes:)
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3394 ac_tool_warned=yes ;;
3395 esac
3396     CC=$ac_ct_CC
3397   fi
3398 else
3399   CC="$ac_cv_prog_CC"
3400 fi
3401
3402 if test -z "$CC"; then
3403           if test -n "$ac_tool_prefix"; then
3404     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3405 set dummy ${ac_tool_prefix}cc; ac_word=$2
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if ${ac_cv_prog_CC+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   if test -n "$CC"; then
3412   ac_cv_prog_CC="$CC" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417   IFS=$as_save_IFS
3418   test -z "$as_dir" && as_dir=.
3419     for ac_exec_ext in '' $ac_executable_extensions; do
3420   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421     ac_cv_prog_CC="${ac_tool_prefix}cc"
3422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3423     break 2
3424   fi
3425 done
3426   done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3435 else
3436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441   fi
3442 fi
3443 if test -z "$CC"; then
3444   # Extract the first word of "cc", so it can be a program name with args.
3445 set dummy cc; ac_word=$2
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if ${ac_cv_prog_CC+:} false; then :
3449   $as_echo_n "(cached) " >&6
3450 else
3451   if test -n "$CC"; then
3452   ac_cv_prog_CC="$CC" # Let the user override the test.
3453 else
3454   ac_prog_rejected=no
3455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3456 for as_dir in $PATH
3457 do
3458   IFS=$as_save_IFS
3459   test -z "$as_dir" && as_dir=.
3460     for ac_exec_ext in '' $ac_executable_extensions; do
3461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3462     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3463        ac_prog_rejected=yes
3464        continue
3465      fi
3466     ac_cv_prog_CC="cc"
3467     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468     break 2
3469   fi
3470 done
3471   done
3472 IFS=$as_save_IFS
3473
3474 if test $ac_prog_rejected = yes; then
3475   # We found a bogon in the path, so make sure we never use it.
3476   set dummy $ac_cv_prog_CC
3477   shift
3478   if test $# != 0; then
3479     # We chose a different compiler from the bogus one.
3480     # However, it has the same basename, so the bogon will be chosen
3481     # first if we set CC to just the basename; use the full file name.
3482     shift
3483     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3484   fi
3485 fi
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498 fi
3499 if test -z "$CC"; then
3500   if test -n "$ac_tool_prefix"; then
3501   for ac_prog in cl.exe
3502   do
3503     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$CC"; then
3511   ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 CC=$ac_cv_prog_CC
3531 if test -n "$CC"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3533 $as_echo "$CC" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539
3540     test -n "$CC" && break
3541   done
3542 fi
3543 if test -z "$CC"; then
3544   ac_ct_CC=$CC
3545   for ac_prog in cl.exe
3546 do
3547   # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy $ac_prog; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3552   $as_echo_n "(cached) " >&6
3553 else
3554   if test -n "$ac_ct_CC"; then
3555   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3556 else
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558 for as_dir in $PATH
3559 do
3560   IFS=$as_save_IFS
3561   test -z "$as_dir" && as_dir=.
3562     for ac_exec_ext in '' $ac_executable_extensions; do
3563   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564     ac_cv_prog_ac_ct_CC="$ac_prog"
3565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566     break 2
3567   fi
3568 done
3569   done
3570 IFS=$as_save_IFS
3571
3572 fi
3573 fi
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3578 else
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3581 fi
3582
3583
3584   test -n "$ac_ct_CC" && break
3585 done
3586
3587   if test "x$ac_ct_CC" = x; then
3588     CC=""
3589   else
3590     case $cross_compiling:$ac_tool_warned in
3591 yes:)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned=yes ;;
3595 esac
3596     CC=$ac_ct_CC
3597   fi
3598 fi
3599
3600 fi
3601
3602
3603 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error $? "no acceptable C compiler found in \$PATH
3606 See \`config.log' for more details" "$LINENO" 5; }
3607
3608 # Provide some information about the compiler.
3609 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 set X $ac_compile
3611 ac_compiler=$2
3612 for ac_option in --version -v -V -qversion; do
3613   { { ac_try="$ac_compiler $ac_option >&5"
3614 case "(($ac_try" in
3615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616   *) ac_try_echo=$ac_try;;
3617 esac
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3621   ac_status=$?
3622   if test -s conftest.err; then
3623     sed '10a\
3624 ... rest of stderr output deleted ...
3625          10q' conftest.err >conftest.er1
3626     cat conftest.er1 >&5
3627   fi
3628   rm -f conftest.er1 conftest.err
3629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3630   test $ac_status = 0; }
3631 done
3632
3633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3634 /* end confdefs.h.  */
3635
3636 int
3637 main ()
3638 {
3639
3640   ;
3641   return 0;
3642 }
3643 _ACEOF
3644 ac_clean_files_save=$ac_clean_files
3645 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3646 # Try to create an executable without -o first, disregard a.out.
3647 # It will help us diagnose broken compilers, and finding out an intuition
3648 # of exeext.
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3652
3653 # The possible output files:
3654 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3655
3656 ac_rmfiles=
3657 for ac_file in $ac_files
3658 do
3659   case $ac_file in
3660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3661     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3662   esac
3663 done
3664 rm -f $ac_rmfiles
3665
3666 if { { ac_try="$ac_link_default"
3667 case "(($ac_try" in
3668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669   *) ac_try_echo=$ac_try;;
3670 esac
3671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3672 $as_echo "$ac_try_echo"; } >&5
3673   (eval "$ac_link_default") 2>&5
3674   ac_status=$?
3675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3676   test $ac_status = 0; }; then :
3677   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3678 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3679 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3680 # so that the user can short-circuit this test for compilers unknown to
3681 # Autoconf.
3682 for ac_file in $ac_files ''
3683 do
3684   test -f "$ac_file" || continue
3685   case $ac_file in
3686     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3687         ;;
3688     [ab].out )
3689         # We found the default executable, but exeext='' is most
3690         # certainly right.
3691         break;;
3692     *.* )
3693         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3694         then :; else
3695            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3696         fi
3697         # We set ac_cv_exeext here because the later test for it is not
3698         # safe: cross compilers may not add the suffix if given an `-o'
3699         # argument, so we may need to know it at that point already.
3700         # Even if this section looks crufty: it has the advantage of
3701         # actually working.
3702         break;;
3703     * )
3704         break;;
3705   esac
3706 done
3707 test "$ac_cv_exeext" = no && ac_cv_exeext=
3708
3709 else
3710   ac_file=''
3711 fi
3712 if test -z "$ac_file"; then :
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 $as_echo "$as_me: failed program was:" >&5
3716 sed 's/^/| /' conftest.$ac_ext >&5
3717
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error 77 "C compiler cannot create executables
3721 See \`config.log' for more details" "$LINENO" 5; }
3722 else
3723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3724 $as_echo "yes" >&6; }
3725 fi
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3727 $as_echo_n "checking for C compiler default output file name... " >&6; }
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3729 $as_echo "$ac_file" >&6; }
3730 ac_exeext=$ac_cv_exeext
3731
3732 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3733 ac_clean_files=$ac_clean_files_save
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3735 $as_echo_n "checking for suffix of executables... " >&6; }
3736 if { { ac_try="$ac_link"
3737 case "(($ac_try" in
3738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3739   *) ac_try_echo=$ac_try;;
3740 esac
3741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3742 $as_echo "$ac_try_echo"; } >&5
3743   (eval "$ac_link") 2>&5
3744   ac_status=$?
3745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3746   test $ac_status = 0; }; then :
3747   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3748 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3749 # work properly (i.e., refer to `conftest.exe'), while it won't with
3750 # `rm'.
3751 for ac_file in conftest.exe conftest conftest.*; do
3752   test -f "$ac_file" || continue
3753   case $ac_file in
3754     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3755     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756           break;;
3757     * ) break;;
3758   esac
3759 done
3760 else
3761   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3763 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details" "$LINENO" 5; }
3765 fi
3766 rm -f conftest conftest$ac_cv_exeext
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3768 $as_echo "$ac_cv_exeext" >&6; }
3769
3770 rm -f conftest.$ac_ext
3771 EXEEXT=$ac_cv_exeext
3772 ac_exeext=$EXEEXT
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h.  */
3775 #include <stdio.h>
3776 int
3777 main ()
3778 {
3779 FILE *f = fopen ("conftest.out", "w");
3780  return ferror (f) || fclose (f) != 0;
3781
3782   ;
3783   return 0;
3784 }
3785 _ACEOF
3786 ac_clean_files="$ac_clean_files conftest.out"
3787 # Check that the compiler produces executables we can run.  If not, either
3788 # the compiler is broken, or we cross compile.
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3790 $as_echo_n "checking whether we are cross compiling... " >&6; }
3791 if test "$cross_compiling" != yes; then
3792   { { ac_try="$ac_link"
3793 case "(($ac_try" in
3794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795   *) ac_try_echo=$ac_try;;
3796 esac
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799   (eval "$ac_link") 2>&5
3800   ac_status=$?
3801   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802   test $ac_status = 0; }
3803   if { ac_try='./conftest$ac_cv_exeext'
3804   { { case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_try") 2>&5
3811   ac_status=$?
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }; }; then
3814     cross_compiling=no
3815   else
3816     if test "$cross_compiling" = maybe; then
3817         cross_compiling=yes
3818     else
3819         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot run C compiled programs.
3822 If you meant to cross compile, use \`--host'.
3823 See \`config.log' for more details" "$LINENO" 5; }
3824     fi
3825   fi
3826 fi
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3828 $as_echo "$cross_compiling" >&6; }
3829
3830 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3831 ac_clean_files=$ac_clean_files_save
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3833 $as_echo_n "checking for suffix of object files... " >&6; }
3834 if ${ac_cv_objext+:} false; then :
3835   $as_echo_n "(cached) " >&6
3836 else
3837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 /* end confdefs.h.  */
3839
3840 int
3841 main ()
3842 {
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 rm -f conftest.o conftest.obj
3849 if { { ac_try="$ac_compile"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_compile") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }; then :
3860   for ac_file in conftest.o conftest.obj conftest.*; do
3861   test -f "$ac_file" || continue;
3862   case $ac_file in
3863     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3864     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3865        break;;
3866   esac
3867 done
3868 else
3869   $as_echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3871
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "cannot compute suffix of object files: cannot compile
3875 See \`config.log' for more details" "$LINENO" 5; }
3876 fi
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3878 fi
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3880 $as_echo "$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3882 ac_objext=$OBJEXT
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3884 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3885 if ${ac_cv_c_compiler_gnu+:} false; then :
3886   $as_echo_n "(cached) " >&6
3887 else
3888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h.  */
3890
3891 int
3892 main ()
3893 {
3894 #ifndef __GNUC__
3895        choke me
3896 #endif
3897
3898   ;
3899   return 0;
3900 }
3901 _ACEOF
3902 if ac_fn_c_try_compile "$LINENO"; then :
3903   ac_compiler_gnu=yes
3904 else
3905   ac_compiler_gnu=no
3906 fi
3907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3908 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909
3910 fi
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3912 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3913 if test $ac_compiler_gnu = yes; then
3914   GCC=yes
3915 else
3916   GCC=
3917 fi
3918 ac_test_CFLAGS=${CFLAGS+set}
3919 ac_save_CFLAGS=$CFLAGS
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3921 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3922 if ${ac_cv_prog_cc_g+:} false; then :
3923   $as_echo_n "(cached) " >&6
3924 else
3925   ac_save_c_werror_flag=$ac_c_werror_flag
3926    ac_c_werror_flag=yes
3927    ac_cv_prog_cc_g=no
3928    CFLAGS="-g"
3929    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3930 /* end confdefs.h.  */
3931
3932 int
3933 main ()
3934 {
3935
3936   ;
3937   return 0;
3938 }
3939 _ACEOF
3940 if ac_fn_c_try_compile "$LINENO"; then :
3941   ac_cv_prog_cc_g=yes
3942 else
3943   CFLAGS=""
3944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956
3957 else
3958   ac_c_werror_flag=$ac_save_c_werror_flag
3959          CFLAGS="-g"
3960          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972   ac_cv_prog_cc_g=yes
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
3980 fi
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3982 $as_echo "$ac_cv_prog_cc_g" >&6; }
3983 if test "$ac_test_CFLAGS" = set; then
3984   CFLAGS=$ac_save_CFLAGS
3985 elif test $ac_cv_prog_cc_g = yes; then
3986   if test "$GCC" = yes; then
3987     CFLAGS="-g -O2"
3988   else
3989     CFLAGS="-g"
3990   fi
3991 else
3992   if test "$GCC" = yes; then
3993     CFLAGS="-O2"
3994   else
3995     CFLAGS=
3996   fi
3997 fi
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3999 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4000 if ${ac_cv_prog_cc_c89+:} false; then :
4001   $as_echo_n "(cached) " >&6
4002 else
4003   ac_cv_prog_cc_c89=no
4004 ac_save_CC=$CC
4005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007 #include <stdarg.h>
4008 #include <stdio.h>
4009 struct stat;
4010 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4011 struct buf { int x; };
4012 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013 static char *e (p, i)
4014      char **p;
4015      int i;
4016 {
4017   return p[i];
4018 }
4019 static char *f (char * (*g) (char **, int), char **p, ...)
4020 {
4021   char *s;
4022   va_list v;
4023   va_start (v,p);
4024   s = g (p, va_arg (v,int));
4025   va_end (v);
4026   return s;
4027 }
4028
4029 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4030    function prototypes and stuff, but not '\xHH' hex character constants.
4031    These don't provoke an error unfortunately, instead are silently treated
4032    as 'x'.  The following induces an error, until -std is added to get
4033    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4034    array size at least.  It's necessary to write '\x00'==0 to get something
4035    that's true only with -std.  */
4036 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4037
4038 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039    inside strings and character constants.  */
4040 #define FOO(x) 'x'
4041 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4042
4043 int test (int i, double x);
4044 struct s1 {int (*f) (int a);};
4045 struct s2 {int (*f) (double a);};
4046 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 int argc;
4048 char **argv;
4049 int
4050 main ()
4051 {
4052 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4053   ;
4054   return 0;
4055 }
4056 _ACEOF
4057 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4059 do
4060   CC="$ac_save_CC $ac_arg"
4061   if ac_fn_c_try_compile "$LINENO"; then :
4062   ac_cv_prog_cc_c89=$ac_arg
4063 fi
4064 rm -f core conftest.err conftest.$ac_objext
4065   test "x$ac_cv_prog_cc_c89" != "xno" && break
4066 done
4067 rm -f conftest.$ac_ext
4068 CC=$ac_save_CC
4069
4070 fi
4071 # AC_CACHE_VAL
4072 case "x$ac_cv_prog_cc_c89" in
4073   x)
4074     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4075 $as_echo "none needed" >&6; } ;;
4076   xno)
4077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4078 $as_echo "unsupported" >&6; } ;;
4079   *)
4080     CC="$CC $ac_cv_prog_cc_c89"
4081     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4082 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4083 esac
4084 if test "x$ac_cv_prog_cc_c89" != xno; then :
4085
4086 fi
4087
4088 ac_ext=c
4089 ac_cpp='$CPP $CPPFLAGS'
4090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 DEPDIR="${am__leading_dot}deps"
4094
4095 ac_config_commands="$ac_config_commands depfiles"
4096
4097
4098 am_make=${MAKE-make}
4099 cat > confinc << 'END'
4100 am__doit:
4101         @echo this is the am__doit target
4102 .PHONY: am__doit
4103 END
4104 # If we don't find an include directive, just comment out the code.
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4106 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4107 am__include="#"
4108 am__quote=
4109 _am_result=none
4110 # First try GNU make style include.
4111 echo "include confinc" > confmf
4112 # Ignore all kinds of additional output from 'make'.
4113 case `$am_make -s -f confmf 2> /dev/null` in #(
4114 *the\ am__doit\ target*)
4115   am__include=include
4116   am__quote=
4117   _am_result=GNU
4118   ;;
4119 esac
4120 # Now try BSD make style include.
4121 if test "$am__include" = "#"; then
4122    echo '.include "confinc"' > confmf
4123    case `$am_make -s -f confmf 2> /dev/null` in #(
4124    *the\ am__doit\ target*)
4125      am__include=.include
4126      am__quote="\""
4127      _am_result=BSD
4128      ;;
4129    esac
4130 fi
4131
4132
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4134 $as_echo "$_am_result" >&6; }
4135 rm -f confinc confmf
4136
4137 # Check whether --enable-dependency-tracking was given.
4138 if test "${enable_dependency_tracking+set}" = set; then :
4139   enableval=$enable_dependency_tracking;
4140 fi
4141
4142 if test "x$enable_dependency_tracking" != xno; then
4143   am_depcomp="$ac_aux_dir/depcomp"
4144   AMDEPBACKSLASH='\'
4145   am__nodep='_no'
4146 fi
4147  if test "x$enable_dependency_tracking" != xno; then
4148   AMDEP_TRUE=
4149   AMDEP_FALSE='#'
4150 else
4151   AMDEP_TRUE='#'
4152   AMDEP_FALSE=
4153 fi
4154
4155
4156
4157 depcc="$CC"   am_compiler_list=
4158
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4160 $as_echo_n "checking dependency style of $depcc... " >&6; }
4161 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4162   $as_echo_n "(cached) " >&6
4163 else
4164   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4165   # We make a subdir and do the tests there.  Otherwise we can end up
4166   # making bogus files that we don't know about and never remove.  For
4167   # instance it was reported that on HP-UX the gcc test will end up
4168   # making a dummy file named 'D' -- because '-MD' means "put the output
4169   # in D".
4170   rm -rf conftest.dir
4171   mkdir conftest.dir
4172   # Copy depcomp to subdir because otherwise we won't find it if we're
4173   # using a relative directory.
4174   cp "$am_depcomp" conftest.dir
4175   cd conftest.dir
4176   # We will build objects and dependencies in a subdirectory because
4177   # it helps to detect inapplicable dependency modes.  For instance
4178   # both Tru64's cc and ICC support -MD to output dependencies as a
4179   # side effect of compilation, but ICC will put the dependencies in
4180   # the current directory while Tru64 will put them in the object
4181   # directory.
4182   mkdir sub
4183
4184   am_cv_CC_dependencies_compiler_type=none
4185   if test "$am_compiler_list" = ""; then
4186      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4187   fi
4188   am__universal=false
4189   case " $depcc " in #(
4190      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4191      esac
4192
4193   for depmode in $am_compiler_list; do
4194     # Setup a source with many dependencies, because some compilers
4195     # like to wrap large dependency lists on column 80 (with \), and
4196     # we should not choose a depcomp mode which is confused by this.
4197     #
4198     # We need to recreate these files for each test, as the compiler may
4199     # overwrite some of them when testing with obscure command lines.
4200     # This happens at least with the AIX C compiler.
4201     : > sub/conftest.c
4202     for i in 1 2 3 4 5 6; do
4203       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4204       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4205       # Solaris 10 /bin/sh.
4206       echo '/* dummy */' > sub/conftst$i.h
4207     done
4208     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4209
4210     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4211     # mode.  It turns out that the SunPro C++ compiler does not properly
4212     # handle '-M -o', and we need to detect this.  Also, some Intel
4213     # versions had trouble with output in subdirs.
4214     am__obj=sub/conftest.${OBJEXT-o}
4215     am__minus_obj="-o $am__obj"
4216     case $depmode in
4217     gcc)
4218       # This depmode causes a compiler race in universal mode.
4219       test "$am__universal" = false || continue
4220       ;;
4221     nosideeffect)
4222       # After this tag, mechanisms are not by side-effect, so they'll
4223       # only be used when explicitly requested.
4224       if test "x$enable_dependency_tracking" = xyes; then
4225         continue
4226       else
4227         break
4228       fi
4229       ;;
4230     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4231       # This compiler won't grok '-c -o', but also, the minuso test has
4232       # not run yet.  These depmodes are late enough in the game, and
4233       # so weak that their functioning should not be impacted.
4234       am__obj=conftest.${OBJEXT-o}
4235       am__minus_obj=
4236       ;;
4237     none) break ;;
4238     esac
4239     if depmode=$depmode \
4240        source=sub/conftest.c object=$am__obj \
4241        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4242        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4243          >/dev/null 2>conftest.err &&
4244        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4245        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4246        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4247        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4248       # icc doesn't choke on unknown options, it will just issue warnings
4249       # or remarks (even with -Werror).  So we grep stderr for any message
4250       # that says an option was ignored or not supported.
4251       # When given -MP, icc 7.0 and 7.1 complain thusly:
4252       #   icc: Command line warning: ignoring option '-M'; no argument required
4253       # The diagnosis changed in icc 8.0:
4254       #   icc: Command line remark: option '-MP' not supported
4255       if (grep 'ignoring option' conftest.err ||
4256           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4257         am_cv_CC_dependencies_compiler_type=$depmode
4258         break
4259       fi
4260     fi
4261   done
4262
4263   cd ..
4264   rm -rf conftest.dir
4265 else
4266   am_cv_CC_dependencies_compiler_type=none
4267 fi
4268
4269 fi
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4271 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4272 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4273
4274  if
4275   test "x$enable_dependency_tracking" != xno \
4276   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4277   am__fastdepCC_TRUE=
4278   am__fastdepCC_FALSE='#'
4279 else
4280   am__fastdepCC_TRUE='#'
4281   am__fastdepCC_FALSE=
4282 fi
4283
4284
4285 CFLAGS=$save_CFLAGS
4286
4287
4288
4289
4290
4291 # By default we simply use the C compiler to build assembly code.
4292
4293 test "${CCAS+set}" = set || CCAS=$CC
4294 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4295
4296
4297
4298 depcc="$CCAS"   am_compiler_list=
4299
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4301 $as_echo_n "checking dependency style of $depcc... " >&6; }
4302 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4306   # We make a subdir and do the tests there.  Otherwise we can end up
4307   # making bogus files that we don't know about and never remove.  For
4308   # instance it was reported that on HP-UX the gcc test will end up
4309   # making a dummy file named 'D' -- because '-MD' means "put the output
4310   # in D".
4311   rm -rf conftest.dir
4312   mkdir conftest.dir
4313   # Copy depcomp to subdir because otherwise we won't find it if we're
4314   # using a relative directory.
4315   cp "$am_depcomp" conftest.dir
4316   cd conftest.dir
4317   # We will build objects and dependencies in a subdirectory because
4318   # it helps to detect inapplicable dependency modes.  For instance
4319   # both Tru64's cc and ICC support -MD to output dependencies as a
4320   # side effect of compilation, but ICC will put the dependencies in
4321   # the current directory while Tru64 will put them in the object
4322   # directory.
4323   mkdir sub
4324
4325   am_cv_CCAS_dependencies_compiler_type=none
4326   if test "$am_compiler_list" = ""; then
4327      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4328   fi
4329   am__universal=false
4330
4331
4332   for depmode in $am_compiler_list; do
4333     # Setup a source with many dependencies, because some compilers
4334     # like to wrap large dependency lists on column 80 (with \), and
4335     # we should not choose a depcomp mode which is confused by this.
4336     #
4337     # We need to recreate these files for each test, as the compiler may
4338     # overwrite some of them when testing with obscure command lines.
4339     # This happens at least with the AIX C compiler.
4340     : > sub/conftest.c
4341     for i in 1 2 3 4 5 6; do
4342       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4343       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4344       # Solaris 10 /bin/sh.
4345       echo '/* dummy */' > sub/conftst$i.h
4346     done
4347     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4348
4349     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4350     # mode.  It turns out that the SunPro C++ compiler does not properly
4351     # handle '-M -o', and we need to detect this.  Also, some Intel
4352     # versions had trouble with output in subdirs.
4353     am__obj=sub/conftest.${OBJEXT-o}
4354     am__minus_obj="-o $am__obj"
4355     case $depmode in
4356     gcc)
4357       # This depmode causes a compiler race in universal mode.
4358       test "$am__universal" = false || continue
4359       ;;
4360     nosideeffect)
4361       # After this tag, mechanisms are not by side-effect, so they'll
4362       # only be used when explicitly requested.
4363       if test "x$enable_dependency_tracking" = xyes; then
4364         continue
4365       else
4366         break
4367       fi
4368       ;;
4369     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4370       # This compiler won't grok '-c -o', but also, the minuso test has
4371       # not run yet.  These depmodes are late enough in the game, and
4372       # so weak that their functioning should not be impacted.
4373       am__obj=conftest.${OBJEXT-o}
4374       am__minus_obj=
4375       ;;
4376     none) break ;;
4377     esac
4378     if depmode=$depmode \
4379        source=sub/conftest.c object=$am__obj \
4380        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4381        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4382          >/dev/null 2>conftest.err &&
4383        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4384        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4385        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4386        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4387       # icc doesn't choke on unknown options, it will just issue warnings
4388       # or remarks (even with -Werror).  So we grep stderr for any message
4389       # that says an option was ignored or not supported.
4390       # When given -MP, icc 7.0 and 7.1 complain thusly:
4391       #   icc: Command line warning: ignoring option '-M'; no argument required
4392       # The diagnosis changed in icc 8.0:
4393       #   icc: Command line remark: option '-MP' not supported
4394       if (grep 'ignoring option' conftest.err ||
4395           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4396         am_cv_CCAS_dependencies_compiler_type=$depmode
4397         break
4398       fi
4399     fi
4400   done
4401
4402   cd ..
4403   rm -rf conftest.dir
4404 else
4405   am_cv_CCAS_dependencies_compiler_type=none
4406 fi
4407
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4410 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4411 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4412
4413  if
4414   test "x$enable_dependency_tracking" != xno \
4415   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4416   am__fastdepCCAS_TRUE=
4417   am__fastdepCCAS_FALSE='#'
4418 else
4419   am__fastdepCCAS_TRUE='#'
4420   am__fastdepCCAS_FALSE=
4421 fi
4422
4423
4424 if test "x$CC" != xcc; then
4425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4426 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4427 else
4428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4429 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4430 fi
4431 set dummy $CC; ac_cc=`$as_echo "$2" |
4432                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4433 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4434   $as_echo_n "(cached) " >&6
4435 else
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438
4439 int
4440 main ()
4441 {
4442
4443   ;
4444   return 0;
4445 }
4446 _ACEOF
4447 # Make sure it works both with $CC and with simple cc.
4448 # We do the test twice because some compilers refuse to overwrite an
4449 # existing .o file with -o, though they will create one.
4450 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4451 rm -f conftest2.*
4452 if { { case "(($ac_try" in
4453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4454   *) ac_try_echo=$ac_try;;
4455 esac
4456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458   (eval "$ac_try") 2>&5
4459   ac_status=$?
4460   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461   test $ac_status = 0; } &&
4462    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471   test $ac_status = 0; };
4472 then
4473   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4474   if test "x$CC" != xcc; then
4475     # Test first that cc exists at all.
4476     if { ac_try='cc -c conftest.$ac_ext >&5'
4477   { { case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4482 $as_echo "$ac_try_echo"; } >&5
4483   (eval "$ac_try") 2>&5
4484   ac_status=$?
4485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486   test $ac_status = 0; }; }; then
4487       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4488       rm -f conftest2.*
4489       if { { case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4494 $as_echo "$ac_try_echo"; } >&5
4495   (eval "$ac_try") 2>&5
4496   ac_status=$?
4497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498   test $ac_status = 0; } &&
4499          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501   *) ac_try_echo=$ac_try;;
4502 esac
4503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4504 $as_echo "$ac_try_echo"; } >&5
4505   (eval "$ac_try") 2>&5
4506   ac_status=$?
4507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4508   test $ac_status = 0; };
4509       then
4510         # cc works too.
4511         :
4512       else
4513         # cc exists but doesn't like -o.
4514         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4515       fi
4516     fi
4517   fi
4518 else
4519   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4520 fi
4521 rm -f core conftest*
4522
4523 fi
4524 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4526 $as_echo "yes" >&6; }
4527 else
4528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4530
4531 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4532
4533 fi
4534
4535 # FIXME: we rely on the cache variable name because
4536 # there is no other way.
4537 set dummy $CC
4538 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4539 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4540 if test "$am_t" != yes; then
4541    # Losing compiler, so override with the script.
4542    # FIXME: It is wrong to rewrite CC.
4543    # But if we don't then we get into trouble of one sort or another.
4544    # A longer-term fix would be to have automake use am__CC in this case,
4545    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4546    CC="$am_aux_dir/compile $CC"
4547 fi
4548
4549
4550 case `pwd` in
4551   *\ * | *\     *)
4552     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4553 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4554 esac
4555
4556
4557
4558 macro_version='2.4.2'
4559 macro_revision='1.3337'
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573 ltmain="$ac_aux_dir/ltmain.sh"
4574
4575 # Backslashify metacharacters that are still active within
4576 # double-quoted strings.
4577 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4578
4579 # Same as above, but do not quote variable references.
4580 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4581
4582 # Sed substitution to delay expansion of an escaped shell variable in a
4583 # double_quote_subst'ed string.
4584 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4585
4586 # Sed substitution to delay expansion of an escaped single quote.
4587 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4588
4589 # Sed substitution to avoid accidental globbing in evaled expressions
4590 no_glob_subst='s/\*/\\\*/g'
4591
4592 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4593 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4594 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4595
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4597 $as_echo_n "checking how to print strings... " >&6; }
4598 # Test print first, because it will be a builtin if present.
4599 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4600    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4601   ECHO='print -r --'
4602 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4603   ECHO='printf %s\n'
4604 else
4605   # Use this function as a fallback that always works.
4606   func_fallback_echo ()
4607   {
4608     eval 'cat <<_LTECHO_EOF
4609 $1
4610 _LTECHO_EOF'
4611   }
4612   ECHO='func_fallback_echo'
4613 fi
4614
4615 # func_echo_all arg...
4616 # Invoke $ECHO with all args, space-separated.
4617 func_echo_all ()
4618 {
4619     $ECHO ""
4620 }
4621
4622 case "$ECHO" in
4623   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4624 $as_echo "printf" >&6; } ;;
4625   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4626 $as_echo "print -r" >&6; } ;;
4627   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4628 $as_echo "cat" >&6; } ;;
4629 esac
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4645 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4646 if ${ac_cv_path_SED+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4650      for ac_i in 1 2 3 4 5 6 7; do
4651        ac_script="$ac_script$as_nl$ac_script"
4652      done
4653      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4654      { ac_script=; unset ac_script;}
4655      if test -z "$SED"; then
4656   ac_path_SED_found=false
4657   # Loop through the user's path and test for each of PROGNAME-LIST
4658   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 for as_dir in $PATH
4660 do
4661   IFS=$as_save_IFS
4662   test -z "$as_dir" && as_dir=.
4663     for ac_prog in sed gsed; do
4664     for ac_exec_ext in '' $ac_executable_extensions; do
4665       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4666       as_fn_executable_p "$ac_path_SED" || continue
4667 # Check for GNU ac_path_SED and select it if it is found.
4668   # Check for GNU $ac_path_SED
4669 case `"$ac_path_SED" --version 2>&1` in
4670 *GNU*)
4671   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4672 *)
4673   ac_count=0
4674   $as_echo_n 0123456789 >"conftest.in"
4675   while :
4676   do
4677     cat "conftest.in" "conftest.in" >"conftest.tmp"
4678     mv "conftest.tmp" "conftest.in"
4679     cp "conftest.in" "conftest.nl"
4680     $as_echo '' >> "conftest.nl"
4681     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4682     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4683     as_fn_arith $ac_count + 1 && ac_count=$as_val
4684     if test $ac_count -gt ${ac_path_SED_max-0}; then
4685       # Best one so far, save it but keep looking for a better one
4686       ac_cv_path_SED="$ac_path_SED"
4687       ac_path_SED_max=$ac_count
4688     fi
4689     # 10*(2^10) chars as input seems more than enough
4690     test $ac_count -gt 10 && break
4691   done
4692   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 esac
4694
4695       $ac_path_SED_found && break 3
4696     done
4697   done
4698   done
4699 IFS=$as_save_IFS
4700   if test -z "$ac_cv_path_SED"; then
4701     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4702   fi
4703 else
4704   ac_cv_path_SED=$SED
4705 fi
4706
4707 fi
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4709 $as_echo "$ac_cv_path_SED" >&6; }
4710  SED="$ac_cv_path_SED"
4711   rm -f conftest.sed
4712
4713 test -z "$SED" && SED=sed
4714 Xsed="$SED -e 1s/^X//"
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4727 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4728 if ${ac_cv_path_GREP+:} false; then :
4729   $as_echo_n "(cached) " >&6
4730 else
4731   if test -z "$GREP"; then
4732   ac_path_GREP_found=false
4733   # Loop through the user's path and test for each of PROGNAME-LIST
4734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736 do
4737   IFS=$as_save_IFS
4738   test -z "$as_dir" && as_dir=.
4739     for ac_prog in grep ggrep; do
4740     for ac_exec_ext in '' $ac_executable_extensions; do
4741       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4742       as_fn_executable_p "$ac_path_GREP" || continue
4743 # Check for GNU ac_path_GREP and select it if it is found.
4744   # Check for GNU $ac_path_GREP
4745 case `"$ac_path_GREP" --version 2>&1` in
4746 *GNU*)
4747   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4748 *)
4749   ac_count=0
4750   $as_echo_n 0123456789 >"conftest.in"
4751   while :
4752   do
4753     cat "conftest.in" "conftest.in" >"conftest.tmp"
4754     mv "conftest.tmp" "conftest.in"
4755     cp "conftest.in" "conftest.nl"
4756     $as_echo 'GREP' >> "conftest.nl"
4757     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4758     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4759     as_fn_arith $ac_count + 1 && ac_count=$as_val
4760     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4761       # Best one so far, save it but keep looking for a better one
4762       ac_cv_path_GREP="$ac_path_GREP"
4763       ac_path_GREP_max=$ac_count
4764     fi
4765     # 10*(2^10) chars as input seems more than enough
4766     test $ac_count -gt 10 && break
4767   done
4768   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 esac
4770
4771       $ac_path_GREP_found && break 3
4772     done
4773   done
4774   done
4775 IFS=$as_save_IFS
4776   if test -z "$ac_cv_path_GREP"; then
4777     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778   fi
4779 else
4780   ac_cv_path_GREP=$GREP
4781 fi
4782
4783 fi
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4785 $as_echo "$ac_cv_path_GREP" >&6; }
4786  GREP="$ac_cv_path_GREP"
4787
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4790 $as_echo_n "checking for egrep... " >&6; }
4791 if ${ac_cv_path_EGREP+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4795    then ac_cv_path_EGREP="$GREP -E"
4796    else
4797      if test -z "$EGREP"; then
4798   ac_path_EGREP_found=false
4799   # Loop through the user's path and test for each of PROGNAME-LIST
4800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802 do
4803   IFS=$as_save_IFS
4804   test -z "$as_dir" && as_dir=.
4805     for ac_prog in egrep; do
4806     for ac_exec_ext in '' $ac_executable_extensions; do
4807       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4808       as_fn_executable_p "$ac_path_EGREP" || continue
4809 # Check for GNU ac_path_EGREP and select it if it is found.
4810   # Check for GNU $ac_path_EGREP
4811 case `"$ac_path_EGREP" --version 2>&1` in
4812 *GNU*)
4813   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4814 *)
4815   ac_count=0
4816   $as_echo_n 0123456789 >"conftest.in"
4817   while :
4818   do
4819     cat "conftest.in" "conftest.in" >"conftest.tmp"
4820     mv "conftest.tmp" "conftest.in"
4821     cp "conftest.in" "conftest.nl"
4822     $as_echo 'EGREP' >> "conftest.nl"
4823     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4824     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4825     as_fn_arith $ac_count + 1 && ac_count=$as_val
4826     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4827       # Best one so far, save it but keep looking for a better one
4828       ac_cv_path_EGREP="$ac_path_EGREP"
4829       ac_path_EGREP_max=$ac_count
4830     fi
4831     # 10*(2^10) chars as input seems more than enough
4832     test $ac_count -gt 10 && break
4833   done
4834   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 esac
4836
4837       $ac_path_EGREP_found && break 3
4838     done
4839   done
4840   done
4841 IFS=$as_save_IFS
4842   if test -z "$ac_cv_path_EGREP"; then
4843     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4844   fi
4845 else
4846   ac_cv_path_EGREP=$EGREP
4847 fi
4848
4849    fi
4850 fi
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4852 $as_echo "$ac_cv_path_EGREP" >&6; }
4853  EGREP="$ac_cv_path_EGREP"
4854
4855
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4857 $as_echo_n "checking for fgrep... " >&6; }
4858 if ${ac_cv_path_FGREP+:} false; then :
4859   $as_echo_n "(cached) " >&6
4860 else
4861   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4862    then ac_cv_path_FGREP="$GREP -F"
4863    else
4864      if test -z "$FGREP"; then
4865   ac_path_FGREP_found=false
4866   # Loop through the user's path and test for each of PROGNAME-LIST
4867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4869 do
4870   IFS=$as_save_IFS
4871   test -z "$as_dir" && as_dir=.
4872     for ac_prog in fgrep; do
4873     for ac_exec_ext in '' $ac_executable_extensions; do
4874       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4875       as_fn_executable_p "$ac_path_FGREP" || continue
4876 # Check for GNU ac_path_FGREP and select it if it is found.
4877   # Check for GNU $ac_path_FGREP
4878 case `"$ac_path_FGREP" --version 2>&1` in
4879 *GNU*)
4880   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4881 *)
4882   ac_count=0
4883   $as_echo_n 0123456789 >"conftest.in"
4884   while :
4885   do
4886     cat "conftest.in" "conftest.in" >"conftest.tmp"
4887     mv "conftest.tmp" "conftest.in"
4888     cp "conftest.in" "conftest.nl"
4889     $as_echo 'FGREP' >> "conftest.nl"
4890     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892     as_fn_arith $ac_count + 1 && ac_count=$as_val
4893     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4894       # Best one so far, save it but keep looking for a better one
4895       ac_cv_path_FGREP="$ac_path_FGREP"
4896       ac_path_FGREP_max=$ac_count
4897     fi
4898     # 10*(2^10) chars as input seems more than enough
4899     test $ac_count -gt 10 && break
4900   done
4901   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904       $ac_path_FGREP_found && break 3
4905     done
4906   done
4907   done
4908 IFS=$as_save_IFS
4909   if test -z "$ac_cv_path_FGREP"; then
4910     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4911   fi
4912 else
4913   ac_cv_path_FGREP=$FGREP
4914 fi
4915
4916    fi
4917 fi
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4919 $as_echo "$ac_cv_path_FGREP" >&6; }
4920  FGREP="$ac_cv_path_FGREP"
4921
4922
4923 test -z "$GREP" && GREP=grep
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943 # Check whether --with-gnu-ld was given.
4944 if test "${with_gnu_ld+set}" = set; then :
4945   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4946 else
4947   with_gnu_ld=no
4948 fi
4949
4950 ac_prog=ld
4951 if test "$GCC" = yes; then
4952   # Check if gcc -print-prog-name=ld gives a path.
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4954 $as_echo_n "checking for ld used by $CC... " >&6; }
4955   case $host in
4956   *-*-mingw*)
4957     # gcc leaves a trailing carriage return which upsets mingw
4958     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4959   *)
4960     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4961   esac
4962   case $ac_prog in
4963     # Accept absolute paths.
4964     [\\/]* | ?:[\\/]*)
4965       re_direlt='/[^/][^/]*/\.\./'
4966       # Canonicalize the pathname of ld
4967       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4968       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4969         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4970       done
4971       test -z "$LD" && LD="$ac_prog"
4972       ;;
4973   "")
4974     # If it fails, then pretend we aren't using GCC.
4975     ac_prog=ld
4976     ;;
4977   *)
4978     # If it is relative, then search for the first ld in PATH.
4979     with_gnu_ld=unknown
4980     ;;
4981   esac
4982 elif test "$with_gnu_ld" = yes; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4984 $as_echo_n "checking for GNU ld... " >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4987 $as_echo_n "checking for non-GNU ld... " >&6; }
4988 fi
4989 if ${lt_cv_path_LD+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   if test -z "$LD"; then
4993   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4994   for ac_dir in $PATH; do
4995     IFS="$lt_save_ifs"
4996     test -z "$ac_dir" && ac_dir=.
4997     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4998       lt_cv_path_LD="$ac_dir/$ac_prog"
4999       # Check to see if the program is GNU ld.  I'd rather use --version,
5000       # but apparently some variants of GNU ld only accept -v.
5001       # Break only if it was the GNU/non-GNU ld that we prefer.
5002       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5003       *GNU* | *'with BFD'*)
5004         test "$with_gnu_ld" != no && break
5005         ;;
5006       *)
5007         test "$with_gnu_ld" != yes && break
5008         ;;
5009       esac
5010     fi
5011   done
5012   IFS="$lt_save_ifs"
5013 else
5014   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5015 fi
5016 fi
5017
5018 LD="$lt_cv_path_LD"
5019 if test -n "$LD"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5021 $as_echo "$LD" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5028 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5029 if ${lt_cv_prog_gnu_ld+:} false; then :
5030   $as_echo_n "(cached) " >&6
5031 else
5032   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5033 case `$LD -v 2>&1 </dev/null` in
5034 *GNU* | *'with BFD'*)
5035   lt_cv_prog_gnu_ld=yes
5036   ;;
5037 *)
5038   lt_cv_prog_gnu_ld=no
5039   ;;
5040 esac
5041 fi
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5043 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5044 with_gnu_ld=$lt_cv_prog_gnu_ld
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5055 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5056 if ${lt_cv_path_NM+:} false; then :
5057   $as_echo_n "(cached) " >&6
5058 else
5059   if test -n "$NM"; then
5060   # Let the user override the test.
5061   lt_cv_path_NM="$NM"
5062 else
5063   lt_nm_to_check="${ac_tool_prefix}nm"
5064   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5065     lt_nm_to_check="$lt_nm_to_check nm"
5066   fi
5067   for lt_tmp_nm in $lt_nm_to_check; do
5068     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5069     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5070       IFS="$lt_save_ifs"
5071       test -z "$ac_dir" && ac_dir=.
5072       tmp_nm="$ac_dir/$lt_tmp_nm"
5073       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5074         # Check to see if the nm accepts a BSD-compat flag.
5075         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5076         #   nm: unknown option "B" ignored
5077         # Tru64's nm complains that /dev/null is an invalid object file
5078         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5079         */dev/null* | *'Invalid file or object type'*)
5080           lt_cv_path_NM="$tmp_nm -B"
5081           break
5082           ;;
5083         *)
5084           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5085           */dev/null*)
5086             lt_cv_path_NM="$tmp_nm -p"
5087             break
5088             ;;
5089           *)
5090             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5091             continue # so that we can try to find one that supports BSD flags
5092             ;;
5093           esac
5094           ;;
5095         esac
5096       fi
5097     done
5098     IFS="$lt_save_ifs"
5099   done
5100   : ${lt_cv_path_NM=no}
5101 fi
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5104 $as_echo "$lt_cv_path_NM" >&6; }
5105 if test "$lt_cv_path_NM" != "no"; then
5106   NM="$lt_cv_path_NM"
5107 else
5108   # Didn't find any BSD compatible name lister, look for dumpbin.
5109   if test -n "$DUMPBIN"; then :
5110     # Let the user override the test.
5111   else
5112     if test -n "$ac_tool_prefix"; then
5113   for ac_prog in dumpbin "link -dump"
5114   do
5115     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5116 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_DUMPBIN+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$DUMPBIN"; then
5123   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 DUMPBIN=$ac_cv_prog_DUMPBIN
5143 if test -n "$DUMPBIN"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5145 $as_echo "$DUMPBIN" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152     test -n "$DUMPBIN" && break
5153   done
5154 fi
5155 if test -z "$DUMPBIN"; then
5156   ac_ct_DUMPBIN=$DUMPBIN
5157   for ac_prog in dumpbin "link -dump"
5158 do
5159   # Extract the first word of "$ac_prog", so it can be a program name with args.
5160 set dummy $ac_prog; ac_word=$2
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162 $as_echo_n "checking for $ac_word... " >&6; }
5163 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5164   $as_echo_n "(cached) " >&6
5165 else
5166   if test -n "$ac_ct_DUMPBIN"; then
5167   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5168 else
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174     for ac_exec_ext in '' $ac_executable_extensions; do
5175   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5177     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178     break 2
5179   fi
5180 done
5181   done
5182 IFS=$as_save_IFS
5183
5184 fi
5185 fi
5186 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5187 if test -n "$ac_ct_DUMPBIN"; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5189 $as_echo "$ac_ct_DUMPBIN" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192 $as_echo "no" >&6; }
5193 fi
5194
5195
5196   test -n "$ac_ct_DUMPBIN" && break
5197 done
5198
5199   if test "x$ac_ct_DUMPBIN" = x; then
5200     DUMPBIN=":"
5201   else
5202     case $cross_compiling:$ac_tool_warned in
5203 yes:)
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5206 ac_tool_warned=yes ;;
5207 esac
5208     DUMPBIN=$ac_ct_DUMPBIN
5209   fi
5210 fi
5211
5212     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5213     *COFF*)
5214       DUMPBIN="$DUMPBIN -symbols"
5215       ;;
5216     *)
5217       DUMPBIN=:
5218       ;;
5219     esac
5220   fi
5221
5222   if test "$DUMPBIN" != ":"; then
5223     NM="$DUMPBIN"
5224   fi
5225 fi
5226 test -z "$NM" && NM=nm
5227
5228
5229
5230
5231
5232
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5234 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5235 if ${lt_cv_nm_interface+:} false; then :
5236   $as_echo_n "(cached) " >&6
5237 else
5238   lt_cv_nm_interface="BSD nm"
5239   echo "int some_variable = 0;" > conftest.$ac_ext
5240   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5241   (eval "$ac_compile" 2>conftest.err)
5242   cat conftest.err >&5
5243   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5244   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5245   cat conftest.err >&5
5246   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5247   cat conftest.out >&5
5248   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5249     lt_cv_nm_interface="MS dumpbin"
5250   fi
5251   rm -f conftest*
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5254 $as_echo "$lt_cv_nm_interface" >&6; }
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5257 $as_echo_n "checking whether ln -s works... " >&6; }
5258 LN_S=$as_ln_s
5259 if test "$LN_S" = "ln -s"; then
5260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5261 $as_echo "yes" >&6; }
5262 else
5263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5264 $as_echo "no, using $LN_S" >&6; }
5265 fi
5266
5267 # find the maximum length of command line arguments
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5269 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5270 if ${lt_cv_sys_max_cmd_len+:} false; then :
5271   $as_echo_n "(cached) " >&6
5272 else
5273     i=0
5274   teststring="ABCD"
5275
5276   case $build_os in
5277   msdosdjgpp*)
5278     # On DJGPP, this test can blow up pretty badly due to problems in libc
5279     # (any single argument exceeding 2000 bytes causes a buffer overrun
5280     # during glob expansion).  Even if it were fixed, the result of this
5281     # check would be larger than it should be.
5282     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5283     ;;
5284
5285   gnu*)
5286     # Under GNU Hurd, this test is not required because there is
5287     # no limit to the length of command line arguments.
5288     # Libtool will interpret -1 as no limit whatsoever
5289     lt_cv_sys_max_cmd_len=-1;
5290     ;;
5291
5292   cygwin* | mingw* | cegcc*)
5293     # On Win9x/ME, this test blows up -- it succeeds, but takes
5294     # about 5 minutes as the teststring grows exponentially.
5295     # Worse, since 9x/ME are not pre-emptively multitasking,
5296     # you end up with a "frozen" computer, even though with patience
5297     # the test eventually succeeds (with a max line length of 256k).
5298     # Instead, let's just punt: use the minimum linelength reported by
5299     # all of the supported platforms: 8192 (on NT/2K/XP).
5300     lt_cv_sys_max_cmd_len=8192;
5301     ;;
5302
5303   mint*)
5304     # On MiNT this can take a long time and run out of memory.
5305     lt_cv_sys_max_cmd_len=8192;
5306     ;;
5307
5308   amigaos*)
5309     # On AmigaOS with pdksh, this test takes hours, literally.
5310     # So we just punt and use a minimum line length of 8192.
5311     lt_cv_sys_max_cmd_len=8192;
5312     ;;
5313
5314   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5315     # This has been around since 386BSD, at least.  Likely further.
5316     if test -x /sbin/sysctl; then
5317       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5318     elif test -x /usr/sbin/sysctl; then
5319       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5320     else
5321       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5322     fi
5323     # And add a safety zone
5324     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5325     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5326     ;;
5327
5328   interix*)
5329     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5330     lt_cv_sys_max_cmd_len=196608
5331     ;;
5332
5333   os2*)
5334     # The test takes a long time on OS/2.
5335     lt_cv_sys_max_cmd_len=8192
5336     ;;
5337
5338   osf*)
5339     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5340     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5341     # nice to cause kernel panics so lets avoid the loop below.
5342     # First set a reasonable default.
5343     lt_cv_sys_max_cmd_len=16384
5344     #
5345     if test -x /sbin/sysconfig; then
5346       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5347         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5348       esac
5349     fi
5350     ;;
5351   sco3.2v5*)
5352     lt_cv_sys_max_cmd_len=102400
5353     ;;
5354   sysv5* | sco5v6* | sysv4.2uw2*)
5355     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5356     if test -n "$kargmax"; then
5357       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5358     else
5359       lt_cv_sys_max_cmd_len=32768
5360     fi
5361     ;;
5362   *)
5363     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5364     if test -n "$lt_cv_sys_max_cmd_len" && \
5365       test undefined != "$lt_cv_sys_max_cmd_len"; then
5366       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5367       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5368     else
5369       # Make teststring a little bigger before we do anything with it.
5370       # a 1K string should be a reasonable start.
5371       for i in 1 2 3 4 5 6 7 8 ; do
5372         teststring=$teststring$teststring
5373       done
5374       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5375       # If test is not a shell built-in, we'll probably end up computing a
5376       # maximum length that is only half of the actual maximum length, but
5377       # we can't tell.
5378       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5379                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5380               test $i != 17 # 1/2 MB should be enough
5381       do
5382         i=`expr $i + 1`
5383         teststring=$teststring$teststring
5384       done
5385       # Only check the string length outside the loop.
5386       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5387       teststring=
5388       # Add a significant safety factor because C++ compilers can tack on
5389       # massive amounts of additional arguments before passing them to the
5390       # linker.  It appears as though 1/2 is a usable value.
5391       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5392     fi
5393     ;;
5394   esac
5395
5396 fi
5397
5398 if test -n $lt_cv_sys_max_cmd_len ; then
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5400 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5401 else
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5403 $as_echo "none" >&6; }
5404 fi
5405 max_cmd_len=$lt_cv_sys_max_cmd_len
5406
5407
5408
5409
5410
5411
5412 : ${CP="cp -f"}
5413 : ${MV="mv -f"}
5414 : ${RM="rm -f"}
5415
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5417 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5418 # Try some XSI features
5419 xsi_shell=no
5420 ( _lt_dummy="a/b/c"
5421   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5422       = c,a/b,b/c, \
5423     && eval 'test $(( 1 + 1 )) -eq 2 \
5424     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5425   && xsi_shell=yes
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5427 $as_echo "$xsi_shell" >&6; }
5428
5429
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5431 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5432 lt_shell_append=no
5433 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5434     >/dev/null 2>&1 \
5435   && lt_shell_append=yes
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5437 $as_echo "$lt_shell_append" >&6; }
5438
5439
5440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5441   lt_unset=unset
5442 else
5443   lt_unset=false
5444 fi
5445
5446
5447
5448
5449
5450 # test EBCDIC or ASCII
5451 case `echo X|tr X '\101'` in
5452  A) # ASCII based system
5453     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5454   lt_SP2NL='tr \040 \012'
5455   lt_NL2SP='tr \015\012 \040\040'
5456   ;;
5457  *) # EBCDIC based system
5458   lt_SP2NL='tr \100 \n'
5459   lt_NL2SP='tr \r\n \100\100'
5460   ;;
5461 esac
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5472 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5473 if ${lt_cv_to_host_file_cmd+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   case $host in
5477   *-*-mingw* )
5478     case $build in
5479       *-*-mingw* ) # actually msys
5480         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5481         ;;
5482       *-*-cygwin* )
5483         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5484         ;;
5485       * ) # otherwise, assume *nix
5486         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5487         ;;
5488     esac
5489     ;;
5490   *-*-cygwin* )
5491     case $build in
5492       *-*-mingw* ) # actually msys
5493         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5494         ;;
5495       *-*-cygwin* )
5496         lt_cv_to_host_file_cmd=func_convert_file_noop
5497         ;;
5498       * ) # otherwise, assume *nix
5499         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5500         ;;
5501     esac
5502     ;;
5503   * ) # unhandled hosts (and "normal" native builds)
5504     lt_cv_to_host_file_cmd=func_convert_file_noop
5505     ;;
5506 esac
5507
5508 fi
5509
5510 to_host_file_cmd=$lt_cv_to_host_file_cmd
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5512 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5513
5514
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5519 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5520 if ${lt_cv_to_tool_file_cmd+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   #assume ordinary cross tools, or native build.
5524 lt_cv_to_tool_file_cmd=func_convert_file_noop
5525 case $host in
5526   *-*-mingw* )
5527     case $build in
5528       *-*-mingw* ) # actually msys
5529         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5530         ;;
5531     esac
5532     ;;
5533 esac
5534
5535 fi
5536
5537 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5539 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5540
5541
5542
5543
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5546 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5547 if ${lt_cv_ld_reload_flag+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   lt_cv_ld_reload_flag='-r'
5551 fi
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5553 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5554 reload_flag=$lt_cv_ld_reload_flag
5555 case $reload_flag in
5556 "" | " "*) ;;
5557 *) reload_flag=" $reload_flag" ;;
5558 esac
5559 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5560 case $host_os in
5561   cygwin* | mingw* | pw32* | cegcc*)
5562     if test "$GCC" != yes; then
5563       reload_cmds=false
5564     fi
5565     ;;
5566   darwin*)
5567     if test "$GCC" = yes; then
5568       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5569     else
5570       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5571     fi
5572     ;;
5573 esac
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583 if test -n "$ac_tool_prefix"; then
5584   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5585 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_OBJDUMP+:} false; then :
5589   $as_echo_n "(cached) " >&6
5590 else
5591   if test -n "$OBJDUMP"; then
5592   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5593 else
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595 for as_dir in $PATH
5596 do
5597   IFS=$as_save_IFS
5598   test -z "$as_dir" && as_dir=.
5599     for ac_exec_ext in '' $ac_executable_extensions; do
5600   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603     break 2
5604   fi
5605 done
5606   done
5607 IFS=$as_save_IFS
5608
5609 fi
5610 fi
5611 OBJDUMP=$ac_cv_prog_OBJDUMP
5612 if test -n "$OBJDUMP"; then
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5614 $as_echo "$OBJDUMP" >&6; }
5615 else
5616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5618 fi
5619
5620
5621 fi
5622 if test -z "$ac_cv_prog_OBJDUMP"; then
5623   ac_ct_OBJDUMP=$OBJDUMP
5624   # Extract the first word of "objdump", so it can be a program name with args.
5625 set dummy objdump; ac_word=$2
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627 $as_echo_n "checking for $ac_word... " >&6; }
5628 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5629   $as_echo_n "(cached) " >&6
5630 else
5631   if test -n "$ac_ct_OBJDUMP"; then
5632   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5633 else
5634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639     for ac_exec_ext in '' $ac_executable_extensions; do
5640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643     break 2
5644   fi
5645 done
5646   done
5647 IFS=$as_save_IFS
5648
5649 fi
5650 fi
5651 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5652 if test -n "$ac_ct_OBJDUMP"; then
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5654 $as_echo "$ac_ct_OBJDUMP" >&6; }
5655 else
5656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5657 $as_echo "no" >&6; }
5658 fi
5659
5660   if test "x$ac_ct_OBJDUMP" = x; then
5661     OBJDUMP="false"
5662   else
5663     case $cross_compiling:$ac_tool_warned in
5664 yes:)
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5667 ac_tool_warned=yes ;;
5668 esac
5669     OBJDUMP=$ac_ct_OBJDUMP
5670   fi
5671 else
5672   OBJDUMP="$ac_cv_prog_OBJDUMP"
5673 fi
5674
5675 test -z "$OBJDUMP" && OBJDUMP=objdump
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5686 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5687 if ${lt_cv_deplibs_check_method+:} false; then :
5688   $as_echo_n "(cached) " >&6
5689 else
5690   lt_cv_file_magic_cmd='$MAGIC_CMD'
5691 lt_cv_file_magic_test_file=
5692 lt_cv_deplibs_check_method='unknown'
5693 # Need to set the preceding variable on all platforms that support
5694 # interlibrary dependencies.
5695 # 'none' -- dependencies not supported.
5696 # `unknown' -- same as none, but documents that we really don't know.
5697 # 'pass_all' -- all dependencies passed with no checks.
5698 # 'test_compile' -- check by making test program.
5699 # 'file_magic [[regex]]' -- check by looking for files in library path
5700 # which responds to the $file_magic_cmd with a given extended regex.
5701 # If you have `file' or equivalent on your system and you're not sure
5702 # whether `pass_all' will *always* work, you probably want this one.
5703
5704 case $host_os in
5705 aix[4-9]*)
5706   lt_cv_deplibs_check_method=pass_all
5707   ;;
5708
5709 beos*)
5710   lt_cv_deplibs_check_method=pass_all
5711   ;;
5712
5713 bsdi[45]*)
5714   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5715   lt_cv_file_magic_cmd='/usr/bin/file -L'
5716   lt_cv_file_magic_test_file=/shlib/libc.so
5717   ;;
5718
5719 cygwin*)
5720   # func_win32_libid is a shell function defined in ltmain.sh
5721   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5722   lt_cv_file_magic_cmd='func_win32_libid'
5723   ;;
5724
5725 mingw* | pw32*)
5726   # Base MSYS/MinGW do not provide the 'file' command needed by
5727   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5728   # unless we find 'file', for example because we are cross-compiling.
5729   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5730   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5731     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5732     lt_cv_file_magic_cmd='func_win32_libid'
5733   else
5734     # Keep this pattern in sync with the one in func_win32_libid.
5735     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5736     lt_cv_file_magic_cmd='$OBJDUMP -f'
5737   fi
5738   ;;
5739
5740 cegcc*)
5741   # use the weaker test based on 'objdump'. See mingw*.
5742   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5743   lt_cv_file_magic_cmd='$OBJDUMP -f'
5744   ;;
5745
5746 darwin* | rhapsody*)
5747   lt_cv_deplibs_check_method=pass_all
5748   ;;
5749
5750 freebsd* | dragonfly*)
5751   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5752     case $host_cpu in
5753     i*86 )
5754       # Not sure whether the presence of OpenBSD here was a mistake.
5755       # Let's accept both of them until this is cleared up.
5756       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5757       lt_cv_file_magic_cmd=/usr/bin/file
5758       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5759       ;;
5760     esac
5761   else
5762     lt_cv_deplibs_check_method=pass_all
5763   fi
5764   ;;
5765
5766 gnu*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 haiku*)
5771   lt_cv_deplibs_check_method=pass_all
5772   ;;
5773
5774 hpux10.20* | hpux11*)
5775   lt_cv_file_magic_cmd=/usr/bin/file
5776   case $host_cpu in
5777   ia64*)
5778     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5779     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5780     ;;
5781   hppa*64*)
5782     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]'
5783     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5784     ;;
5785   *)
5786     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5787     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5788     ;;
5789   esac
5790   ;;
5791
5792 interix[3-9]*)
5793   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5794   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5795   ;;
5796
5797 irix5* | irix6* | nonstopux*)
5798   case $LD in
5799   *-32|*"-32 ") libmagic=32-bit;;
5800   *-n32|*"-n32 ") libmagic=N32;;
5801   *-64|*"-64 ") libmagic=64-bit;;
5802   *) libmagic=never-match;;
5803   esac
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 # This must be glibc/ELF.
5808 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5809   lt_cv_deplibs_check_method=pass_all
5810   ;;
5811
5812 netbsd*)
5813   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5814     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5815   else
5816     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5817   fi
5818   ;;
5819
5820 newos6*)
5821   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5822   lt_cv_file_magic_cmd=/usr/bin/file
5823   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5824   ;;
5825
5826 *nto* | *qnx*)
5827   lt_cv_deplibs_check_method=pass_all
5828   ;;
5829
5830 openbsd*)
5831   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5832     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5833   else
5834     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5835   fi
5836   ;;
5837
5838 osf3* | osf4* | osf5*)
5839   lt_cv_deplibs_check_method=pass_all
5840   ;;
5841
5842 rdos*)
5843   lt_cv_deplibs_check_method=pass_all
5844   ;;
5845
5846 solaris*)
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5849
5850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5851   lt_cv_deplibs_check_method=pass_all
5852   ;;
5853
5854 sysv4 | sysv4.3*)
5855   case $host_vendor in
5856   motorola)
5857     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]'
5858     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5859     ;;
5860   ncr)
5861     lt_cv_deplibs_check_method=pass_all
5862     ;;
5863   sequent)
5864     lt_cv_file_magic_cmd='/bin/file'
5865     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5866     ;;
5867   sni)
5868     lt_cv_file_magic_cmd='/bin/file'
5869     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5870     lt_cv_file_magic_test_file=/lib/libc.so
5871     ;;
5872   siemens)
5873     lt_cv_deplibs_check_method=pass_all
5874     ;;
5875   pc)
5876     lt_cv_deplibs_check_method=pass_all
5877     ;;
5878   esac
5879   ;;
5880
5881 tpf*)
5882   lt_cv_deplibs_check_method=pass_all
5883   ;;
5884 esac
5885
5886 fi
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5888 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5889
5890 file_magic_glob=
5891 want_nocaseglob=no
5892 if test "$build" = "$host"; then
5893   case $host_os in
5894   mingw* | pw32*)
5895     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5896       want_nocaseglob=yes
5897     else
5898       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5899     fi
5900     ;;
5901   esac
5902 fi
5903
5904 file_magic_cmd=$lt_cv_file_magic_cmd
5905 deplibs_check_method=$lt_cv_deplibs_check_method
5906 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929 if test -n "$ac_tool_prefix"; then
5930   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5931 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_DLLTOOL+:} false; then :
5935   $as_echo_n "(cached) " >&6
5936 else
5937   if test -n "$DLLTOOL"; then
5938   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5939 else
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 for as_dir in $PATH
5942 do
5943   IFS=$as_save_IFS
5944   test -z "$as_dir" && as_dir=.
5945     for ac_exec_ext in '' $ac_executable_extensions; do
5946   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5949     break 2
5950   fi
5951 done
5952   done
5953 IFS=$as_save_IFS
5954
5955 fi
5956 fi
5957 DLLTOOL=$ac_cv_prog_DLLTOOL
5958 if test -n "$DLLTOOL"; then
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5960 $as_echo "$DLLTOOL" >&6; }
5961 else
5962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5964 fi
5965
5966
5967 fi
5968 if test -z "$ac_cv_prog_DLLTOOL"; then
5969   ac_ct_DLLTOOL=$DLLTOOL
5970   # Extract the first word of "dlltool", so it can be a program name with args.
5971 set dummy dlltool; ac_word=$2
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5973 $as_echo_n "checking for $ac_word... " >&6; }
5974 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   if test -n "$ac_ct_DLLTOOL"; then
5978   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5979 else
5980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 for as_dir in $PATH
5982 do
5983   IFS=$as_save_IFS
5984   test -z "$as_dir" && as_dir=.
5985     for ac_exec_ext in '' $ac_executable_extensions; do
5986   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5987     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5989     break 2
5990   fi
5991 done
5992   done
5993 IFS=$as_save_IFS
5994
5995 fi
5996 fi
5997 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5998 if test -n "$ac_ct_DLLTOOL"; then
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6000 $as_echo "$ac_ct_DLLTOOL" >&6; }
6001 else
6002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6003 $as_echo "no" >&6; }
6004 fi
6005
6006   if test "x$ac_ct_DLLTOOL" = x; then
6007     DLLTOOL="false"
6008   else
6009     case $cross_compiling:$ac_tool_warned in
6010 yes:)
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6013 ac_tool_warned=yes ;;
6014 esac
6015     DLLTOOL=$ac_ct_DLLTOOL
6016   fi
6017 else
6018   DLLTOOL="$ac_cv_prog_DLLTOOL"
6019 fi
6020
6021 test -z "$DLLTOOL" && DLLTOOL=dlltool
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6033 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6034 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6035   $as_echo_n "(cached) " >&6
6036 else
6037   lt_cv_sharedlib_from_linklib_cmd='unknown'
6038
6039 case $host_os in
6040 cygwin* | mingw* | pw32* | cegcc*)
6041   # two different shell functions defined in ltmain.sh
6042   # decide which to use based on capabilities of $DLLTOOL
6043   case `$DLLTOOL --help 2>&1` in
6044   *--identify-strict*)
6045     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6046     ;;
6047   *)
6048     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6049     ;;
6050   esac
6051   ;;
6052 *)
6053   # fallback: assume linklib IS sharedlib
6054   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6055   ;;
6056 esac
6057
6058 fi
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6060 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6061 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6062 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6063
6064
6065
6066
6067
6068
6069
6070
6071 if test -n "$ac_tool_prefix"; then
6072   for ac_prog in ar
6073   do
6074     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_AR+:} false; then :
6079   $as_echo_n "(cached) " >&6
6080 else
6081   if test -n "$AR"; then
6082   ac_cv_prog_AR="$AR" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087   IFS=$as_save_IFS
6088   test -z "$as_dir" && as_dir=.
6089     for ac_exec_ext in '' $ac_executable_extensions; do
6090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093     break 2
6094   fi
6095 done
6096   done
6097 IFS=$as_save_IFS
6098
6099 fi
6100 fi
6101 AR=$ac_cv_prog_AR
6102 if test -n "$AR"; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6104 $as_echo "$AR" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109
6110
6111     test -n "$AR" && break
6112   done
6113 fi
6114 if test -z "$AR"; then
6115   ac_ct_AR=$AR
6116   for ac_prog in ar
6117 do
6118   # Extract the first word of "$ac_prog", so it can be a program name with args.
6119 set dummy $ac_prog; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6123   $as_echo_n "(cached) " >&6
6124 else
6125   if test -n "$ac_ct_AR"; then
6126   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_exec_ext in '' $ac_executable_extensions; do
6134   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135     ac_cv_prog_ac_ct_AR="$ac_prog"
6136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137     break 2
6138   fi
6139 done
6140   done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6146 if test -n "$ac_ct_AR"; then
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6148 $as_echo "$ac_ct_AR" >&6; }
6149 else
6150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154
6155   test -n "$ac_ct_AR" && break
6156 done
6157
6158   if test "x$ac_ct_AR" = x; then
6159     AR="false"
6160   else
6161     case $cross_compiling:$ac_tool_warned in
6162 yes:)
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6165 ac_tool_warned=yes ;;
6166 esac
6167     AR=$ac_ct_AR
6168   fi
6169 fi
6170
6171 : ${AR=ar}
6172 : ${AR_FLAGS=cru}
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6185 $as_echo_n "checking for archiver @FILE support... " >&6; }
6186 if ${lt_cv_ar_at_file+:} false; then :
6187   $as_echo_n "(cached) " >&6
6188 else
6189   lt_cv_ar_at_file=no
6190    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6191 /* end confdefs.h.  */
6192
6193 int
6194 main ()
6195 {
6196
6197   ;
6198   return 0;
6199 }
6200 _ACEOF
6201 if ac_fn_c_try_compile "$LINENO"; then :
6202   echo conftest.$ac_objext > conftest.lst
6203       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6204       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6205   (eval $lt_ar_try) 2>&5
6206   ac_status=$?
6207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6208   test $ac_status = 0; }
6209       if test "$ac_status" -eq 0; then
6210         # Ensure the archiver fails upon bogus file names.
6211         rm -f conftest.$ac_objext libconftest.a
6212         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6213   (eval $lt_ar_try) 2>&5
6214   ac_status=$?
6215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6216   test $ac_status = 0; }
6217         if test "$ac_status" -ne 0; then
6218           lt_cv_ar_at_file=@
6219         fi
6220       fi
6221       rm -f conftest.* libconftest.a
6222
6223 fi
6224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6225
6226 fi
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6228 $as_echo "$lt_cv_ar_at_file" >&6; }
6229
6230 if test "x$lt_cv_ar_at_file" = xno; then
6231   archiver_list_spec=
6232 else
6233   archiver_list_spec=$lt_cv_ar_at_file
6234 fi
6235
6236
6237
6238
6239
6240
6241
6242 if test -n "$ac_tool_prefix"; then
6243   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6244 set dummy ${ac_tool_prefix}strip; ac_word=$2
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 $as_echo_n "checking for $ac_word... " >&6; }
6247 if ${ac_cv_prog_STRIP+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   if test -n "$STRIP"; then
6251   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6252 else
6253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 for as_dir in $PATH
6255 do
6256   IFS=$as_save_IFS
6257   test -z "$as_dir" && as_dir=.
6258     for ac_exec_ext in '' $ac_executable_extensions; do
6259   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262     break 2
6263   fi
6264 done
6265   done
6266 IFS=$as_save_IFS
6267
6268 fi
6269 fi
6270 STRIP=$ac_cv_prog_STRIP
6271 if test -n "$STRIP"; then
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6273 $as_echo "$STRIP" >&6; }
6274 else
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 $as_echo "no" >&6; }
6277 fi
6278
6279
6280 fi
6281 if test -z "$ac_cv_prog_STRIP"; then
6282   ac_ct_STRIP=$STRIP
6283   # Extract the first word of "strip", so it can be a program name with args.
6284 set dummy strip; ac_word=$2
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 $as_echo_n "checking for $ac_word... " >&6; }
6287 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6288   $as_echo_n "(cached) " >&6
6289 else
6290   if test -n "$ac_ct_STRIP"; then
6291   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6292 else
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294 for as_dir in $PATH
6295 do
6296   IFS=$as_save_IFS
6297   test -z "$as_dir" && as_dir=.
6298     for ac_exec_ext in '' $ac_executable_extensions; do
6299   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300     ac_cv_prog_ac_ct_STRIP="strip"
6301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302     break 2
6303   fi
6304 done
6305   done
6306 IFS=$as_save_IFS
6307
6308 fi
6309 fi
6310 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6311 if test -n "$ac_ct_STRIP"; then
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6313 $as_echo "$ac_ct_STRIP" >&6; }
6314 else
6315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 $as_echo "no" >&6; }
6317 fi
6318
6319   if test "x$ac_ct_STRIP" = x; then
6320     STRIP=":"
6321   else
6322     case $cross_compiling:$ac_tool_warned in
6323 yes:)
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326 ac_tool_warned=yes ;;
6327 esac
6328     STRIP=$ac_ct_STRIP
6329   fi
6330 else
6331   STRIP="$ac_cv_prog_STRIP"
6332 fi
6333
6334 test -z "$STRIP" && STRIP=:
6335
6336
6337
6338
6339
6340
6341 if test -n "$ac_tool_prefix"; then
6342   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6343 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6345 $as_echo_n "checking for $ac_word... " >&6; }
6346 if ${ac_cv_prog_RANLIB+:} false; then :
6347   $as_echo_n "(cached) " >&6
6348 else
6349   if test -n "$RANLIB"; then
6350   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6351 else
6352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6353 for as_dir in $PATH
6354 do
6355   IFS=$as_save_IFS
6356   test -z "$as_dir" && as_dir=.
6357     for ac_exec_ext in '' $ac_executable_extensions; do
6358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6359     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6361     break 2
6362   fi
6363 done
6364   done
6365 IFS=$as_save_IFS
6366
6367 fi
6368 fi
6369 RANLIB=$ac_cv_prog_RANLIB
6370 if test -n "$RANLIB"; then
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6372 $as_echo "$RANLIB" >&6; }
6373 else
6374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6375 $as_echo "no" >&6; }
6376 fi
6377
6378
6379 fi
6380 if test -z "$ac_cv_prog_RANLIB"; then
6381   ac_ct_RANLIB=$RANLIB
6382   # Extract the first word of "ranlib", so it can be a program name with args.
6383 set dummy ranlib; ac_word=$2
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6385 $as_echo_n "checking for $ac_word... " >&6; }
6386 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6387   $as_echo_n "(cached) " >&6
6388 else
6389   if test -n "$ac_ct_RANLIB"; then
6390   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6391 else
6392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393 for as_dir in $PATH
6394 do
6395   IFS=$as_save_IFS
6396   test -z "$as_dir" && as_dir=.
6397     for ac_exec_ext in '' $ac_executable_extensions; do
6398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6399     ac_cv_prog_ac_ct_RANLIB="ranlib"
6400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6401     break 2
6402   fi
6403 done
6404   done
6405 IFS=$as_save_IFS
6406
6407 fi
6408 fi
6409 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6410 if test -n "$ac_ct_RANLIB"; then
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6412 $as_echo "$ac_ct_RANLIB" >&6; }
6413 else
6414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415 $as_echo "no" >&6; }
6416 fi
6417
6418   if test "x$ac_ct_RANLIB" = x; then
6419     RANLIB=":"
6420   else
6421     case $cross_compiling:$ac_tool_warned in
6422 yes:)
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6425 ac_tool_warned=yes ;;
6426 esac
6427     RANLIB=$ac_ct_RANLIB
6428   fi
6429 else
6430   RANLIB="$ac_cv_prog_RANLIB"
6431 fi
6432
6433 test -z "$RANLIB" && RANLIB=:
6434
6435
6436
6437
6438
6439
6440 # Determine commands to create old-style static archives.
6441 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6442 old_postinstall_cmds='chmod 644 $oldlib'
6443 old_postuninstall_cmds=
6444
6445 if test -n "$RANLIB"; then
6446   case $host_os in
6447   openbsd*)
6448     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6449     ;;
6450   *)
6451     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6452     ;;
6453   esac
6454   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6455 fi
6456
6457 case $host_os in
6458   darwin*)
6459     lock_old_archive_extraction=yes ;;
6460   *)
6461     lock_old_archive_extraction=no ;;
6462 esac
6463
6464
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 # If no C compiler was specified, use CC.
6503 LTCC=${LTCC-"$CC"}
6504
6505 # If no C compiler flags were specified, use CFLAGS.
6506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6507
6508 # Allow CC to be a program name with arguments.
6509 compiler=$CC
6510
6511
6512 # Check for command to grab the raw symbol name followed by C symbol from nm.
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6514 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6515 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6516   $as_echo_n "(cached) " >&6
6517 else
6518
6519 # These are sane defaults that work on at least a few old systems.
6520 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6521
6522 # Character class describing NM global symbol codes.
6523 symcode='[BCDEGRST]'
6524
6525 # Regexp to match symbols that can be accessed directly from C.
6526 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6527
6528 # Define system-specific variables.
6529 case $host_os in
6530 aix*)
6531   symcode='[BCDT]'
6532   ;;
6533 cygwin* | mingw* | pw32* | cegcc*)
6534   symcode='[ABCDGISTW]'
6535   ;;
6536 hpux*)
6537   if test "$host_cpu" = ia64; then
6538     symcode='[ABCDEGRST]'
6539   fi
6540   ;;
6541 irix* | nonstopux*)
6542   symcode='[BCDEGRST]'
6543   ;;
6544 osf*)
6545   symcode='[BCDEGQRST]'
6546   ;;
6547 solaris*)
6548   symcode='[BDRT]'
6549   ;;
6550 sco3.2v5*)
6551   symcode='[DT]'
6552   ;;
6553 sysv4.2uw2*)
6554   symcode='[DT]'
6555   ;;
6556 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6557   symcode='[ABDT]'
6558   ;;
6559 sysv4)
6560   symcode='[DFNSTU]'
6561   ;;
6562 esac
6563
6564 # If we're using GNU nm, then use its standard symbol codes.
6565 case `$NM -V 2>&1` in
6566 *GNU* | *'with BFD'*)
6567   symcode='[ABCDGIRSTW]' ;;
6568 esac
6569
6570 # Transform an extracted symbol line into a proper C declaration.
6571 # Some systems (esp. on ia64) link data and code symbols differently,
6572 # so use this general approach.
6573 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6574
6575 # Transform an extracted symbol line into symbol name and symbol address
6576 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6577 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'"
6578
6579 # Handle CRLF in mingw tool chain
6580 opt_cr=
6581 case $build_os in
6582 mingw*)
6583   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6584   ;;
6585 esac
6586
6587 # Try without a prefix underscore, then with it.
6588 for ac_symprfx in "" "_"; do
6589
6590   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6591   symxfrm="\\1 $ac_symprfx\\2 \\2"
6592
6593   # Write the raw and C identifiers.
6594   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6595     # Fake it for dumpbin and say T for any non-static function
6596     # and D for any global variable.
6597     # Also find C++ and __fastcall symbols from MSVC++,
6598     # which start with @ or ?.
6599     lt_cv_sys_global_symbol_pipe="$AWK '"\
6600 "     {last_section=section; section=\$ 3};"\
6601 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6602 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6603 "     \$ 0!~/External *\|/{next};"\
6604 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6605 "     {if(hide[section]) next};"\
6606 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6607 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6608 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6609 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6610 "     ' prfx=^$ac_symprfx"
6611   else
6612     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6613   fi
6614   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6615
6616   # Check to see that the pipe works correctly.
6617   pipe_works=no
6618
6619   rm -f conftest*
6620   cat > conftest.$ac_ext <<_LT_EOF
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624 char nm_test_var;
6625 void nm_test_func(void);
6626 void nm_test_func(void){}
6627 #ifdef __cplusplus
6628 }
6629 #endif
6630 int main(){nm_test_var='a';nm_test_func();return(0);}
6631 _LT_EOF
6632
6633   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6634   (eval $ac_compile) 2>&5
6635   ac_status=$?
6636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6637   test $ac_status = 0; }; then
6638     # Now try to grab the symbols.
6639     nlist=conftest.nm
6640     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6641   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6642   ac_status=$?
6643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6644   test $ac_status = 0; } && test -s "$nlist"; then
6645       # Try sorting and uniquifying the output.
6646       if sort "$nlist" | uniq > "$nlist"T; then
6647         mv -f "$nlist"T "$nlist"
6648       else
6649         rm -f "$nlist"T
6650       fi
6651
6652       # Make sure that we snagged all the symbols we need.
6653       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6654         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6655           cat <<_LT_EOF > conftest.$ac_ext
6656 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6657 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6658 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6659    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6660 # define LT_DLSYM_CONST
6661 #elif defined(__osf__)
6662 /* This system does not cope well with relocations in const data.  */
6663 # define LT_DLSYM_CONST
6664 #else
6665 # define LT_DLSYM_CONST const
6666 #endif
6667
6668 #ifdef __cplusplus
6669 extern "C" {
6670 #endif
6671
6672 _LT_EOF
6673           # Now generate the symbol file.
6674           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6675
6676           cat <<_LT_EOF >> conftest.$ac_ext
6677
6678 /* The mapping between symbol names and symbols.  */
6679 LT_DLSYM_CONST struct {
6680   const char *name;
6681   void       *address;
6682 }
6683 lt__PROGRAM__LTX_preloaded_symbols[] =
6684 {
6685   { "@PROGRAM@", (void *) 0 },
6686 _LT_EOF
6687           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6688           cat <<\_LT_EOF >> conftest.$ac_ext
6689   {0, (void *) 0}
6690 };
6691
6692 /* This works around a problem in FreeBSD linker */
6693 #ifdef FREEBSD_WORKAROUND
6694 static const void *lt_preloaded_setup() {
6695   return lt__PROGRAM__LTX_preloaded_symbols;
6696 }
6697 #endif
6698
6699 #ifdef __cplusplus
6700 }
6701 #endif
6702 _LT_EOF
6703           # Now try linking the two files.
6704           mv conftest.$ac_objext conftstm.$ac_objext
6705           lt_globsym_save_LIBS=$LIBS
6706           lt_globsym_save_CFLAGS=$CFLAGS
6707           LIBS="conftstm.$ac_objext"
6708           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6709           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6710   (eval $ac_link) 2>&5
6711   ac_status=$?
6712   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6713   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6714             pipe_works=yes
6715           fi
6716           LIBS=$lt_globsym_save_LIBS
6717           CFLAGS=$lt_globsym_save_CFLAGS
6718         else
6719           echo "cannot find nm_test_func in $nlist" >&5
6720         fi
6721       else
6722         echo "cannot find nm_test_var in $nlist" >&5
6723       fi
6724     else
6725       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6726     fi
6727   else
6728     echo "$progname: failed program was:" >&5
6729     cat conftest.$ac_ext >&5
6730   fi
6731   rm -rf conftest* conftst*
6732
6733   # Do not use the global_symbol_pipe unless it works.
6734   if test "$pipe_works" = yes; then
6735     break
6736   else
6737     lt_cv_sys_global_symbol_pipe=
6738   fi
6739 done
6740
6741 fi
6742
6743 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6744   lt_cv_sys_global_symbol_to_cdecl=
6745 fi
6746 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6748 $as_echo "failed" >&6; }
6749 else
6750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6751 $as_echo "ok" >&6; }
6752 fi
6753
6754 # Response file support.
6755 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6756   nm_file_list_spec='@'
6757 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6758   nm_file_list_spec='@'
6759 fi
6760
6761
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6788 $as_echo_n "checking for sysroot... " >&6; }
6789
6790 # Check whether --with-sysroot was given.
6791 if test "${with_sysroot+set}" = set; then :
6792   withval=$with_sysroot;
6793 else
6794   with_sysroot=no
6795 fi
6796
6797
6798 lt_sysroot=
6799 case ${with_sysroot} in #(
6800  yes)
6801    if test "$GCC" = yes; then
6802      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6803    fi
6804    ;; #(
6805  /*)
6806    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6807    ;; #(
6808  no|'')
6809    ;; #(
6810  *)
6811    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6812 $as_echo "${with_sysroot}" >&6; }
6813    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6814    ;;
6815 esac
6816
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6818 $as_echo "${lt_sysroot:-no}" >&6; }
6819
6820
6821
6822
6823
6824 # Check whether --enable-libtool-lock was given.
6825 if test "${enable_libtool_lock+set}" = set; then :
6826   enableval=$enable_libtool_lock;
6827 fi
6828
6829 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6830
6831 # Some flags need to be propagated to the compiler or linker for good
6832 # libtool support.
6833 case $host in
6834 ia64-*-hpux*)
6835   # Find out which ABI we are using.
6836   echo 'int i;' > conftest.$ac_ext
6837   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6838   (eval $ac_compile) 2>&5
6839   ac_status=$?
6840   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6841   test $ac_status = 0; }; then
6842     case `/usr/bin/file conftest.$ac_objext` in
6843       *ELF-32*)
6844         HPUX_IA64_MODE="32"
6845         ;;
6846       *ELF-64*)
6847         HPUX_IA64_MODE="64"
6848         ;;
6849     esac
6850   fi
6851   rm -rf conftest*
6852   ;;
6853 *-*-irix6*)
6854   # Find out which ABI we are using.
6855   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6856   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857   (eval $ac_compile) 2>&5
6858   ac_status=$?
6859   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860   test $ac_status = 0; }; then
6861     if test "$lt_cv_prog_gnu_ld" = yes; then
6862       case `/usr/bin/file conftest.$ac_objext` in
6863         *32-bit*)
6864           LD="${LD-ld} -melf32bsmip"
6865           ;;
6866         *N32*)
6867           LD="${LD-ld} -melf32bmipn32"
6868           ;;
6869         *64-bit*)
6870           LD="${LD-ld} -melf64bmip"
6871         ;;
6872       esac
6873     else
6874       case `/usr/bin/file conftest.$ac_objext` in
6875         *32-bit*)
6876           LD="${LD-ld} -32"
6877           ;;
6878         *N32*)
6879           LD="${LD-ld} -n32"
6880           ;;
6881         *64-bit*)
6882           LD="${LD-ld} -64"
6883           ;;
6884       esac
6885     fi
6886   fi
6887   rm -rf conftest*
6888   ;;
6889
6890 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6891 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6892   # Find out which ABI we are using.
6893   echo 'int i;' > conftest.$ac_ext
6894   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895   (eval $ac_compile) 2>&5
6896   ac_status=$?
6897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898   test $ac_status = 0; }; then
6899     case `/usr/bin/file conftest.o` in
6900       *32-bit*)
6901         case $host in
6902           x86_64-*kfreebsd*-gnu)
6903             LD="${LD-ld} -m elf_i386_fbsd"
6904             ;;
6905           x86_64-*linux*)
6906             case `/usr/bin/file conftest.o` in
6907               *x86-64*)
6908                  LD="${LD-ld} -m elf32_x86_64"
6909                  ;;
6910               *)
6911                  LD="${LD-ld} -m elf_i386"
6912                  ;;
6913             esac
6914             ;;
6915           ppc64-*linux*|powerpc64-*linux*)
6916             LD="${LD-ld} -m elf32ppclinux"
6917             ;;
6918           s390x-*linux*)
6919             LD="${LD-ld} -m elf_s390"
6920             ;;
6921           sparc64-*linux*)
6922             LD="${LD-ld} -m elf32_sparc"
6923             ;;
6924         esac
6925         ;;
6926       *64-bit*)
6927         case $host in
6928           x86_64-*kfreebsd*-gnu)
6929             LD="${LD-ld} -m elf_x86_64_fbsd"
6930             ;;
6931           x86_64-*linux*)
6932             LD="${LD-ld} -m elf_x86_64"
6933             ;;
6934           ppc*-*linux*|powerpc*-*linux*)
6935             LD="${LD-ld} -m elf64ppc"
6936             ;;
6937           s390*-*linux*|s390*-*tpf*)
6938             LD="${LD-ld} -m elf64_s390"
6939             ;;
6940           sparc*-*linux*)
6941             LD="${LD-ld} -m elf64_sparc"
6942             ;;
6943         esac
6944         ;;
6945     esac
6946   fi
6947   rm -rf conftest*
6948   ;;
6949
6950 *-*-sco3.2v5*)
6951   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6952   SAVE_CFLAGS="$CFLAGS"
6953   CFLAGS="$CFLAGS -belf"
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6955 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6956 if ${lt_cv_cc_needs_belf+:} false; then :
6957   $as_echo_n "(cached) " >&6
6958 else
6959   ac_ext=c
6960 ac_cpp='$CPP $CPPFLAGS'
6961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964
6965      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h.  */
6967
6968 int
6969 main ()
6970 {
6971
6972   ;
6973   return 0;
6974 }
6975 _ACEOF
6976 if ac_fn_c_try_link "$LINENO"; then :
6977   lt_cv_cc_needs_belf=yes
6978 else
6979   lt_cv_cc_needs_belf=no
6980 fi
6981 rm -f core conftest.err conftest.$ac_objext \
6982     conftest$ac_exeext conftest.$ac_ext
6983      ac_ext=c
6984 ac_cpp='$CPP $CPPFLAGS'
6985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6988
6989 fi
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6991 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6992   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6993     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6994     CFLAGS="$SAVE_CFLAGS"
6995   fi
6996   ;;
6997 *-*solaris*)
6998   # Find out which ABI we are using.
6999   echo 'int i;' > conftest.$ac_ext
7000   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7001   (eval $ac_compile) 2>&5
7002   ac_status=$?
7003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7004   test $ac_status = 0; }; then
7005     case `/usr/bin/file conftest.o` in
7006     *64-bit*)
7007       case $lt_cv_prog_gnu_ld in
7008       yes*)
7009         case $host in
7010         i?86-*-solaris*)
7011           LD="${LD-ld} -m elf_x86_64"
7012           ;;
7013         sparc*-*-solaris*)
7014           LD="${LD-ld} -m elf64_sparc"
7015           ;;
7016         esac
7017         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7018         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7019           LD="${LD-ld}_sol2"
7020         fi
7021         ;;
7022       *)
7023         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7024           LD="${LD-ld} -64"
7025         fi
7026         ;;
7027       esac
7028       ;;
7029     esac
7030   fi
7031   rm -rf conftest*
7032   ;;
7033 esac
7034
7035 need_locks="$enable_libtool_lock"
7036
7037 if test -n "$ac_tool_prefix"; then
7038   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7039 set dummy ${ac_tool_prefix}mt; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   if test -n "$MANIFEST_TOOL"; then
7046   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053     for ac_exec_ext in '' $ac_executable_extensions; do
7054   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057     break 2
7058   fi
7059 done
7060   done
7061 IFS=$as_save_IFS
7062
7063 fi
7064 fi
7065 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7066 if test -n "$MANIFEST_TOOL"; then
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7068 $as_echo "$MANIFEST_TOOL" >&6; }
7069 else
7070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7072 fi
7073
7074
7075 fi
7076 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7077   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7078   # Extract the first word of "mt", so it can be a program name with args.
7079 set dummy mt; ac_word=$2
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7081 $as_echo_n "checking for $ac_word... " >&6; }
7082 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7083   $as_echo_n "(cached) " >&6
7084 else
7085   if test -n "$ac_ct_MANIFEST_TOOL"; then
7086   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7087 else
7088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 for as_dir in $PATH
7090 do
7091   IFS=$as_save_IFS
7092   test -z "$as_dir" && as_dir=.
7093     for ac_exec_ext in '' $ac_executable_extensions; do
7094   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7095     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7097     break 2
7098   fi
7099 done
7100   done
7101 IFS=$as_save_IFS
7102
7103 fi
7104 fi
7105 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7106 if test -n "$ac_ct_MANIFEST_TOOL"; then
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7108 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7109 else
7110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7111 $as_echo "no" >&6; }
7112 fi
7113
7114   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7115     MANIFEST_TOOL=":"
7116   else
7117     case $cross_compiling:$ac_tool_warned in
7118 yes:)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7121 ac_tool_warned=yes ;;
7122 esac
7123     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7124   fi
7125 else
7126   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7127 fi
7128
7129 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7131 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7132 if ${lt_cv_path_mainfest_tool+:} false; then :
7133   $as_echo_n "(cached) " >&6
7134 else
7135   lt_cv_path_mainfest_tool=no
7136   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7137   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7138   cat conftest.err >&5
7139   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7140     lt_cv_path_mainfest_tool=yes
7141   fi
7142   rm -f conftest*
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7145 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7146 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7147   MANIFEST_TOOL=:
7148 fi
7149
7150
7151
7152
7153
7154
7155   case $host_os in
7156     rhapsody* | darwin*)
7157     if test -n "$ac_tool_prefix"; then
7158   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   if test -n "$DSYMUTIL"; then
7166   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7186 if test -n "$DSYMUTIL"; then
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7188 $as_echo "$DSYMUTIL" >&6; }
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195 fi
7196 if test -z "$ac_cv_prog_DSYMUTIL"; then
7197   ac_ct_DSYMUTIL=$DSYMUTIL
7198   # Extract the first word of "dsymutil", so it can be a program name with args.
7199 set dummy dsymutil; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   if test -n "$ac_ct_DSYMUTIL"; then
7206   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213     for ac_exec_ext in '' $ac_executable_extensions; do
7214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220   done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7226 if test -n "$ac_ct_DSYMUTIL"; then
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7228 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7229 else
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234   if test "x$ac_ct_DSYMUTIL" = x; then
7235     DSYMUTIL=":"
7236   else
7237     case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243     DSYMUTIL=$ac_ct_DSYMUTIL
7244   fi
7245 else
7246   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7247 fi
7248
7249     if test -n "$ac_tool_prefix"; then
7250   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7251 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_NMEDIT+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   if test -n "$NMEDIT"; then
7258   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263   IFS=$as_save_IFS
7264   test -z "$as_dir" && as_dir=.
7265     for ac_exec_ext in '' $ac_executable_extensions; do
7266   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269     break 2
7270   fi
7271 done
7272   done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 NMEDIT=$ac_cv_prog_NMEDIT
7278 if test -n "$NMEDIT"; then
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7280 $as_echo "$NMEDIT" >&6; }
7281 else
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286
7287 fi
7288 if test -z "$ac_cv_prog_NMEDIT"; then
7289   ac_ct_NMEDIT=$NMEDIT
7290   # Extract the first word of "nmedit", so it can be a program name with args.
7291 set dummy nmedit; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7295   $as_echo_n "(cached) " >&6
7296 else
7297   if test -n "$ac_ct_NMEDIT"; then
7298   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7299 else
7300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 for as_dir in $PATH
7302 do
7303   IFS=$as_save_IFS
7304   test -z "$as_dir" && as_dir=.
7305     for ac_exec_ext in '' $ac_executable_extensions; do
7306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7307     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309     break 2
7310   fi
7311 done
7312   done
7313 IFS=$as_save_IFS
7314
7315 fi
7316 fi
7317 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7318 if test -n "$ac_ct_NMEDIT"; then
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7320 $as_echo "$ac_ct_NMEDIT" >&6; }
7321 else
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7323 $as_echo "no" >&6; }
7324 fi
7325
7326   if test "x$ac_ct_NMEDIT" = x; then
7327     NMEDIT=":"
7328   else
7329     case $cross_compiling:$ac_tool_warned in
7330 yes:)
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7332 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7333 ac_tool_warned=yes ;;
7334 esac
7335     NMEDIT=$ac_ct_NMEDIT
7336   fi
7337 else
7338   NMEDIT="$ac_cv_prog_NMEDIT"
7339 fi
7340
7341     if test -n "$ac_tool_prefix"; then
7342   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7343 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_LIPO+:} false; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   if test -n "$LIPO"; then
7350   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355   IFS=$as_save_IFS
7356   test -z "$as_dir" && as_dir=.
7357     for ac_exec_ext in '' $ac_executable_extensions; do
7358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361     break 2
7362   fi
7363 done
7364   done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 LIPO=$ac_cv_prog_LIPO
7370 if test -n "$LIPO"; then
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7372 $as_echo "$LIPO" >&6; }
7373 else
7374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378
7379 fi
7380 if test -z "$ac_cv_prog_LIPO"; then
7381   ac_ct_LIPO=$LIPO
7382   # Extract the first word of "lipo", so it can be a program name with args.
7383 set dummy lipo; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   if test -n "$ac_ct_LIPO"; then
7390   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397     for ac_exec_ext in '' $ac_executable_extensions; do
7398   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7399     ac_cv_prog_ac_ct_LIPO="lipo"
7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404   done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7410 if test -n "$ac_ct_LIPO"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7412 $as_echo "$ac_ct_LIPO" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418   if test "x$ac_ct_LIPO" = x; then
7419     LIPO=":"
7420   else
7421     case $cross_compiling:$ac_tool_warned in
7422 yes:)
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425 ac_tool_warned=yes ;;
7426 esac
7427     LIPO=$ac_ct_LIPO
7428   fi
7429 else
7430   LIPO="$ac_cv_prog_LIPO"
7431 fi
7432
7433     if test -n "$ac_tool_prefix"; then
7434   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7435 set dummy ${ac_tool_prefix}otool; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_OTOOL+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$OTOOL"; then
7442   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 OTOOL=$ac_cv_prog_OTOOL
7462 if test -n "$OTOOL"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7464 $as_echo "$OTOOL" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471 fi
7472 if test -z "$ac_cv_prog_OTOOL"; then
7473   ac_ct_OTOOL=$OTOOL
7474   # Extract the first word of "otool", so it can be a program name with args.
7475 set dummy otool; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$ac_ct_OTOOL"; then
7482   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491     ac_cv_prog_ac_ct_OTOOL="otool"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7502 if test -n "$ac_ct_OTOOL"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7504 $as_echo "$ac_ct_OTOOL" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510   if test "x$ac_ct_OTOOL" = x; then
7511     OTOOL=":"
7512   else
7513     case $cross_compiling:$ac_tool_warned in
7514 yes:)
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517 ac_tool_warned=yes ;;
7518 esac
7519     OTOOL=$ac_ct_OTOOL
7520   fi
7521 else
7522   OTOOL="$ac_cv_prog_OTOOL"
7523 fi
7524
7525     if test -n "$ac_tool_prefix"; then
7526   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7527 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529 $as_echo_n "checking for $ac_word... " >&6; }
7530 if ${ac_cv_prog_OTOOL64+:} false; then :
7531   $as_echo_n "(cached) " >&6
7532 else
7533   if test -n "$OTOOL64"; then
7534   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7535 else
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539   IFS=$as_save_IFS
7540   test -z "$as_dir" && as_dir=.
7541     for ac_exec_ext in '' $ac_executable_extensions; do
7542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7543     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545     break 2
7546   fi
7547 done
7548   done
7549 IFS=$as_save_IFS
7550
7551 fi
7552 fi
7553 OTOOL64=$ac_cv_prog_OTOOL64
7554 if test -n "$OTOOL64"; then
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7556 $as_echo "$OTOOL64" >&6; }
7557 else
7558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559 $as_echo "no" >&6; }
7560 fi
7561
7562
7563 fi
7564 if test -z "$ac_cv_prog_OTOOL64"; then
7565   ac_ct_OTOOL64=$OTOOL64
7566   # Extract the first word of "otool64", so it can be a program name with args.
7567 set dummy otool64; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   if test -n "$ac_ct_OTOOL64"; then
7574   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7575 else
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577 for as_dir in $PATH
7578 do
7579   IFS=$as_save_IFS
7580   test -z "$as_dir" && as_dir=.
7581     for ac_exec_ext in '' $ac_executable_extensions; do
7582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7583     ac_cv_prog_ac_ct_OTOOL64="otool64"
7584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585     break 2
7586   fi
7587 done
7588   done
7589 IFS=$as_save_IFS
7590
7591 fi
7592 fi
7593 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7594 if test -n "$ac_ct_OTOOL64"; then
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7596 $as_echo "$ac_ct_OTOOL64" >&6; }
7597 else
7598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7600 fi
7601
7602   if test "x$ac_ct_OTOOL64" = x; then
7603     OTOOL64=":"
7604   else
7605     case $cross_compiling:$ac_tool_warned in
7606 yes:)
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609 ac_tool_warned=yes ;;
7610 esac
7611     OTOOL64=$ac_ct_OTOOL64
7612   fi
7613 else
7614   OTOOL64="$ac_cv_prog_OTOOL64"
7615 fi
7616
7617
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7644 $as_echo_n "checking for -single_module linker flag... " >&6; }
7645 if ${lt_cv_apple_cc_single_mod+:} false; then :
7646   $as_echo_n "(cached) " >&6
7647 else
7648   lt_cv_apple_cc_single_mod=no
7649       if test -z "${LT_MULTI_MODULE}"; then
7650         # By default we will add the -single_module flag. You can override
7651         # by either setting the environment variable LT_MULTI_MODULE
7652         # non-empty at configure time, or by adding -multi_module to the
7653         # link flags.
7654         rm -rf libconftest.dylib*
7655         echo "int foo(void){return 1;}" > conftest.c
7656         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7657 -dynamiclib -Wl,-single_module conftest.c" >&5
7658         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7659           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7660         _lt_result=$?
7661         # If there is a non-empty error log, and "single_module"
7662         # appears in it, assume the flag caused a linker warning
7663         if test -s conftest.err && $GREP single_module conftest.err; then
7664           cat conftest.err >&5
7665         # Otherwise, if the output was created with a 0 exit code from
7666         # the compiler, it worked.
7667         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7668           lt_cv_apple_cc_single_mod=yes
7669         else
7670           cat conftest.err >&5
7671         fi
7672         rm -rf libconftest.dylib*
7673         rm -f conftest.*
7674       fi
7675 fi
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7677 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7678
7679     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7680 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7681 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   lt_cv_ld_exported_symbols_list=no
7685       save_LDFLAGS=$LDFLAGS
7686       echo "_main" > conftest.sym
7687       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7688       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h.  */
7690
7691 int
7692 main ()
7693 {
7694
7695   ;
7696   return 0;
7697 }
7698 _ACEOF
7699 if ac_fn_c_try_link "$LINENO"; then :
7700   lt_cv_ld_exported_symbols_list=yes
7701 else
7702   lt_cv_ld_exported_symbols_list=no
7703 fi
7704 rm -f core conftest.err conftest.$ac_objext \
7705     conftest$ac_exeext conftest.$ac_ext
7706         LDFLAGS="$save_LDFLAGS"
7707
7708 fi
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7710 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7711
7712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7713 $as_echo_n "checking for -force_load linker flag... " >&6; }
7714 if ${lt_cv_ld_force_load+:} false; then :
7715   $as_echo_n "(cached) " >&6
7716 else
7717   lt_cv_ld_force_load=no
7718       cat > conftest.c << _LT_EOF
7719 int forced_loaded() { return 2;}
7720 _LT_EOF
7721       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7722       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7723       echo "$AR cru libconftest.a conftest.o" >&5
7724       $AR cru libconftest.a conftest.o 2>&5
7725       echo "$RANLIB libconftest.a" >&5
7726       $RANLIB libconftest.a 2>&5
7727       cat > conftest.c << _LT_EOF
7728 int main() { return 0;}
7729 _LT_EOF
7730       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7731       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7732       _lt_result=$?
7733       if test -s conftest.err && $GREP force_load conftest.err; then
7734         cat conftest.err >&5
7735       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7736         lt_cv_ld_force_load=yes
7737       else
7738         cat conftest.err >&5
7739       fi
7740         rm -f conftest.err libconftest.a conftest conftest.c
7741         rm -rf conftest.dSYM
7742
7743 fi
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7745 $as_echo "$lt_cv_ld_force_load" >&6; }
7746     case $host_os in
7747     rhapsody* | darwin1.[012])
7748       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7749     darwin1.*)
7750       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7751     darwin*) # darwin 5.x on
7752       # if running on 10.5 or later, the deployment target defaults
7753       # to the OS version, if on x86, and 10.4, the deployment
7754       # target defaults to 10.4. Don't you love it?
7755       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7756         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7757           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7758         10.[012]*)
7759           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7760         10.*)
7761           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7762       esac
7763     ;;
7764   esac
7765     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7766       _lt_dar_single_mod='$single_module'
7767     fi
7768     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7769       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7770     else
7771       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7772     fi
7773     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7774       _lt_dsymutil='~$DSYMUTIL $lib || :'
7775     else
7776       _lt_dsymutil=
7777     fi
7778     ;;
7779   esac
7780
7781 ac_ext=c
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7787 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7788 # On Suns, sometimes $CPP names a directory.
7789 if test -n "$CPP" && test -d "$CPP"; then
7790   CPP=
7791 fi
7792 if test -z "$CPP"; then
7793   if ${ac_cv_prog_CPP+:} false; then :
7794   $as_echo_n "(cached) " >&6
7795 else
7796       # Double quotes because CPP needs to be expanded
7797     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7798     do
7799       ac_preproc_ok=false
7800 for ac_c_preproc_warn_flag in '' yes
7801 do
7802   # Use a header file that comes with gcc, so configuring glibc
7803   # with a fresh cross-compiler works.
7804   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7805   # <limits.h> exists even on freestanding compilers.
7806   # On the NeXT, cc -E runs the code through the compiler's parser,
7807   # not just through cpp. "Syntax error" is here to catch this case.
7808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809 /* end confdefs.h.  */
7810 #ifdef __STDC__
7811 # include <limits.h>
7812 #else
7813 # include <assert.h>
7814 #endif
7815                      Syntax error
7816 _ACEOF
7817 if ac_fn_c_try_cpp "$LINENO"; then :
7818
7819 else
7820   # Broken: fails on valid input.
7821 continue
7822 fi
7823 rm -f conftest.err conftest.i conftest.$ac_ext
7824
7825   # OK, works on sane cases.  Now check whether nonexistent headers
7826   # can be detected and how.
7827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h.  */
7829 #include <ac_nonexistent.h>
7830 _ACEOF
7831 if ac_fn_c_try_cpp "$LINENO"; then :
7832   # Broken: success on invalid input.
7833 continue
7834 else
7835   # Passes both tests.
7836 ac_preproc_ok=:
7837 break
7838 fi
7839 rm -f conftest.err conftest.i conftest.$ac_ext
7840
7841 done
7842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7843 rm -f conftest.i conftest.err conftest.$ac_ext
7844 if $ac_preproc_ok; then :
7845   break
7846 fi
7847
7848     done
7849     ac_cv_prog_CPP=$CPP
7850
7851 fi
7852   CPP=$ac_cv_prog_CPP
7853 else
7854   ac_cv_prog_CPP=$CPP
7855 fi
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7857 $as_echo "$CPP" >&6; }
7858 ac_preproc_ok=false
7859 for ac_c_preproc_warn_flag in '' yes
7860 do
7861   # Use a header file that comes with gcc, so configuring glibc
7862   # with a fresh cross-compiler works.
7863   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7864   # <limits.h> exists even on freestanding compilers.
7865   # On the NeXT, cc -E runs the code through the compiler's parser,
7866   # not just through cpp. "Syntax error" is here to catch this case.
7867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h.  */
7869 #ifdef __STDC__
7870 # include <limits.h>
7871 #else
7872 # include <assert.h>
7873 #endif
7874                      Syntax error
7875 _ACEOF
7876 if ac_fn_c_try_cpp "$LINENO"; then :
7877
7878 else
7879   # Broken: fails on valid input.
7880 continue
7881 fi
7882 rm -f conftest.err conftest.i conftest.$ac_ext
7883
7884   # OK, works on sane cases.  Now check whether nonexistent headers
7885   # can be detected and how.
7886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h.  */
7888 #include <ac_nonexistent.h>
7889 _ACEOF
7890 if ac_fn_c_try_cpp "$LINENO"; then :
7891   # Broken: success on invalid input.
7892 continue
7893 else
7894   # Passes both tests.
7895 ac_preproc_ok=:
7896 break
7897 fi
7898 rm -f conftest.err conftest.i conftest.$ac_ext
7899
7900 done
7901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7902 rm -f conftest.i conftest.err conftest.$ac_ext
7903 if $ac_preproc_ok; then :
7904
7905 else
7906   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7907 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7908 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7909 See \`config.log' for more details" "$LINENO" 5; }
7910 fi
7911
7912 ac_ext=c
7913 ac_cpp='$CPP $CPPFLAGS'
7914 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7915 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7916 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7917
7918
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7920 $as_echo_n "checking for ANSI C header files... " >&6; }
7921 if ${ac_cv_header_stdc+:} false; then :
7922   $as_echo_n "(cached) " >&6
7923 else
7924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h.  */
7926 #include <stdlib.h>
7927 #include <stdarg.h>
7928 #include <string.h>
7929 #include <float.h>
7930
7931 int
7932 main ()
7933 {
7934
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 if ac_fn_c_try_compile "$LINENO"; then :
7940   ac_cv_header_stdc=yes
7941 else
7942   ac_cv_header_stdc=no
7943 fi
7944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7945
7946 if test $ac_cv_header_stdc = yes; then
7947   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7948   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* end confdefs.h.  */
7950 #include <string.h>
7951
7952 _ACEOF
7953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7954   $EGREP "memchr" >/dev/null 2>&1; then :
7955
7956 else
7957   ac_cv_header_stdc=no
7958 fi
7959 rm -f conftest*
7960
7961 fi
7962
7963 if test $ac_cv_header_stdc = yes; then
7964   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h.  */
7967 #include <stdlib.h>
7968
7969 _ACEOF
7970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7971   $EGREP "free" >/dev/null 2>&1; then :
7972
7973 else
7974   ac_cv_header_stdc=no
7975 fi
7976 rm -f conftest*
7977
7978 fi
7979
7980 if test $ac_cv_header_stdc = yes; then
7981   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7982   if test "$cross_compiling" = yes; then :
7983   :
7984 else
7985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h.  */
7987 #include <ctype.h>
7988 #include <stdlib.h>
7989 #if ((' ' & 0x0FF) == 0x020)
7990 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7991 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7992 #else
7993 # define ISLOWER(c) \
7994                    (('a' <= (c) && (c) <= 'i') \
7995                      || ('j' <= (c) && (c) <= 'r') \
7996                      || ('s' <= (c) && (c) <= 'z'))
7997 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7998 #endif
7999
8000 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8001 int
8002 main ()
8003 {
8004   int i;
8005   for (i = 0; i < 256; i++)
8006     if (XOR (islower (i), ISLOWER (i))
8007         || toupper (i) != TOUPPER (i))
8008       return 2;
8009   return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_run "$LINENO"; then :
8013
8014 else
8015   ac_cv_header_stdc=no
8016 fi
8017 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8018   conftest.$ac_objext conftest.beam conftest.$ac_ext
8019 fi
8020
8021 fi
8022 fi
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8024 $as_echo "$ac_cv_header_stdc" >&6; }
8025 if test $ac_cv_header_stdc = yes; then
8026
8027 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8028
8029 fi
8030
8031 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8032 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8033                   inttypes.h stdint.h unistd.h
8034 do :
8035   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8036 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8037 "
8038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8039   cat >>confdefs.h <<_ACEOF
8040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8041 _ACEOF
8042
8043 fi
8044
8045 done
8046
8047
8048 for ac_header in dlfcn.h
8049 do :
8050   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8051 "
8052 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8053   cat >>confdefs.h <<_ACEOF
8054 #define HAVE_DLFCN_H 1
8055 _ACEOF
8056
8057 fi
8058
8059 done
8060
8061
8062
8063
8064
8065 # Set options
8066
8067
8068
8069         enable_dlopen=no
8070
8071
8072   enable_win32_dll=no
8073
8074
8075             # Check whether --enable-shared was given.
8076 if test "${enable_shared+set}" = set; then :
8077   enableval=$enable_shared; p=${PACKAGE-default}
8078     case $enableval in
8079     yes) enable_shared=yes ;;
8080     no) enable_shared=no ;;
8081     *)
8082       enable_shared=no
8083       # Look at the argument we got.  We use all the common list separators.
8084       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8085       for pkg in $enableval; do
8086         IFS="$lt_save_ifs"
8087         if test "X$pkg" = "X$p"; then
8088           enable_shared=yes
8089         fi
8090       done
8091       IFS="$lt_save_ifs"
8092       ;;
8093     esac
8094 else
8095   enable_shared=yes
8096 fi
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106   # Check whether --enable-static was given.
8107 if test "${enable_static+set}" = set; then :
8108   enableval=$enable_static; p=${PACKAGE-default}
8109     case $enableval in
8110     yes) enable_static=yes ;;
8111     no) enable_static=no ;;
8112     *)
8113      enable_static=no
8114       # Look at the argument we got.  We use all the common list separators.
8115       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8116       for pkg in $enableval; do
8117         IFS="$lt_save_ifs"
8118         if test "X$pkg" = "X$p"; then
8119           enable_static=yes
8120         fi
8121       done
8122       IFS="$lt_save_ifs"
8123       ;;
8124     esac
8125 else
8126   enable_static=yes
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138 # Check whether --with-pic was given.
8139 if test "${with_pic+set}" = set; then :
8140   withval=$with_pic; lt_p=${PACKAGE-default}
8141     case $withval in
8142     yes|no) pic_mode=$withval ;;
8143     *)
8144       pic_mode=default
8145       # Look at the argument we got.  We use all the common list separators.
8146       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8147       for lt_pkg in $withval; do
8148         IFS="$lt_save_ifs"
8149         if test "X$lt_pkg" = "X$lt_p"; then
8150           pic_mode=yes
8151         fi
8152       done
8153       IFS="$lt_save_ifs"
8154       ;;
8155     esac
8156 else
8157   pic_mode=default
8158 fi
8159
8160
8161 test -z "$pic_mode" && pic_mode=default
8162
8163
8164
8165
8166
8167
8168
8169   # Check whether --enable-fast-install was given.
8170 if test "${enable_fast_install+set}" = set; then :
8171   enableval=$enable_fast_install; p=${PACKAGE-default}
8172     case $enableval in
8173     yes) enable_fast_install=yes ;;
8174     no) enable_fast_install=no ;;
8175     *)
8176       enable_fast_install=no
8177       # Look at the argument we got.  We use all the common list separators.
8178       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8179       for pkg in $enableval; do
8180         IFS="$lt_save_ifs"
8181         if test "X$pkg" = "X$p"; then
8182           enable_fast_install=yes
8183         fi
8184       done
8185       IFS="$lt_save_ifs"
8186       ;;
8187     esac
8188 else
8189   enable_fast_install=yes
8190 fi
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 # This can be used to rebuild libtool when needed
8203 LIBTOOL_DEPS="$ltmain"
8204
8205 # Always use our own libtool.
8206 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8207
8208
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 test -z "$LN_S" && LN_S="ln -s"
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252 if test -n "${ZSH_VERSION+set}" ; then
8253    setopt NO_GLOB_SUBST
8254 fi
8255
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8257 $as_echo_n "checking for objdir... " >&6; }
8258 if ${lt_cv_objdir+:} false; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   rm -f .libs 2>/dev/null
8262 mkdir .libs 2>/dev/null
8263 if test -d .libs; then
8264   lt_cv_objdir=.libs
8265 else
8266   # MS-DOS does not allow filenames that begin with a dot.
8267   lt_cv_objdir=_libs
8268 fi
8269 rmdir .libs 2>/dev/null
8270 fi
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8272 $as_echo "$lt_cv_objdir" >&6; }
8273 objdir=$lt_cv_objdir
8274
8275
8276
8277
8278
8279 cat >>confdefs.h <<_ACEOF
8280 #define LT_OBJDIR "$lt_cv_objdir/"
8281 _ACEOF
8282
8283
8284
8285
8286 case $host_os in
8287 aix3*)
8288   # AIX sometimes has problems with the GCC collect2 program.  For some
8289   # reason, if we set the COLLECT_NAMES environment variable, the problems
8290   # vanish in a puff of smoke.
8291   if test "X${COLLECT_NAMES+set}" != Xset; then
8292     COLLECT_NAMES=
8293     export COLLECT_NAMES
8294   fi
8295   ;;
8296 esac
8297
8298 # Global variables:
8299 ofile=libtool
8300 can_build_shared=yes
8301
8302 # All known linkers require a `.a' archive for static linking (except MSVC,
8303 # which needs '.lib').
8304 libext=a
8305
8306 with_gnu_ld="$lt_cv_prog_gnu_ld"
8307
8308 old_CC="$CC"
8309 old_CFLAGS="$CFLAGS"
8310
8311 # Set sane defaults for various variables
8312 test -z "$CC" && CC=cc
8313 test -z "$LTCC" && LTCC=$CC
8314 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8315 test -z "$LD" && LD=ld
8316 test -z "$ac_objext" && ac_objext=o
8317
8318 for cc_temp in $compiler""; do
8319   case $cc_temp in
8320     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8321     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8322     \-*) ;;
8323     *) break;;
8324   esac
8325 done
8326 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8327
8328
8329 # Only perform the check for file, if the check method requires it
8330 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8331 case $deplibs_check_method in
8332 file_magic*)
8333   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8334     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8335 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8336 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8337   $as_echo_n "(cached) " >&6
8338 else
8339   case $MAGIC_CMD in
8340 [\\/*] |  ?:[\\/]*)
8341   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8342   ;;
8343 *)
8344   lt_save_MAGIC_CMD="$MAGIC_CMD"
8345   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8346   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8347   for ac_dir in $ac_dummy; do
8348     IFS="$lt_save_ifs"
8349     test -z "$ac_dir" && ac_dir=.
8350     if test -f $ac_dir/${ac_tool_prefix}file; then
8351       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8352       if test -n "$file_magic_test_file"; then
8353         case $deplibs_check_method in
8354         "file_magic "*)
8355           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8356           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8357           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8358             $EGREP "$file_magic_regex" > /dev/null; then
8359             :
8360           else
8361             cat <<_LT_EOF 1>&2
8362
8363 *** Warning: the command libtool uses to detect shared libraries,
8364 *** $file_magic_cmd, produces output that libtool cannot recognize.
8365 *** The result is that libtool may fail to recognize shared libraries
8366 *** as such.  This will affect the creation of libtool libraries that
8367 *** depend on shared libraries, but programs linked with such libtool
8368 *** libraries will work regardless of this problem.  Nevertheless, you
8369 *** may want to report the problem to your system manager and/or to
8370 *** bug-libtool@gnu.org
8371
8372 _LT_EOF
8373           fi ;;
8374         esac
8375       fi
8376       break
8377     fi
8378   done
8379   IFS="$lt_save_ifs"
8380   MAGIC_CMD="$lt_save_MAGIC_CMD"
8381   ;;
8382 esac
8383 fi
8384
8385 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8386 if test -n "$MAGIC_CMD"; then
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8388 $as_echo "$MAGIC_CMD" >&6; }
8389 else
8390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8392 fi
8393
8394
8395
8396
8397
8398 if test -z "$lt_cv_path_MAGIC_CMD"; then
8399   if test -n "$ac_tool_prefix"; then
8400     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8401 $as_echo_n "checking for file... " >&6; }
8402 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8403   $as_echo_n "(cached) " >&6
8404 else
8405   case $MAGIC_CMD in
8406 [\\/*] |  ?:[\\/]*)
8407   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8408   ;;
8409 *)
8410   lt_save_MAGIC_CMD="$MAGIC_CMD"
8411   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8412   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8413   for ac_dir in $ac_dummy; do
8414     IFS="$lt_save_ifs"
8415     test -z "$ac_dir" && ac_dir=.
8416     if test -f $ac_dir/file; then
8417       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8418       if test -n "$file_magic_test_file"; then
8419         case $deplibs_check_method in
8420         "file_magic "*)
8421           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8422           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8423           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8424             $EGREP "$file_magic_regex" > /dev/null; then
8425             :
8426           else
8427             cat <<_LT_EOF 1>&2
8428
8429 *** Warning: the command libtool uses to detect shared libraries,
8430 *** $file_magic_cmd, produces output that libtool cannot recognize.
8431 *** The result is that libtool may fail to recognize shared libraries
8432 *** as such.  This will affect the creation of libtool libraries that
8433 *** depend on shared libraries, but programs linked with such libtool
8434 *** libraries will work regardless of this problem.  Nevertheless, you
8435 *** may want to report the problem to your system manager and/or to
8436 *** bug-libtool@gnu.org
8437
8438 _LT_EOF
8439           fi ;;
8440         esac
8441       fi
8442       break
8443     fi
8444   done
8445   IFS="$lt_save_ifs"
8446   MAGIC_CMD="$lt_save_MAGIC_CMD"
8447   ;;
8448 esac
8449 fi
8450
8451 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8452 if test -n "$MAGIC_CMD"; then
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8454 $as_echo "$MAGIC_CMD" >&6; }
8455 else
8456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8458 fi
8459
8460
8461   else
8462     MAGIC_CMD=:
8463   fi
8464 fi
8465
8466   fi
8467   ;;
8468 esac
8469
8470 # Use C for the default configuration in the libtool script
8471
8472 lt_save_CC="$CC"
8473 ac_ext=c
8474 ac_cpp='$CPP $CPPFLAGS'
8475 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8476 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8477 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8478
8479
8480 # Source file extension for C test sources.
8481 ac_ext=c
8482
8483 # Object file extension for compiled C test sources.
8484 objext=o
8485 objext=$objext
8486
8487 # Code to be used in simple compile tests
8488 lt_simple_compile_test_code="int some_variable = 0;"
8489
8490 # Code to be used in simple link tests
8491 lt_simple_link_test_code='int main(){return(0);}'
8492
8493
8494
8495
8496
8497
8498
8499 # If no C compiler was specified, use CC.
8500 LTCC=${LTCC-"$CC"}
8501
8502 # If no C compiler flags were specified, use CFLAGS.
8503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8504
8505 # Allow CC to be a program name with arguments.
8506 compiler=$CC
8507
8508 # Save the default compiler, since it gets overwritten when the other
8509 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8510 compiler_DEFAULT=$CC
8511
8512 # save warnings/boilerplate of simple test code
8513 ac_outfile=conftest.$ac_objext
8514 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8515 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8516 _lt_compiler_boilerplate=`cat conftest.err`
8517 $RM conftest*
8518
8519 ac_outfile=conftest.$ac_objext
8520 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8521 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8522 _lt_linker_boilerplate=`cat conftest.err`
8523 $RM -r conftest*
8524
8525
8526 ## CAVEAT EMPTOR:
8527 ## There is no encapsulation within the following macros, do not change
8528 ## the running order or otherwise move them around unless you know exactly
8529 ## what you are doing...
8530 if test -n "$compiler"; then
8531
8532 lt_prog_compiler_no_builtin_flag=
8533
8534 if test "$GCC" = yes; then
8535   case $cc_basename in
8536   nvcc*)
8537     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8538   *)
8539     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8540   esac
8541
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8543 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8544 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8545   $as_echo_n "(cached) " >&6
8546 else
8547   lt_cv_prog_compiler_rtti_exceptions=no
8548    ac_outfile=conftest.$ac_objext
8549    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8550    lt_compiler_flag="-fno-rtti -fno-exceptions"
8551    # Insert the option either (1) after the last *FLAGS variable, or
8552    # (2) before a word containing "conftest.", or (3) at the end.
8553    # Note that $ac_compile itself does not contain backslashes and begins
8554    # with a dollar sign (not a hyphen), so the echo should work correctly.
8555    # The option is referenced via a variable to avoid confusing sed.
8556    lt_compile=`echo "$ac_compile" | $SED \
8557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8559    -e 's:$: $lt_compiler_flag:'`
8560    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8561    (eval "$lt_compile" 2>conftest.err)
8562    ac_status=$?
8563    cat conftest.err >&5
8564    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565    if (exit $ac_status) && test -s "$ac_outfile"; then
8566      # The compiler can only warn and ignore the option if not recognized
8567      # So say no if there are warnings other than the usual output.
8568      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8569      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8570      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8571        lt_cv_prog_compiler_rtti_exceptions=yes
8572      fi
8573    fi
8574    $RM conftest*
8575
8576 fi
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8578 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8579
8580 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8581     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8582 else
8583     :
8584 fi
8585
8586 fi
8587
8588
8589
8590
8591
8592
8593   lt_prog_compiler_wl=
8594 lt_prog_compiler_pic=
8595 lt_prog_compiler_static=
8596
8597
8598   if test "$GCC" = yes; then
8599     lt_prog_compiler_wl='-Wl,'
8600     lt_prog_compiler_static='-static'
8601
8602     case $host_os in
8603       aix*)
8604       # All AIX code is PIC.
8605       if test "$host_cpu" = ia64; then
8606         # AIX 5 now supports IA64 processor
8607         lt_prog_compiler_static='-Bstatic'
8608       fi
8609       ;;
8610
8611     amigaos*)
8612       case $host_cpu in
8613       powerpc)
8614             # see comment about AmigaOS4 .so support
8615             lt_prog_compiler_pic='-fPIC'
8616         ;;
8617       m68k)
8618             # FIXME: we need at least 68020 code to build shared libraries, but
8619             # adding the `-m68020' flag to GCC prevents building anything better,
8620             # like `-m68040'.
8621             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8622         ;;
8623       esac
8624       ;;
8625
8626     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8627       # PIC is the default for these OSes.
8628       ;;
8629
8630     mingw* | cygwin* | pw32* | os2* | cegcc*)
8631       # This hack is so that the source file can tell whether it is being
8632       # built for inclusion in a dll (and should export symbols for example).
8633       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8634       # (--disable-auto-import) libraries
8635       lt_prog_compiler_pic='-DDLL_EXPORT'
8636       ;;
8637
8638     darwin* | rhapsody*)
8639       # PIC is the default on this platform
8640       # Common symbols not allowed in MH_DYLIB files
8641       lt_prog_compiler_pic='-fno-common'
8642       ;;
8643
8644     haiku*)
8645       # PIC is the default for Haiku.
8646       # The "-static" flag exists, but is broken.
8647       lt_prog_compiler_static=
8648       ;;
8649
8650     hpux*)
8651       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8652       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8653       # sets the default TLS model and affects inlining.
8654       case $host_cpu in
8655       hppa*64*)
8656         # +Z the default
8657         ;;
8658       *)
8659         lt_prog_compiler_pic='-fPIC'
8660         ;;
8661       esac
8662       ;;
8663
8664     interix[3-9]*)
8665       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8666       # Instead, we relocate shared libraries at runtime.
8667       ;;
8668
8669     msdosdjgpp*)
8670       # Just because we use GCC doesn't mean we suddenly get shared libraries
8671       # on systems that don't support them.
8672       lt_prog_compiler_can_build_shared=no
8673       enable_shared=no
8674       ;;
8675
8676     *nto* | *qnx*)
8677       # QNX uses GNU C++, but need to define -shared option too, otherwise
8678       # it will coredump.
8679       lt_prog_compiler_pic='-fPIC -shared'
8680       ;;
8681
8682     sysv4*MP*)
8683       if test -d /usr/nec; then
8684         lt_prog_compiler_pic=-Kconform_pic
8685       fi
8686       ;;
8687
8688     *)
8689       lt_prog_compiler_pic='-fPIC'
8690       ;;
8691     esac
8692
8693     case $cc_basename in
8694     nvcc*) # Cuda Compiler Driver 2.2
8695       lt_prog_compiler_wl='-Xlinker '
8696       if test -n "$lt_prog_compiler_pic"; then
8697         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8698       fi
8699       ;;
8700     esac
8701   else
8702     # PORTME Check for flag to pass linker flags through the system compiler.
8703     case $host_os in
8704     aix*)
8705       lt_prog_compiler_wl='-Wl,'
8706       if test "$host_cpu" = ia64; then
8707         # AIX 5 now supports IA64 processor
8708         lt_prog_compiler_static='-Bstatic'
8709       else
8710         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8711       fi
8712       ;;
8713
8714     mingw* | cygwin* | pw32* | os2* | cegcc*)
8715       # This hack is so that the source file can tell whether it is being
8716       # built for inclusion in a dll (and should export symbols for example).
8717       lt_prog_compiler_pic='-DDLL_EXPORT'
8718       ;;
8719
8720     hpux9* | hpux10* | hpux11*)
8721       lt_prog_compiler_wl='-Wl,'
8722       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8723       # not for PA HP-UX.
8724       case $host_cpu in
8725       hppa*64*|ia64*)
8726         # +Z the default
8727         ;;
8728       *)
8729         lt_prog_compiler_pic='+Z'
8730         ;;
8731       esac
8732       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8733       lt_prog_compiler_static='${wl}-a ${wl}archive'
8734       ;;
8735
8736     irix5* | irix6* | nonstopux*)
8737       lt_prog_compiler_wl='-Wl,'
8738       # PIC (with -KPIC) is the default.
8739       lt_prog_compiler_static='-non_shared'
8740       ;;
8741
8742     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8743       case $cc_basename in
8744       # old Intel for x86_64 which still supported -KPIC.
8745       ecc*)
8746         lt_prog_compiler_wl='-Wl,'
8747         lt_prog_compiler_pic='-KPIC'
8748         lt_prog_compiler_static='-static'
8749         ;;
8750       # icc used to be incompatible with GCC.
8751       # ICC 10 doesn't accept -KPIC any more.
8752       icc* | ifort*)
8753         lt_prog_compiler_wl='-Wl,'
8754         lt_prog_compiler_pic='-fPIC'
8755         lt_prog_compiler_static='-static'
8756         ;;
8757       # Lahey Fortran 8.1.
8758       lf95*)
8759         lt_prog_compiler_wl='-Wl,'
8760         lt_prog_compiler_pic='--shared'
8761         lt_prog_compiler_static='--static'
8762         ;;
8763       nagfor*)
8764         # NAG Fortran compiler
8765         lt_prog_compiler_wl='-Wl,-Wl,,'
8766         lt_prog_compiler_pic='-PIC'
8767         lt_prog_compiler_static='-Bstatic'
8768         ;;
8769       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8770         # Portland Group compilers (*not* the Pentium gcc compiler,
8771         # which looks to be a dead project)
8772         lt_prog_compiler_wl='-Wl,'
8773         lt_prog_compiler_pic='-fpic'
8774         lt_prog_compiler_static='-Bstatic'
8775         ;;
8776       ccc*)
8777         lt_prog_compiler_wl='-Wl,'
8778         # All Alpha code is PIC.
8779         lt_prog_compiler_static='-non_shared'
8780         ;;
8781       xl* | bgxl* | bgf* | mpixl*)
8782         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8783         lt_prog_compiler_wl='-Wl,'
8784         lt_prog_compiler_pic='-qpic'
8785         lt_prog_compiler_static='-qstaticlink'
8786         ;;
8787       *)
8788         case `$CC -V 2>&1 | sed 5q` in
8789         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8790           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8791           lt_prog_compiler_pic='-KPIC'
8792           lt_prog_compiler_static='-Bstatic'
8793           lt_prog_compiler_wl=''
8794           ;;
8795         *Sun\ F* | *Sun*Fortran*)
8796           lt_prog_compiler_pic='-KPIC'
8797           lt_prog_compiler_static='-Bstatic'
8798           lt_prog_compiler_wl='-Qoption ld '
8799           ;;
8800         *Sun\ C*)
8801           # Sun C 5.9
8802           lt_prog_compiler_pic='-KPIC'
8803           lt_prog_compiler_static='-Bstatic'
8804           lt_prog_compiler_wl='-Wl,'
8805           ;;
8806         *Intel*\ [CF]*Compiler*)
8807           lt_prog_compiler_wl='-Wl,'
8808           lt_prog_compiler_pic='-fPIC'
8809           lt_prog_compiler_static='-static'
8810           ;;
8811         *Portland\ Group*)
8812           lt_prog_compiler_wl='-Wl,'
8813           lt_prog_compiler_pic='-fpic'
8814           lt_prog_compiler_static='-Bstatic'
8815           ;;
8816         esac
8817         ;;
8818       esac
8819       ;;
8820
8821     newsos6)
8822       lt_prog_compiler_pic='-KPIC'
8823       lt_prog_compiler_static='-Bstatic'
8824       ;;
8825
8826     *nto* | *qnx*)
8827       # QNX uses GNU C++, but need to define -shared option too, otherwise
8828       # it will coredump.
8829       lt_prog_compiler_pic='-fPIC -shared'
8830       ;;
8831
8832     osf3* | osf4* | osf5*)
8833       lt_prog_compiler_wl='-Wl,'
8834       # All OSF/1 code is PIC.
8835       lt_prog_compiler_static='-non_shared'
8836       ;;
8837
8838     rdos*)
8839       lt_prog_compiler_static='-non_shared'
8840       ;;
8841
8842     solaris*)
8843       lt_prog_compiler_pic='-KPIC'
8844       lt_prog_compiler_static='-Bstatic'
8845       case $cc_basename in
8846       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8847         lt_prog_compiler_wl='-Qoption ld ';;
8848       *)
8849         lt_prog_compiler_wl='-Wl,';;
8850       esac
8851       ;;
8852
8853     sunos4*)
8854       lt_prog_compiler_wl='-Qoption ld '
8855       lt_prog_compiler_pic='-PIC'
8856       lt_prog_compiler_static='-Bstatic'
8857       ;;
8858
8859     sysv4 | sysv4.2uw2* | sysv4.3*)
8860       lt_prog_compiler_wl='-Wl,'
8861       lt_prog_compiler_pic='-KPIC'
8862       lt_prog_compiler_static='-Bstatic'
8863       ;;
8864
8865     sysv4*MP*)
8866       if test -d /usr/nec ;then
8867         lt_prog_compiler_pic='-Kconform_pic'
8868         lt_prog_compiler_static='-Bstatic'
8869       fi
8870       ;;
8871
8872     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8873       lt_prog_compiler_wl='-Wl,'
8874       lt_prog_compiler_pic='-KPIC'
8875       lt_prog_compiler_static='-Bstatic'
8876       ;;
8877
8878     unicos*)
8879       lt_prog_compiler_wl='-Wl,'
8880       lt_prog_compiler_can_build_shared=no
8881       ;;
8882
8883     uts4*)
8884       lt_prog_compiler_pic='-pic'
8885       lt_prog_compiler_static='-Bstatic'
8886       ;;
8887
8888     *)
8889       lt_prog_compiler_can_build_shared=no
8890       ;;
8891     esac
8892   fi
8893
8894 case $host_os in
8895   # For platforms which do not support PIC, -DPIC is meaningless:
8896   *djgpp*)
8897     lt_prog_compiler_pic=
8898     ;;
8899   *)
8900     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8901     ;;
8902 esac
8903
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8906 if ${lt_cv_prog_compiler_pic+:} false; then :
8907   $as_echo_n "(cached) " >&6
8908 else
8909   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8910 fi
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8912 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8913 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8914
8915 #
8916 # Check to make sure the PIC flag actually works.
8917 #
8918 if test -n "$lt_prog_compiler_pic"; then
8919   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8921 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924   lt_cv_prog_compiler_pic_works=no
8925    ac_outfile=conftest.$ac_objext
8926    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8927    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8928    # Insert the option either (1) after the last *FLAGS variable, or
8929    # (2) before a word containing "conftest.", or (3) at the end.
8930    # Note that $ac_compile itself does not contain backslashes and begins
8931    # with a dollar sign (not a hyphen), so the echo should work correctly.
8932    # The option is referenced via a variable to avoid confusing sed.
8933    lt_compile=`echo "$ac_compile" | $SED \
8934    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8935    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8936    -e 's:$: $lt_compiler_flag:'`
8937    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8938    (eval "$lt_compile" 2>conftest.err)
8939    ac_status=$?
8940    cat conftest.err >&5
8941    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942    if (exit $ac_status) && test -s "$ac_outfile"; then
8943      # The compiler can only warn and ignore the option if not recognized
8944      # So say no if there are warnings other than the usual output.
8945      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8946      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8947      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8948        lt_cv_prog_compiler_pic_works=yes
8949      fi
8950    fi
8951    $RM conftest*
8952
8953 fi
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8955 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8956
8957 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8958     case $lt_prog_compiler_pic in
8959      "" | " "*) ;;
8960      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8961      esac
8962 else
8963     lt_prog_compiler_pic=
8964      lt_prog_compiler_can_build_shared=no
8965 fi
8966
8967 fi
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979 #
8980 # Check to make sure the static flag actually works.
8981 #
8982 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8984 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8985 if ${lt_cv_prog_compiler_static_works+:} false; then :
8986   $as_echo_n "(cached) " >&6
8987 else
8988   lt_cv_prog_compiler_static_works=no
8989    save_LDFLAGS="$LDFLAGS"
8990    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8991    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8992    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8993      # The linker can only warn and ignore the option if not recognized
8994      # So say no if there are warnings
8995      if test -s conftest.err; then
8996        # Append any errors to the config.log.
8997        cat conftest.err 1>&5
8998        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8999        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9000        if diff conftest.exp conftest.er2 >/dev/null; then
9001          lt_cv_prog_compiler_static_works=yes
9002        fi
9003      else
9004        lt_cv_prog_compiler_static_works=yes
9005      fi
9006    fi
9007    $RM -r conftest*
9008    LDFLAGS="$save_LDFLAGS"
9009
9010 fi
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9012 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9013
9014 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9015     :
9016 else
9017     lt_prog_compiler_static=
9018 fi
9019
9020
9021
9022
9023
9024
9025
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9027 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9028 if ${lt_cv_prog_compiler_c_o+:} false; then :
9029   $as_echo_n "(cached) " >&6
9030 else
9031   lt_cv_prog_compiler_c_o=no
9032    $RM -r conftest 2>/dev/null
9033    mkdir conftest
9034    cd conftest
9035    mkdir out
9036    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9037
9038    lt_compiler_flag="-o out/conftest2.$ac_objext"
9039    # Insert the option either (1) after the last *FLAGS variable, or
9040    # (2) before a word containing "conftest.", or (3) at the end.
9041    # Note that $ac_compile itself does not contain backslashes and begins
9042    # with a dollar sign (not a hyphen), so the echo should work correctly.
9043    lt_compile=`echo "$ac_compile" | $SED \
9044    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9045    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9046    -e 's:$: $lt_compiler_flag:'`
9047    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9048    (eval "$lt_compile" 2>out/conftest.err)
9049    ac_status=$?
9050    cat out/conftest.err >&5
9051    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9053    then
9054      # The compiler can only warn and ignore the option if not recognized
9055      # So say no if there are warnings
9056      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9057      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9058      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9059        lt_cv_prog_compiler_c_o=yes
9060      fi
9061    fi
9062    chmod u+w . 2>&5
9063    $RM conftest*
9064    # SGI C++ compiler will create directory out/ii_files/ for
9065    # template instantiation
9066    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9067    $RM out/* && rmdir out
9068    cd ..
9069    $RM -r conftest
9070    $RM conftest*
9071
9072 fi
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9074 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9075
9076
9077
9078
9079
9080
9081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9082 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9083 if ${lt_cv_prog_compiler_c_o+:} false; then :
9084   $as_echo_n "(cached) " >&6
9085 else
9086   lt_cv_prog_compiler_c_o=no
9087    $RM -r conftest 2>/dev/null
9088    mkdir conftest
9089    cd conftest
9090    mkdir out
9091    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9092
9093    lt_compiler_flag="-o out/conftest2.$ac_objext"
9094    # Insert the option either (1) after the last *FLAGS variable, or
9095    # (2) before a word containing "conftest.", or (3) at the end.
9096    # Note that $ac_compile itself does not contain backslashes and begins
9097    # with a dollar sign (not a hyphen), so the echo should work correctly.
9098    lt_compile=`echo "$ac_compile" | $SED \
9099    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9100    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9101    -e 's:$: $lt_compiler_flag:'`
9102    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9103    (eval "$lt_compile" 2>out/conftest.err)
9104    ac_status=$?
9105    cat out/conftest.err >&5
9106    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9108    then
9109      # The compiler can only warn and ignore the option if not recognized
9110      # So say no if there are warnings
9111      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9112      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9113      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9114        lt_cv_prog_compiler_c_o=yes
9115      fi
9116    fi
9117    chmod u+w . 2>&5
9118    $RM conftest*
9119    # SGI C++ compiler will create directory out/ii_files/ for
9120    # template instantiation
9121    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9122    $RM out/* && rmdir out
9123    cd ..
9124    $RM -r conftest
9125    $RM conftest*
9126
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9129 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9130
9131
9132
9133
9134 hard_links="nottested"
9135 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9136   # do not overwrite the value of need_locks provided by the user
9137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9138 $as_echo_n "checking if we can lock with hard links... " >&6; }
9139   hard_links=yes
9140   $RM conftest*
9141   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9142   touch conftest.a
9143   ln conftest.a conftest.b 2>&5 || hard_links=no
9144   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9146 $as_echo "$hard_links" >&6; }
9147   if test "$hard_links" = no; then
9148     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9149 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9150     need_locks=warn
9151   fi
9152 else
9153   need_locks=no
9154 fi
9155
9156
9157
9158
9159
9160
9161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9163
9164   runpath_var=
9165   allow_undefined_flag=
9166   always_export_symbols=no
9167   archive_cmds=
9168   archive_expsym_cmds=
9169   compiler_needs_object=no
9170   enable_shared_with_static_runtimes=no
9171   export_dynamic_flag_spec=
9172   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9173   hardcode_automatic=no
9174   hardcode_direct=no
9175   hardcode_direct_absolute=no
9176   hardcode_libdir_flag_spec=
9177   hardcode_libdir_separator=
9178   hardcode_minus_L=no
9179   hardcode_shlibpath_var=unsupported
9180   inherit_rpath=no
9181   link_all_deplibs=unknown
9182   module_cmds=
9183   module_expsym_cmds=
9184   old_archive_from_new_cmds=
9185   old_archive_from_expsyms_cmds=
9186   thread_safe_flag_spec=
9187   whole_archive_flag_spec=
9188   # include_expsyms should be a list of space-separated symbols to be *always*
9189   # included in the symbol list
9190   include_expsyms=
9191   # exclude_expsyms can be an extended regexp of symbols to exclude
9192   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9193   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9194   # as well as any symbol that contains `d'.
9195   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9196   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9197   # platforms (ab)use it in PIC code, but their linkers get confused if
9198   # the symbol is explicitly referenced.  Since portable code cannot
9199   # rely on this symbol name, it's probably fine to never include it in
9200   # preloaded symbol tables.
9201   # Exclude shared library initialization/finalization symbols.
9202   extract_expsyms_cmds=
9203
9204   case $host_os in
9205   cygwin* | mingw* | pw32* | cegcc*)
9206     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9207     # When not using gcc, we currently assume that we are using
9208     # Microsoft Visual C++.
9209     if test "$GCC" != yes; then
9210       with_gnu_ld=no
9211     fi
9212     ;;
9213   interix*)
9214     # we just hope/assume this is gcc and not c89 (= MSVC++)
9215     with_gnu_ld=yes
9216     ;;
9217   openbsd*)
9218     with_gnu_ld=no
9219     ;;
9220   esac
9221
9222   ld_shlibs=yes
9223
9224   # On some targets, GNU ld is compatible enough with the native linker
9225   # that we're better off using the native interface for both.
9226   lt_use_gnu_ld_interface=no
9227   if test "$with_gnu_ld" = yes; then
9228     case $host_os in
9229       aix*)
9230         # The AIX port of GNU ld has always aspired to compatibility
9231         # with the native linker.  However, as the warning in the GNU ld
9232         # block says, versions before 2.19.5* couldn't really create working
9233         # shared libraries, regardless of the interface used.
9234         case `$LD -v 2>&1` in
9235           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9236           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9237           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9238           *)
9239             lt_use_gnu_ld_interface=yes
9240             ;;
9241         esac
9242         ;;
9243       *)
9244         lt_use_gnu_ld_interface=yes
9245         ;;
9246     esac
9247   fi
9248
9249   if test "$lt_use_gnu_ld_interface" = yes; then
9250     # If archive_cmds runs LD, not CC, wlarc should be empty
9251     wlarc='${wl}'
9252
9253     # Set some defaults for GNU ld with shared library support. These
9254     # are reset later if shared libraries are not supported. Putting them
9255     # here allows them to be overridden if necessary.
9256     runpath_var=LD_RUN_PATH
9257     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9258     export_dynamic_flag_spec='${wl}--export-dynamic'
9259     # ancient GNU ld didn't support --whole-archive et. al.
9260     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9261       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9262     else
9263       whole_archive_flag_spec=
9264     fi
9265     supports_anon_versioning=no
9266     case `$LD -v 2>&1` in
9267       *GNU\ gold*) supports_anon_versioning=yes ;;
9268       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9269       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9270       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9271       *\ 2.11.*) ;; # other 2.11 versions
9272       *) supports_anon_versioning=yes ;;
9273     esac
9274
9275     # See if GNU ld supports shared libraries.
9276     case $host_os in
9277     aix[3-9]*)
9278       # On AIX/PPC, the GNU linker is very broken
9279       if test "$host_cpu" != ia64; then
9280         ld_shlibs=no
9281         cat <<_LT_EOF 1>&2
9282
9283 *** Warning: the GNU linker, at least up to release 2.19, is reported
9284 *** to be unable to reliably create shared libraries on AIX.
9285 *** Therefore, libtool is disabling shared libraries support.  If you
9286 *** really care for shared libraries, you may want to install binutils
9287 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9288 *** You will then need to restart the configuration process.
9289
9290 _LT_EOF
9291       fi
9292       ;;
9293
9294     amigaos*)
9295       case $host_cpu in
9296       powerpc)
9297             # see comment about AmigaOS4 .so support
9298             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299             archive_expsym_cmds=''
9300         ;;
9301       m68k)
9302             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)'
9303             hardcode_libdir_flag_spec='-L$libdir'
9304             hardcode_minus_L=yes
9305         ;;
9306       esac
9307       ;;
9308
9309     beos*)
9310       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311         allow_undefined_flag=unsupported
9312         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9313         # support --undefined.  This deserves some investigation.  FIXME
9314         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315       else
9316         ld_shlibs=no
9317       fi
9318       ;;
9319
9320     cygwin* | mingw* | pw32* | cegcc*)
9321       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9322       # as there is no search path for DLLs.
9323       hardcode_libdir_flag_spec='-L$libdir'
9324       export_dynamic_flag_spec='${wl}--export-all-symbols'
9325       allow_undefined_flag=unsupported
9326       always_export_symbols=no
9327       enable_shared_with_static_runtimes=yes
9328       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'
9329       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9330
9331       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9332         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9333         # If the export-symbols file already is a .def file (1st line
9334         # is EXPORTS), use it as is; otherwise, prepend...
9335         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9336           cp $export_symbols $output_objdir/$soname.def;
9337         else
9338           echo EXPORTS > $output_objdir/$soname.def;
9339           cat $export_symbols >> $output_objdir/$soname.def;
9340         fi~
9341         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9342       else
9343         ld_shlibs=no
9344       fi
9345       ;;
9346
9347     haiku*)
9348       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349       link_all_deplibs=yes
9350       ;;
9351
9352     interix[3-9]*)
9353       hardcode_direct=no
9354       hardcode_shlibpath_var=no
9355       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9356       export_dynamic_flag_spec='${wl}-E'
9357       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9358       # Instead, shared libraries are loaded at an image base (0x10000000 by
9359       # default) and relocated if they conflict, which is a slow very memory
9360       # consuming and fragmenting process.  To avoid this, we pick a random,
9361       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9362       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9363       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9364       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'
9365       ;;
9366
9367     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9368       tmp_diet=no
9369       if test "$host_os" = linux-dietlibc; then
9370         case $cc_basename in
9371           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9372         esac
9373       fi
9374       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9375          && test "$tmp_diet" = no
9376       then
9377         tmp_addflag=' $pic_flag'
9378         tmp_sharedflag='-shared'
9379         case $cc_basename,$host_cpu in
9380         pgcc*)                          # Portland Group C compiler
9381           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'
9382           tmp_addflag=' $pic_flag'
9383           ;;
9384         pgf77* | pgf90* | pgf95* | pgfortran*)
9385                                         # Portland Group f77 and f90 compilers
9386           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'
9387           tmp_addflag=' $pic_flag -Mnomain' ;;
9388         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9389           tmp_addflag=' -i_dynamic' ;;
9390         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9391           tmp_addflag=' -i_dynamic -nofor_main' ;;
9392         ifc* | ifort*)                  # Intel Fortran compiler
9393           tmp_addflag=' -nofor_main' ;;
9394         lf95*)                          # Lahey Fortran 8.1
9395           whole_archive_flag_spec=
9396           tmp_sharedflag='--shared' ;;
9397         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9398           tmp_sharedflag='-qmkshrobj'
9399           tmp_addflag= ;;
9400         nvcc*)  # Cuda Compiler Driver 2.2
9401           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'
9402           compiler_needs_object=yes
9403           ;;
9404         esac
9405         case `$CC -V 2>&1 | sed 5q` in
9406         *Sun\ C*)                       # Sun C 5.9
9407           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'
9408           compiler_needs_object=yes
9409           tmp_sharedflag='-G' ;;
9410         *Sun\ F*)                       # Sun Fortran 8.3
9411           tmp_sharedflag='-G' ;;
9412         esac
9413         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9414
9415         if test "x$supports_anon_versioning" = xyes; then
9416           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9417             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9418             echo "local: *; };" >> $output_objdir/$libname.ver~
9419             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9420         fi
9421
9422         case $cc_basename in
9423         xlf* | bgf* | bgxlf* | mpixlf*)
9424           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9425           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9426           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9428           if test "x$supports_anon_versioning" = xyes; then
9429             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9430               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9431               echo "local: *; };" >> $output_objdir/$libname.ver~
9432               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9433           fi
9434           ;;
9435         esac
9436       else
9437         ld_shlibs=no
9438       fi
9439       ;;
9440
9441     netbsd*)
9442       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9443         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9444         wlarc=
9445       else
9446         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9447         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9448       fi
9449       ;;
9450
9451     solaris*)
9452       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9453         ld_shlibs=no
9454         cat <<_LT_EOF 1>&2
9455
9456 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9457 *** create shared libraries on Solaris systems.  Therefore, libtool
9458 *** is disabling shared libraries support.  We urge you to upgrade GNU
9459 *** binutils to release 2.9.1 or newer.  Another option is to modify
9460 *** your PATH or compiler configuration so that the native linker is
9461 *** used, and then restart.
9462
9463 _LT_EOF
9464       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9465         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9466         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9467       else
9468         ld_shlibs=no
9469       fi
9470       ;;
9471
9472     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9473       case `$LD -v 2>&1` in
9474         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9475         ld_shlibs=no
9476         cat <<_LT_EOF 1>&2
9477
9478 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9479 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9480 *** is disabling shared libraries support.  We urge you to upgrade GNU
9481 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9482 *** your PATH or compiler configuration so that the native linker is
9483 *** used, and then restart.
9484
9485 _LT_EOF
9486         ;;
9487         *)
9488           # For security reasons, it is highly recommended that you always
9489           # use absolute paths for naming shared libraries, and exclude the
9490           # DT_RUNPATH tag from executables and libraries.  But doing so
9491           # requires that you compile everything twice, which is a pain.
9492           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9493             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9494             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9495             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9496           else
9497             ld_shlibs=no
9498           fi
9499         ;;
9500       esac
9501       ;;
9502
9503     sunos4*)
9504       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9505       wlarc=
9506       hardcode_direct=yes
9507       hardcode_shlibpath_var=no
9508       ;;
9509
9510     *)
9511       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9512         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9513         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9514       else
9515         ld_shlibs=no
9516       fi
9517       ;;
9518     esac
9519
9520     if test "$ld_shlibs" = no; then
9521       runpath_var=
9522       hardcode_libdir_flag_spec=
9523       export_dynamic_flag_spec=
9524       whole_archive_flag_spec=
9525     fi
9526   else
9527     # PORTME fill in a description of your system's linker (not GNU ld)
9528     case $host_os in
9529     aix3*)
9530       allow_undefined_flag=unsupported
9531       always_export_symbols=yes
9532       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'
9533       # Note: this linker hardcodes the directories in LIBPATH if there
9534       # are no directories specified by -L.
9535       hardcode_minus_L=yes
9536       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9537         # Neither direct hardcoding nor static linking is supported with a
9538         # broken collect2.
9539         hardcode_direct=unsupported
9540       fi
9541       ;;
9542
9543     aix[4-9]*)
9544       if test "$host_cpu" = ia64; then
9545         # On IA64, the linker does run time linking by default, so we don't
9546         # have to do anything special.
9547         aix_use_runtimelinking=no
9548         exp_sym_flag='-Bexport'
9549         no_entry_flag=""
9550       else
9551         # If we're using GNU nm, then we don't want the "-C" option.
9552         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9553         # Also, AIX nm treats weak defined symbols like other global
9554         # defined symbols, whereas GNU nm marks them as "W".
9555         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9556           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'
9557         else
9558           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'
9559         fi
9560         aix_use_runtimelinking=no
9561
9562         # Test if we are trying to use run time linking or normal
9563         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9564         # need to do runtime linking.
9565         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9566           for ld_flag in $LDFLAGS; do
9567           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9568             aix_use_runtimelinking=yes
9569             break
9570           fi
9571           done
9572           ;;
9573         esac
9574
9575         exp_sym_flag='-bexport'
9576         no_entry_flag='-bnoentry'
9577       fi
9578
9579       # When large executables or shared objects are built, AIX ld can
9580       # have problems creating the table of contents.  If linking a library
9581       # or program results in "error TOC overflow" add -mminimal-toc to
9582       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9583       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9584
9585       archive_cmds=''
9586       hardcode_direct=yes
9587       hardcode_direct_absolute=yes
9588       hardcode_libdir_separator=':'
9589       link_all_deplibs=yes
9590       file_list_spec='${wl}-f,'
9591
9592       if test "$GCC" = yes; then
9593         case $host_os in aix4.[012]|aix4.[012].*)
9594         # We only want to do this on AIX 4.2 and lower, the check
9595         # below for broken collect2 doesn't work under 4.3+
9596           collect2name=`${CC} -print-prog-name=collect2`
9597           if test -f "$collect2name" &&
9598            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9599           then
9600           # We have reworked collect2
9601           :
9602           else
9603           # We have old collect2
9604           hardcode_direct=unsupported
9605           # It fails to find uninstalled libraries when the uninstalled
9606           # path is not listed in the libpath.  Setting hardcode_minus_L
9607           # to unsupported forces relinking
9608           hardcode_minus_L=yes
9609           hardcode_libdir_flag_spec='-L$libdir'
9610           hardcode_libdir_separator=
9611           fi
9612           ;;
9613         esac
9614         shared_flag='-shared'
9615         if test "$aix_use_runtimelinking" = yes; then
9616           shared_flag="$shared_flag "'${wl}-G'
9617         fi
9618       else
9619         # not using gcc
9620         if test "$host_cpu" = ia64; then
9621         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9622         # chokes on -Wl,-G. The following line is correct:
9623           shared_flag='-G'
9624         else
9625           if test "$aix_use_runtimelinking" = yes; then
9626             shared_flag='${wl}-G'
9627           else
9628             shared_flag='${wl}-bM:SRE'
9629           fi
9630         fi
9631       fi
9632
9633       export_dynamic_flag_spec='${wl}-bexpall'
9634       # It seems that -bexpall does not export symbols beginning with
9635       # underscore (_), so it is better to generate a list of symbols to export.
9636       always_export_symbols=yes
9637       if test "$aix_use_runtimelinking" = yes; then
9638         # Warning - without using the other runtime loading flags (-brtl),
9639         # -berok will link without error, but may produce a broken library.
9640         allow_undefined_flag='-berok'
9641         # Determine the default libpath from the value encoded in an
9642         # empty executable.
9643         if test "${lt_cv_aix_libpath+set}" = set; then
9644   aix_libpath=$lt_cv_aix_libpath
9645 else
9646   if ${lt_cv_aix_libpath_+:} false; then :
9647   $as_echo_n "(cached) " >&6
9648 else
9649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9650 /* end confdefs.h.  */
9651
9652 int
9653 main ()
9654 {
9655
9656   ;
9657   return 0;
9658 }
9659 _ACEOF
9660 if ac_fn_c_try_link "$LINENO"; then :
9661
9662   lt_aix_libpath_sed='
9663       /Import File Strings/,/^$/ {
9664           /^0/ {
9665               s/^0  *\([^ ]*\) *$/\1/
9666               p
9667           }
9668       }'
9669   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9670   # Check for a 64-bit object if we didn't find anything.
9671   if test -z "$lt_cv_aix_libpath_"; then
9672     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9673   fi
9674 fi
9675 rm -f core conftest.err conftest.$ac_objext \
9676     conftest$ac_exeext conftest.$ac_ext
9677   if test -z "$lt_cv_aix_libpath_"; then
9678     lt_cv_aix_libpath_="/usr/lib:/lib"
9679   fi
9680
9681 fi
9682
9683   aix_libpath=$lt_cv_aix_libpath_
9684 fi
9685
9686         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9687         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"
9688       else
9689         if test "$host_cpu" = ia64; then
9690           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9691           allow_undefined_flag="-z nodefs"
9692           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"
9693         else
9694          # Determine the default libpath from the value encoded in an
9695          # empty executable.
9696          if test "${lt_cv_aix_libpath+set}" = set; then
9697   aix_libpath=$lt_cv_aix_libpath
9698 else
9699   if ${lt_cv_aix_libpath_+:} false; then :
9700   $as_echo_n "(cached) " >&6
9701 else
9702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9703 /* end confdefs.h.  */
9704
9705 int
9706 main ()
9707 {
9708
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"; then :
9714
9715   lt_aix_libpath_sed='
9716       /Import File Strings/,/^$/ {
9717           /^0/ {
9718               s/^0  *\([^ ]*\) *$/\1/
9719               p
9720           }
9721       }'
9722   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723   # Check for a 64-bit object if we didn't find anything.
9724   if test -z "$lt_cv_aix_libpath_"; then
9725     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9726   fi
9727 fi
9728 rm -f core conftest.err conftest.$ac_objext \
9729     conftest$ac_exeext conftest.$ac_ext
9730   if test -z "$lt_cv_aix_libpath_"; then
9731     lt_cv_aix_libpath_="/usr/lib:/lib"
9732   fi
9733
9734 fi
9735
9736   aix_libpath=$lt_cv_aix_libpath_
9737 fi
9738
9739          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9740           # Warning - without using the other run time loading flags,
9741           # -berok will link without error, but may produce a broken library.
9742           no_undefined_flag=' ${wl}-bernotok'
9743           allow_undefined_flag=' ${wl}-berok'
9744           if test "$with_gnu_ld" = yes; then
9745             # We only use this code for GNU lds that support --whole-archive.
9746             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9747           else
9748             # Exported symbols can be pulled into shared objects from archives
9749             whole_archive_flag_spec='$convenience'
9750           fi
9751           archive_cmds_need_lc=yes
9752           # This is similar to how AIX traditionally builds its shared libraries.
9753           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'
9754         fi
9755       fi
9756       ;;
9757
9758     amigaos*)
9759       case $host_cpu in
9760       powerpc)
9761             # see comment about AmigaOS4 .so support
9762             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9763             archive_expsym_cmds=''
9764         ;;
9765       m68k)
9766             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)'
9767             hardcode_libdir_flag_spec='-L$libdir'
9768             hardcode_minus_L=yes
9769         ;;
9770       esac
9771       ;;
9772
9773     bsdi[45]*)
9774       export_dynamic_flag_spec=-rdynamic
9775       ;;
9776
9777     cygwin* | mingw* | pw32* | cegcc*)
9778       # When not using gcc, we currently assume that we are using
9779       # Microsoft Visual C++.
9780       # hardcode_libdir_flag_spec is actually meaningless, as there is
9781       # no search path for DLLs.
9782       case $cc_basename in
9783       cl*)
9784         # Native MSVC
9785         hardcode_libdir_flag_spec=' '
9786         allow_undefined_flag=unsupported
9787         always_export_symbols=yes
9788         file_list_spec='@'
9789         # Tell ltmain to make .lib files, not .a files.
9790         libext=lib
9791         # Tell ltmain to make .dll files, not .so files.
9792         shrext_cmds=".dll"
9793         # FIXME: Setting linknames here is a bad hack.
9794         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9795         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9796             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9797           else
9798             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9799           fi~
9800           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9801           linknames='
9802         # The linker will not automatically build a static lib if we build a DLL.
9803         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9804         enable_shared_with_static_runtimes=yes
9805         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9806         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9807         # Don't use ranlib
9808         old_postinstall_cmds='chmod 644 $oldlib'
9809         postlink_cmds='lt_outputfile="@OUTPUT@"~
9810           lt_tool_outputfile="@TOOL_OUTPUT@"~
9811           case $lt_outputfile in
9812             *.exe|*.EXE) ;;
9813             *)
9814               lt_outputfile="$lt_outputfile.exe"
9815               lt_tool_outputfile="$lt_tool_outputfile.exe"
9816               ;;
9817           esac~
9818           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9819             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9820             $RM "$lt_outputfile.manifest";
9821           fi'
9822         ;;
9823       *)
9824         # Assume MSVC wrapper
9825         hardcode_libdir_flag_spec=' '
9826         allow_undefined_flag=unsupported
9827         # Tell ltmain to make .lib files, not .a files.
9828         libext=lib
9829         # Tell ltmain to make .dll files, not .so files.
9830         shrext_cmds=".dll"
9831         # FIXME: Setting linknames here is a bad hack.
9832         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9833         # The linker will automatically build a .lib file if we build a DLL.
9834         old_archive_from_new_cmds='true'
9835         # FIXME: Should let the user specify the lib program.
9836         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9837         enable_shared_with_static_runtimes=yes
9838         ;;
9839       esac
9840       ;;
9841
9842     darwin* | rhapsody*)
9843
9844
9845   archive_cmds_need_lc=no
9846   hardcode_direct=no
9847   hardcode_automatic=yes
9848   hardcode_shlibpath_var=unsupported
9849   if test "$lt_cv_ld_force_load" = "yes"; then
9850     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\"`'
9851
9852   else
9853     whole_archive_flag_spec=''
9854   fi
9855   link_all_deplibs=yes
9856   allow_undefined_flag="$_lt_dar_allow_undefined"
9857   case $cc_basename in
9858      ifort*) _lt_dar_can_shared=yes ;;
9859      *) _lt_dar_can_shared=$GCC ;;
9860   esac
9861   if test "$_lt_dar_can_shared" = "yes"; then
9862     output_verbose_link_cmd=func_echo_all
9863     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9864     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9865     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}"
9866     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}"
9867
9868   else
9869   ld_shlibs=no
9870   fi
9871
9872       ;;
9873
9874     dgux*)
9875       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876       hardcode_libdir_flag_spec='-L$libdir'
9877       hardcode_shlibpath_var=no
9878       ;;
9879
9880     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9881     # support.  Future versions do this automatically, but an explicit c++rt0.o
9882     # does not break anything, and helps significantly (at the cost of a little
9883     # extra space).
9884     freebsd2.2*)
9885       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9886       hardcode_libdir_flag_spec='-R$libdir'
9887       hardcode_direct=yes
9888       hardcode_shlibpath_var=no
9889       ;;
9890
9891     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9892     freebsd2.*)
9893       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9894       hardcode_direct=yes
9895       hardcode_minus_L=yes
9896       hardcode_shlibpath_var=no
9897       ;;
9898
9899     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9900     freebsd* | dragonfly*)
9901       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9902       hardcode_libdir_flag_spec='-R$libdir'
9903       hardcode_direct=yes
9904       hardcode_shlibpath_var=no
9905       ;;
9906
9907     hpux9*)
9908       if test "$GCC" = yes; then
9909         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'
9910       else
9911         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'
9912       fi
9913       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9914       hardcode_libdir_separator=:
9915       hardcode_direct=yes
9916
9917       # hardcode_minus_L: Not really in the search PATH,
9918       # but as the default location of the library.
9919       hardcode_minus_L=yes
9920       export_dynamic_flag_spec='${wl}-E'
9921       ;;
9922
9923     hpux10*)
9924       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9925         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9926       else
9927         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9928       fi
9929       if test "$with_gnu_ld" = no; then
9930         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9931         hardcode_libdir_separator=:
9932         hardcode_direct=yes
9933         hardcode_direct_absolute=yes
9934         export_dynamic_flag_spec='${wl}-E'
9935         # hardcode_minus_L: Not really in the search PATH,
9936         # but as the default location of the library.
9937         hardcode_minus_L=yes
9938       fi
9939       ;;
9940
9941     hpux11*)
9942       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9943         case $host_cpu in
9944         hppa*64*)
9945           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9946           ;;
9947         ia64*)
9948           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9949           ;;
9950         *)
9951           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9952           ;;
9953         esac
9954       else
9955         case $host_cpu in
9956         hppa*64*)
9957           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9958           ;;
9959         ia64*)
9960           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9961           ;;
9962         *)
9963
9964           # Older versions of the 11.00 compiler do not understand -b yet
9965           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9966           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9967 $as_echo_n "checking if $CC understands -b... " >&6; }
9968 if ${lt_cv_prog_compiler__b+:} false; then :
9969   $as_echo_n "(cached) " >&6
9970 else
9971   lt_cv_prog_compiler__b=no
9972    save_LDFLAGS="$LDFLAGS"
9973    LDFLAGS="$LDFLAGS -b"
9974    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9975    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9976      # The linker can only warn and ignore the option if not recognized
9977      # So say no if there are warnings
9978      if test -s conftest.err; then
9979        # Append any errors to the config.log.
9980        cat conftest.err 1>&5
9981        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9982        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9983        if diff conftest.exp conftest.er2 >/dev/null; then
9984          lt_cv_prog_compiler__b=yes
9985        fi
9986      else
9987        lt_cv_prog_compiler__b=yes
9988      fi
9989    fi
9990    $RM -r conftest*
9991    LDFLAGS="$save_LDFLAGS"
9992
9993 fi
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9995 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9996
9997 if test x"$lt_cv_prog_compiler__b" = xyes; then
9998     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9999 else
10000     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10001 fi
10002
10003           ;;
10004         esac
10005       fi
10006       if test "$with_gnu_ld" = no; then
10007         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10008         hardcode_libdir_separator=:
10009
10010         case $host_cpu in
10011         hppa*64*|ia64*)
10012           hardcode_direct=no
10013           hardcode_shlibpath_var=no
10014           ;;
10015         *)
10016           hardcode_direct=yes
10017           hardcode_direct_absolute=yes
10018           export_dynamic_flag_spec='${wl}-E'
10019
10020           # hardcode_minus_L: Not really in the search PATH,
10021           # but as the default location of the library.
10022           hardcode_minus_L=yes
10023           ;;
10024         esac
10025       fi
10026       ;;
10027
10028     irix5* | irix6* | nonstopux*)
10029       if test "$GCC" = yes; then
10030         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'
10031         # Try to use the -exported_symbol ld option, if it does not
10032         # work, assume that -exports_file does not work either and
10033         # implicitly export all symbols.
10034         # This should be the same for all languages, so no per-tag cache variable.
10035         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10036 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10037 if ${lt_cv_irix_exported_symbol+:} false; then :
10038   $as_echo_n "(cached) " >&6
10039 else
10040   save_LDFLAGS="$LDFLAGS"
10041            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10042            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10043 /* end confdefs.h.  */
10044 int foo (void) { return 0; }
10045 _ACEOF
10046 if ac_fn_c_try_link "$LINENO"; then :
10047   lt_cv_irix_exported_symbol=yes
10048 else
10049   lt_cv_irix_exported_symbol=no
10050 fi
10051 rm -f core conftest.err conftest.$ac_objext \
10052     conftest$ac_exeext conftest.$ac_ext
10053            LDFLAGS="$save_LDFLAGS"
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10056 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10057         if test "$lt_cv_irix_exported_symbol" = yes; then
10058           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'
10059         fi
10060       else
10061         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'
10062         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'
10063       fi
10064       archive_cmds_need_lc='no'
10065       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10066       hardcode_libdir_separator=:
10067       inherit_rpath=yes
10068       link_all_deplibs=yes
10069       ;;
10070
10071     netbsd*)
10072       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10073         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10074       else
10075         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10076       fi
10077       hardcode_libdir_flag_spec='-R$libdir'
10078       hardcode_direct=yes
10079       hardcode_shlibpath_var=no
10080       ;;
10081
10082     newsos6)
10083       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10084       hardcode_direct=yes
10085       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10086       hardcode_libdir_separator=:
10087       hardcode_shlibpath_var=no
10088       ;;
10089
10090     *nto* | *qnx*)
10091       ;;
10092
10093     openbsd*)
10094       if test -f /usr/libexec/ld.so; then
10095         hardcode_direct=yes
10096         hardcode_shlibpath_var=no
10097         hardcode_direct_absolute=yes
10098         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10099           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10100           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10101           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10102           export_dynamic_flag_spec='${wl}-E'
10103         else
10104           case $host_os in
10105            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10106              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10107              hardcode_libdir_flag_spec='-R$libdir'
10108              ;;
10109            *)
10110              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10111              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10112              ;;
10113           esac
10114         fi
10115       else
10116         ld_shlibs=no
10117       fi
10118       ;;
10119
10120     os2*)
10121       hardcode_libdir_flag_spec='-L$libdir'
10122       hardcode_minus_L=yes
10123       allow_undefined_flag=unsupported
10124       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'
10125       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10126       ;;
10127
10128     osf3*)
10129       if test "$GCC" = yes; then
10130         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10131         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'
10132       else
10133         allow_undefined_flag=' -expect_unresolved \*'
10134         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'
10135       fi
10136       archive_cmds_need_lc='no'
10137       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10138       hardcode_libdir_separator=:
10139       ;;
10140
10141     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10142       if test "$GCC" = yes; then
10143         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10144         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'
10145         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10146       else
10147         allow_undefined_flag=' -expect_unresolved \*'
10148         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'
10149         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~
10150         $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'
10151
10152         # Both c and cxx compiler support -rpath directly
10153         hardcode_libdir_flag_spec='-rpath $libdir'
10154       fi
10155       archive_cmds_need_lc='no'
10156       hardcode_libdir_separator=:
10157       ;;
10158
10159     solaris*)
10160       no_undefined_flag=' -z defs'
10161       if test "$GCC" = yes; then
10162         wlarc='${wl}'
10163         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10164         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10165           $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'
10166       else
10167         case `$CC -V 2>&1` in
10168         *"Compilers 5.0"*)
10169           wlarc=''
10170           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10171           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10172           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10173           ;;
10174         *)
10175           wlarc='${wl}'
10176           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10177           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10178           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10179           ;;
10180         esac
10181       fi
10182       hardcode_libdir_flag_spec='-R$libdir'
10183       hardcode_shlibpath_var=no
10184       case $host_os in
10185       solaris2.[0-5] | solaris2.[0-5].*) ;;
10186       *)
10187         # The compiler driver will combine and reorder linker options,
10188         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10189         # but is careful enough not to reorder.
10190         # Supported since Solaris 2.6 (maybe 2.5.1?)
10191         if test "$GCC" = yes; then
10192           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10193         else
10194           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10195         fi
10196         ;;
10197       esac
10198       link_all_deplibs=yes
10199       ;;
10200
10201     sunos4*)
10202       if test "x$host_vendor" = xsequent; then
10203         # Use $CC to link under sequent, because it throws in some extra .o
10204         # files that make .init and .fini sections work.
10205         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206       else
10207         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10208       fi
10209       hardcode_libdir_flag_spec='-L$libdir'
10210       hardcode_direct=yes
10211       hardcode_minus_L=yes
10212       hardcode_shlibpath_var=no
10213       ;;
10214
10215     sysv4)
10216       case $host_vendor in
10217         sni)
10218           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10219           hardcode_direct=yes # is this really true???
10220         ;;
10221         siemens)
10222           ## LD is ld it makes a PLAMLIB
10223           ## CC just makes a GrossModule.
10224           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10225           reload_cmds='$CC -r -o $output$reload_objs'
10226           hardcode_direct=no
10227         ;;
10228         motorola)
10229           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10231         ;;
10232       esac
10233       runpath_var='LD_RUN_PATH'
10234       hardcode_shlibpath_var=no
10235       ;;
10236
10237     sysv4.3*)
10238       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10239       hardcode_shlibpath_var=no
10240       export_dynamic_flag_spec='-Bexport'
10241       ;;
10242
10243     sysv4*MP*)
10244       if test -d /usr/nec; then
10245         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10246         hardcode_shlibpath_var=no
10247         runpath_var=LD_RUN_PATH
10248         hardcode_runpath_var=yes
10249         ld_shlibs=yes
10250       fi
10251       ;;
10252
10253     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10254       no_undefined_flag='${wl}-z,text'
10255       archive_cmds_need_lc=no
10256       hardcode_shlibpath_var=no
10257       runpath_var='LD_RUN_PATH'
10258
10259       if test "$GCC" = yes; then
10260         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262       else
10263         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10265       fi
10266       ;;
10267
10268     sysv5* | sco3.2v5* | sco5v6*)
10269       # Note: We can NOT use -z defs as we might desire, because we do not
10270       # link with -lc, and that would cause any symbols used from libc to
10271       # always be unresolved, which means just about no library would
10272       # ever link correctly.  If we're not using GNU ld we use -z text
10273       # though, which does catch some bad symbols but isn't as heavy-handed
10274       # as -z defs.
10275       no_undefined_flag='${wl}-z,text'
10276       allow_undefined_flag='${wl}-z,nodefs'
10277       archive_cmds_need_lc=no
10278       hardcode_shlibpath_var=no
10279       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10280       hardcode_libdir_separator=':'
10281       link_all_deplibs=yes
10282       export_dynamic_flag_spec='${wl}-Bexport'
10283       runpath_var='LD_RUN_PATH'
10284
10285       if test "$GCC" = yes; then
10286         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288       else
10289         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291       fi
10292       ;;
10293
10294     uts4*)
10295       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10296       hardcode_libdir_flag_spec='-L$libdir'
10297       hardcode_shlibpath_var=no
10298       ;;
10299
10300     *)
10301       ld_shlibs=no
10302       ;;
10303     esac
10304
10305     if test x$host_vendor = xsni; then
10306       case $host in
10307       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10308         export_dynamic_flag_spec='${wl}-Blargedynsym'
10309         ;;
10310       esac
10311     fi
10312   fi
10313
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10315 $as_echo "$ld_shlibs" >&6; }
10316 test "$ld_shlibs" = no && can_build_shared=no
10317
10318 with_gnu_ld=$with_gnu_ld
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334 #
10335 # Do we need to explicitly link libc?
10336 #
10337 case "x$archive_cmds_need_lc" in
10338 x|xyes)
10339   # Assume -lc should be added
10340   archive_cmds_need_lc=yes
10341
10342   if test "$enable_shared" = yes && test "$GCC" = yes; then
10343     case $archive_cmds in
10344     *'~'*)
10345       # FIXME: we may have to deal with multi-command sequences.
10346       ;;
10347     '$CC '*)
10348       # Test whether the compiler implicitly links with -lc since on some
10349       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10350       # to ld, don't add -lc before -lgcc.
10351       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10352 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10353 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10354   $as_echo_n "(cached) " >&6
10355 else
10356   $RM conftest*
10357         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10358
10359         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10360   (eval $ac_compile) 2>&5
10361   ac_status=$?
10362   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10363   test $ac_status = 0; } 2>conftest.err; then
10364           soname=conftest
10365           lib=conftest
10366           libobjs=conftest.$ac_objext
10367           deplibs=
10368           wl=$lt_prog_compiler_wl
10369           pic_flag=$lt_prog_compiler_pic
10370           compiler_flags=-v
10371           linker_flags=-v
10372           verstring=
10373           output_objdir=.
10374           libname=conftest
10375           lt_save_allow_undefined_flag=$allow_undefined_flag
10376           allow_undefined_flag=
10377           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10378   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10379   ac_status=$?
10380   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10381   test $ac_status = 0; }
10382           then
10383             lt_cv_archive_cmds_need_lc=no
10384           else
10385             lt_cv_archive_cmds_need_lc=yes
10386           fi
10387           allow_undefined_flag=$lt_save_allow_undefined_flag
10388         else
10389           cat conftest.err 1>&5
10390         fi
10391         $RM conftest*
10392
10393 fi
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10395 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10396       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10397       ;;
10398     esac
10399   fi
10400   ;;
10401 esac
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10555 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10556
10557 if test "$GCC" = yes; then
10558   case $host_os in
10559     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10560     *) lt_awk_arg="/^libraries:/" ;;
10561   esac
10562   case $host_os in
10563     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10564     *) lt_sed_strip_eq="s,=/,/,g" ;;
10565   esac
10566   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10567   case $lt_search_path_spec in
10568   *\;*)
10569     # if the path contains ";" then we assume it to be the separator
10570     # otherwise default to the standard path separator (i.e. ":") - it is
10571     # assumed that no part of a normal pathname contains ";" but that should
10572     # okay in the real world where ";" in dirpaths is itself problematic.
10573     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10574     ;;
10575   *)
10576     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10577     ;;
10578   esac
10579   # Ok, now we have the path, separated by spaces, we can step through it
10580   # and add multilib dir if necessary.
10581   lt_tmp_lt_search_path_spec=
10582   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10583   for lt_sys_path in $lt_search_path_spec; do
10584     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10585       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10586     else
10587       test -d "$lt_sys_path" && \
10588         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10589     fi
10590   done
10591   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10592 BEGIN {RS=" "; FS="/|\n";} {
10593   lt_foo="";
10594   lt_count=0;
10595   for (lt_i = NF; lt_i > 0; lt_i--) {
10596     if ($lt_i != "" && $lt_i != ".") {
10597       if ($lt_i == "..") {
10598         lt_count++;
10599       } else {
10600         if (lt_count == 0) {
10601           lt_foo="/" $lt_i lt_foo;
10602         } else {
10603           lt_count--;
10604         }
10605       }
10606     }
10607   }
10608   if (lt_foo != "") { lt_freq[lt_foo]++; }
10609   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10610 }'`
10611   # AWK program above erroneously prepends '/' to C:/dos/paths
10612   # for these hosts.
10613   case $host_os in
10614     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10615       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10616   esac
10617   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10618 else
10619   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10620 fi
10621 library_names_spec=
10622 libname_spec='lib$name'
10623 soname_spec=
10624 shrext_cmds=".so"
10625 postinstall_cmds=
10626 postuninstall_cmds=
10627 finish_cmds=
10628 finish_eval=
10629 shlibpath_var=
10630 shlibpath_overrides_runpath=unknown
10631 version_type=none
10632 dynamic_linker="$host_os ld.so"
10633 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10634 need_lib_prefix=unknown
10635 hardcode_into_libs=no
10636
10637 # when you set need_version to no, make sure it does not cause -set_version
10638 # flags to be left without arguments
10639 need_version=unknown
10640
10641 case $host_os in
10642 aix3*)
10643   version_type=linux # correct to gnu/linux during the next big refactor
10644   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10645   shlibpath_var=LIBPATH
10646
10647   # AIX 3 has no versioning support, so we append a major version to the name.
10648   soname_spec='${libname}${release}${shared_ext}$major'
10649   ;;
10650
10651 aix[4-9]*)
10652   version_type=linux # correct to gnu/linux during the next big refactor
10653   need_lib_prefix=no
10654   need_version=no
10655   hardcode_into_libs=yes
10656   if test "$host_cpu" = ia64; then
10657     # AIX 5 supports IA64
10658     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10659     shlibpath_var=LD_LIBRARY_PATH
10660   else
10661     # With GCC up to 2.95.x, collect2 would create an import file
10662     # for dependence libraries.  The import file would start with
10663     # the line `#! .'.  This would cause the generated library to
10664     # depend on `.', always an invalid library.  This was fixed in
10665     # development snapshots of GCC prior to 3.0.
10666     case $host_os in
10667       aix4 | aix4.[01] | aix4.[01].*)
10668       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10669            echo ' yes '
10670            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10671         :
10672       else
10673         can_build_shared=no
10674       fi
10675       ;;
10676     esac
10677     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10678     # soname into executable. Probably we can add versioning support to
10679     # collect2, so additional links can be useful in future.
10680     if test "$aix_use_runtimelinking" = yes; then
10681       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10682       # instead of lib<name>.a to let people know that these are not
10683       # typical AIX shared libraries.
10684       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685     else
10686       # We preserve .a as extension for shared libraries through AIX4.2
10687       # and later when we are not doing run time linking.
10688       library_names_spec='${libname}${release}.a $libname.a'
10689       soname_spec='${libname}${release}${shared_ext}$major'
10690     fi
10691     shlibpath_var=LIBPATH
10692   fi
10693   ;;
10694
10695 amigaos*)
10696   case $host_cpu in
10697   powerpc)
10698     # Since July 2007 AmigaOS4 officially supports .so libraries.
10699     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10700     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10701     ;;
10702   m68k)
10703     library_names_spec='$libname.ixlibrary $libname.a'
10704     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10705     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'
10706     ;;
10707   esac
10708   ;;
10709
10710 beos*)
10711   library_names_spec='${libname}${shared_ext}'
10712   dynamic_linker="$host_os ld.so"
10713   shlibpath_var=LIBRARY_PATH
10714   ;;
10715
10716 bsdi[45]*)
10717   version_type=linux # correct to gnu/linux during the next big refactor
10718   need_version=no
10719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720   soname_spec='${libname}${release}${shared_ext}$major'
10721   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10722   shlibpath_var=LD_LIBRARY_PATH
10723   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10724   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10725   # the default ld.so.conf also contains /usr/contrib/lib and
10726   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10727   # libtool to hard-code these into programs
10728   ;;
10729
10730 cygwin* | mingw* | pw32* | cegcc*)
10731   version_type=windows
10732   shrext_cmds=".dll"
10733   need_version=no
10734   need_lib_prefix=no
10735
10736   case $GCC,$cc_basename in
10737   yes,*)
10738     # gcc
10739     library_names_spec='$libname.dll.a'
10740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10741     postinstall_cmds='base_file=`basename \${file}`~
10742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10743       dldir=$destdir/`dirname \$dlpath`~
10744       test -d \$dldir || mkdir -p \$dldir~
10745       $install_prog $dir/$dlname \$dldir/$dlname~
10746       chmod a+x \$dldir/$dlname~
10747       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10748         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10749       fi'
10750     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10751       dlpath=$dir/\$dldll~
10752        $RM \$dlpath'
10753     shlibpath_overrides_runpath=yes
10754
10755     case $host_os in
10756     cygwin*)
10757       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10758       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10759
10760       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10761       ;;
10762     mingw* | cegcc*)
10763       # MinGW DLLs use traditional 'lib' prefix
10764       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10765       ;;
10766     pw32*)
10767       # pw32 DLLs use 'pw' prefix rather than 'lib'
10768       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10769       ;;
10770     esac
10771     dynamic_linker='Win32 ld.exe'
10772     ;;
10773
10774   *,cl*)
10775     # Native MSVC
10776     libname_spec='$name'
10777     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778     library_names_spec='${libname}.dll.lib'
10779
10780     case $build_os in
10781     mingw*)
10782       sys_lib_search_path_spec=
10783       lt_save_ifs=$IFS
10784       IFS=';'
10785       for lt_path in $LIB
10786       do
10787         IFS=$lt_save_ifs
10788         # Let DOS variable expansion print the short 8.3 style file name.
10789         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10790         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10791       done
10792       IFS=$lt_save_ifs
10793       # Convert to MSYS style.
10794       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10795       ;;
10796     cygwin*)
10797       # Convert to unix form, then to dos form, then back to unix form
10798       # but this time dos style (no spaces!) so that the unix form looks
10799       # like /cygdrive/c/PROGRA~1:/cygdr...
10800       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10801       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10802       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10803       ;;
10804     *)
10805       sys_lib_search_path_spec="$LIB"
10806       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10807         # It is most probably a Windows format PATH.
10808         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10809       else
10810         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811       fi
10812       # FIXME: find the short name or the path components, as spaces are
10813       # common. (e.g. "Program Files" -> "PROGRA~1")
10814       ;;
10815     esac
10816
10817     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10818     postinstall_cmds='base_file=`basename \${file}`~
10819       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10820       dldir=$destdir/`dirname \$dlpath`~
10821       test -d \$dldir || mkdir -p \$dldir~
10822       $install_prog $dir/$dlname \$dldir/$dlname'
10823     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10824       dlpath=$dir/\$dldll~
10825        $RM \$dlpath'
10826     shlibpath_overrides_runpath=yes
10827     dynamic_linker='Win32 link.exe'
10828     ;;
10829
10830   *)
10831     # Assume MSVC wrapper
10832     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10833     dynamic_linker='Win32 ld.exe'
10834     ;;
10835   esac
10836   # FIXME: first we should search . and the directory the executable is in
10837   shlibpath_var=PATH
10838   ;;
10839
10840 darwin* | rhapsody*)
10841   dynamic_linker="$host_os dyld"
10842   version_type=darwin
10843   need_lib_prefix=no
10844   need_version=no
10845   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10846   soname_spec='${libname}${release}${major}$shared_ext'
10847   shlibpath_overrides_runpath=yes
10848   shlibpath_var=DYLD_LIBRARY_PATH
10849   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10850
10851   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10852   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10853   ;;
10854
10855 dgux*)
10856   version_type=linux # correct to gnu/linux during the next big refactor
10857   need_lib_prefix=no
10858   need_version=no
10859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10860   soname_spec='${libname}${release}${shared_ext}$major'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   ;;
10863
10864 freebsd* | dragonfly*)
10865   # DragonFly does not have aout.  When/if they implement a new
10866   # versioning mechanism, adjust this.
10867   if test -x /usr/bin/objformat; then
10868     objformat=`/usr/bin/objformat`
10869   else
10870     case $host_os in
10871     freebsd[23].*) objformat=aout ;;
10872     *) objformat=elf ;;
10873     esac
10874   fi
10875   version_type=freebsd-$objformat
10876   case $version_type in
10877     freebsd-elf*)
10878       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10879       need_version=no
10880       need_lib_prefix=no
10881       ;;
10882     freebsd-*)
10883       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10884       need_version=yes
10885       ;;
10886   esac
10887   shlibpath_var=LD_LIBRARY_PATH
10888   case $host_os in
10889   freebsd2.*)
10890     shlibpath_overrides_runpath=yes
10891     ;;
10892   freebsd3.[01]* | freebsdelf3.[01]*)
10893     shlibpath_overrides_runpath=yes
10894     hardcode_into_libs=yes
10895     ;;
10896   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10897   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10898     shlibpath_overrides_runpath=no
10899     hardcode_into_libs=yes
10900     ;;
10901   *) # from 4.6 on, and DragonFly
10902     shlibpath_overrides_runpath=yes
10903     hardcode_into_libs=yes
10904     ;;
10905   esac
10906   ;;
10907
10908 gnu*)
10909   version_type=linux # correct to gnu/linux during the next big refactor
10910   need_lib_prefix=no
10911   need_version=no
10912   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10913   soname_spec='${libname}${release}${shared_ext}$major'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   shlibpath_overrides_runpath=no
10916   hardcode_into_libs=yes
10917   ;;
10918
10919 haiku*)
10920   version_type=linux # correct to gnu/linux during the next big refactor
10921   need_lib_prefix=no
10922   need_version=no
10923   dynamic_linker="$host_os runtime_loader"
10924   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10925   soname_spec='${libname}${release}${shared_ext}$major'
10926   shlibpath_var=LIBRARY_PATH
10927   shlibpath_overrides_runpath=yes
10928   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10929   hardcode_into_libs=yes
10930   ;;
10931
10932 hpux9* | hpux10* | hpux11*)
10933   # Give a soname corresponding to the major version so that dld.sl refuses to
10934   # link against other versions.
10935   version_type=sunos
10936   need_lib_prefix=no
10937   need_version=no
10938   case $host_cpu in
10939   ia64*)
10940     shrext_cmds='.so'
10941     hardcode_into_libs=yes
10942     dynamic_linker="$host_os dld.so"
10943     shlibpath_var=LD_LIBRARY_PATH
10944     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10946     soname_spec='${libname}${release}${shared_ext}$major'
10947     if test "X$HPUX_IA64_MODE" = X32; then
10948       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10949     else
10950       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10951     fi
10952     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10953     ;;
10954   hppa*64*)
10955     shrext_cmds='.sl'
10956     hardcode_into_libs=yes
10957     dynamic_linker="$host_os dld.sl"
10958     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10959     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961     soname_spec='${libname}${release}${shared_ext}$major'
10962     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10963     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10964     ;;
10965   *)
10966     shrext_cmds='.sl'
10967     dynamic_linker="$host_os dld.sl"
10968     shlibpath_var=SHLIB_PATH
10969     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10970     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971     soname_spec='${libname}${release}${shared_ext}$major'
10972     ;;
10973   esac
10974   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10975   postinstall_cmds='chmod 555 $lib'
10976   # or fails outright, so override atomically:
10977   install_override_mode=555
10978   ;;
10979
10980 interix[3-9]*)
10981   version_type=linux # correct to gnu/linux during the next big refactor
10982   need_lib_prefix=no
10983   need_version=no
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10987   shlibpath_var=LD_LIBRARY_PATH
10988   shlibpath_overrides_runpath=no
10989   hardcode_into_libs=yes
10990   ;;
10991
10992 irix5* | irix6* | nonstopux*)
10993   case $host_os in
10994     nonstopux*) version_type=nonstopux ;;
10995     *)
10996         if test "$lt_cv_prog_gnu_ld" = yes; then
10997                 version_type=linux # correct to gnu/linux during the next big refactor
10998         else
10999                 version_type=irix
11000         fi ;;
11001   esac
11002   need_lib_prefix=no
11003   need_version=no
11004   soname_spec='${libname}${release}${shared_ext}$major'
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11006   case $host_os in
11007   irix5* | nonstopux*)
11008     libsuff= shlibsuff=
11009     ;;
11010   *)
11011     case $LD in # libtool.m4 will add one of these switches to LD
11012     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11013       libsuff= shlibsuff= libmagic=32-bit;;
11014     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11015       libsuff=32 shlibsuff=N32 libmagic=N32;;
11016     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11017       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11018     *) libsuff= shlibsuff= libmagic=never-match;;
11019     esac
11020     ;;
11021   esac
11022   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11023   shlibpath_overrides_runpath=no
11024   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11025   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11026   hardcode_into_libs=yes
11027   ;;
11028
11029 # No shared lib support for Linux oldld, aout, or coff.
11030 linux*oldld* | linux*aout* | linux*coff*)
11031   dynamic_linker=no
11032   ;;
11033
11034 # This must be glibc/ELF.
11035 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11036   version_type=linux # correct to gnu/linux during the next big refactor
11037   need_lib_prefix=no
11038   need_version=no
11039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11040   soname_spec='${libname}${release}${shared_ext}$major'
11041   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11042   shlibpath_var=LD_LIBRARY_PATH
11043   shlibpath_overrides_runpath=no
11044
11045   # Some binutils ld are patched to set DT_RUNPATH
11046   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11047   $as_echo_n "(cached) " >&6
11048 else
11049   lt_cv_shlibpath_overrides_runpath=no
11050     save_LDFLAGS=$LDFLAGS
11051     save_libdir=$libdir
11052     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11053          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11054     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055 /* end confdefs.h.  */
11056
11057 int
11058 main ()
11059 {
11060
11061   ;
11062   return 0;
11063 }
11064 _ACEOF
11065 if ac_fn_c_try_link "$LINENO"; then :
11066   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11067   lt_cv_shlibpath_overrides_runpath=yes
11068 fi
11069 fi
11070 rm -f core conftest.err conftest.$ac_objext \
11071     conftest$ac_exeext conftest.$ac_ext
11072     LDFLAGS=$save_LDFLAGS
11073     libdir=$save_libdir
11074
11075 fi
11076
11077   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11078
11079   # This implies no fast_install, which is unacceptable.
11080   # Some rework will be needed to allow for fast_install
11081   # before this can be enabled.
11082   hardcode_into_libs=yes
11083
11084   # Add ABI-specific directories to the system library path.
11085   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11086
11087   # Append ld.so.conf contents to the search path
11088   if test -f /etc/ld.so.conf; then
11089     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' ' '`
11090     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11091
11092   fi
11093
11094   # We used to test for /lib/ld.so.1 and disable shared libraries on
11095   # powerpc, because MkLinux only supported shared libraries with the
11096   # GNU dynamic linker.  Since this was broken with cross compilers,
11097   # most powerpc-linux boxes support dynamic linking these days and
11098   # people can always --disable-shared, the test was removed, and we
11099   # assume the GNU/Linux dynamic linker is in use.
11100   dynamic_linker='GNU/Linux ld.so'
11101   ;;
11102
11103 netbsd*)
11104   version_type=sunos
11105   need_lib_prefix=no
11106   need_version=no
11107   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11108     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11109     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11110     dynamic_linker='NetBSD (a.out) ld.so'
11111   else
11112     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11113     soname_spec='${libname}${release}${shared_ext}$major'
11114     dynamic_linker='NetBSD ld.elf_so'
11115   fi
11116   shlibpath_var=LD_LIBRARY_PATH
11117   shlibpath_overrides_runpath=yes
11118   hardcode_into_libs=yes
11119   ;;
11120
11121 newsos6)
11122   version_type=linux # correct to gnu/linux during the next big refactor
11123   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124   shlibpath_var=LD_LIBRARY_PATH
11125   shlibpath_overrides_runpath=yes
11126   ;;
11127
11128 *nto* | *qnx*)
11129   version_type=qnx
11130   need_lib_prefix=no
11131   need_version=no
11132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133   soname_spec='${libname}${release}${shared_ext}$major'
11134   shlibpath_var=LD_LIBRARY_PATH
11135   shlibpath_overrides_runpath=no
11136   hardcode_into_libs=yes
11137   dynamic_linker='ldqnx.so'
11138   ;;
11139
11140 openbsd*)
11141   version_type=sunos
11142   sys_lib_dlsearch_path_spec="/usr/lib"
11143   need_lib_prefix=no
11144   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11145   case $host_os in
11146     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11147     *)                          need_version=no  ;;
11148   esac
11149   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11150   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11151   shlibpath_var=LD_LIBRARY_PATH
11152   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11153     case $host_os in
11154       openbsd2.[89] | openbsd2.[89].*)
11155         shlibpath_overrides_runpath=no
11156         ;;
11157       *)
11158         shlibpath_overrides_runpath=yes
11159         ;;
11160       esac
11161   else
11162     shlibpath_overrides_runpath=yes
11163   fi
11164   ;;
11165
11166 os2*)
11167   libname_spec='$name'
11168   shrext_cmds=".dll"
11169   need_lib_prefix=no
11170   library_names_spec='$libname${shared_ext} $libname.a'
11171   dynamic_linker='OS/2 ld.exe'
11172   shlibpath_var=LIBPATH
11173   ;;
11174
11175 osf3* | osf4* | osf5*)
11176   version_type=osf
11177   need_lib_prefix=no
11178   need_version=no
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181   shlibpath_var=LD_LIBRARY_PATH
11182   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11183   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11184   ;;
11185
11186 rdos*)
11187   dynamic_linker=no
11188   ;;
11189
11190 solaris*)
11191   version_type=linux # correct to gnu/linux during the next big refactor
11192   need_lib_prefix=no
11193   need_version=no
11194   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195   soname_spec='${libname}${release}${shared_ext}$major'
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=yes
11198   hardcode_into_libs=yes
11199   # ldd complains unless libraries are executable
11200   postinstall_cmds='chmod +x $lib'
11201   ;;
11202
11203 sunos4*)
11204   version_type=sunos
11205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11206   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11207   shlibpath_var=LD_LIBRARY_PATH
11208   shlibpath_overrides_runpath=yes
11209   if test "$with_gnu_ld" = yes; then
11210     need_lib_prefix=no
11211   fi
11212   need_version=yes
11213   ;;
11214
11215 sysv4 | sysv4.3*)
11216   version_type=linux # correct to gnu/linux during the next big refactor
11217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218   soname_spec='${libname}${release}${shared_ext}$major'
11219   shlibpath_var=LD_LIBRARY_PATH
11220   case $host_vendor in
11221     sni)
11222       shlibpath_overrides_runpath=no
11223       need_lib_prefix=no
11224       runpath_var=LD_RUN_PATH
11225       ;;
11226     siemens)
11227       need_lib_prefix=no
11228       ;;
11229     motorola)
11230       need_lib_prefix=no
11231       need_version=no
11232       shlibpath_overrides_runpath=no
11233       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11234       ;;
11235   esac
11236   ;;
11237
11238 sysv4*MP*)
11239   if test -d /usr/nec ;then
11240     version_type=linux # correct to gnu/linux during the next big refactor
11241     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11242     soname_spec='$libname${shared_ext}.$major'
11243     shlibpath_var=LD_LIBRARY_PATH
11244   fi
11245   ;;
11246
11247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11248   version_type=freebsd-elf
11249   need_lib_prefix=no
11250   need_version=no
11251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11252   soname_spec='${libname}${release}${shared_ext}$major'
11253   shlibpath_var=LD_LIBRARY_PATH
11254   shlibpath_overrides_runpath=yes
11255   hardcode_into_libs=yes
11256   if test "$with_gnu_ld" = yes; then
11257     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11258   else
11259     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11260     case $host_os in
11261       sco3.2v5*)
11262         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11263         ;;
11264     esac
11265   fi
11266   sys_lib_dlsearch_path_spec='/usr/lib'
11267   ;;
11268
11269 tpf*)
11270   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11271   version_type=linux # correct to gnu/linux during the next big refactor
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275   shlibpath_var=LD_LIBRARY_PATH
11276   shlibpath_overrides_runpath=no
11277   hardcode_into_libs=yes
11278   ;;
11279
11280 uts4*)
11281   version_type=linux # correct to gnu/linux during the next big refactor
11282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11283   soname_spec='${libname}${release}${shared_ext}$major'
11284   shlibpath_var=LD_LIBRARY_PATH
11285   ;;
11286
11287 *)
11288   dynamic_linker=no
11289   ;;
11290 esac
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11292 $as_echo "$dynamic_linker" >&6; }
11293 test "$dynamic_linker" = no && can_build_shared=no
11294
11295 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11296 if test "$GCC" = yes; then
11297   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11298 fi
11299
11300 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11301   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11302 fi
11303 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11304   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11305 fi
11306
11307
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11399 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11400 hardcode_action=
11401 if test -n "$hardcode_libdir_flag_spec" ||
11402    test -n "$runpath_var" ||
11403    test "X$hardcode_automatic" = "Xyes" ; then
11404
11405   # We can hardcode non-existent directories.
11406   if test "$hardcode_direct" != no &&
11407      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11408      # have to relink, otherwise we might link with an installed library
11409      # when we should be linking with a yet-to-be-installed one
11410      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11411      test "$hardcode_minus_L" != no; then
11412     # Linking always hardcodes the temporary library directory.
11413     hardcode_action=relink
11414   else
11415     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11416     hardcode_action=immediate
11417   fi
11418 else
11419   # We cannot hardcode anything, or else we can only hardcode existing
11420   # directories.
11421   hardcode_action=unsupported
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11424 $as_echo "$hardcode_action" >&6; }
11425
11426 if test "$hardcode_action" = relink ||
11427    test "$inherit_rpath" = yes; then
11428   # Fast installation is not supported
11429   enable_fast_install=no
11430 elif test "$shlibpath_overrides_runpath" = yes ||
11431      test "$enable_shared" = no; then
11432   # Fast installation is not necessary
11433   enable_fast_install=needless
11434 fi
11435
11436
11437
11438
11439
11440
11441   if test "x$enable_dlopen" != xyes; then
11442   enable_dlopen=unknown
11443   enable_dlopen_self=unknown
11444   enable_dlopen_self_static=unknown
11445 else
11446   lt_cv_dlopen=no
11447   lt_cv_dlopen_libs=
11448
11449   case $host_os in
11450   beos*)
11451     lt_cv_dlopen="load_add_on"
11452     lt_cv_dlopen_libs=
11453     lt_cv_dlopen_self=yes
11454     ;;
11455
11456   mingw* | pw32* | cegcc*)
11457     lt_cv_dlopen="LoadLibrary"
11458     lt_cv_dlopen_libs=
11459     ;;
11460
11461   cygwin*)
11462     lt_cv_dlopen="dlopen"
11463     lt_cv_dlopen_libs=
11464     ;;
11465
11466   darwin*)
11467   # if libdl is installed we need to link against it
11468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11469 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11470 if ${ac_cv_lib_dl_dlopen+:} false; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   ac_check_lib_save_LIBS=$LIBS
11474 LIBS="-ldl  $LIBS"
11475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11476 /* end confdefs.h.  */
11477
11478 /* Override any GCC internal prototype to avoid an error.
11479    Use char because int might match the return type of a GCC
11480    builtin and then its argument prototype would still apply.  */
11481 #ifdef __cplusplus
11482 extern "C"
11483 #endif
11484 char dlopen ();
11485 int
11486 main ()
11487 {
11488 return dlopen ();
11489   ;
11490   return 0;
11491 }
11492 _ACEOF
11493 if ac_fn_c_try_link "$LINENO"; then :
11494   ac_cv_lib_dl_dlopen=yes
11495 else
11496   ac_cv_lib_dl_dlopen=no
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext \
11499     conftest$ac_exeext conftest.$ac_ext
11500 LIBS=$ac_check_lib_save_LIBS
11501 fi
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11503 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11504 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11505   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11506 else
11507
11508     lt_cv_dlopen="dyld"
11509     lt_cv_dlopen_libs=
11510     lt_cv_dlopen_self=yes
11511
11512 fi
11513
11514     ;;
11515
11516   *)
11517     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11518 if test "x$ac_cv_func_shl_load" = xyes; then :
11519   lt_cv_dlopen="shl_load"
11520 else
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11522 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11523 if ${ac_cv_lib_dld_shl_load+:} false; then :
11524   $as_echo_n "(cached) " >&6
11525 else
11526   ac_check_lib_save_LIBS=$LIBS
11527 LIBS="-ldld  $LIBS"
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h.  */
11530
11531 /* Override any GCC internal prototype to avoid an error.
11532    Use char because int might match the return type of a GCC
11533    builtin and then its argument prototype would still apply.  */
11534 #ifdef __cplusplus
11535 extern "C"
11536 #endif
11537 char shl_load ();
11538 int
11539 main ()
11540 {
11541 return shl_load ();
11542   ;
11543   return 0;
11544 }
11545 _ACEOF
11546 if ac_fn_c_try_link "$LINENO"; then :
11547   ac_cv_lib_dld_shl_load=yes
11548 else
11549   ac_cv_lib_dld_shl_load=no
11550 fi
11551 rm -f core conftest.err conftest.$ac_objext \
11552     conftest$ac_exeext conftest.$ac_ext
11553 LIBS=$ac_check_lib_save_LIBS
11554 fi
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11556 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11557 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11558   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11559 else
11560   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11561 if test "x$ac_cv_func_dlopen" = xyes; then :
11562   lt_cv_dlopen="dlopen"
11563 else
11564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11565 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11566 if ${ac_cv_lib_dl_dlopen+:} false; then :
11567   $as_echo_n "(cached) " >&6
11568 else
11569   ac_check_lib_save_LIBS=$LIBS
11570 LIBS="-ldl  $LIBS"
11571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11572 /* end confdefs.h.  */
11573
11574 /* Override any GCC internal prototype to avoid an error.
11575    Use char because int might match the return type of a GCC
11576    builtin and then its argument prototype would still apply.  */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char dlopen ();
11581 int
11582 main ()
11583 {
11584 return dlopen ();
11585   ;
11586   return 0;
11587 }
11588 _ACEOF
11589 if ac_fn_c_try_link "$LINENO"; then :
11590   ac_cv_lib_dl_dlopen=yes
11591 else
11592   ac_cv_lib_dl_dlopen=no
11593 fi
11594 rm -f core conftest.err conftest.$ac_objext \
11595     conftest$ac_exeext conftest.$ac_ext
11596 LIBS=$ac_check_lib_save_LIBS
11597 fi
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11599 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11600 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11601   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11602 else
11603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11604 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11605 if ${ac_cv_lib_svld_dlopen+:} false; then :
11606   $as_echo_n "(cached) " >&6
11607 else
11608   ac_check_lib_save_LIBS=$LIBS
11609 LIBS="-lsvld  $LIBS"
11610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11611 /* end confdefs.h.  */
11612
11613 /* Override any GCC internal prototype to avoid an error.
11614    Use char because int might match the return type of a GCC
11615    builtin and then its argument prototype would still apply.  */
11616 #ifdef __cplusplus
11617 extern "C"
11618 #endif
11619 char dlopen ();
11620 int
11621 main ()
11622 {
11623 return dlopen ();
11624   ;
11625   return 0;
11626 }
11627 _ACEOF
11628 if ac_fn_c_try_link "$LINENO"; then :
11629   ac_cv_lib_svld_dlopen=yes
11630 else
11631   ac_cv_lib_svld_dlopen=no
11632 fi
11633 rm -f core conftest.err conftest.$ac_objext \
11634     conftest$ac_exeext conftest.$ac_ext
11635 LIBS=$ac_check_lib_save_LIBS
11636 fi
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11638 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11639 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11640   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11641 else
11642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11643 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11644 if ${ac_cv_lib_dld_dld_link+:} false; then :
11645   $as_echo_n "(cached) " >&6
11646 else
11647   ac_check_lib_save_LIBS=$LIBS
11648 LIBS="-ldld  $LIBS"
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h.  */
11651
11652 /* Override any GCC internal prototype to avoid an error.
11653    Use char because int might match the return type of a GCC
11654    builtin and then its argument prototype would still apply.  */
11655 #ifdef __cplusplus
11656 extern "C"
11657 #endif
11658 char dld_link ();
11659 int
11660 main ()
11661 {
11662 return dld_link ();
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 if ac_fn_c_try_link "$LINENO"; then :
11668   ac_cv_lib_dld_dld_link=yes
11669 else
11670   ac_cv_lib_dld_dld_link=no
11671 fi
11672 rm -f core conftest.err conftest.$ac_objext \
11673     conftest$ac_exeext conftest.$ac_ext
11674 LIBS=$ac_check_lib_save_LIBS
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11677 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11678 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11679   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11680 fi
11681
11682
11683 fi
11684
11685
11686 fi
11687
11688
11689 fi
11690
11691
11692 fi
11693
11694
11695 fi
11696
11697     ;;
11698   esac
11699
11700   if test "x$lt_cv_dlopen" != xno; then
11701     enable_dlopen=yes
11702   else
11703     enable_dlopen=no
11704   fi
11705
11706   case $lt_cv_dlopen in
11707   dlopen)
11708     save_CPPFLAGS="$CPPFLAGS"
11709     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11710
11711     save_LDFLAGS="$LDFLAGS"
11712     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11713
11714     save_LIBS="$LIBS"
11715     LIBS="$lt_cv_dlopen_libs $LIBS"
11716
11717     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11718 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11719 if ${lt_cv_dlopen_self+:} false; then :
11720   $as_echo_n "(cached) " >&6
11721 else
11722           if test "$cross_compiling" = yes; then :
11723   lt_cv_dlopen_self=cross
11724 else
11725   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11726   lt_status=$lt_dlunknown
11727   cat > conftest.$ac_ext <<_LT_EOF
11728 #line $LINENO "configure"
11729 #include "confdefs.h"
11730
11731 #if HAVE_DLFCN_H
11732 #include <dlfcn.h>
11733 #endif
11734
11735 #include <stdio.h>
11736
11737 #ifdef RTLD_GLOBAL
11738 #  define LT_DLGLOBAL           RTLD_GLOBAL
11739 #else
11740 #  ifdef DL_GLOBAL
11741 #    define LT_DLGLOBAL         DL_GLOBAL
11742 #  else
11743 #    define LT_DLGLOBAL         0
11744 #  endif
11745 #endif
11746
11747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11748    find out it does not work in some platform. */
11749 #ifndef LT_DLLAZY_OR_NOW
11750 #  ifdef RTLD_LAZY
11751 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11752 #  else
11753 #    ifdef DL_LAZY
11754 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11755 #    else
11756 #      ifdef RTLD_NOW
11757 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11758 #      else
11759 #        ifdef DL_NOW
11760 #          define LT_DLLAZY_OR_NOW      DL_NOW
11761 #        else
11762 #          define LT_DLLAZY_OR_NOW      0
11763 #        endif
11764 #      endif
11765 #    endif
11766 #  endif
11767 #endif
11768
11769 /* When -fvisbility=hidden is used, assume the code has been annotated
11770    correspondingly for the symbols needed.  */
11771 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11772 int fnord () __attribute__((visibility("default")));
11773 #endif
11774
11775 int fnord () { return 42; }
11776 int main ()
11777 {
11778   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11779   int status = $lt_dlunknown;
11780
11781   if (self)
11782     {
11783       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11784       else
11785         {
11786           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11787           else puts (dlerror ());
11788         }
11789       /* dlclose (self); */
11790     }
11791   else
11792     puts (dlerror ());
11793
11794   return status;
11795 }
11796 _LT_EOF
11797   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11798   (eval $ac_link) 2>&5
11799   ac_status=$?
11800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11801   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11802     (./conftest; exit; ) >&5 2>/dev/null
11803     lt_status=$?
11804     case x$lt_status in
11805       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11806       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11807       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11808     esac
11809   else :
11810     # compilation failed
11811     lt_cv_dlopen_self=no
11812   fi
11813 fi
11814 rm -fr conftest*
11815
11816
11817 fi
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11819 $as_echo "$lt_cv_dlopen_self" >&6; }
11820
11821     if test "x$lt_cv_dlopen_self" = xyes; then
11822       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11823       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11824 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11825 if ${lt_cv_dlopen_self_static+:} false; then :
11826   $as_echo_n "(cached) " >&6
11827 else
11828           if test "$cross_compiling" = yes; then :
11829   lt_cv_dlopen_self_static=cross
11830 else
11831   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11832   lt_status=$lt_dlunknown
11833   cat > conftest.$ac_ext <<_LT_EOF
11834 #line $LINENO "configure"
11835 #include "confdefs.h"
11836
11837 #if HAVE_DLFCN_H
11838 #include <dlfcn.h>
11839 #endif
11840
11841 #include <stdio.h>
11842
11843 #ifdef RTLD_GLOBAL
11844 #  define LT_DLGLOBAL           RTLD_GLOBAL
11845 #else
11846 #  ifdef DL_GLOBAL
11847 #    define LT_DLGLOBAL         DL_GLOBAL
11848 #  else
11849 #    define LT_DLGLOBAL         0
11850 #  endif
11851 #endif
11852
11853 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11854    find out it does not work in some platform. */
11855 #ifndef LT_DLLAZY_OR_NOW
11856 #  ifdef RTLD_LAZY
11857 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11858 #  else
11859 #    ifdef DL_LAZY
11860 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11861 #    else
11862 #      ifdef RTLD_NOW
11863 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11864 #      else
11865 #        ifdef DL_NOW
11866 #          define LT_DLLAZY_OR_NOW      DL_NOW
11867 #        else
11868 #          define LT_DLLAZY_OR_NOW      0
11869 #        endif
11870 #      endif
11871 #    endif
11872 #  endif
11873 #endif
11874
11875 /* When -fvisbility=hidden is used, assume the code has been annotated
11876    correspondingly for the symbols needed.  */
11877 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11878 int fnord () __attribute__((visibility("default")));
11879 #endif
11880
11881 int fnord () { return 42; }
11882 int main ()
11883 {
11884   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11885   int status = $lt_dlunknown;
11886
11887   if (self)
11888     {
11889       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11890       else
11891         {
11892           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11893           else puts (dlerror ());
11894         }
11895       /* dlclose (self); */
11896     }
11897   else
11898     puts (dlerror ());
11899
11900   return status;
11901 }
11902 _LT_EOF
11903   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11904   (eval $ac_link) 2>&5
11905   ac_status=$?
11906   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11907   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11908     (./conftest; exit; ) >&5 2>/dev/null
11909     lt_status=$?
11910     case x$lt_status in
11911       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11912       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11913       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11914     esac
11915   else :
11916     # compilation failed
11917     lt_cv_dlopen_self_static=no
11918   fi
11919 fi
11920 rm -fr conftest*
11921
11922
11923 fi
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11925 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11926     fi
11927
11928     CPPFLAGS="$save_CPPFLAGS"
11929     LDFLAGS="$save_LDFLAGS"
11930     LIBS="$save_LIBS"
11931     ;;
11932   esac
11933
11934   case $lt_cv_dlopen_self in
11935   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11936   *) enable_dlopen_self=unknown ;;
11937   esac
11938
11939   case $lt_cv_dlopen_self_static in
11940   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11941   *) enable_dlopen_self_static=unknown ;;
11942   esac
11943 fi
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961 striplib=
11962 old_striplib=
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11964 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11965 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11966   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11967   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11969 $as_echo "yes" >&6; }
11970 else
11971 # FIXME - insert some real tests, host_os isn't really good enough
11972   case $host_os in
11973   darwin*)
11974     if test -n "$STRIP" ; then
11975       striplib="$STRIP -x"
11976       old_striplib="$STRIP -S"
11977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11978 $as_echo "yes" >&6; }
11979     else
11980       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11981 $as_echo "no" >&6; }
11982     fi
11983     ;;
11984   *)
11985     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11987     ;;
11988   esac
11989 fi
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002   # Report which library types will actually be built
12003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12004 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12006 $as_echo "$can_build_shared" >&6; }
12007
12008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12009 $as_echo_n "checking whether to build shared libraries... " >&6; }
12010   test "$can_build_shared" = "no" && enable_shared=no
12011
12012   # On AIX, shared libraries and static libraries use the same namespace, and
12013   # are all built from PIC.
12014   case $host_os in
12015   aix3*)
12016     test "$enable_shared" = yes && enable_static=no
12017     if test -n "$RANLIB"; then
12018       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12019       postinstall_cmds='$RANLIB $lib'
12020     fi
12021     ;;
12022
12023   aix[4-9]*)
12024     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12025       test "$enable_shared" = yes && enable_static=no
12026     fi
12027     ;;
12028   esac
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12030 $as_echo "$enable_shared" >&6; }
12031
12032   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12033 $as_echo_n "checking whether to build static libraries... " >&6; }
12034   # Make sure either enable_shared or enable_static is yes.
12035   test "$enable_shared" = yes || enable_static=yes
12036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12037 $as_echo "$enable_static" >&6; }
12038
12039
12040
12041
12042 fi
12043 ac_ext=c
12044 ac_cpp='$CPP $CPPFLAGS'
12045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12048
12049 CC="$lt_save_CC"
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065         ac_config_commands="$ac_config_commands libtool"
12066
12067
12068
12069
12070 # Only expand once:
12071
12072
12073
12074
12075 # Test for 64-bit build.
12076 # The cast to long int works around a bug in the HP C Compiler
12077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12079 # This bug is HP SR number 8606223364.
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12081 $as_echo_n "checking size of size_t... " >&6; }
12082 if ${ac_cv_sizeof_size_t+:} false; then :
12083   $as_echo_n "(cached) " >&6
12084 else
12085   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12086
12087 else
12088   if test "$ac_cv_type_size_t" = yes; then
12089      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12091 as_fn_error 77 "cannot compute sizeof (size_t)
12092 See \`config.log' for more details" "$LINENO" 5; }
12093    else
12094      ac_cv_sizeof_size_t=0
12095    fi
12096 fi
12097
12098 fi
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12100 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12101
12102
12103
12104 cat >>confdefs.h <<_ACEOF
12105 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12106 _ACEOF
12107
12108
12109
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12111 $as_echo_n "checking for C compiler vendor... " >&6; }
12112 if ${ax_cv_c_compiler_vendor+:} false; then :
12113   $as_echo_n "(cached) " >&6
12114 else
12115   # note: don't check for gcc first since some other compilers define __GNUC__
12116   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12117            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12118            pathscale: __PATHCC__,__PATHSCALE__
12119            clang:     __clang__
12120            gnu:       __GNUC__
12121            sun:       __SUNPRO_C,__SUNPRO_CC
12122            hp:        __HP_cc,__HP_aCC
12123            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12124            borland:   __BORLANDC__,__TURBOC__
12125            comeau:    __COMO__
12126            cray:      _CRAYC
12127            kai:       __KCC
12128            lcc:       __LCC__
12129            sgi:       __sgi,sgi
12130            microsoft: _MSC_VER
12131            metrowerks: __MWERKS__
12132            watcom:    __WATCOMC__
12133            portland:  __PGI
12134            unknown:   UNKNOWN"
12135   for ventest in $vendors; do
12136     case $ventest in
12137       *:) vendor=$ventest; continue ;;
12138       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12139     esac
12140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12141 /* end confdefs.h.  */
12142
12143 int
12144 main ()
12145 {
12146
12147       #if !($vencpp)
12148         thisisanerror;
12149       #endif
12150
12151   ;
12152   return 0;
12153 }
12154 _ACEOF
12155 if ac_fn_c_try_compile "$LINENO"; then :
12156   break
12157 fi
12158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12159   done
12160   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12161
12162 fi
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12164 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12165
12166
12167
12168
12169
12170
12171 # Check whether --enable-portable-binary was given.
12172 if test "${enable_portable_binary+set}" = set; then :
12173   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12174 else
12175   acx_maxopt_portable=no
12176 fi
12177
12178
12179 # Try to determine "good" native compiler flags if none specified via CFLAGS
12180 if test "$ac_test_CFLAGS" != "set"; then
12181   CFLAGS=""
12182   case $ax_cv_c_compiler_vendor in
12183     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12184          if test "x$acx_maxopt_portable" = xno; then
12185            CFLAGS="$CFLAGS -arch host"
12186          fi;;
12187
12188     sun) CFLAGS="-native -fast -xO5 -dalign"
12189          if test "x$acx_maxopt_portable" = xyes; then
12190            CFLAGS="$CFLAGS -xarch=generic"
12191          fi;;
12192
12193     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12194          if test "x$acx_maxopt_portable" = xyes; then
12195            CFLAGS="$CFLAGS +DAportable"
12196          fi;;
12197
12198     ibm) if test "x$acx_maxopt_portable" = xno; then
12199            xlc_opt="-qarch=auto -qtune=auto"
12200          else
12201            xlc_opt="-qtune=auto"
12202          fi
12203          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12205 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12206 if eval \${$as_CACHEVAR+:} false; then :
12207   $as_echo_n "(cached) " >&6
12208 else
12209
12210   ax_check_save_flags=$CFLAGS
12211   CFLAGS="$CFLAGS  $xlc_opt"
12212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h.  */
12214
12215 int
12216 main ()
12217 {
12218
12219   ;
12220   return 0;
12221 }
12222 _ACEOF
12223 if ac_fn_c_try_compile "$LINENO"; then :
12224   eval "$as_CACHEVAR=yes"
12225 else
12226   eval "$as_CACHEVAR=no"
12227 fi
12228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12229   CFLAGS=$ax_check_save_flags
12230 fi
12231 eval ac_res=\$$as_CACHEVAR
12232                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12233 $as_echo "$ac_res" >&6; }
12234 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12235   CFLAGS="-O3 -qansialias -w $xlc_opt"
12236 else
12237   CFLAGS="-O3 -qansialias -w"
12238                 echo "******************************************************"
12239                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12240                 echo "*  recommended for best performance that you use:    *"
12241                 echo "*                                                    *"
12242                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12243                 echo "*                      ^^^        ^^^                *"
12244                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12245                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12246                 echo "*  and re-run configure.)  For more info, man cc.    *"
12247                 echo "******************************************************"
12248 fi
12249
12250          ;;
12251
12252     intel) CFLAGS="-O3 -ansi_alias"
12253         if test "x$acx_maxopt_portable" = xno; then
12254           icc_archflag=unknown
12255           icc_flags=""
12256           case $host_cpu in
12257             i686*|x86_64*)
12258               # icc accepts gcc assembly syntax, so these should work:
12259
12260 ac_ext=c
12261 ac_cpp='$CPP $CPPFLAGS'
12262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12265
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12267 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12268 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12269   $as_echo_n "(cached) " >&6
12270 else
12271   if test "$cross_compiling" = yes; then :
12272   ax_cv_gcc_x86_cpuid_0=unknown
12273 else
12274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h.  */
12276 #include <stdio.h>
12277 int
12278 main ()
12279 {
12280
12281      int op = 0, eax, ebx, ecx, edx;
12282      FILE *f;
12283       __asm__("cpuid"
12284         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12285         : "a" (op));
12286      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12287      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12288      fclose(f);
12289      return 0;
12290
12291   ;
12292   return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_run "$LINENO"; then :
12296   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12297 else
12298   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12299 fi
12300 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12301   conftest.$ac_objext conftest.beam conftest.$ac_ext
12302 fi
12303
12304 fi
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12306 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12307 ac_ext=c
12308 ac_cpp='$CPP $CPPFLAGS'
12309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12312
12313
12314
12315 ac_ext=c
12316 ac_cpp='$CPP $CPPFLAGS'
12317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12320
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12322 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12323 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12324   $as_echo_n "(cached) " >&6
12325 else
12326   if test "$cross_compiling" = yes; then :
12327   ax_cv_gcc_x86_cpuid_1=unknown
12328 else
12329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h.  */
12331 #include <stdio.h>
12332 int
12333 main ()
12334 {
12335
12336      int op = 1, eax, ebx, ecx, edx;
12337      FILE *f;
12338       __asm__("cpuid"
12339         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12340         : "a" (op));
12341      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12342      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12343      fclose(f);
12344      return 0;
12345
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 if ac_fn_c_try_run "$LINENO"; then :
12351   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12352 else
12353   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12354 fi
12355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12356   conftest.$ac_objext conftest.beam conftest.$ac_ext
12357 fi
12358
12359 fi
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12361 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12362 ac_ext=c
12363 ac_cpp='$CPP $CPPFLAGS'
12364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12367
12368
12369               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12370                 *:756e6547:*:*) # Intel
12371                   case $ax_cv_gcc_x86_cpuid_1 in
12372                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12373                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12374                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12375                   esac ;;
12376               esac ;;
12377           esac
12378           if test "x$icc_flags" != x; then
12379             for flag in $icc_flags; do
12380               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12382 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12383 if eval \${$as_CACHEVAR+:} false; then :
12384   $as_echo_n "(cached) " >&6
12385 else
12386
12387   ax_check_save_flags=$CFLAGS
12388   CFLAGS="$CFLAGS  $flag"
12389   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12390 /* end confdefs.h.  */
12391
12392 int
12393 main ()
12394 {
12395
12396   ;
12397   return 0;
12398 }
12399 _ACEOF
12400 if ac_fn_c_try_compile "$LINENO"; then :
12401   eval "$as_CACHEVAR=yes"
12402 else
12403   eval "$as_CACHEVAR=no"
12404 fi
12405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12406   CFLAGS=$ax_check_save_flags
12407 fi
12408 eval ac_res=\$$as_CACHEVAR
12409                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12410 $as_echo "$ac_res" >&6; }
12411 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12412   icc_archflag=$flag; break
12413 else
12414   :
12415 fi
12416
12417             done
12418           fi
12419           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12420 $as_echo_n "checking for icc architecture flag... " >&6; }
12421           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12422 $as_echo "$icc_archflag" >&6; }
12423           if test "x$icc_archflag" != xunknown; then
12424             CFLAGS="$CFLAGS $icc_archflag"
12425           fi
12426         fi
12427         ;;
12428
12429     gnu)
12430      # default optimization flags for gcc on all systems
12431      CFLAGS="-O3 -fomit-frame-pointer"
12432
12433      # -malign-double for x86 systems
12434      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12435      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12436
12437      #  -fstrict-aliasing for gcc-2.95+
12438      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12439 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12440 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12441   $as_echo_n "(cached) " >&6
12442 else
12443
12444   ax_check_save_flags=$CFLAGS
12445   CFLAGS="$CFLAGS  -fstrict-aliasing"
12446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12447 /* end confdefs.h.  */
12448
12449 int
12450 main ()
12451 {
12452
12453   ;
12454   return 0;
12455 }
12456 _ACEOF
12457 if ac_fn_c_try_compile "$LINENO"; then :
12458   ax_cv_check_cflags___fstrict_aliasing=yes
12459 else
12460   ax_cv_check_cflags___fstrict_aliasing=no
12461 fi
12462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12463   CFLAGS=$ax_check_save_flags
12464 fi
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12466 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12467 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12468   CFLAGS="$CFLAGS -fstrict-aliasing"
12469 else
12470   :
12471 fi
12472
12473
12474      # note that we enable "unsafe" fp optimization with other compilers, too
12475      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12476 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12477 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12478   $as_echo_n "(cached) " >&6
12479 else
12480
12481   ax_check_save_flags=$CFLAGS
12482   CFLAGS="$CFLAGS  -ffast-math"
12483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12484 /* end confdefs.h.  */
12485
12486 int
12487 main ()
12488 {
12489
12490   ;
12491   return 0;
12492 }
12493 _ACEOF
12494 if ac_fn_c_try_compile "$LINENO"; then :
12495   ax_cv_check_cflags___ffast_math=yes
12496 else
12497   ax_cv_check_cflags___ffast_math=no
12498 fi
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500   CFLAGS=$ax_check_save_flags
12501 fi
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12503 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12504 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12505   CFLAGS="$CFLAGS -ffast-math"
12506 else
12507   :
12508 fi
12509
12510
12511
12512
12513
12514
12515 # Check whether --with-gcc-arch was given.
12516 if test "${with_gcc_arch+set}" = set; then :
12517   withval=$with_gcc_arch; ax_gcc_arch=$withval
12518 else
12519   ax_gcc_arch=yes
12520 fi
12521
12522
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12524 $as_echo_n "checking for gcc architecture flag... " >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12526 $as_echo "" >&6; }
12527 if ${ax_cv_gcc_archflag+:} false; then :
12528   $as_echo_n "(cached) " >&6
12529 else
12530
12531 ax_cv_gcc_archflag="unknown"
12532
12533 if test "$GCC" = yes; then
12534
12535 if test "x$ax_gcc_arch" = xyes; then
12536 ax_gcc_arch=""
12537 if test "$cross_compiling" = no; then
12538 case $host_cpu in
12539   i[3456]86*|x86_64*) # use cpuid codes
12540
12541 ac_ext=c
12542 ac_cpp='$CPP $CPPFLAGS'
12543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12546
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12548 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12549 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12550   $as_echo_n "(cached) " >&6
12551 else
12552   if test "$cross_compiling" = yes; then :
12553   ax_cv_gcc_x86_cpuid_0=unknown
12554 else
12555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12556 /* end confdefs.h.  */
12557 #include <stdio.h>
12558 int
12559 main ()
12560 {
12561
12562      int op = 0, eax, ebx, ecx, edx;
12563      FILE *f;
12564       __asm__("cpuid"
12565         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12566         : "a" (op));
12567      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12568      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12569      fclose(f);
12570      return 0;
12571
12572   ;
12573   return 0;
12574 }
12575 _ACEOF
12576 if ac_fn_c_try_run "$LINENO"; then :
12577   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12578 else
12579   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12580 fi
12581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12582   conftest.$ac_objext conftest.beam conftest.$ac_ext
12583 fi
12584
12585 fi
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12587 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12588 ac_ext=c
12589 ac_cpp='$CPP $CPPFLAGS'
12590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12593
12594
12595
12596 ac_ext=c
12597 ac_cpp='$CPP $CPPFLAGS'
12598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12601
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12603 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12604 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   if test "$cross_compiling" = yes; then :
12608   ax_cv_gcc_x86_cpuid_1=unknown
12609 else
12610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612 #include <stdio.h>
12613 int
12614 main ()
12615 {
12616
12617      int op = 1, eax, ebx, ecx, edx;
12618      FILE *f;
12619       __asm__("cpuid"
12620         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12621         : "a" (op));
12622      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12623      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12624      fclose(f);
12625      return 0;
12626
12627   ;
12628   return 0;
12629 }
12630 _ACEOF
12631 if ac_fn_c_try_run "$LINENO"; then :
12632   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12633 else
12634   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12635 fi
12636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12637   conftest.$ac_objext conftest.beam conftest.$ac_ext
12638 fi
12639
12640 fi
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12642 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12643 ac_ext=c
12644 ac_cpp='$CPP $CPPFLAGS'
12645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12648
12649
12650      case $ax_cv_gcc_x86_cpuid_0 in
12651        *:756e6547:*:*) # Intel
12652           case $ax_cv_gcc_x86_cpuid_1 in
12653             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12654             *5??:*:*:*) ax_gcc_arch=pentium ;;
12655             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12656             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12657             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12658             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12659             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12660             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12661             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12662             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12663             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12664             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12665             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12666             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12667             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12668                 case $host_cpu in
12669                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12670                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12671                 esac ;;
12672             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12673           esac ;;
12674        *:68747541:*:*) # AMD
12675           case $ax_cv_gcc_x86_cpuid_1 in
12676             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12677             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12678             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12679             *60?:*:*:*) ax_gcc_arch=k7 ;;
12680             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12681             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12682             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12683             *6[68a]?:*:*:*)
12684
12685 ac_ext=c
12686 ac_cpp='$CPP $CPPFLAGS'
12687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12690
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12692 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12693 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   if test "$cross_compiling" = yes; then :
12697   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12698 else
12699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h.  */
12701 #include <stdio.h>
12702 int
12703 main ()
12704 {
12705
12706      int op = 0x80000006, eax, ebx, ecx, edx;
12707      FILE *f;
12708       __asm__("cpuid"
12709         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12710         : "a" (op));
12711      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12712      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12713      fclose(f);
12714      return 0;
12715
12716   ;
12717   return 0;
12718 }
12719 _ACEOF
12720 if ac_fn_c_try_run "$LINENO"; then :
12721   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12722 else
12723   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12724 fi
12725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12726   conftest.$ac_objext conftest.beam conftest.$ac_ext
12727 fi
12728
12729 fi
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12731 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12732 ac_ext=c
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12737
12738  # L2 cache size
12739                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12740                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12741                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12742                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12743                esac ;;
12744             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12745             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12746             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12747             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12748             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12749             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12750             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12751           esac ;;
12752         *:746e6543:*:*) # IDT
12753            case $ax_cv_gcc_x86_cpuid_1 in
12754              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12755              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12756              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12757              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12758            esac ;;
12759      esac
12760      if test x"$ax_gcc_arch" = x; then # fallback
12761         case $host_cpu in
12762           i586*) ax_gcc_arch=pentium ;;
12763           i686*) ax_gcc_arch=pentiumpro ;;
12764         esac
12765      fi
12766      ;;
12767
12768   sparc*)
12769      # Extract the first word of "prtdiag", so it can be a program name with args.
12770 set dummy prtdiag; ac_word=$2
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772 $as_echo_n "checking for $ac_word... " >&6; }
12773 if ${ac_cv_path_PRTDIAG+:} false; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   case $PRTDIAG in
12777   [\\/]* | ?:[\\/]*)
12778   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12779   ;;
12780   *)
12781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12783 for as_dir in $as_dummy
12784 do
12785   IFS=$as_save_IFS
12786   test -z "$as_dir" && as_dir=.
12787     for ac_exec_ext in '' $ac_executable_extensions; do
12788   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12789     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12790     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12791     break 2
12792   fi
12793 done
12794   done
12795 IFS=$as_save_IFS
12796
12797   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12798   ;;
12799 esac
12800 fi
12801 PRTDIAG=$ac_cv_path_PRTDIAG
12802 if test -n "$PRTDIAG"; then
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12804 $as_echo "$PRTDIAG" >&6; }
12805 else
12806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12807 $as_echo "no" >&6; }
12808 fi
12809
12810
12811      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`
12812      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12813      case $cputype in
12814          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12815          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12816          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12817          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12818          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12819          *cypress*) ax_gcc_arch=cypress ;;
12820      esac ;;
12821
12822   alphaev5) ax_gcc_arch=ev5 ;;
12823   alphaev56) ax_gcc_arch=ev56 ;;
12824   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12825   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12826   alphaev6) ax_gcc_arch=ev6 ;;
12827   alphaev67) ax_gcc_arch=ev67 ;;
12828   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12829   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12830   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12831   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12832
12833   powerpc*)
12834      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`
12835      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12836      case $cputype in
12837        *750*) ax_gcc_arch="750 G3" ;;
12838        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12839        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12840        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12841        *970*) ax_gcc_arch="970 G5 power4";;
12842        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12843        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12844        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12845        *) ax_gcc_arch=$cputype ;;
12846      esac
12847      ax_gcc_arch="$ax_gcc_arch powerpc"
12848      ;;
12849 esac
12850 fi # not cross-compiling
12851 fi # guess arch
12852
12853 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12854 for arch in $ax_gcc_arch; do
12855   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12856     flags="-mtune=$arch"
12857     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12858     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12859     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12860   else
12861     flags="-march=$arch -mcpu=$arch -m$arch"
12862   fi
12863   for flag in $flags; do
12864     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12866 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12867 if eval \${$as_CACHEVAR+:} false; then :
12868   $as_echo_n "(cached) " >&6
12869 else
12870
12871   ax_check_save_flags=$CFLAGS
12872   CFLAGS="$CFLAGS  $flag"
12873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12874 /* end confdefs.h.  */
12875
12876 int
12877 main ()
12878 {
12879
12880   ;
12881   return 0;
12882 }
12883 _ACEOF
12884 if ac_fn_c_try_compile "$LINENO"; then :
12885   eval "$as_CACHEVAR=yes"
12886 else
12887   eval "$as_CACHEVAR=no"
12888 fi
12889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12890   CFLAGS=$ax_check_save_flags
12891 fi
12892 eval ac_res=\$$as_CACHEVAR
12893                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12894 $as_echo "$ac_res" >&6; }
12895 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12896   ax_cv_gcc_archflag=$flag; break
12897 else
12898   :
12899 fi
12900
12901   done
12902   test "x$ax_cv_gcc_archflag" = xunknown || break
12903 done
12904 fi
12905
12906 fi # $GCC=yes
12907
12908 fi
12909
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12911 $as_echo_n "checking for gcc architecture flag... " >&6; }
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12913 $as_echo "$ax_cv_gcc_archflag" >&6; }
12914 if test "x$ax_cv_gcc_archflag" = xunknown; then
12915   :
12916 else
12917   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12918 fi
12919
12920      ;;
12921   esac
12922
12923   if test -z "$CFLAGS"; then
12924         echo ""
12925         echo "********************************************************"
12926         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12927         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12928         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12929         echo "********************************************************"
12930         echo ""
12931         CFLAGS="-O3"
12932   fi
12933
12934   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12936 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12937 if eval \${$as_CACHEVAR+:} false; then :
12938   $as_echo_n "(cached) " >&6
12939 else
12940
12941   ax_check_save_flags=$CFLAGS
12942   CFLAGS="$CFLAGS  $CFLAGS"
12943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h.  */
12945
12946 int
12947 main ()
12948 {
12949
12950   ;
12951   return 0;
12952 }
12953 _ACEOF
12954 if ac_fn_c_try_compile "$LINENO"; then :
12955   eval "$as_CACHEVAR=yes"
12956 else
12957   eval "$as_CACHEVAR=no"
12958 fi
12959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12960   CFLAGS=$ax_check_save_flags
12961 fi
12962 eval ac_res=\$$as_CACHEVAR
12963                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12964 $as_echo "$ac_res" >&6; }
12965 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12966   :
12967 else
12968
12969         echo ""
12970         echo "********************************************************"
12971         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12972         echo "* your compiler.                                       *"
12973         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12974         echo "********************************************************"
12975         echo ""
12976         CFLAGS=""
12977
12978 fi
12979
12980
12981 fi
12982
12983 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12984 # compiler.
12985 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12986   if ${CFLAGS+:} false; then :
12987   case " $CFLAGS " in
12988     *"  "*)
12989       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12990   (: CFLAGS already contains ) 2>&5
12991   ac_status=$?
12992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12993   test $ac_status = 0; }
12994       ;;
12995     *)
12996       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12997   (: CFLAGS="$CFLAGS ") 2>&5
12998   ac_status=$?
12999   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000   test $ac_status = 0; }
13001       CFLAGS="$CFLAGS "
13002       ;;
13003    esac
13004 else
13005   CFLAGS=""
13006 fi
13007
13008 ac_ext=c
13009 ac_cpp='$CPP $CPPFLAGS'
13010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13013
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13015 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13016 if ${ac_cv_cflags_warn_all+:} false; then :
13017   $as_echo_n "(cached) " >&6
13018 else
13019   ac_cv_cflags_warn_all="no, unknown"
13020 ac_save_CFLAGS="$CFLAGS"
13021 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"    #
13022 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13023    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h.  */
13025
13026 int
13027 main ()
13028 {
13029
13030   ;
13031   return 0;
13032 }
13033 _ACEOF
13034 if ac_fn_c_try_compile "$LINENO"; then :
13035   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13036 fi
13037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13038 done
13039 CFLAGS="$ac_save_CFLAGS"
13040
13041 fi
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13043 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13044
13045 case ".$ac_cv_cflags_warn_all" in
13046      .ok|.ok,*)  ;;
13047    .|.no|.no,*)  ;;
13048    *) if ${CFLAGS+:} false; then :
13049   case " $CFLAGS " in
13050     *" $ac_cv_cflags_warn_all "*)
13051       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13052   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13053   ac_status=$?
13054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13055   test $ac_status = 0; }
13056       ;;
13057     *)
13058       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13059   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13060   ac_status=$?
13061   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13062   test $ac_status = 0; }
13063       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13064       ;;
13065    esac
13066 else
13067   CFLAGS="$ac_cv_cflags_warn_all"
13068 fi
13069  ;;
13070 esac
13071
13072 ac_ext=c
13073 ac_cpp='$CPP $CPPFLAGS'
13074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13077
13078
13079 fi
13080
13081 if test "x$GCC" = "xyes"; then
13082   CFLAGS="$CFLAGS -fexceptions"
13083   touch local.exp
13084 else
13085   cat > local.exp <<EOF
13086 set CC_FOR_TARGET "$CC"
13087 EOF
13088 fi
13089
13090
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13092 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13093     # Check whether --enable-maintainer-mode was given.
13094 if test "${enable_maintainer_mode+set}" = set; then :
13095   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13096 else
13097   USE_MAINTAINER_MODE=no
13098 fi
13099
13100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13101 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13102    if test $USE_MAINTAINER_MODE = yes; then
13103   MAINTAINER_MODE_TRUE=
13104   MAINTAINER_MODE_FALSE='#'
13105 else
13106   MAINTAINER_MODE_TRUE='#'
13107   MAINTAINER_MODE_FALSE=
13108 fi
13109
13110   MAINT=$MAINTAINER_MODE_TRUE
13111
13112
13113
13114 for ac_header in sys/mman.h
13115 do :
13116   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13117 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13118   cat >>confdefs.h <<_ACEOF
13119 #define HAVE_SYS_MMAN_H 1
13120 _ACEOF
13121
13122 fi
13123
13124 done
13125
13126 for ac_func in mmap
13127 do :
13128   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13129 if test "x$ac_cv_func_mmap" = xyes; then :
13130   cat >>confdefs.h <<_ACEOF
13131 #define HAVE_MMAP 1
13132 _ACEOF
13133
13134 fi
13135 done
13136
13137
13138 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13139 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13140   libffi_header_sys_mman_h=yes
13141 else
13142   libffi_header_sys_mman_h=no
13143 fi
13144
13145
13146 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13147 if test "x$ac_cv_func_mmap" = xyes; then :
13148   libffi_func_mmap=yes
13149 else
13150   libffi_func_mmap=no
13151 fi
13152
13153 if test "$libffi_header_sys_mman_h" != yes \
13154  || test "$libffi_func_mmap" != yes; then
13155    ac_cv_func_mmap_file=no
13156    ac_cv_func_mmap_dev_zero=no
13157    ac_cv_func_mmap_anon=no
13158 else
13159    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13160 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13161 if ${ac_cv_func_mmap_file+:} false; then :
13162   $as_echo_n "(cached) " >&6
13163 else
13164   # Add a system to this blacklist if
13165    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13166    # memory area containing the same data that you'd get if you applied
13167    # read() to the same fd.  The only system known to have a problem here
13168    # is VMS, where text files have record structure.
13169    case "$host_os" in
13170      vms* | ultrix*)
13171         ac_cv_func_mmap_file=no ;;
13172      *)
13173         ac_cv_func_mmap_file=yes;;
13174    esac
13175 fi
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13177 $as_echo "$ac_cv_func_mmap_file" >&6; }
13178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13179 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13180 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13181   $as_echo_n "(cached) " >&6
13182 else
13183   # Add a system to this blacklist if it has mmap() but /dev/zero
13184    # does not exist, or if mmapping /dev/zero does not give anonymous
13185    # zeroed pages with both the following properties:
13186    # 1. If you map N consecutive pages in with one call, and then
13187    #    unmap any subset of those pages, the pages that were not
13188    #    explicitly unmapped remain accessible.
13189    # 2. If you map two adjacent blocks of memory and then unmap them
13190    #    both at once, they must both go away.
13191    # Systems known to be in this category are Windows (all variants),
13192    # VMS, and Darwin.
13193    case "$host_os" in
13194      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13195         ac_cv_func_mmap_dev_zero=no ;;
13196      *)
13197         ac_cv_func_mmap_dev_zero=yes;;
13198    esac
13199 fi
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13201 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13202
13203    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13204    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13205 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13206 if ${ac_cv_decl_map_anon+:} false; then :
13207   $as_echo_n "(cached) " >&6
13208 else
13209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210 /* end confdefs.h.  */
13211 #include <sys/types.h>
13212 #include <sys/mman.h>
13213 #include <unistd.h>
13214
13215 #ifndef MAP_ANONYMOUS
13216 #define MAP_ANONYMOUS MAP_ANON
13217 #endif
13218
13219 int
13220 main ()
13221 {
13222 int n = MAP_ANONYMOUS;
13223   ;
13224   return 0;
13225 }
13226 _ACEOF
13227 if ac_fn_c_try_compile "$LINENO"; then :
13228   ac_cv_decl_map_anon=yes
13229 else
13230   ac_cv_decl_map_anon=no
13231 fi
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13235 $as_echo "$ac_cv_decl_map_anon" >&6; }
13236
13237    if test $ac_cv_decl_map_anon = no; then
13238      ac_cv_func_mmap_anon=no
13239    else
13240      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13241 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13242 if ${ac_cv_func_mmap_anon+:} false; then :
13243   $as_echo_n "(cached) " >&6
13244 else
13245   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13246    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13247    # doesn't give anonymous zeroed pages with the same properties listed
13248    # above for use of /dev/zero.
13249    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13250    case "$host_os" in
13251      vms* | cygwin* | pe | mingw* | sco* | udk* )
13252         ac_cv_func_mmap_anon=no ;;
13253      *)
13254         ac_cv_func_mmap_anon=yes;;
13255    esac
13256 fi
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13258 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13259    fi
13260 fi
13261
13262 if test $ac_cv_func_mmap_file = yes; then
13263
13264 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13265
13266 fi
13267 if test $ac_cv_func_mmap_dev_zero = yes; then
13268
13269 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13270
13271 fi
13272 if test $ac_cv_func_mmap_anon = yes; then
13273
13274 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13275
13276 fi
13277
13278
13279  if test -d $srcdir/testsuite; then
13280   TESTSUBDIR_TRUE=
13281   TESTSUBDIR_FALSE='#'
13282 else
13283   TESTSUBDIR_TRUE='#'
13284   TESTSUBDIR_FALSE=
13285 fi
13286
13287
13288 TARGETDIR="unknown"
13289 case "$host" in
13290   aarch64*-*-*)
13291         TARGET=AARCH64; TARGETDIR=aarch64
13292         ;;
13293
13294   alpha*-*-*)
13295         TARGET=ALPHA; TARGETDIR=alpha;
13296         # Support 128-bit long double, changeable via command-line switch.
13297         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13298         ;;
13299
13300   arm*-*-*)
13301         TARGET=ARM; TARGETDIR=arm
13302         ;;
13303
13304   amd64-*-freebsd* | amd64-*-openbsd*)
13305         TARGET=X86_64; TARGETDIR=x86
13306         ;;
13307
13308   amd64-*-freebsd*)
13309         TARGET=X86_64; TARGETDIR=x86
13310         ;;
13311
13312   amd64-*-freebsd*)
13313         TARGET=X86_64; TARGETDIR=x86
13314         ;;
13315
13316   avr32*-*-*)
13317         TARGET=AVR32; TARGETDIR=avr32
13318         ;;
13319
13320   bfin*)
13321         TARGET=BFIN; TARGETDIR=bfin
13322         ;;
13323
13324   cris-*-*)
13325         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13326         ;;
13327
13328   frv-*-*)
13329         TARGET=FRV; TARGETDIR=frv
13330         ;;
13331
13332   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13333         TARGET=PA_LINUX; TARGETDIR=pa
13334         ;;
13335   hppa*64-*-hpux*)
13336         TARGET=PA64_HPUX; TARGETDIR=pa
13337         ;;
13338   hppa*-*-hpux*)
13339         TARGET=PA_HPUX; TARGETDIR=pa
13340         ;;
13341
13342   i?86-*-freebsd* | i?86-*-openbsd*)
13343         TARGET=X86_FREEBSD; TARGETDIR=x86
13344         ;;
13345   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13346         TARGET=X86_WIN32; TARGETDIR=x86
13347         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13348         # We must also check with_cross_host to decide if this is a native
13349         # or cross-build and select where to install dlls appropriately.
13350         if test -n "$with_cross_host" &&
13351            test x"$with_cross_host" != x"no"; then
13352           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13353         else
13354           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13355         fi
13356         ;;
13357   i?86-*-darwin*)
13358         TARGET=X86_DARWIN; TARGETDIR=x86
13359         ;;
13360   i?86-*-solaris2.1[0-9]*)
13361         TARGETDIR=x86
13362         if test $ac_cv_sizeof_size_t = 4; then
13363           TARGET=X86;
13364         else
13365           TARGET=X86_64;
13366         fi
13367         ;;
13368
13369   x86_64-*-darwin*)
13370         TARGET=X86_DARWIN; TARGETDIR=x86
13371         ;;
13372
13373   x86_64-*-cygwin* | x86_64-*-mingw*)
13374         TARGET=X86_WIN64; TARGETDIR=x86
13375         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13376         # We must also check with_cross_host to decide if this is a native
13377         # or cross-build and select where to install dlls appropriately.
13378         if test -n "$with_cross_host" &&
13379            test x"$with_cross_host" != x"no"; then
13380           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13381         else
13382           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13383         fi
13384         ;;
13385
13386   i?86-*-* | x86_64-*-*)
13387         TARGETDIR=x86
13388         if test $ac_cv_sizeof_size_t = 4; then
13389           case "$host" in
13390             *-gnux32)
13391               TARGET=X86_64
13392               ;;
13393             *)
13394               TARGET=X86
13395               ;;
13396           esac
13397         else
13398           TARGET=X86_64;
13399         fi
13400         ;;
13401
13402   ia64*-*-*)
13403         TARGET=IA64; TARGETDIR=ia64
13404         ;;
13405
13406   m32r*-*-*)
13407         TARGET=M32R; TARGETDIR=m32r
13408         ;;
13409
13410   m68k-*-*)
13411         TARGET=M68K; TARGETDIR=m68k
13412         ;;
13413
13414   microblaze*-*-*)
13415         TARGET=MICROBLAZE; TARGETDIR=microblaze
13416         ;;
13417
13418   moxie-*-*)
13419         TARGET=MOXIE; TARGETDIR=moxie
13420         ;;
13421
13422   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13423         TARGET=MIPS; TARGETDIR=mips
13424         ;;
13425   mips*-*-linux* | mips*-*-openbsd*)
13426         # Support 128-bit long double for NewABI.
13427         HAVE_LONG_DOUBLE='defined(__mips64)'
13428         TARGET=MIPS; TARGETDIR=mips
13429         ;;
13430
13431   powerpc*-*-linux* | powerpc-*-sysv*)
13432         TARGET=POWERPC; TARGETDIR=powerpc
13433         ;;
13434   powerpc-*-amigaos*)
13435         TARGET=POWERPC; TARGETDIR=powerpc
13436         ;;
13437   powerpc-*-beos*)
13438         TARGET=POWERPC; TARGETDIR=powerpc
13439         ;;
13440   powerpc-*-darwin* | powerpc64-*-darwin*)
13441         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13442         ;;
13443   powerpc-*-aix* | rs6000-*-aix*)
13444         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13445         ;;
13446   powerpc-*-freebsd* | powerpc-*-openbsd*)
13447         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13448         ;;
13449   powerpc64-*-freebsd*)
13450         TARGET=POWERPC; TARGETDIR=powerpc
13451         ;;
13452   powerpc*-*-rtems*)
13453         TARGET=POWERPC; TARGETDIR=powerpc
13454         ;;
13455
13456   s390-*-* | s390x-*-*)
13457         TARGET=S390; TARGETDIR=s390
13458         ;;
13459
13460   sh-*-* | sh[34]*-*-*)
13461         TARGET=SH; TARGETDIR=sh
13462         ;;
13463   sh64-*-* | sh5*-*-*)
13464         TARGET=SH64; TARGETDIR=sh64
13465         ;;
13466
13467   sparc*-*-*)
13468         TARGET=SPARC; TARGETDIR=sparc
13469         ;;
13470
13471   tile*-*)
13472         TARGET=TILE; TARGETDIR=tile
13473         ;;
13474
13475   xtensa*-*)
13476         TARGET=XTENSA; TARGETDIR=xtensa
13477         ;;
13478
13479 esac
13480
13481
13482
13483
13484 if test $TARGETDIR = unknown; then
13485   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13486 fi
13487
13488  if test x$TARGET = xMIPS; then
13489   MIPS_TRUE=
13490   MIPS_FALSE='#'
13491 else
13492   MIPS_TRUE='#'
13493   MIPS_FALSE=
13494 fi
13495
13496  if test x$TARGET = xBFIN; then
13497   BFIN_TRUE=
13498   BFIN_FALSE='#'
13499 else
13500   BFIN_TRUE='#'
13501   BFIN_FALSE=
13502 fi
13503
13504  if test x$TARGET = xSPARC; then
13505   SPARC_TRUE=
13506   SPARC_FALSE='#'
13507 else
13508   SPARC_TRUE='#'
13509   SPARC_FALSE=
13510 fi
13511
13512  if test x$TARGET = xX86; then
13513   X86_TRUE=
13514   X86_FALSE='#'
13515 else
13516   X86_TRUE='#'
13517   X86_FALSE=
13518 fi
13519
13520  if test x$TARGET = xX86_FREEBSD; then
13521   X86_FREEBSD_TRUE=
13522   X86_FREEBSD_FALSE='#'
13523 else
13524   X86_FREEBSD_TRUE='#'
13525   X86_FREEBSD_FALSE=
13526 fi
13527
13528  if test x$TARGET = xX86_WIN32; then
13529   X86_WIN32_TRUE=
13530   X86_WIN32_FALSE='#'
13531 else
13532   X86_WIN32_TRUE='#'
13533   X86_WIN32_FALSE=
13534 fi
13535
13536  if test x$TARGET = xX86_WIN64; then
13537   X86_WIN64_TRUE=
13538   X86_WIN64_FALSE='#'
13539 else
13540   X86_WIN64_TRUE='#'
13541   X86_WIN64_FALSE=
13542 fi
13543
13544  if test x$TARGET = xX86_DARWIN; then
13545   X86_DARWIN_TRUE=
13546   X86_DARWIN_FALSE='#'
13547 else
13548   X86_DARWIN_TRUE='#'
13549   X86_DARWIN_FALSE=
13550 fi
13551
13552  if test x$TARGET = xALPHA; then
13553   ALPHA_TRUE=
13554   ALPHA_FALSE='#'
13555 else
13556   ALPHA_TRUE='#'
13557   ALPHA_FALSE=
13558 fi
13559
13560  if test x$TARGET = xIA64; then
13561   IA64_TRUE=
13562   IA64_FALSE='#'
13563 else
13564   IA64_TRUE='#'
13565   IA64_FALSE=
13566 fi
13567
13568  if test x$TARGET = xM32R; then
13569   M32R_TRUE=
13570   M32R_FALSE='#'
13571 else
13572   M32R_TRUE='#'
13573   M32R_FALSE=
13574 fi
13575
13576  if test x$TARGET = xM68K; then
13577   M68K_TRUE=
13578   M68K_FALSE='#'
13579 else
13580   M68K_TRUE='#'
13581   M68K_FALSE=
13582 fi
13583
13584  if test x$TARGET = xMICROBLAZE; then
13585   MICROBLAZE_TRUE=
13586   MICROBLAZE_FALSE='#'
13587 else
13588   MICROBLAZE_TRUE='#'
13589   MICROBLAZE_FALSE=
13590 fi
13591
13592  if test x$TARGET = xMOXIE; then
13593   MOXIE_TRUE=
13594   MOXIE_FALSE='#'
13595 else
13596   MOXIE_TRUE='#'
13597   MOXIE_FALSE=
13598 fi
13599
13600  if test x$TARGET = xPOWERPC; then
13601   POWERPC_TRUE=
13602   POWERPC_FALSE='#'
13603 else
13604   POWERPC_TRUE='#'
13605   POWERPC_FALSE=
13606 fi
13607
13608  if test x$TARGET = xPOWERPC_AIX; then
13609   POWERPC_AIX_TRUE=
13610   POWERPC_AIX_FALSE='#'
13611 else
13612   POWERPC_AIX_TRUE='#'
13613   POWERPC_AIX_FALSE=
13614 fi
13615
13616  if test x$TARGET = xPOWERPC_DARWIN; then
13617   POWERPC_DARWIN_TRUE=
13618   POWERPC_DARWIN_FALSE='#'
13619 else
13620   POWERPC_DARWIN_TRUE='#'
13621   POWERPC_DARWIN_FALSE=
13622 fi
13623
13624  if test x$TARGET = xPOWERPC_FREEBSD; then
13625   POWERPC_FREEBSD_TRUE=
13626   POWERPC_FREEBSD_FALSE='#'
13627 else
13628   POWERPC_FREEBSD_TRUE='#'
13629   POWERPC_FREEBSD_FALSE=
13630 fi
13631
13632  if test x$TARGET = xAARCH64; then
13633   AARCH64_TRUE=
13634   AARCH64_FALSE='#'
13635 else
13636   AARCH64_TRUE='#'
13637   AARCH64_FALSE=
13638 fi
13639
13640  if test x$TARGET = xARM; then
13641   ARM_TRUE=
13642   ARM_FALSE='#'
13643 else
13644   ARM_TRUE='#'
13645   ARM_FALSE=
13646 fi
13647
13648  if test x$TARGET = xAVR32; then
13649   AVR32_TRUE=
13650   AVR32_FALSE='#'
13651 else
13652   AVR32_TRUE='#'
13653   AVR32_FALSE=
13654 fi
13655
13656  if test x$TARGET = xLIBFFI_CRIS; then
13657   LIBFFI_CRIS_TRUE=
13658   LIBFFI_CRIS_FALSE='#'
13659 else
13660   LIBFFI_CRIS_TRUE='#'
13661   LIBFFI_CRIS_FALSE=
13662 fi
13663
13664  if test x$TARGET = xFRV; then
13665   FRV_TRUE=
13666   FRV_FALSE='#'
13667 else
13668   FRV_TRUE='#'
13669   FRV_FALSE=
13670 fi
13671
13672  if test x$TARGET = xS390; then
13673   S390_TRUE=
13674   S390_FALSE='#'
13675 else
13676   S390_TRUE='#'
13677   S390_FALSE=
13678 fi
13679
13680  if test x$TARGET = xX86_64; then
13681   X86_64_TRUE=
13682   X86_64_FALSE='#'
13683 else
13684   X86_64_TRUE='#'
13685   X86_64_FALSE=
13686 fi
13687
13688  if test x$TARGET = xSH; then
13689   SH_TRUE=
13690   SH_FALSE='#'
13691 else
13692   SH_TRUE='#'
13693   SH_FALSE=
13694 fi
13695
13696  if test x$TARGET = xSH64; then
13697   SH64_TRUE=
13698   SH64_FALSE='#'
13699 else
13700   SH64_TRUE='#'
13701   SH64_FALSE=
13702 fi
13703
13704  if test x$TARGET = xPA_LINUX; then
13705   PA_LINUX_TRUE=
13706   PA_LINUX_FALSE='#'
13707 else
13708   PA_LINUX_TRUE='#'
13709   PA_LINUX_FALSE=
13710 fi
13711
13712  if test x$TARGET = xPA_HPUX; then
13713   PA_HPUX_TRUE=
13714   PA_HPUX_FALSE='#'
13715 else
13716   PA_HPUX_TRUE='#'
13717   PA_HPUX_FALSE=
13718 fi
13719
13720  if test x$TARGET = xPA64_HPUX; then
13721   PA64_HPUX_TRUE=
13722   PA64_HPUX_FALSE='#'
13723 else
13724   PA64_HPUX_TRUE='#'
13725   PA64_HPUX_FALSE=
13726 fi
13727
13728  if test x$TARGET = xTILE; then
13729   TILE_TRUE=
13730   TILE_FALSE='#'
13731 else
13732   TILE_TRUE='#'
13733   TILE_FALSE=
13734 fi
13735
13736  if test x$TARGET = xXTENSA; then
13737   XTENSA_TRUE=
13738   XTENSA_FALSE='#'
13739 else
13740   XTENSA_TRUE='#'
13741   XTENSA_FALSE=
13742 fi
13743
13744
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13746 $as_echo_n "checking for ANSI C header files... " >&6; }
13747 if ${ac_cv_header_stdc+:} false; then :
13748   $as_echo_n "(cached) " >&6
13749 else
13750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h.  */
13752 #include <stdlib.h>
13753 #include <stdarg.h>
13754 #include <string.h>
13755 #include <float.h>
13756
13757 int
13758 main ()
13759 {
13760
13761   ;
13762   return 0;
13763 }
13764 _ACEOF
13765 if ac_fn_c_try_compile "$LINENO"; then :
13766   ac_cv_header_stdc=yes
13767 else
13768   ac_cv_header_stdc=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13771
13772 if test $ac_cv_header_stdc = yes; then
13773   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h.  */
13776 #include <string.h>
13777
13778 _ACEOF
13779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13780   $EGREP "memchr" >/dev/null 2>&1; then :
13781
13782 else
13783   ac_cv_header_stdc=no
13784 fi
13785 rm -f conftest*
13786
13787 fi
13788
13789 if test $ac_cv_header_stdc = yes; then
13790   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h.  */
13793 #include <stdlib.h>
13794
13795 _ACEOF
13796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13797   $EGREP "free" >/dev/null 2>&1; then :
13798
13799 else
13800   ac_cv_header_stdc=no
13801 fi
13802 rm -f conftest*
13803
13804 fi
13805
13806 if test $ac_cv_header_stdc = yes; then
13807   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13808   if test "$cross_compiling" = yes; then :
13809   :
13810 else
13811   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13812 /* end confdefs.h.  */
13813 #include <ctype.h>
13814 #include <stdlib.h>
13815 #if ((' ' & 0x0FF) == 0x020)
13816 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13817 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13818 #else
13819 # define ISLOWER(c) \
13820                    (('a' <= (c) && (c) <= 'i') \
13821                      || ('j' <= (c) && (c) <= 'r') \
13822                      || ('s' <= (c) && (c) <= 'z'))
13823 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13824 #endif
13825
13826 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13827 int
13828 main ()
13829 {
13830   int i;
13831   for (i = 0; i < 256; i++)
13832     if (XOR (islower (i), ISLOWER (i))
13833         || toupper (i) != TOUPPER (i))
13834       return 2;
13835   return 0;
13836 }
13837 _ACEOF
13838 if ac_fn_c_try_run "$LINENO"; then :
13839
13840 else
13841   ac_cv_header_stdc=no
13842 fi
13843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13844   conftest.$ac_objext conftest.beam conftest.$ac_ext
13845 fi
13846
13847 fi
13848 fi
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13850 $as_echo "$ac_cv_header_stdc" >&6; }
13851 if test $ac_cv_header_stdc = yes; then
13852
13853 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13854
13855 fi
13856
13857 for ac_func in memcpy
13858 do :
13859   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13860 if test "x$ac_cv_func_memcpy" = xyes; then :
13861   cat >>confdefs.h <<_ACEOF
13862 #define HAVE_MEMCPY 1
13863 _ACEOF
13864
13865 fi
13866 done
13867
13868 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13869 if test "x$ac_cv_type_size_t" = xyes; then :
13870
13871 else
13872
13873 cat >>confdefs.h <<_ACEOF
13874 #define size_t unsigned int
13875 _ACEOF
13876
13877 fi
13878
13879 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13880 # for constant arguments.  Useless!
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13882 $as_echo_n "checking for working alloca.h... " >&6; }
13883 if ${ac_cv_working_alloca_h+:} false; then :
13884   $as_echo_n "(cached) " >&6
13885 else
13886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h.  */
13888 #include <alloca.h>
13889 int
13890 main ()
13891 {
13892 char *p = (char *) alloca (2 * sizeof (int));
13893                           if (p) return 0;
13894   ;
13895   return 0;
13896 }
13897 _ACEOF
13898 if ac_fn_c_try_link "$LINENO"; then :
13899   ac_cv_working_alloca_h=yes
13900 else
13901   ac_cv_working_alloca_h=no
13902 fi
13903 rm -f core conftest.err conftest.$ac_objext \
13904     conftest$ac_exeext conftest.$ac_ext
13905 fi
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13907 $as_echo "$ac_cv_working_alloca_h" >&6; }
13908 if test $ac_cv_working_alloca_h = yes; then
13909
13910 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13911
13912 fi
13913
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13915 $as_echo_n "checking for alloca... " >&6; }
13916 if ${ac_cv_func_alloca_works+:} false; then :
13917   $as_echo_n "(cached) " >&6
13918 else
13919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13920 /* end confdefs.h.  */
13921 #ifdef __GNUC__
13922 # define alloca __builtin_alloca
13923 #else
13924 # ifdef _MSC_VER
13925 #  include <malloc.h>
13926 #  define alloca _alloca
13927 # else
13928 #  ifdef HAVE_ALLOCA_H
13929 #   include <alloca.h>
13930 #  else
13931 #   ifdef _AIX
13932  #pragma alloca
13933 #   else
13934 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13935 void *alloca (size_t);
13936 #    endif
13937 #   endif
13938 #  endif
13939 # endif
13940 #endif
13941
13942 int
13943 main ()
13944 {
13945 char *p = (char *) alloca (1);
13946                                     if (p) return 0;
13947   ;
13948   return 0;
13949 }
13950 _ACEOF
13951 if ac_fn_c_try_link "$LINENO"; then :
13952   ac_cv_func_alloca_works=yes
13953 else
13954   ac_cv_func_alloca_works=no
13955 fi
13956 rm -f core conftest.err conftest.$ac_objext \
13957     conftest$ac_exeext conftest.$ac_ext
13958 fi
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13960 $as_echo "$ac_cv_func_alloca_works" >&6; }
13961
13962 if test $ac_cv_func_alloca_works = yes; then
13963
13964 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13965
13966 else
13967   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13968 # that cause trouble.  Some versions do not even contain alloca or
13969 # contain a buggy version.  If you still want to use their alloca,
13970 # use ar to extract alloca.o from them instead of compiling alloca.c.
13971
13972 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13973
13974 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13975
13976
13977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13978 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13979 if ${ac_cv_os_cray+:} false; then :
13980   $as_echo_n "(cached) " >&6
13981 else
13982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13983 /* end confdefs.h.  */
13984 #if defined CRAY && ! defined CRAY2
13985 webecray
13986 #else
13987 wenotbecray
13988 #endif
13989
13990 _ACEOF
13991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13992   $EGREP "webecray" >/dev/null 2>&1; then :
13993   ac_cv_os_cray=yes
13994 else
13995   ac_cv_os_cray=no
13996 fi
13997 rm -f conftest*
13998
13999 fi
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14001 $as_echo "$ac_cv_os_cray" >&6; }
14002 if test $ac_cv_os_cray = yes; then
14003   for ac_func in _getb67 GETB67 getb67; do
14004     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14007
14008 cat >>confdefs.h <<_ACEOF
14009 #define CRAY_STACKSEG_END $ac_func
14010 _ACEOF
14011
14012     break
14013 fi
14014
14015   done
14016 fi
14017
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14019 $as_echo_n "checking stack direction for C alloca... " >&6; }
14020 if ${ac_cv_c_stack_direction+:} false; then :
14021   $as_echo_n "(cached) " >&6
14022 else
14023   if test "$cross_compiling" = yes; then :
14024   ac_cv_c_stack_direction=0
14025 else
14026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h.  */
14028 $ac_includes_default
14029 int
14030 find_stack_direction (int *addr, int depth)
14031 {
14032   int dir, dummy = 0;
14033   if (! addr)
14034     addr = &dummy;
14035   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14036   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14037   return dir + dummy;
14038 }
14039
14040 int
14041 main (int argc, char **argv)
14042 {
14043   return find_stack_direction (0, argc + !argv + 20) < 0;
14044 }
14045 _ACEOF
14046 if ac_fn_c_try_run "$LINENO"; then :
14047   ac_cv_c_stack_direction=1
14048 else
14049   ac_cv_c_stack_direction=-1
14050 fi
14051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14052   conftest.$ac_objext conftest.beam conftest.$ac_ext
14053 fi
14054
14055 fi
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14057 $as_echo "$ac_cv_c_stack_direction" >&6; }
14058 cat >>confdefs.h <<_ACEOF
14059 #define STACK_DIRECTION $ac_cv_c_stack_direction
14060 _ACEOF
14061
14062
14063 fi
14064
14065
14066 # The cast to long int works around a bug in the HP C Compiler
14067 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14068 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14069 # This bug is HP SR number 8606223364.
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14071 $as_echo_n "checking size of double... " >&6; }
14072 if ${ac_cv_sizeof_double+:} false; then :
14073   $as_echo_n "(cached) " >&6
14074 else
14075   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14076
14077 else
14078   if test "$ac_cv_type_double" = yes; then
14079      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14081 as_fn_error 77 "cannot compute sizeof (double)
14082 See \`config.log' for more details" "$LINENO" 5; }
14083    else
14084      ac_cv_sizeof_double=0
14085    fi
14086 fi
14087
14088 fi
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14090 $as_echo "$ac_cv_sizeof_double" >&6; }
14091
14092
14093
14094 cat >>confdefs.h <<_ACEOF
14095 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14096 _ACEOF
14097
14098
14099 # The cast to long int works around a bug in the HP C Compiler
14100 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14101 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14102 # This bug is HP SR number 8606223364.
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14104 $as_echo_n "checking size of long double... " >&6; }
14105 if ${ac_cv_sizeof_long_double+:} false; then :
14106   $as_echo_n "(cached) " >&6
14107 else
14108   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14109
14110 else
14111   if test "$ac_cv_type_long_double" = yes; then
14112      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14114 as_fn_error 77 "cannot compute sizeof (long double)
14115 See \`config.log' for more details" "$LINENO" 5; }
14116    else
14117      ac_cv_sizeof_long_double=0
14118    fi
14119 fi
14120
14121 fi
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14123 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14124
14125
14126
14127 cat >>confdefs.h <<_ACEOF
14128 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14129 _ACEOF
14130
14131
14132
14133 # Also AC_SUBST this variable for ffi.h.
14134 if test -z "$HAVE_LONG_DOUBLE"; then
14135   HAVE_LONG_DOUBLE=0
14136   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14137     if test $ac_cv_sizeof_long_double != 0; then
14138       HAVE_LONG_DOUBLE=1
14139
14140 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14141
14142     fi
14143   fi
14144 fi
14145
14146
14147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14148 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14149 if ${ac_cv_c_bigendian+:} false; then :
14150   $as_echo_n "(cached) " >&6
14151 else
14152   ac_cv_c_bigendian=unknown
14153     # See if we're dealing with a universal compiler.
14154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h.  */
14156 #ifndef __APPLE_CC__
14157                not a universal capable compiler
14158              #endif
14159              typedef int dummy;
14160
14161 _ACEOF
14162 if ac_fn_c_try_compile "$LINENO"; then :
14163
14164         # Check for potential -arch flags.  It is not universal unless
14165         # there are at least two -arch flags with different values.
14166         ac_arch=
14167         ac_prev=
14168         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14169          if test -n "$ac_prev"; then
14170            case $ac_word in
14171              i?86 | x86_64 | ppc | ppc64)
14172                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14173                  ac_arch=$ac_word
14174                else
14175                  ac_cv_c_bigendian=universal
14176                  break
14177                fi
14178                ;;
14179            esac
14180            ac_prev=
14181          elif test "x$ac_word" = "x-arch"; then
14182            ac_prev=arch
14183          fi
14184        done
14185 fi
14186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14187     if test $ac_cv_c_bigendian = unknown; then
14188       # See if sys/param.h defines the BYTE_ORDER macro.
14189       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14190 /* end confdefs.h.  */
14191 #include <sys/types.h>
14192              #include <sys/param.h>
14193
14194 int
14195 main ()
14196 {
14197 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14198                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14199                      && LITTLE_ENDIAN)
14200               bogus endian macros
14201              #endif
14202
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 if ac_fn_c_try_compile "$LINENO"; then :
14208   # It does; now see whether it defined to BIG_ENDIAN or not.
14209          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14210 /* end confdefs.h.  */
14211 #include <sys/types.h>
14212                 #include <sys/param.h>
14213
14214 int
14215 main ()
14216 {
14217 #if BYTE_ORDER != BIG_ENDIAN
14218                  not big endian
14219                 #endif
14220
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226   ac_cv_c_bigendian=yes
14227 else
14228   ac_cv_c_bigendian=no
14229 fi
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 fi
14232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14233     fi
14234     if test $ac_cv_c_bigendian = unknown; then
14235       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14236       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h.  */
14238 #include <limits.h>
14239
14240 int
14241 main ()
14242 {
14243 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14244               bogus endian macros
14245              #endif
14246
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 if ac_fn_c_try_compile "$LINENO"; then :
14252   # It does; now see whether it defined to _BIG_ENDIAN or not.
14253          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h.  */
14255 #include <limits.h>
14256
14257 int
14258 main ()
14259 {
14260 #ifndef _BIG_ENDIAN
14261                  not big endian
14262                 #endif
14263
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 if ac_fn_c_try_compile "$LINENO"; then :
14269   ac_cv_c_bigendian=yes
14270 else
14271   ac_cv_c_bigendian=no
14272 fi
14273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14274 fi
14275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14276     fi
14277     if test $ac_cv_c_bigendian = unknown; then
14278       # Compile a test program.
14279       if test "$cross_compiling" = yes; then :
14280   # Try to guess by grepping values from an object file.
14281          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282 /* end confdefs.h.  */
14283 short int ascii_mm[] =
14284                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14285                 short int ascii_ii[] =
14286                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14287                 int use_ascii (int i) {
14288                   return ascii_mm[i] + ascii_ii[i];
14289                 }
14290                 short int ebcdic_ii[] =
14291                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14292                 short int ebcdic_mm[] =
14293                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14294                 int use_ebcdic (int i) {
14295                   return ebcdic_mm[i] + ebcdic_ii[i];
14296                 }
14297                 extern int foo;
14298
14299 int
14300 main ()
14301 {
14302 return use_ascii (foo) == use_ebcdic (foo);
14303   ;
14304   return 0;
14305 }
14306 _ACEOF
14307 if ac_fn_c_try_compile "$LINENO"; then :
14308   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14309               ac_cv_c_bigendian=yes
14310             fi
14311             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14312               if test "$ac_cv_c_bigendian" = unknown; then
14313                 ac_cv_c_bigendian=no
14314               else
14315                 # finding both strings is unlikely to happen, but who knows?
14316                 ac_cv_c_bigendian=unknown
14317               fi
14318             fi
14319 fi
14320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14321 else
14322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14323 /* end confdefs.h.  */
14324 $ac_includes_default
14325 int
14326 main ()
14327 {
14328
14329              /* Are we little or big endian?  From Harbison&Steele.  */
14330              union
14331              {
14332                long int l;
14333                char c[sizeof (long int)];
14334              } u;
14335              u.l = 1;
14336              return u.c[sizeof (long int) - 1] == 1;
14337
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 if ac_fn_c_try_run "$LINENO"; then :
14343   ac_cv_c_bigendian=no
14344 else
14345   ac_cv_c_bigendian=yes
14346 fi
14347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14348   conftest.$ac_objext conftest.beam conftest.$ac_ext
14349 fi
14350
14351     fi
14352 fi
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14354 $as_echo "$ac_cv_c_bigendian" >&6; }
14355  case $ac_cv_c_bigendian in #(
14356    yes)
14357      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14358 ;; #(
14359    no)
14360       ;; #(
14361    universal)
14362
14363 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14364
14365      ;; #(
14366    *)
14367      as_fn_error $? "unknown endianness
14368  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14369  esac
14370
14371
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14373 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14374 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14375   $as_echo_n "(cached) " >&6
14376 else
14377
14378     gcc_cv_as_cfi_pseudo_op=unknown
14379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14380 /* end confdefs.h.  */
14381 asm (".cfi_startproc\n\t.cfi_endproc");
14382 int
14383 main ()
14384 {
14385
14386   ;
14387   return 0;
14388 }
14389 _ACEOF
14390 if ac_fn_c_try_compile "$LINENO"; then :
14391   gcc_cv_as_cfi_pseudo_op=yes
14392 else
14393   gcc_cv_as_cfi_pseudo_op=no
14394 fi
14395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14396
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14399 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14400  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14401
14402 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14403
14404  fi
14405
14406
14407 if test x$TARGET = xSPARC; then
14408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14409 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14410 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14411   $as_echo_n "(cached) " >&6
14412 else
14413
14414         save_CFLAGS="$CFLAGS"
14415         save_LDFLAGS="$LDFLAGS"
14416         CFLAGS="$CFLAGS -fpic"
14417         LDFLAGS="$LDFLAGS -shared"
14418         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h.  */
14420 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14421 int
14422 main ()
14423 {
14424
14425   ;
14426   return 0;
14427 }
14428 _ACEOF
14429 if ac_fn_c_try_link "$LINENO"; then :
14430   libffi_cv_as_sparc_ua_pcrel=yes
14431 else
14432   libffi_cv_as_sparc_ua_pcrel=no
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext \
14435     conftest$ac_exeext conftest.$ac_ext
14436         CFLAGS="$save_CFLAGS"
14437         LDFLAGS="$save_LDFLAGS"
14438 fi
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14440 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14441     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14442
14443 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14444
14445     fi
14446
14447     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14448 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14449 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14450   $as_echo_n "(cached) " >&6
14451 else
14452
14453        libffi_cv_as_register_pseudo_op=unknown
14454        # Check if we have .register
14455        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14456 /* end confdefs.h.  */
14457
14458 int
14459 main ()
14460 {
14461 asm (".register %g2, #scratch");
14462   ;
14463   return 0;
14464 }
14465 _ACEOF
14466 if ac_fn_c_try_compile "$LINENO"; then :
14467   libffi_cv_as_register_pseudo_op=yes
14468 else
14469   libffi_cv_as_register_pseudo_op=no
14470 fi
14471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14472
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14475 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14476     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14477
14478 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14479
14480     fi
14481 fi
14482
14483 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14485 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14486 if ${libffi_cv_as_x86_pcrel+:} false; then :
14487   $as_echo_n "(cached) " >&6
14488 else
14489
14490         libffi_cv_as_x86_pcrel=no
14491         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14492         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14493             libffi_cv_as_x86_pcrel=yes
14494         fi
14495
14496 fi
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14498 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14499     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14500
14501 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14502
14503     fi
14504
14505     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14506 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14507 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14508   $as_echo_n "(cached) " >&6
14509 else
14510
14511        libffi_cv_as_ascii_pseudo_op=unknown
14512        # Check if we have .ascii
14513        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14514 /* end confdefs.h.  */
14515
14516 int
14517 main ()
14518 {
14519 asm (".ascii \\"string\\"");
14520   ;
14521   return 0;
14522 }
14523 _ACEOF
14524 if ac_fn_c_try_compile "$LINENO"; then :
14525   libffi_cv_as_ascii_pseudo_op=yes
14526 else
14527   libffi_cv_as_ascii_pseudo_op=no
14528 fi
14529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14530
14531 fi
14532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14533 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14534     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14535
14536 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14537
14538     fi
14539
14540     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14541 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14542 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14543   $as_echo_n "(cached) " >&6
14544 else
14545
14546        libffi_cv_as_string_pseudo_op=unknown
14547        # Check if we have .string
14548        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h.  */
14550
14551 int
14552 main ()
14553 {
14554 asm (".string \\"string\\"");
14555   ;
14556   return 0;
14557 }
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"; then :
14560   libffi_cv_as_string_pseudo_op=yes
14561 else
14562   libffi_cv_as_string_pseudo_op=no
14563 fi
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565
14566 fi
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14568 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14569     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14570
14571 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14572
14573     fi
14574 fi
14575
14576 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14577 # Check whether --enable-pax_emutramp was given.
14578 if test "${enable_pax_emutramp+set}" = set; then :
14579   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14580
14581 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14582
14583   fi
14584 fi
14585
14586
14587 if test x$TARGET = xX86_WIN64; then
14588     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14589 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14590 if ${lt_cv_sys_symbol_underscore+:} false; then :
14591   $as_echo_n "(cached) " >&6
14592 else
14593   lt_cv_sys_symbol_underscore=no
14594   cat > conftest.$ac_ext <<_LT_EOF
14595 void nm_test_func(){}
14596 int main(){nm_test_func;return 0;}
14597 _LT_EOF
14598   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14599   (eval $ac_compile) 2>&5
14600   ac_status=$?
14601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14602   test $ac_status = 0; }; then
14603     # Now try to grab the symbols.
14604     ac_nlist=conftest.nm
14605     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14606   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14607   ac_status=$?
14608   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609   test $ac_status = 0; } && test -s "$ac_nlist"; then
14610       # See whether the symbols have a leading underscore.
14611       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14612         lt_cv_sys_symbol_underscore=yes
14613       else
14614         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14615           :
14616         else
14617           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14618         fi
14619       fi
14620     else
14621       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14622     fi
14623   else
14624     echo "configure: failed program was:" >&5
14625     cat conftest.c >&5
14626   fi
14627   rm -rf conftest*
14628
14629 fi
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14631 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14632   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14633
14634
14635     if test "x$sys_symbol_underscore" = xyes; then
14636
14637 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14638
14639     fi
14640 fi
14641
14642 FFI_EXEC_TRAMPOLINE_TABLE=0
14643 case "$target" in
14644      *arm*-apple-darwin*)
14645        FFI_EXEC_TRAMPOLINE_TABLE=1
14646
14647 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14648
14649      ;;
14650      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14651
14652 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14653
14654      ;;
14655 esac
14656  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14657   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14658   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14659 else
14660   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14661   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14662 fi
14663
14664
14665
14666 if test x$TARGET = xX86_64; then
14667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14668 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14669 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14670   $as_echo_n "(cached) " >&6
14671 else
14672
14673         libffi_cv_as_x86_64_unwind_section_type=yes
14674         echo '.section .eh_frame,"a",@unwind' > conftest.s
14675         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14676             libffi_cv_as_x86_64_unwind_section_type=no
14677         fi
14678
14679 fi
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14681 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14682     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14683
14684 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14685
14686     fi
14687 fi
14688
14689 if test "x$GCC" = "xyes"; then
14690   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14691 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14692 if ${libffi_cv_ro_eh_frame+:} false; then :
14693   $as_echo_n "(cached) " >&6
14694 else
14695
14696         libffi_cv_ro_eh_frame=no
14697         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14698         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14699             objdump -h conftest.o > conftest.dump 2>&1
14700             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14701             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14702             sed -n $libffi_test_line conftest.dump > conftest.line
14703             if grep READONLY conftest.line > /dev/null; then
14704                 libffi_cv_ro_eh_frame=yes
14705             fi
14706         fi
14707         rm -f conftest.*
14708
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14711 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14712   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14713
14714 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14715
14716
14717 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14718
14719   else
14720
14721 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14722
14723   fi
14724
14725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14726 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14727 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14728   $as_echo_n "(cached) " >&6
14729 else
14730
14731         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14732         libffi_cv_hidden_visibility_attribute=no
14733         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14734   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14735   (eval $ac_try) 2>&5
14736   ac_status=$?
14737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14738   test $ac_status = 0; }; }; then
14739             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14740                 libffi_cv_hidden_visibility_attribute=yes
14741             fi
14742         fi
14743         rm -f conftest.*
14744
14745 fi
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14747 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14748   if test $libffi_cv_hidden_visibility_attribute = yes; then
14749
14750 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14751
14752   fi
14753 fi
14754
14755
14756
14757
14758
14759
14760
14761
14762 # Check whether --enable-debug was given.
14763 if test "${enable_debug+set}" = set; then :
14764   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14765
14766 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14767
14768   fi
14769 fi
14770
14771  if test "$enable_debug" = "yes"; then
14772   FFI_DEBUG_TRUE=
14773   FFI_DEBUG_FALSE='#'
14774 else
14775   FFI_DEBUG_TRUE='#'
14776   FFI_DEBUG_FALSE=
14777 fi
14778
14779
14780 # Check whether --enable-structs was given.
14781 if test "${enable_structs+set}" = set; then :
14782   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14783
14784 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14785
14786   fi
14787 fi
14788
14789  if test "$enable_debug" = "yes"; then
14790   FFI_DEBUG_TRUE=
14791   FFI_DEBUG_FALSE='#'
14792 else
14793   FFI_DEBUG_TRUE='#'
14794   FFI_DEBUG_FALSE=
14795 fi
14796
14797
14798 # Check whether --enable-raw-api was given.
14799 if test "${enable_raw_api+set}" = set; then :
14800   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14801
14802 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14803
14804   fi
14805 fi
14806
14807
14808 # Check whether --enable-purify-safety was given.
14809 if test "${enable_purify_safety+set}" = set; then :
14810   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14811
14812 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14813
14814   fi
14815 fi
14816
14817
14818 # These variables are only ever used when we cross-build to X86_WIN32.
14819 # And we only support this with GCC, so...
14820 if test "x$GCC" = "xyes"; then
14821   if test -n "$with_cross_host" &&
14822      test x"$with_cross_host" != x"no"; then
14823     toolexecdir='$(exec_prefix)/$(target_alias)'
14824     toolexeclibdir='$(toolexecdir)/lib'
14825   else
14826     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14827     toolexeclibdir='$(libdir)'
14828   fi
14829   multi_os_directory=`$CC -print-multi-os-directory`
14830   case $multi_os_directory in
14831     .) ;; # Avoid trailing /.
14832     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14833   esac
14834
14835 else
14836   toolexeclibdir='$(libdir)'
14837 fi
14838
14839
14840 ac_config_commands="$ac_config_commands include"
14841
14842 ac_config_commands="$ac_config_commands src"
14843
14844
14845 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14846
14847
14848 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14849
14850
14851 cat >confcache <<\_ACEOF
14852 # This file is a shell script that caches the results of configure
14853 # tests run on this system so they can be shared between configure
14854 # scripts and configure runs, see configure's option --config-cache.
14855 # It is not useful on other systems.  If it contains results you don't
14856 # want to keep, you may remove or edit it.
14857 #
14858 # config.status only pays attention to the cache file if you give it
14859 # the --recheck option to rerun configure.
14860 #
14861 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14862 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14863 # following values.
14864
14865 _ACEOF
14866
14867 # The following way of writing the cache mishandles newlines in values,
14868 # but we know of no workaround that is simple, portable, and efficient.
14869 # So, we kill variables containing newlines.
14870 # Ultrix sh set writes to stderr and can't be redirected directly,
14871 # and sets the high bit in the cache file unless we assign to the vars.
14872 (
14873   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14874     eval ac_val=\$$ac_var
14875     case $ac_val in #(
14876     *${as_nl}*)
14877       case $ac_var in #(
14878       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14879 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14880       esac
14881       case $ac_var in #(
14882       _ | IFS | as_nl) ;; #(
14883       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14884       *) { eval $ac_var=; unset $ac_var;} ;;
14885       esac ;;
14886     esac
14887   done
14888
14889   (set) 2>&1 |
14890     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14891     *${as_nl}ac_space=\ *)
14892       # `set' does not quote correctly, so add quotes: double-quote
14893       # substitution turns \\\\ into \\, and sed turns \\ into \.
14894       sed -n \
14895         "s/'/'\\\\''/g;
14896           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14897       ;; #(
14898     *)
14899       # `set' quotes correctly as required by POSIX, so do not add quotes.
14900       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14901       ;;
14902     esac |
14903     sort
14904 ) |
14905   sed '
14906      /^ac_cv_env_/b end
14907      t clear
14908      :clear
14909      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14910      t end
14911      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14912      :end' >>confcache
14913 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14914   if test -w "$cache_file"; then
14915     if test "x$cache_file" != "x/dev/null"; then
14916       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14917 $as_echo "$as_me: updating cache $cache_file" >&6;}
14918       if test ! -f "$cache_file" || test -h "$cache_file"; then
14919         cat confcache >"$cache_file"
14920       else
14921         case $cache_file in #(
14922         */* | ?:*)
14923           mv -f confcache "$cache_file"$$ &&
14924           mv -f "$cache_file"$$ "$cache_file" ;; #(
14925         *)
14926           mv -f confcache "$cache_file" ;;
14927         esac
14928       fi
14929     fi
14930   else
14931     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14932 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14933   fi
14934 fi
14935 rm -f confcache
14936
14937 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14938 # Let make expand exec_prefix.
14939 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14940
14941 DEFS=-DHAVE_CONFIG_H
14942
14943 ac_libobjs=
14944 ac_ltlibobjs=
14945 U=
14946 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14947   # 1. Remove the extension, and $U if already installed.
14948   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14949   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14950   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14951   #    will be set to the directory where LIBOBJS objects are built.
14952   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14953   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14954 done
14955 LIBOBJS=$ac_libobjs
14956
14957 LTLIBOBJS=$ac_ltlibobjs
14958
14959
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14961 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14962    if test -n "$am_sleep_pid"; then
14963      # Hide warnings about reused PIDs.
14964      wait $am_sleep_pid 2>/dev/null
14965    fi
14966    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14967 $as_echo "done" >&6; }
14968  if test -n "$EXEEXT"; then
14969   am__EXEEXT_TRUE=
14970   am__EXEEXT_FALSE='#'
14971 else
14972   am__EXEEXT_TRUE='#'
14973   am__EXEEXT_FALSE=
14974 fi
14975
14976 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14977   as_fn_error $? "conditional \"AMDEP\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14981   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 fi
14984 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14985   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 fi
14988 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14989   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 fi
14992 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14993   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 fi
14996 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14997   as_fn_error $? "conditional \"MIPS\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 fi
15000 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15001   as_fn_error $? "conditional \"BFIN\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 fi
15004 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15005   as_fn_error $? "conditional \"SPARC\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 fi
15008 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15009   as_fn_error $? "conditional \"X86\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 fi
15012 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15013   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 fi
15016 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15017   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 fi
15020 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15021   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 fi
15024 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15025   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15027 fi
15028 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15029   as_fn_error $? "conditional \"ALPHA\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15031 fi
15032 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15033   as_fn_error $? "conditional \"IA64\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15035 fi
15036 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15037   as_fn_error $? "conditional \"M32R\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15039 fi
15040 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15041   as_fn_error $? "conditional \"M68K\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15043 fi
15044 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15045   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047 fi
15048 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15049   as_fn_error $? "conditional \"MOXIE\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15051 fi
15052 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15053   as_fn_error $? "conditional \"POWERPC\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055 fi
15056 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15057   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059 fi
15060 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15061   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063 fi
15064 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15065   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 fi
15068 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15069   as_fn_error $? "conditional \"AARCH64\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 fi
15072 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15073   as_fn_error $? "conditional \"ARM\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 fi
15076 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15077   as_fn_error $? "conditional \"AVR32\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 fi
15080 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15081   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083 fi
15084 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15085   as_fn_error $? "conditional \"FRV\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 fi
15088 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15089   as_fn_error $? "conditional \"S390\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091 fi
15092 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15093   as_fn_error $? "conditional \"X86_64\" was never defined.
15094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15095 fi
15096 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15097   as_fn_error $? "conditional \"SH\" was never defined.
15098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15099 fi
15100 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15101   as_fn_error $? "conditional \"SH64\" was never defined.
15102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15103 fi
15104 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15105   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15107 fi
15108 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15109   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15111 fi
15112 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15113   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15115 fi
15116 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15117   as_fn_error $? "conditional \"TILE\" was never defined.
15118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15119 fi
15120 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15121   as_fn_error $? "conditional \"XTENSA\" was never defined.
15122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15123 fi
15124
15125 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15126   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128 fi
15129 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15130   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 fi
15133 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15134   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137
15138 : "${CONFIG_STATUS=./config.status}"
15139 ac_write_fail=0
15140 ac_clean_files_save=$ac_clean_files
15141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15143 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15144 as_write_fail=0
15145 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15146 #! $SHELL
15147 # Generated by $as_me.
15148 # Run this file to recreate the current configuration.
15149 # Compiler output produced by configure, useful for debugging
15150 # configure, is in config.log if it exists.
15151
15152 debug=false
15153 ac_cs_recheck=false
15154 ac_cs_silent=false
15155
15156 SHELL=\${CONFIG_SHELL-$SHELL}
15157 export SHELL
15158 _ASEOF
15159 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15160 ## -------------------- ##
15161 ## M4sh Initialization. ##
15162 ## -------------------- ##
15163
15164 # Be more Bourne compatible
15165 DUALCASE=1; export DUALCASE # for MKS sh
15166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15167   emulate sh
15168   NULLCMD=:
15169   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15170   # is contrary to our usage.  Disable this feature.
15171   alias -g '${1+"$@"}'='"$@"'
15172   setopt NO_GLOB_SUBST
15173 else
15174   case `(set -o) 2>/dev/null` in #(
15175   *posix*) :
15176     set -o posix ;; #(
15177   *) :
15178      ;;
15179 esac
15180 fi
15181
15182
15183 as_nl='
15184 '
15185 export as_nl
15186 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15187 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15188 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15189 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15190 # Prefer a ksh shell builtin over an external printf program on Solaris,
15191 # but without wasting forks for bash or zsh.
15192 if test -z "$BASH_VERSION$ZSH_VERSION" \
15193     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15194   as_echo='print -r --'
15195   as_echo_n='print -rn --'
15196 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15197   as_echo='printf %s\n'
15198   as_echo_n='printf %s'
15199 else
15200   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15201     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15202     as_echo_n='/usr/ucb/echo -n'
15203   else
15204     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15205     as_echo_n_body='eval
15206       arg=$1;
15207       case $arg in #(
15208       *"$as_nl"*)
15209         expr "X$arg" : "X\\(.*\\)$as_nl";
15210         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15211       esac;
15212       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15213     '
15214     export as_echo_n_body
15215     as_echo_n='sh -c $as_echo_n_body as_echo'
15216   fi
15217   export as_echo_body
15218   as_echo='sh -c $as_echo_body as_echo'
15219 fi
15220
15221 # The user is always right.
15222 if test "${PATH_SEPARATOR+set}" != set; then
15223   PATH_SEPARATOR=:
15224   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15225     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15226       PATH_SEPARATOR=';'
15227   }
15228 fi
15229
15230
15231 # IFS
15232 # We need space, tab and new line, in precisely that order.  Quoting is
15233 # there to prevent editors from complaining about space-tab.
15234 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15235 # splitting by setting IFS to empty value.)
15236 IFS=" ""        $as_nl"
15237
15238 # Find who we are.  Look in the path if we contain no directory separator.
15239 as_myself=
15240 case $0 in #((
15241   *[\\/]* ) as_myself=$0 ;;
15242   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15243 for as_dir in $PATH
15244 do
15245   IFS=$as_save_IFS
15246   test -z "$as_dir" && as_dir=.
15247     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15248   done
15249 IFS=$as_save_IFS
15250
15251      ;;
15252 esac
15253 # We did not find ourselves, most probably we were run as `sh COMMAND'
15254 # in which case we are not to be found in the path.
15255 if test "x$as_myself" = x; then
15256   as_myself=$0
15257 fi
15258 if test ! -f "$as_myself"; then
15259   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15260   exit 1
15261 fi
15262
15263 # Unset variables that we do not need and which cause bugs (e.g. in
15264 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15265 # suppresses any "Segmentation fault" message there.  '((' could
15266 # trigger a bug in pdksh 5.2.14.
15267 for as_var in BASH_ENV ENV MAIL MAILPATH
15268 do eval test x\${$as_var+set} = xset \
15269   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15270 done
15271 PS1='$ '
15272 PS2='> '
15273 PS4='+ '
15274
15275 # NLS nuisances.
15276 LC_ALL=C
15277 export LC_ALL
15278 LANGUAGE=C
15279 export LANGUAGE
15280
15281 # CDPATH.
15282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15283
15284
15285 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15286 # ----------------------------------------
15287 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15288 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15289 # script with STATUS, using 1 if that was 0.
15290 as_fn_error ()
15291 {
15292   as_status=$1; test $as_status -eq 0 && as_status=1
15293   if test "$4"; then
15294     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15295     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15296   fi
15297   $as_echo "$as_me: error: $2" >&2
15298   as_fn_exit $as_status
15299 } # as_fn_error
15300
15301
15302 # as_fn_set_status STATUS
15303 # -----------------------
15304 # Set $? to STATUS, without forking.
15305 as_fn_set_status ()
15306 {
15307   return $1
15308 } # as_fn_set_status
15309
15310 # as_fn_exit STATUS
15311 # -----------------
15312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15313 as_fn_exit ()
15314 {
15315   set +e
15316   as_fn_set_status $1
15317   exit $1
15318 } # as_fn_exit
15319
15320 # as_fn_unset VAR
15321 # ---------------
15322 # Portably unset VAR.
15323 as_fn_unset ()
15324 {
15325   { eval $1=; unset $1;}
15326 }
15327 as_unset=as_fn_unset
15328 # as_fn_append VAR VALUE
15329 # ----------------------
15330 # Append the text in VALUE to the end of the definition contained in VAR. Take
15331 # advantage of any shell optimizations that allow amortized linear growth over
15332 # repeated appends, instead of the typical quadratic growth present in naive
15333 # implementations.
15334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15335   eval 'as_fn_append ()
15336   {
15337     eval $1+=\$2
15338   }'
15339 else
15340   as_fn_append ()
15341   {
15342     eval $1=\$$1\$2
15343   }
15344 fi # as_fn_append
15345
15346 # as_fn_arith ARG...
15347 # ------------------
15348 # Perform arithmetic evaluation on the ARGs, and store the result in the
15349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15350 # must be portable across $(()) and expr.
15351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15352   eval 'as_fn_arith ()
15353   {
15354     as_val=$(( $* ))
15355   }'
15356 else
15357   as_fn_arith ()
15358   {
15359     as_val=`expr "$@" || test $? -eq 1`
15360   }
15361 fi # as_fn_arith
15362
15363
15364 if expr a : '\(a\)' >/dev/null 2>&1 &&
15365    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15366   as_expr=expr
15367 else
15368   as_expr=false
15369 fi
15370
15371 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15372   as_basename=basename
15373 else
15374   as_basename=false
15375 fi
15376
15377 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15378   as_dirname=dirname
15379 else
15380   as_dirname=false
15381 fi
15382
15383 as_me=`$as_basename -- "$0" ||
15384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15385          X"$0" : 'X\(//\)$' \| \
15386          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15387 $as_echo X/"$0" |
15388     sed '/^.*\/\([^/][^/]*\)\/*$/{
15389             s//\1/
15390             q
15391           }
15392           /^X\/\(\/\/\)$/{
15393             s//\1/
15394             q
15395           }
15396           /^X\/\(\/\).*/{
15397             s//\1/
15398             q
15399           }
15400           s/.*/./; q'`
15401
15402 # Avoid depending upon Character Ranges.
15403 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15404 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15405 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15406 as_cr_digits='0123456789'
15407 as_cr_alnum=$as_cr_Letters$as_cr_digits
15408
15409 ECHO_C= ECHO_N= ECHO_T=
15410 case `echo -n x` in #(((((
15411 -n*)
15412   case `echo 'xy\c'` in
15413   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15414   xy)  ECHO_C='\c';;
15415   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15416        ECHO_T=' ';;
15417   esac;;
15418 *)
15419   ECHO_N='-n';;
15420 esac
15421
15422 rm -f conf$$ conf$$.exe conf$$.file
15423 if test -d conf$$.dir; then
15424   rm -f conf$$.dir/conf$$.file
15425 else
15426   rm -f conf$$.dir
15427   mkdir conf$$.dir 2>/dev/null
15428 fi
15429 if (echo >conf$$.file) 2>/dev/null; then
15430   if ln -s conf$$.file conf$$ 2>/dev/null; then
15431     as_ln_s='ln -s'
15432     # ... but there are two gotchas:
15433     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15434     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15435     # In both cases, we have to default to `cp -pR'.
15436     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15437       as_ln_s='cp -pR'
15438   elif ln conf$$.file conf$$ 2>/dev/null; then
15439     as_ln_s=ln
15440   else
15441     as_ln_s='cp -pR'
15442   fi
15443 else
15444   as_ln_s='cp -pR'
15445 fi
15446 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15447 rmdir conf$$.dir 2>/dev/null
15448
15449
15450 # as_fn_mkdir_p
15451 # -------------
15452 # Create "$as_dir" as a directory, including parents if necessary.
15453 as_fn_mkdir_p ()
15454 {
15455
15456   case $as_dir in #(
15457   -*) as_dir=./$as_dir;;
15458   esac
15459   test -d "$as_dir" || eval $as_mkdir_p || {
15460     as_dirs=
15461     while :; do
15462       case $as_dir in #(
15463       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15464       *) as_qdir=$as_dir;;
15465       esac
15466       as_dirs="'$as_qdir' $as_dirs"
15467       as_dir=`$as_dirname -- "$as_dir" ||
15468 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15469          X"$as_dir" : 'X\(//\)[^/]' \| \
15470          X"$as_dir" : 'X\(//\)$' \| \
15471          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15472 $as_echo X"$as_dir" |
15473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15474             s//\1/
15475             q
15476           }
15477           /^X\(\/\/\)[^/].*/{
15478             s//\1/
15479             q
15480           }
15481           /^X\(\/\/\)$/{
15482             s//\1/
15483             q
15484           }
15485           /^X\(\/\).*/{
15486             s//\1/
15487             q
15488           }
15489           s/.*/./; q'`
15490       test -d "$as_dir" && break
15491     done
15492     test -z "$as_dirs" || eval "mkdir $as_dirs"
15493   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15494
15495
15496 } # as_fn_mkdir_p
15497 if mkdir -p . 2>/dev/null; then
15498   as_mkdir_p='mkdir -p "$as_dir"'
15499 else
15500   test -d ./-p && rmdir ./-p
15501   as_mkdir_p=false
15502 fi
15503
15504
15505 # as_fn_executable_p FILE
15506 # -----------------------
15507 # Test if FILE is an executable regular file.
15508 as_fn_executable_p ()
15509 {
15510   test -f "$1" && test -x "$1"
15511 } # as_fn_executable_p
15512 as_test_x='test -x'
15513 as_executable_p=as_fn_executable_p
15514
15515 # Sed expression to map a string onto a valid CPP name.
15516 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15517
15518 # Sed expression to map a string onto a valid variable name.
15519 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15520
15521
15522 exec 6>&1
15523 ## ----------------------------------- ##
15524 ## Main body of $CONFIG_STATUS script. ##
15525 ## ----------------------------------- ##
15526 _ASEOF
15527 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15528
15529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15530 # Save the log message, to keep $0 and so on meaningful, and to
15531 # report actual input values of CONFIG_FILES etc. instead of their
15532 # values after options handling.
15533 ac_log="
15534 This file was extended by libffi $as_me 3.0.12, which was
15535 generated by GNU Autoconf 2.69.  Invocation command line was
15536
15537   CONFIG_FILES    = $CONFIG_FILES
15538   CONFIG_HEADERS  = $CONFIG_HEADERS
15539   CONFIG_LINKS    = $CONFIG_LINKS
15540   CONFIG_COMMANDS = $CONFIG_COMMANDS
15541   $ $0 $@
15542
15543 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15544 "
15545
15546 _ACEOF
15547
15548 case $ac_config_files in *"
15549 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15550 esac
15551
15552 case $ac_config_headers in *"
15553 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15554 esac
15555
15556
15557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15558 # Files that config.status was made for.
15559 config_files="$ac_config_files"
15560 config_headers="$ac_config_headers"
15561 config_links="$ac_config_links"
15562 config_commands="$ac_config_commands"
15563
15564 _ACEOF
15565
15566 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15567 ac_cs_usage="\
15568 \`$as_me' instantiates files and other configuration actions
15569 from templates according to the current configuration.  Unless the files
15570 and actions are specified as TAGs, all are instantiated by default.
15571
15572 Usage: $0 [OPTION]... [TAG]...
15573
15574   -h, --help       print this help, then exit
15575   -V, --version    print version number and configuration settings, then exit
15576       --config     print configuration, then exit
15577   -q, --quiet, --silent
15578                    do not print progress messages
15579   -d, --debug      don't remove temporary files
15580       --recheck    update $as_me by reconfiguring in the same conditions
15581       --file=FILE[:TEMPLATE]
15582                    instantiate the configuration file FILE
15583       --header=FILE[:TEMPLATE]
15584                    instantiate the configuration header FILE
15585
15586 Configuration files:
15587 $config_files
15588
15589 Configuration headers:
15590 $config_headers
15591
15592 Configuration links:
15593 $config_links
15594
15595 Configuration commands:
15596 $config_commands
15597
15598 Report bugs to <http://github.com/atgreen/libffi/issues>."
15599
15600 _ACEOF
15601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15602 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15603 ac_cs_version="\\
15604 libffi config.status 3.0.12
15605 configured by $0, generated by GNU Autoconf 2.69,
15606   with options \\"\$ac_cs_config\\"
15607
15608 Copyright (C) 2012 Free Software Foundation, Inc.
15609 This config.status script is free software; the Free Software Foundation
15610 gives unlimited permission to copy, distribute and modify it."
15611
15612 ac_pwd='$ac_pwd'
15613 srcdir='$srcdir'
15614 INSTALL='$INSTALL'
15615 MKDIR_P='$MKDIR_P'
15616 AWK='$AWK'
15617 test -n "\$AWK" || AWK=awk
15618 _ACEOF
15619
15620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15621 # The default lists apply if the user does not specify any file.
15622 ac_need_defaults=:
15623 while test $# != 0
15624 do
15625   case $1 in
15626   --*=?*)
15627     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15628     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15629     ac_shift=:
15630     ;;
15631   --*=)
15632     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15633     ac_optarg=
15634     ac_shift=:
15635     ;;
15636   *)
15637     ac_option=$1
15638     ac_optarg=$2
15639     ac_shift=shift
15640     ;;
15641   esac
15642
15643   case $ac_option in
15644   # Handling of the options.
15645   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15646     ac_cs_recheck=: ;;
15647   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15648     $as_echo "$ac_cs_version"; exit ;;
15649   --config | --confi | --conf | --con | --co | --c )
15650     $as_echo "$ac_cs_config"; exit ;;
15651   --debug | --debu | --deb | --de | --d | -d )
15652     debug=: ;;
15653   --file | --fil | --fi | --f )
15654     $ac_shift
15655     case $ac_optarg in
15656     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15657     '') as_fn_error $? "missing file argument" ;;
15658     esac
15659     as_fn_append CONFIG_FILES " '$ac_optarg'"
15660     ac_need_defaults=false;;
15661   --header | --heade | --head | --hea )
15662     $ac_shift
15663     case $ac_optarg in
15664     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15665     esac
15666     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15667     ac_need_defaults=false;;
15668   --he | --h)
15669     # Conflict between --help and --header
15670     as_fn_error $? "ambiguous option: \`$1'
15671 Try \`$0 --help' for more information.";;
15672   --help | --hel | -h )
15673     $as_echo "$ac_cs_usage"; exit ;;
15674   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15675   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15676     ac_cs_silent=: ;;
15677
15678   # This is an error.
15679   -*) as_fn_error $? "unrecognized option: \`$1'
15680 Try \`$0 --help' for more information." ;;
15681
15682   *) as_fn_append ac_config_targets " $1"
15683      ac_need_defaults=false ;;
15684
15685   esac
15686   shift
15687 done
15688
15689 ac_configure_extra_args=
15690
15691 if $ac_cs_silent; then
15692   exec 6>/dev/null
15693   ac_configure_extra_args="$ac_configure_extra_args --silent"
15694 fi
15695
15696 _ACEOF
15697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15698 if \$ac_cs_recheck; then
15699   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15700   shift
15701   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15702   CONFIG_SHELL='$SHELL'
15703   export CONFIG_SHELL
15704   exec "\$@"
15705 fi
15706
15707 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 exec 5>>config.log
15710 {
15711   echo
15712   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15713 ## Running $as_me. ##
15714 _ASBOX
15715   $as_echo "$ac_log"
15716 } >&5
15717
15718 _ACEOF
15719 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15720 #
15721 # INIT-COMMANDS
15722 #
15723 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15724 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15725 ax_enable_builddir_version="$VERSION"                  # $VERSION
15726 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15727 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15728 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15729 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15730
15731 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15732
15733
15734 # The HP-UX ksh and POSIX shell print the target directory to stdout
15735 # if CDPATH is set.
15736 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15737
15738 sed_quote_subst='$sed_quote_subst'
15739 double_quote_subst='$double_quote_subst'
15740 delay_variable_subst='$delay_variable_subst'
15741 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15742 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15743 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15744 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15745 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15746 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15747 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15748 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15749 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15750 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15751 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15752 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15753 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15754 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15755 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15756 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15757 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15758 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15759 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15760 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15761 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15762 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15763 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15764 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15765 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15766 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15767 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15768 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15769 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15770 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15771 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15772 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15773 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15774 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15775 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15776 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15777 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15778 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15779 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15780 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15781 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15782 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15783 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15784 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15785 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15786 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15787 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15788 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15789 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15790 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15791 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15792 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15793 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15794 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15795 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15796 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15797 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"`'
15798 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15799 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15800 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15801 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15802 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15803 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15804 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15805 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15806 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15807 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15808 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15809 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15810 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15811 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15812 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15813 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15814 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15815 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15816 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15817 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15818 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15819 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15820 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15821 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15822 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15823 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15824 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15825 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15826 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15827 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15828 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15829 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15830 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15831 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15832 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15833 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15834 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15835 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15836 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15837 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15838 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15839 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15840 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15841 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15842 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15843 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15844 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15845 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15846 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15847 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15848 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15849 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15850 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15851 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15852 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15853 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15854 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15855 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15856 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15857 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15858 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15859 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15860 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15861 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15862 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15863 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15864 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15865 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15866 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15867 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15868 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15869 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15870 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15871
15872 LTCC='$LTCC'
15873 LTCFLAGS='$LTCFLAGS'
15874 compiler='$compiler_DEFAULT'
15875
15876 # A function that is used when there is no print builtin or printf.
15877 func_fallback_echo ()
15878 {
15879   eval 'cat <<_LTECHO_EOF
15880 \$1
15881 _LTECHO_EOF'
15882 }
15883
15884 # Quote evaled strings.
15885 for var in SHELL \
15886 ECHO \
15887 PATH_SEPARATOR \
15888 SED \
15889 GREP \
15890 EGREP \
15891 FGREP \
15892 LD \
15893 NM \
15894 LN_S \
15895 lt_SP2NL \
15896 lt_NL2SP \
15897 reload_flag \
15898 OBJDUMP \
15899 deplibs_check_method \
15900 file_magic_cmd \
15901 file_magic_glob \
15902 want_nocaseglob \
15903 DLLTOOL \
15904 sharedlib_from_linklib_cmd \
15905 AR \
15906 AR_FLAGS \
15907 archiver_list_spec \
15908 STRIP \
15909 RANLIB \
15910 CC \
15911 CFLAGS \
15912 compiler \
15913 lt_cv_sys_global_symbol_pipe \
15914 lt_cv_sys_global_symbol_to_cdecl \
15915 lt_cv_sys_global_symbol_to_c_name_address \
15916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15917 nm_file_list_spec \
15918 lt_prog_compiler_no_builtin_flag \
15919 lt_prog_compiler_pic \
15920 lt_prog_compiler_wl \
15921 lt_prog_compiler_static \
15922 lt_cv_prog_compiler_c_o \
15923 need_locks \
15924 MANIFEST_TOOL \
15925 DSYMUTIL \
15926 NMEDIT \
15927 LIPO \
15928 OTOOL \
15929 OTOOL64 \
15930 shrext_cmds \
15931 export_dynamic_flag_spec \
15932 whole_archive_flag_spec \
15933 compiler_needs_object \
15934 with_gnu_ld \
15935 allow_undefined_flag \
15936 no_undefined_flag \
15937 hardcode_libdir_flag_spec \
15938 hardcode_libdir_separator \
15939 exclude_expsyms \
15940 include_expsyms \
15941 file_list_spec \
15942 variables_saved_for_relink \
15943 libname_spec \
15944 library_names_spec \
15945 soname_spec \
15946 install_override_mode \
15947 finish_eval \
15948 old_striplib \
15949 striplib; do
15950     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15951     *[\\\\\\\`\\"\\\$]*)
15952       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15953       ;;
15954     *)
15955       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15956       ;;
15957     esac
15958 done
15959
15960 # Double-quote double-evaled strings.
15961 for var in reload_cmds \
15962 old_postinstall_cmds \
15963 old_postuninstall_cmds \
15964 old_archive_cmds \
15965 extract_expsyms_cmds \
15966 old_archive_from_new_cmds \
15967 old_archive_from_expsyms_cmds \
15968 archive_cmds \
15969 archive_expsym_cmds \
15970 module_cmds \
15971 module_expsym_cmds \
15972 export_symbols_cmds \
15973 prelink_cmds \
15974 postlink_cmds \
15975 postinstall_cmds \
15976 postuninstall_cmds \
15977 finish_cmds \
15978 sys_lib_search_path_spec \
15979 sys_lib_dlsearch_path_spec; do
15980     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15981     *[\\\\\\\`\\"\\\$]*)
15982       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15983       ;;
15984     *)
15985       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15986       ;;
15987     esac
15988 done
15989
15990 ac_aux_dir='$ac_aux_dir'
15991 xsi_shell='$xsi_shell'
15992 lt_shell_append='$lt_shell_append'
15993
15994 # See if we are running on zsh, and set the options which allow our
15995 # commands through without removal of \ escapes INIT.
15996 if test -n "\${ZSH_VERSION+set}" ; then
15997    setopt NO_GLOB_SUBST
15998 fi
15999
16000
16001     PACKAGE='$PACKAGE'
16002     VERSION='$VERSION'
16003     TIMESTAMP='$TIMESTAMP'
16004     RM='$RM'
16005     ofile='$ofile'
16006
16007
16008
16009 TARGETDIR="$TARGETDIR"
16010
16011 _ACEOF
16012
16013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16014
16015 # Handling of arguments.
16016 for ac_config_target in $ac_config_targets
16017 do
16018   case $ac_config_target in
16019     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16020     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16021     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16022     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16023     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16024     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16025     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16026     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16027     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16028     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16029     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16030     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16031     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16032
16033   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16034   esac
16035 done
16036
16037
16038 # If the user did not use the arguments to specify the items to instantiate,
16039 # then the envvar interface is used.  Set only those that are not.
16040 # We use the long form for the default assignment because of an extremely
16041 # bizarre bug on SunOS 4.1.3.
16042 if $ac_need_defaults; then
16043   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16044   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16045   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16046   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16047 fi
16048
16049 # Have a temporary directory for convenience.  Make it in the build tree
16050 # simply because there is no reason against having it here, and in addition,
16051 # creating and moving files from /tmp can sometimes cause problems.
16052 # Hook for its removal unless debugging.
16053 # Note that there is a small window in which the directory will not be cleaned:
16054 # after its creation but before its name has been assigned to `$tmp'.
16055 $debug ||
16056 {
16057   tmp= ac_tmp=
16058   trap 'exit_status=$?
16059   : "${ac_tmp:=$tmp}"
16060   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16061 ' 0
16062   trap 'as_fn_exit 1' 1 2 13 15
16063 }
16064 # Create a (secure) tmp directory for tmp files.
16065
16066 {
16067   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16068   test -d "$tmp"
16069 }  ||
16070 {
16071   tmp=./conf$$-$RANDOM
16072   (umask 077 && mkdir "$tmp")
16073 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16074 ac_tmp=$tmp
16075
16076 # Set up the scripts for CONFIG_FILES section.
16077 # No need to generate them if there are no CONFIG_FILES.
16078 # This happens for instance with `./config.status config.h'.
16079 if test -n "$CONFIG_FILES"; then
16080
16081
16082 ac_cr=`echo X | tr X '\015'`
16083 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16084 # But we know of no other shell where ac_cr would be empty at this
16085 # point, so we can use a bashism as a fallback.
16086 if test "x$ac_cr" = x; then
16087   eval ac_cr=\$\'\\r\'
16088 fi
16089 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16090 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16091   ac_cs_awk_cr='\\r'
16092 else
16093   ac_cs_awk_cr=$ac_cr
16094 fi
16095
16096 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16097 _ACEOF
16098
16099
16100 {
16101   echo "cat >conf$$subs.awk <<_ACEOF" &&
16102   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16103   echo "_ACEOF"
16104 } >conf$$subs.sh ||
16105   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16106 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16107 ac_delim='%!_!# '
16108 for ac_last_try in false false false false false :; do
16109   . ./conf$$subs.sh ||
16110     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16111
16112   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16113   if test $ac_delim_n = $ac_delim_num; then
16114     break
16115   elif $ac_last_try; then
16116     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16117   else
16118     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16119   fi
16120 done
16121 rm -f conf$$subs.sh
16122
16123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16124 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16125 _ACEOF
16126 sed -n '
16127 h
16128 s/^/S["/; s/!.*/"]=/
16129 p
16130 g
16131 s/^[^!]*!//
16132 :repl
16133 t repl
16134 s/'"$ac_delim"'$//
16135 t delim
16136 :nl
16137 h
16138 s/\(.\{148\}\)..*/\1/
16139 t more1
16140 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16141 p
16142 n
16143 b repl
16144 :more1
16145 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16146 p
16147 g
16148 s/.\{148\}//
16149 t nl
16150 :delim
16151 h
16152 s/\(.\{148\}\)..*/\1/
16153 t more2
16154 s/["\\]/\\&/g; s/^/"/; s/$/"/
16155 p
16156 b
16157 :more2
16158 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16159 p
16160 g
16161 s/.\{148\}//
16162 t delim
16163 ' <conf$$subs.awk | sed '
16164 /^[^""]/{
16165   N
16166   s/\n//
16167 }
16168 ' >>$CONFIG_STATUS || ac_write_fail=1
16169 rm -f conf$$subs.awk
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171 _ACAWK
16172 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16173   for (key in S) S_is_set[key] = 1
16174   FS = "\a"
16175
16176 }
16177 {
16178   line = $ 0
16179   nfields = split(line, field, "@")
16180   substed = 0
16181   len = length(field[1])
16182   for (i = 2; i < nfields; i++) {
16183     key = field[i]
16184     keylen = length(key)
16185     if (S_is_set[key]) {
16186       value = S[key]
16187       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16188       len += length(value) + length(field[++i])
16189       substed = 1
16190     } else
16191       len += 1 + keylen
16192   }
16193
16194   print line
16195 }
16196
16197 _ACAWK
16198 _ACEOF
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16201   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16202 else
16203   cat
16204 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16205   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16206 _ACEOF
16207
16208 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16209 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16210 # trailing colons and then remove the whole line if VPATH becomes empty
16211 # (actually we leave an empty line to preserve line numbers).
16212 if test "x$srcdir" = x.; then
16213   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16214 h
16215 s///
16216 s/^/:/
16217 s/[      ]*$/:/
16218 s/:\$(srcdir):/:/g
16219 s/:\${srcdir}:/:/g
16220 s/:@srcdir@:/:/g
16221 s/^:*//
16222 s/:*$//
16223 x
16224 s/\(=[   ]*\).*/\1/
16225 G
16226 s/\n//
16227 s/^[^=]*=[       ]*$//
16228 }'
16229 fi
16230
16231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16232 fi # test -n "$CONFIG_FILES"
16233
16234 # Set up the scripts for CONFIG_HEADERS section.
16235 # No need to generate them if there are no CONFIG_HEADERS.
16236 # This happens for instance with `./config.status Makefile'.
16237 if test -n "$CONFIG_HEADERS"; then
16238 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16239 BEGIN {
16240 _ACEOF
16241
16242 # Transform confdefs.h into an awk script `defines.awk', embedded as
16243 # here-document in config.status, that substitutes the proper values into
16244 # config.h.in to produce config.h.
16245
16246 # Create a delimiter string that does not exist in confdefs.h, to ease
16247 # handling of long lines.
16248 ac_delim='%!_!# '
16249 for ac_last_try in false false :; do
16250   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16251   if test -z "$ac_tt"; then
16252     break
16253   elif $ac_last_try; then
16254     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16255   else
16256     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16257   fi
16258 done
16259
16260 # For the awk script, D is an array of macro values keyed by name,
16261 # likewise P contains macro parameters if any.  Preserve backslash
16262 # newline sequences.
16263
16264 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16265 sed -n '
16266 s/.\{148\}/&'"$ac_delim"'/g
16267 t rset
16268 :rset
16269 s/^[     ]*#[    ]*define[       ][      ]*/ /
16270 t def
16271 d
16272 :def
16273 s/\\$//
16274 t bsnl
16275 s/["\\]/\\&/g
16276 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16277 D["\1"]=" \3"/p
16278 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16279 d
16280 :bsnl
16281 s/["\\]/\\&/g
16282 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16283 D["\1"]=" \3\\\\\\n"\\/p
16284 t cont
16285 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16286 t cont
16287 d
16288 :cont
16289 n
16290 s/.\{148\}/&'"$ac_delim"'/g
16291 t clear
16292 :clear
16293 s/\\$//
16294 t bsnlc
16295 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16296 d
16297 :bsnlc
16298 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16299 b cont
16300 ' <confdefs.h | sed '
16301 s/'"$ac_delim"'/"\\\
16302 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16303
16304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16305   for (key in D) D_is_set[key] = 1
16306   FS = "\a"
16307 }
16308 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16309   line = \$ 0
16310   split(line, arg, " ")
16311   if (arg[1] == "#") {
16312     defundef = arg[2]
16313     mac1 = arg[3]
16314   } else {
16315     defundef = substr(arg[1], 2)
16316     mac1 = arg[2]
16317   }
16318   split(mac1, mac2, "(") #)
16319   macro = mac2[1]
16320   prefix = substr(line, 1, index(line, defundef) - 1)
16321   if (D_is_set[macro]) {
16322     # Preserve the white space surrounding the "#".
16323     print prefix "define", macro P[macro] D[macro]
16324     next
16325   } else {
16326     # Replace #undef with comments.  This is necessary, for example,
16327     # in the case of _POSIX_SOURCE, which is predefined and required
16328     # on some systems where configure will not decide to define it.
16329     if (defundef == "undef") {
16330       print "/*", prefix defundef, macro, "*/"
16331       next
16332     }
16333   }
16334 }
16335 { print }
16336 _ACAWK
16337 _ACEOF
16338 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16339   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16340 fi # test -n "$CONFIG_HEADERS"
16341
16342
16343 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16344 shift
16345 for ac_tag
16346 do
16347   case $ac_tag in
16348   :[FHLC]) ac_mode=$ac_tag; continue;;
16349   esac
16350   case $ac_mode$ac_tag in
16351   :[FHL]*:*);;
16352   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16353   :[FH]-) ac_tag=-:-;;
16354   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16355   esac
16356   ac_save_IFS=$IFS
16357   IFS=:
16358   set x $ac_tag
16359   IFS=$ac_save_IFS
16360   shift
16361   ac_file=$1
16362   shift
16363
16364   case $ac_mode in
16365   :L) ac_source=$1;;
16366   :[FH])
16367     ac_file_inputs=
16368     for ac_f
16369     do
16370       case $ac_f in
16371       -) ac_f="$ac_tmp/stdin";;
16372       *) # Look for the file first in the build tree, then in the source tree
16373          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16374          # because $ac_f cannot contain `:'.
16375          test -f "$ac_f" ||
16376            case $ac_f in
16377            [\\/$]*) false;;
16378            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16379            esac ||
16380            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16381       esac
16382       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16383       as_fn_append ac_file_inputs " '$ac_f'"
16384     done
16385
16386     # Let's still pretend it is `configure' which instantiates (i.e., don't
16387     # use $as_me), people would be surprised to read:
16388     #    /* config.h.  Generated by config.status.  */
16389     configure_input='Generated from '`
16390           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16391         `' by configure.'
16392     if test x"$ac_file" != x-; then
16393       configure_input="$ac_file.  $configure_input"
16394       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16395 $as_echo "$as_me: creating $ac_file" >&6;}
16396     fi
16397     # Neutralize special characters interpreted by sed in replacement strings.
16398     case $configure_input in #(
16399     *\&* | *\|* | *\\* )
16400        ac_sed_conf_input=`$as_echo "$configure_input" |
16401        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16402     *) ac_sed_conf_input=$configure_input;;
16403     esac
16404
16405     case $ac_tag in
16406     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16407       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16408     esac
16409     ;;
16410   esac
16411
16412   ac_dir=`$as_dirname -- "$ac_file" ||
16413 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16414          X"$ac_file" : 'X\(//\)[^/]' \| \
16415          X"$ac_file" : 'X\(//\)$' \| \
16416          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16417 $as_echo X"$ac_file" |
16418     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16419             s//\1/
16420             q
16421           }
16422           /^X\(\/\/\)[^/].*/{
16423             s//\1/
16424             q
16425           }
16426           /^X\(\/\/\)$/{
16427             s//\1/
16428             q
16429           }
16430           /^X\(\/\).*/{
16431             s//\1/
16432             q
16433           }
16434           s/.*/./; q'`
16435   as_dir="$ac_dir"; as_fn_mkdir_p
16436   ac_builddir=.
16437
16438 case "$ac_dir" in
16439 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16440 *)
16441   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16442   # A ".." for each directory in $ac_dir_suffix.
16443   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16444   case $ac_top_builddir_sub in
16445   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16446   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16447   esac ;;
16448 esac
16449 ac_abs_top_builddir=$ac_pwd
16450 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16451 # for backward compatibility:
16452 ac_top_builddir=$ac_top_build_prefix
16453
16454 case $srcdir in
16455   .)  # We are building in place.
16456     ac_srcdir=.
16457     ac_top_srcdir=$ac_top_builddir_sub
16458     ac_abs_top_srcdir=$ac_pwd ;;
16459   [\\/]* | ?:[\\/]* )  # Absolute name.
16460     ac_srcdir=$srcdir$ac_dir_suffix;
16461     ac_top_srcdir=$srcdir
16462     ac_abs_top_srcdir=$srcdir ;;
16463   *) # Relative name.
16464     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16465     ac_top_srcdir=$ac_top_build_prefix$srcdir
16466     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16467 esac
16468 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16469
16470
16471   case $ac_mode in
16472   :F)
16473   #
16474   # CONFIG_FILE
16475   #
16476
16477   case $INSTALL in
16478   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16479   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16480   esac
16481   ac_MKDIR_P=$MKDIR_P
16482   case $MKDIR_P in
16483   [\\/$]* | ?:[\\/]* ) ;;
16484   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16485   esac
16486 _ACEOF
16487
16488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16489 # If the template does not know about datarootdir, expand it.
16490 # FIXME: This hack should be removed a few years after 2.60.
16491 ac_datarootdir_hack=; ac_datarootdir_seen=
16492 ac_sed_dataroot='
16493 /datarootdir/ {
16494   p
16495   q
16496 }
16497 /@datadir@/p
16498 /@docdir@/p
16499 /@infodir@/p
16500 /@localedir@/p
16501 /@mandir@/p'
16502 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16503 *datarootdir*) ac_datarootdir_seen=yes;;
16504 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16505   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16506 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16507 _ACEOF
16508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16509   ac_datarootdir_hack='
16510   s&@datadir@&$datadir&g
16511   s&@docdir@&$docdir&g
16512   s&@infodir@&$infodir&g
16513   s&@localedir@&$localedir&g
16514   s&@mandir@&$mandir&g
16515   s&\\\${datarootdir}&$datarootdir&g' ;;
16516 esac
16517 _ACEOF
16518
16519 # Neutralize VPATH when `$srcdir' = `.'.
16520 # Shell code in configure.ac might set extrasub.
16521 # FIXME: do we really want to maintain this feature?
16522 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16523 ac_sed_extra="$ac_vpsub
16524 $extrasub
16525 _ACEOF
16526 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16527 :t
16528 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16529 s|@configure_input@|$ac_sed_conf_input|;t t
16530 s&@top_builddir@&$ac_top_builddir_sub&;t t
16531 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16532 s&@srcdir@&$ac_srcdir&;t t
16533 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16534 s&@top_srcdir@&$ac_top_srcdir&;t t
16535 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16536 s&@builddir@&$ac_builddir&;t t
16537 s&@abs_builddir@&$ac_abs_builddir&;t t
16538 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16539 s&@INSTALL@&$ac_INSTALL&;t t
16540 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16541 $ac_datarootdir_hack
16542 "
16543 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16544   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16545
16546 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16547   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16548   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16549       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16550   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16551 which seems to be undefined.  Please make sure it is defined" >&5
16552 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16553 which seems to be undefined.  Please make sure it is defined" >&2;}
16554
16555   rm -f "$ac_tmp/stdin"
16556   case $ac_file in
16557   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16558   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16559   esac \
16560   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16561  ;;
16562   :H)
16563   #
16564   # CONFIG_HEADER
16565   #
16566   if test x"$ac_file" != x-; then
16567     {
16568       $as_echo "/* $configure_input  */" \
16569       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16570     } >"$ac_tmp/config.h" \
16571       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16572     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16573       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16574 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16575     else
16576       rm -f "$ac_file"
16577       mv "$ac_tmp/config.h" "$ac_file" \
16578         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16579     fi
16580   else
16581     $as_echo "/* $configure_input  */" \
16582       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16583       || as_fn_error $? "could not create -" "$LINENO" 5
16584   fi
16585 # Compute "$ac_file"'s index in $config_headers.
16586 _am_arg="$ac_file"
16587 _am_stamp_count=1
16588 for _am_header in $config_headers :; do
16589   case $_am_header in
16590     $_am_arg | $_am_arg:* )
16591       break ;;
16592     * )
16593       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16594   esac
16595 done
16596 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16597 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16598          X"$_am_arg" : 'X\(//\)[^/]' \| \
16599          X"$_am_arg" : 'X\(//\)$' \| \
16600          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16601 $as_echo X"$_am_arg" |
16602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16603             s//\1/
16604             q
16605           }
16606           /^X\(\/\/\)[^/].*/{
16607             s//\1/
16608             q
16609           }
16610           /^X\(\/\/\)$/{
16611             s//\1/
16612             q
16613           }
16614           /^X\(\/\).*/{
16615             s//\1/
16616             q
16617           }
16618           s/.*/./; q'`/stamp-h$_am_stamp_count
16619  ;;
16620   :L)
16621   #
16622   # CONFIG_LINK
16623   #
16624
16625   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16626     :
16627   else
16628     # Prefer the file from the source tree if names are identical.
16629     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16630       ac_source=$srcdir/$ac_source
16631     fi
16632
16633     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16634 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16635
16636     if test ! -r "$ac_source"; then
16637       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16638     fi
16639     rm -f "$ac_file"
16640
16641     # Try a relative symlink, then a hard link, then a copy.
16642     case $ac_source in
16643     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16644         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16645     esac
16646     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16647       ln "$ac_source" "$ac_file" 2>/dev/null ||
16648       cp -p "$ac_source" "$ac_file" ||
16649       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16650   fi
16651  ;;
16652   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16653 $as_echo "$as_me: executing $ac_file commands" >&6;}
16654  ;;
16655   esac
16656
16657
16658   case $ac_file$ac_mode in
16659     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16660   if test ".$ax_enable_builddir" = ".." ; then
16661     if test -f "$top_srcdir/Makefile" ; then
16662       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16663 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16664     else
16665       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16666 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16667     fi
16668   else
16669     if test -f "$ac_top_srcdir/Makefile" ; then
16670       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16671       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16672     fi
16673     if test -f "$ac_top_srcdir/Makefile" ; then
16674         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16675         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16676       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16677       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16678       then rm $ac_top_srcdir/Makefile ; fi
16679       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16680     fi
16681     if test ! -f "$ac_top_srcdir/Makefile" ; then
16682       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16683 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16684       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16685 /^\$/n
16686 x
16687 /^\$/bS
16688 x
16689 /\\\\\$/{H;d;}
16690 {H;s/.*//;x;}
16691 bM
16692 :S
16693 x
16694 /\\\\\$/{h;d;}
16695 {h;s/.*//;x;}
16696 :M
16697 s/\\(\\n\\)     /\\1 /g
16698 /^      /d
16699 /^[      ]*[\\#]/d
16700 /^VPATH *=/d
16701 s/^srcdir *=.*/srcdir = ./
16702 s/^top_srcdir *=.*/top_srcdir = ./
16703 /[:=]/!d
16704 /^\\./d
16705 / = /b
16706 / .= /b
16707 /:/!b
16708 s/:.*/:/
16709 s/ /  /g
16710 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16711 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16712 s/  / /g
16713 /^all all-all[ :]/i\\
16714 all-configured : all-all
16715 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16716 /-all-all/d
16717 a\\
16718         @ HOST="\$(HOST)\" \\\\\\
16719         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16720         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16721         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16722         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16723         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16724         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16725         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16726         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16727         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16728 /dist-all *:/a\\
16729         @ HOST="\$(HOST)\" \\\\\\
16730         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16731         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16732         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16733         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16734         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16735         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16736         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16737         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16738         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16739 /dist-[a-zA-Z0-9]*-all *:/a\\
16740         @ HOST="\$(HOST)\" \\\\\\
16741         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16742         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16743         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16744         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16745         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16746         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16747         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16748         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16749         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16750 /distclean-all *:/a\\
16751         @ HOST="\$(HOST)\" \\\\\\
16752         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16753         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16754         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16755         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16756         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16757         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16758         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16759         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16760         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16761         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16762         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16763 _EOF
16764       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16765       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16766       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16767         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16768 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16769         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16770       fi ; xxxx="####"
16771       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16772       # sanity check
16773       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16774         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16775 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16776         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16777           >$ac_top_srcdir/Makefile~
16778         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16779       fi
16780     else
16781       xxxx="\\#\\#\\#\\#"
16782       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16783       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16784       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16785         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16786         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16787       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16788         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16789 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16790         rm "$tmp/mkfile.tmp"
16791       else
16792         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16793 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16794         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16795       fi
16796     fi
16797     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16798 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16799     xxxx="####"
16800     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16801   fi
16802  ;;
16803     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16804   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16805   # are listed without --file.  Let's play safe and only enable the eval
16806   # if we detect the quoting.
16807   case $CONFIG_FILES in
16808   *\'*) eval set x "$CONFIG_FILES" ;;
16809   *)   set x $CONFIG_FILES ;;
16810   esac
16811   shift
16812   for mf
16813   do
16814     # Strip MF so we end up with the name of the file.
16815     mf=`echo "$mf" | sed -e 's/:.*$//'`
16816     # Check whether this is an Automake generated Makefile or not.
16817     # We used to match only the files named 'Makefile.in', but
16818     # some people rename them; so instead we look at the file content.
16819     # Grep'ing the first line is not enough: some people post-process
16820     # each Makefile.in and add a new line on top of each file to say so.
16821     # Grep'ing the whole file is not good either: AIX grep has a line
16822     # limit of 2048, but all sed's we know have understand at least 4000.
16823     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16824       dirpart=`$as_dirname -- "$mf" ||
16825 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16826          X"$mf" : 'X\(//\)[^/]' \| \
16827          X"$mf" : 'X\(//\)$' \| \
16828          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16829 $as_echo X"$mf" |
16830     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16831             s//\1/
16832             q
16833           }
16834           /^X\(\/\/\)[^/].*/{
16835             s//\1/
16836             q
16837           }
16838           /^X\(\/\/\)$/{
16839             s//\1/
16840             q
16841           }
16842           /^X\(\/\).*/{
16843             s//\1/
16844             q
16845           }
16846           s/.*/./; q'`
16847     else
16848       continue
16849     fi
16850     # Extract the definition of DEPDIR, am__include, and am__quote
16851     # from the Makefile without running 'make'.
16852     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16853     test -z "$DEPDIR" && continue
16854     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16855     test -z "am__include" && continue
16856     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16857     # Find all dependency output files, they are included files with
16858     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16859     # simplest approach to changing $(DEPDIR) to its actual value in the
16860     # expansion.
16861     for file in `sed -n "
16862       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16863          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16864       # Make sure the directory exists.
16865       test -f "$dirpart/$file" && continue
16866       fdir=`$as_dirname -- "$file" ||
16867 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16868          X"$file" : 'X\(//\)[^/]' \| \
16869          X"$file" : 'X\(//\)$' \| \
16870          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16871 $as_echo X"$file" |
16872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16873             s//\1/
16874             q
16875           }
16876           /^X\(\/\/\)[^/].*/{
16877             s//\1/
16878             q
16879           }
16880           /^X\(\/\/\)$/{
16881             s//\1/
16882             q
16883           }
16884           /^X\(\/\).*/{
16885             s//\1/
16886             q
16887           }
16888           s/.*/./; q'`
16889       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16890       # echo "creating $dirpart/$file"
16891       echo '# dummy' > "$dirpart/$file"
16892     done
16893   done
16894 }
16895  ;;
16896     "libtool":C)
16897
16898     # See if we are running on zsh, and set the options which allow our
16899     # commands through without removal of \ escapes.
16900     if test -n "${ZSH_VERSION+set}" ; then
16901       setopt NO_GLOB_SUBST
16902     fi
16903
16904     cfgfile="${ofile}T"
16905     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16906     $RM "$cfgfile"
16907
16908     cat <<_LT_EOF >> "$cfgfile"
16909 #! $SHELL
16910
16911 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16912 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16913 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16914 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16915 #
16916 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16917 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16918 #                 Foundation, Inc.
16919 #   Written by Gordon Matzigkeit, 1996
16920 #
16921 #   This file is part of GNU Libtool.
16922 #
16923 # GNU Libtool is free software; you can redistribute it and/or
16924 # modify it under the terms of the GNU General Public License as
16925 # published by the Free Software Foundation; either version 2 of
16926 # the License, or (at your option) any later version.
16927 #
16928 # As a special exception to the GNU General Public License,
16929 # if you distribute this file as part of a program or library that
16930 # is built using GNU Libtool, you may include this file under the
16931 # same distribution terms that you use for the rest of that program.
16932 #
16933 # GNU Libtool is distributed in the hope that it will be useful,
16934 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16935 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16936 # GNU General Public License for more details.
16937 #
16938 # You should have received a copy of the GNU General Public License
16939 # along with GNU Libtool; see the file COPYING.  If not, a copy
16940 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16941 # obtained by writing to the Free Software Foundation, Inc.,
16942 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16943
16944
16945 # The names of the tagged configurations supported by this script.
16946 available_tags=""
16947
16948 # ### BEGIN LIBTOOL CONFIG
16949
16950 # Which release of libtool.m4 was used?
16951 macro_version=$macro_version
16952 macro_revision=$macro_revision
16953
16954 # Whether or not to build shared libraries.
16955 build_libtool_libs=$enable_shared
16956
16957 # Whether or not to build static libraries.
16958 build_old_libs=$enable_static
16959
16960 # What type of objects to build.
16961 pic_mode=$pic_mode
16962
16963 # Whether or not to optimize for fast installation.
16964 fast_install=$enable_fast_install
16965
16966 # Shell to use when invoking shell scripts.
16967 SHELL=$lt_SHELL
16968
16969 # An echo program that protects backslashes.
16970 ECHO=$lt_ECHO
16971
16972 # The PATH separator for the build system.
16973 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16974
16975 # The host system.
16976 host_alias=$host_alias
16977 host=$host
16978 host_os=$host_os
16979
16980 # The build system.
16981 build_alias=$build_alias
16982 build=$build
16983 build_os=$build_os
16984
16985 # A sed program that does not truncate output.
16986 SED=$lt_SED
16987
16988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16989 Xsed="\$SED -e 1s/^X//"
16990
16991 # A grep program that handles long lines.
16992 GREP=$lt_GREP
16993
16994 # An ERE matcher.
16995 EGREP=$lt_EGREP
16996
16997 # A literal string matcher.
16998 FGREP=$lt_FGREP
16999
17000 # A BSD- or MS-compatible name lister.
17001 NM=$lt_NM
17002
17003 # Whether we need soft or hard links.
17004 LN_S=$lt_LN_S
17005
17006 # What is the maximum length of a command?
17007 max_cmd_len=$max_cmd_len
17008
17009 # Object file suffix (normally "o").
17010 objext=$ac_objext
17011
17012 # Executable file suffix (normally "").
17013 exeext=$exeext
17014
17015 # whether the shell understands "unset".
17016 lt_unset=$lt_unset
17017
17018 # turn spaces into newlines.
17019 SP2NL=$lt_lt_SP2NL
17020
17021 # turn newlines into spaces.
17022 NL2SP=$lt_lt_NL2SP
17023
17024 # convert \$build file names to \$host format.
17025 to_host_file_cmd=$lt_cv_to_host_file_cmd
17026
17027 # convert \$build files to toolchain format.
17028 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17029
17030 # An object symbol dumper.
17031 OBJDUMP=$lt_OBJDUMP
17032
17033 # Method to check whether dependent libraries are shared objects.
17034 deplibs_check_method=$lt_deplibs_check_method
17035
17036 # Command to use when deplibs_check_method = "file_magic".
17037 file_magic_cmd=$lt_file_magic_cmd
17038
17039 # How to find potential files when deplibs_check_method = "file_magic".
17040 file_magic_glob=$lt_file_magic_glob
17041
17042 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17043 want_nocaseglob=$lt_want_nocaseglob
17044
17045 # DLL creation program.
17046 DLLTOOL=$lt_DLLTOOL
17047
17048 # Command to associate shared and link libraries.
17049 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17050
17051 # The archiver.
17052 AR=$lt_AR
17053
17054 # Flags to create an archive.
17055 AR_FLAGS=$lt_AR_FLAGS
17056
17057 # How to feed a file listing to the archiver.
17058 archiver_list_spec=$lt_archiver_list_spec
17059
17060 # A symbol stripping program.
17061 STRIP=$lt_STRIP
17062
17063 # Commands used to install an old-style archive.
17064 RANLIB=$lt_RANLIB
17065 old_postinstall_cmds=$lt_old_postinstall_cmds
17066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17067
17068 # Whether to use a lock for old archive extraction.
17069 lock_old_archive_extraction=$lock_old_archive_extraction
17070
17071 # A C compiler.
17072 LTCC=$lt_CC
17073
17074 # LTCC compiler flags.
17075 LTCFLAGS=$lt_CFLAGS
17076
17077 # Take the output of nm and produce a listing of raw symbols and C names.
17078 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17079
17080 # Transform the output of nm in a proper C declaration.
17081 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17082
17083 # Transform the output of nm in a C name address pair.
17084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17085
17086 # Transform the output of nm in a C name address pair when lib prefix is needed.
17087 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17088
17089 # Specify filename containing input files for \$NM.
17090 nm_file_list_spec=$lt_nm_file_list_spec
17091
17092 # The root where to search for dependent libraries,and in which our libraries should be installed.
17093 lt_sysroot=$lt_sysroot
17094
17095 # The name of the directory that contains temporary libtool files.
17096 objdir=$objdir
17097
17098 # Used to examine libraries when file_magic_cmd begins with "file".
17099 MAGIC_CMD=$MAGIC_CMD
17100
17101 # Must we lock files when doing compilation?
17102 need_locks=$lt_need_locks
17103
17104 # Manifest tool.
17105 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17106
17107 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17108 DSYMUTIL=$lt_DSYMUTIL
17109
17110 # Tool to change global to local symbols on Mac OS X.
17111 NMEDIT=$lt_NMEDIT
17112
17113 # Tool to manipulate fat objects and archives on Mac OS X.
17114 LIPO=$lt_LIPO
17115
17116 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17117 OTOOL=$lt_OTOOL
17118
17119 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17120 OTOOL64=$lt_OTOOL64
17121
17122 # Old archive suffix (normally "a").
17123 libext=$libext
17124
17125 # Shared library suffix (normally ".so").
17126 shrext_cmds=$lt_shrext_cmds
17127
17128 # The commands to extract the exported symbol list from a shared archive.
17129 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17130
17131 # Variables whose values should be saved in libtool wrapper scripts and
17132 # restored at link time.
17133 variables_saved_for_relink=$lt_variables_saved_for_relink
17134
17135 # Do we need the "lib" prefix for modules?
17136 need_lib_prefix=$need_lib_prefix
17137
17138 # Do we need a version for libraries?
17139 need_version=$need_version
17140
17141 # Library versioning type.
17142 version_type=$version_type
17143
17144 # Shared library runtime path variable.
17145 runpath_var=$runpath_var
17146
17147 # Shared library path variable.
17148 shlibpath_var=$shlibpath_var
17149
17150 # Is shlibpath searched before the hard-coded library search path?
17151 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17152
17153 # Format of library name prefix.
17154 libname_spec=$lt_libname_spec
17155
17156 # List of archive names.  First name is the real one, the rest are links.
17157 # The last name is the one that the linker finds with -lNAME
17158 library_names_spec=$lt_library_names_spec
17159
17160 # The coded name of the library, if different from the real name.
17161 soname_spec=$lt_soname_spec
17162
17163 # Permission mode override for installation of shared libraries.
17164 install_override_mode=$lt_install_override_mode
17165
17166 # Command to use after installation of a shared archive.
17167 postinstall_cmds=$lt_postinstall_cmds
17168
17169 # Command to use after uninstallation of a shared archive.
17170 postuninstall_cmds=$lt_postuninstall_cmds
17171
17172 # Commands used to finish a libtool library installation in a directory.
17173 finish_cmds=$lt_finish_cmds
17174
17175 # As "finish_cmds", except a single script fragment to be evaled but
17176 # not shown.
17177 finish_eval=$lt_finish_eval
17178
17179 # Whether we should hardcode library paths into libraries.
17180 hardcode_into_libs=$hardcode_into_libs
17181
17182 # Compile-time system search path for libraries.
17183 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17184
17185 # Run-time system search path for libraries.
17186 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17187
17188 # Whether dlopen is supported.
17189 dlopen_support=$enable_dlopen
17190
17191 # Whether dlopen of programs is supported.
17192 dlopen_self=$enable_dlopen_self
17193
17194 # Whether dlopen of statically linked programs is supported.
17195 dlopen_self_static=$enable_dlopen_self_static
17196
17197 # Commands to strip libraries.
17198 old_striplib=$lt_old_striplib
17199 striplib=$lt_striplib
17200
17201
17202 # The linker used to build libraries.
17203 LD=$lt_LD
17204
17205 # How to create reloadable object files.
17206 reload_flag=$lt_reload_flag
17207 reload_cmds=$lt_reload_cmds
17208
17209 # Commands used to build an old-style archive.
17210 old_archive_cmds=$lt_old_archive_cmds
17211
17212 # A language specific compiler.
17213 CC=$lt_compiler
17214
17215 # Is the compiler the GNU compiler?
17216 with_gcc=$GCC
17217
17218 # Compiler flag to turn off builtin functions.
17219 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17220
17221 # Additional compiler flags for building library objects.
17222 pic_flag=$lt_lt_prog_compiler_pic
17223
17224 # How to pass a linker flag through the compiler.
17225 wl=$lt_lt_prog_compiler_wl
17226
17227 # Compiler flag to prevent dynamic linking.
17228 link_static_flag=$lt_lt_prog_compiler_static
17229
17230 # Does compiler simultaneously support -c and -o options?
17231 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17232
17233 # Whether or not to add -lc for building shared libraries.
17234 build_libtool_need_lc=$archive_cmds_need_lc
17235
17236 # Whether or not to disallow shared libs when runtime libs are static.
17237 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17238
17239 # Compiler flag to allow reflexive dlopens.
17240 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17241
17242 # Compiler flag to generate shared objects directly from archives.
17243 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17244
17245 # Whether the compiler copes with passing no objects directly.
17246 compiler_needs_object=$lt_compiler_needs_object
17247
17248 # Create an old-style archive from a shared archive.
17249 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17250
17251 # Create a temporary old-style archive to link instead of a shared archive.
17252 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17253
17254 # Commands used to build a shared archive.
17255 archive_cmds=$lt_archive_cmds
17256 archive_expsym_cmds=$lt_archive_expsym_cmds
17257
17258 # Commands used to build a loadable module if different from building
17259 # a shared archive.
17260 module_cmds=$lt_module_cmds
17261 module_expsym_cmds=$lt_module_expsym_cmds
17262
17263 # Whether we are building with GNU ld or not.
17264 with_gnu_ld=$lt_with_gnu_ld
17265
17266 # Flag that allows shared libraries with undefined symbols to be built.
17267 allow_undefined_flag=$lt_allow_undefined_flag
17268
17269 # Flag that enforces no undefined symbols.
17270 no_undefined_flag=$lt_no_undefined_flag
17271
17272 # Flag to hardcode \$libdir into a binary during linking.
17273 # This must work even if \$libdir does not exist
17274 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17275
17276 # Whether we need a single "-rpath" flag with a separated argument.
17277 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17278
17279 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17280 # DIR into the resulting binary.
17281 hardcode_direct=$hardcode_direct
17282
17283 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17284 # DIR into the resulting binary and the resulting library dependency is
17285 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17286 # library is relocated.
17287 hardcode_direct_absolute=$hardcode_direct_absolute
17288
17289 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17290 # into the resulting binary.
17291 hardcode_minus_L=$hardcode_minus_L
17292
17293 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17294 # into the resulting binary.
17295 hardcode_shlibpath_var=$hardcode_shlibpath_var
17296
17297 # Set to "yes" if building a shared library automatically hardcodes DIR
17298 # into the library and all subsequent libraries and executables linked
17299 # against it.
17300 hardcode_automatic=$hardcode_automatic
17301
17302 # Set to yes if linker adds runtime paths of dependent libraries
17303 # to runtime path list.
17304 inherit_rpath=$inherit_rpath
17305
17306 # Whether libtool must link a program against all its dependency libraries.
17307 link_all_deplibs=$link_all_deplibs
17308
17309 # Set to "yes" if exported symbols are required.
17310 always_export_symbols=$always_export_symbols
17311
17312 # The commands to list exported symbols.
17313 export_symbols_cmds=$lt_export_symbols_cmds
17314
17315 # Symbols that should not be listed in the preloaded symbols.
17316 exclude_expsyms=$lt_exclude_expsyms
17317
17318 # Symbols that must always be exported.
17319 include_expsyms=$lt_include_expsyms
17320
17321 # Commands necessary for linking programs (against libraries) with templates.
17322 prelink_cmds=$lt_prelink_cmds
17323
17324 # Commands necessary for finishing linking programs.
17325 postlink_cmds=$lt_postlink_cmds
17326
17327 # Specify filename containing input files.
17328 file_list_spec=$lt_file_list_spec
17329
17330 # How to hardcode a shared library path into an executable.
17331 hardcode_action=$hardcode_action
17332
17333 # ### END LIBTOOL CONFIG
17334
17335 _LT_EOF
17336
17337   case $host_os in
17338   aix3*)
17339     cat <<\_LT_EOF >> "$cfgfile"
17340 # AIX sometimes has problems with the GCC collect2 program.  For some
17341 # reason, if we set the COLLECT_NAMES environment variable, the problems
17342 # vanish in a puff of smoke.
17343 if test "X${COLLECT_NAMES+set}" != Xset; then
17344   COLLECT_NAMES=
17345   export COLLECT_NAMES
17346 fi
17347 _LT_EOF
17348     ;;
17349   esac
17350
17351
17352 ltmain="$ac_aux_dir/ltmain.sh"
17353
17354
17355   # We use sed instead of cat because bash on DJGPP gets confused if
17356   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17357   # text mode, it properly converts lines to CR/LF.  This bash problem
17358   # is reportedly fixed, but why not run on old versions too?
17359   sed '$q' "$ltmain" >> "$cfgfile" \
17360      || (rm -f "$cfgfile"; exit 1)
17361
17362   if test x"$xsi_shell" = xyes; then
17363   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17364 func_dirname ()\
17365 {\
17366 \    case ${1} in\
17367 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17368 \      *  ) func_dirname_result="${3}" ;;\
17369 \    esac\
17370 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17371   && mv -f "$cfgfile.tmp" "$cfgfile" \
17372     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17373 test 0 -eq $? || _lt_function_replace_fail=:
17374
17375
17376   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17377 func_basename ()\
17378 {\
17379 \    func_basename_result="${1##*/}"\
17380 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17381   && mv -f "$cfgfile.tmp" "$cfgfile" \
17382     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17383 test 0 -eq $? || _lt_function_replace_fail=:
17384
17385
17386   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17387 func_dirname_and_basename ()\
17388 {\
17389 \    case ${1} in\
17390 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17391 \      *  ) func_dirname_result="${3}" ;;\
17392 \    esac\
17393 \    func_basename_result="${1##*/}"\
17394 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17395   && mv -f "$cfgfile.tmp" "$cfgfile" \
17396     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17397 test 0 -eq $? || _lt_function_replace_fail=:
17398
17399
17400   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17401 func_stripname ()\
17402 {\
17403 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17404 \    # positional parameters, so assign one to ordinary parameter first.\
17405 \    func_stripname_result=${3}\
17406 \    func_stripname_result=${func_stripname_result#"${1}"}\
17407 \    func_stripname_result=${func_stripname_result%"${2}"}\
17408 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17409   && mv -f "$cfgfile.tmp" "$cfgfile" \
17410     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17411 test 0 -eq $? || _lt_function_replace_fail=:
17412
17413
17414   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17415 func_split_long_opt ()\
17416 {\
17417 \    func_split_long_opt_name=${1%%=*}\
17418 \    func_split_long_opt_arg=${1#*=}\
17419 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17420   && mv -f "$cfgfile.tmp" "$cfgfile" \
17421     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17422 test 0 -eq $? || _lt_function_replace_fail=:
17423
17424
17425   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17426 func_split_short_opt ()\
17427 {\
17428 \    func_split_short_opt_arg=${1#??}\
17429 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17430 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17431   && mv -f "$cfgfile.tmp" "$cfgfile" \
17432     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17433 test 0 -eq $? || _lt_function_replace_fail=:
17434
17435
17436   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17437 func_lo2o ()\
17438 {\
17439 \    case ${1} in\
17440 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17441 \      *)    func_lo2o_result=${1} ;;\
17442 \    esac\
17443 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17444   && mv -f "$cfgfile.tmp" "$cfgfile" \
17445     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17446 test 0 -eq $? || _lt_function_replace_fail=:
17447
17448
17449   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17450 func_xform ()\
17451 {\
17452     func_xform_result=${1%.*}.lo\
17453 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17454   && mv -f "$cfgfile.tmp" "$cfgfile" \
17455     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17456 test 0 -eq $? || _lt_function_replace_fail=:
17457
17458
17459   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17460 func_arith ()\
17461 {\
17462     func_arith_result=$(( $* ))\
17463 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17464   && mv -f "$cfgfile.tmp" "$cfgfile" \
17465     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17466 test 0 -eq $? || _lt_function_replace_fail=:
17467
17468
17469   sed -e '/^func_len ()$/,/^} # func_len /c\
17470 func_len ()\
17471 {\
17472     func_len_result=${#1}\
17473 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17474   && mv -f "$cfgfile.tmp" "$cfgfile" \
17475     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17476 test 0 -eq $? || _lt_function_replace_fail=:
17477
17478 fi
17479
17480 if test x"$lt_shell_append" = xyes; then
17481   sed -e '/^func_append ()$/,/^} # func_append /c\
17482 func_append ()\
17483 {\
17484     eval "${1}+=\\${2}"\
17485 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17486   && mv -f "$cfgfile.tmp" "$cfgfile" \
17487     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17488 test 0 -eq $? || _lt_function_replace_fail=:
17489
17490
17491   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17492 func_append_quoted ()\
17493 {\
17494 \    func_quote_for_eval "${2}"\
17495 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17496 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17497   && mv -f "$cfgfile.tmp" "$cfgfile" \
17498     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17499 test 0 -eq $? || _lt_function_replace_fail=:
17500
17501
17502   # Save a `func_append' function call where possible by direct use of '+='
17503   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $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 else
17508   # Save a `func_append' function call even when '+=' is not available
17509   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17510     && mv -f "$cfgfile.tmp" "$cfgfile" \
17511       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17512   test 0 -eq $? || _lt_function_replace_fail=:
17513 fi
17514
17515 if test x"$_lt_function_replace_fail" = x":"; then
17516   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17517 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17518 fi
17519
17520
17521    mv -f "$cfgfile" "$ofile" ||
17522     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17523   chmod +x "$ofile"
17524
17525  ;;
17526     "include":C) test -d include || mkdir include ;;
17527     "src":C)
17528 test -d src || mkdir src
17529 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17530  ;;
17531
17532   esac
17533 done # for ac_tag
17534
17535
17536 as_fn_exit 0
17537 _ACEOF
17538 ac_clean_files=$ac_clean_files_save
17539
17540 test $ac_write_fail = 0 ||
17541   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17542
17543
17544 # configure is writing to config.log, and then calls config.status.
17545 # config.status does its own redirection, appending to config.log.
17546 # Unfortunately, on DOS this fails, as config.log is still kept open
17547 # by configure, so config.status won't be able to write to it; its
17548 # output is simply discarded.  So we exec the FD to /dev/null,
17549 # effectively closing config.log, so it can be properly (re)opened and
17550 # appended to by config.status.  When coming back to configure, we
17551 # need to make the FD available again.
17552 if test "$no_create" != yes; then
17553   ac_cs_success=:
17554   ac_config_status_args=
17555   test "$silent" = yes &&
17556     ac_config_status_args="$ac_config_status_args --quiet"
17557   exec 5>/dev/null
17558   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17559   exec 5>>config.log
17560   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17561   # would make configure fail if this is the last instruction.
17562   $ac_cs_success || as_fn_exit 1
17563 fi
17564 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17565   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17566 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17567 fi
17568