Merge pull request #51 from vbudovski/for_upstream
[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.14-rc0.
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.14-rc0'
594 PACKAGE_STRING='libffi 3.0.14-rc0'
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 VAX_FALSE
653 VAX_TRUE
654 TILE_FALSE
655 TILE_TRUE
656 PA64_HPUX_FALSE
657 PA64_HPUX_TRUE
658 PA_HPUX_FALSE
659 PA_HPUX_TRUE
660 PA_LINUX_FALSE
661 PA_LINUX_TRUE
662 SH64_FALSE
663 SH64_TRUE
664 SH_FALSE
665 SH_TRUE
666 X86_64_FALSE
667 X86_64_TRUE
668 S390_FALSE
669 S390_TRUE
670 FRV_FALSE
671 FRV_TRUE
672 LIBFFI_CRIS_FALSE
673 LIBFFI_CRIS_TRUE
674 AVR32_FALSE
675 AVR32_TRUE
676 ARM_FALSE
677 ARM_TRUE
678 ARC_FALSE
679 ARC_TRUE
680 AARCH64_FALSE
681 AARCH64_TRUE
682 POWERPC_FREEBSD_FALSE
683 POWERPC_FREEBSD_TRUE
684 POWERPC_DARWIN_FALSE
685 POWERPC_DARWIN_TRUE
686 POWERPC_AIX_FALSE
687 POWERPC_AIX_TRUE
688 POWERPC_FALSE
689 POWERPC_TRUE
690 NIOS2_FALSE
691 NIOS2_TRUE
692 MOXIE_FALSE
693 MOXIE_TRUE
694 METAG_FALSE
695 METAG_TRUE
696 MICROBLAZE_FALSE
697 MICROBLAZE_TRUE
698 M88K_FALSE
699 M88K_TRUE
700 M68K_FALSE
701 M68K_TRUE
702 M32R_FALSE
703 M32R_TRUE
704 IA64_FALSE
705 IA64_TRUE
706 ALPHA_FALSE
707 ALPHA_TRUE
708 X86_DARWIN_FALSE
709 X86_DARWIN_TRUE
710 X86_WIN64_FALSE
711 X86_WIN64_TRUE
712 X86_WIN32_FALSE
713 X86_WIN32_TRUE
714 X86_FREEBSD_FALSE
715 X86_FREEBSD_TRUE
716 X86_FALSE
717 X86_TRUE
718 SPARC_FALSE
719 SPARC_TRUE
720 BFIN_FALSE
721 BFIN_TRUE
722 MIPS_FALSE
723 MIPS_TRUE
724 AM_LTLDFLAGS
725 AM_RUNTESTFLAGS
726 TESTSUBDIR_FALSE
727 TESTSUBDIR_TRUE
728 MAINT
729 MAINTAINER_MODE_FALSE
730 MAINTAINER_MODE_TRUE
731 PRTDIAG
732 CPP
733 OTOOL64
734 OTOOL
735 LIPO
736 NMEDIT
737 DSYMUTIL
738 MANIFEST_TOOL
739 RANLIB
740 ac_ct_AR
741 AR
742 DLLTOOL
743 OBJDUMP
744 LN_S
745 NM
746 ac_ct_DUMPBIN
747 DUMPBIN
748 LD
749 FGREP
750 EGREP
751 GREP
752 SED
753 LIBTOOL
754 am__fastdepCCAS_FALSE
755 am__fastdepCCAS_TRUE
756 CCASDEPMODE
757 CCASFLAGS
758 CCAS
759 am__fastdepCC_FALSE
760 am__fastdepCC_TRUE
761 CCDEPMODE
762 am__nodep
763 AMDEPBACKSLASH
764 AMDEP_FALSE
765 AMDEP_TRUE
766 am__quote
767 am__include
768 DEPDIR
769 OBJEXT
770 EXEEXT
771 ac_ct_CC
772 CPPFLAGS
773 LDFLAGS
774 CFLAGS
775 CC
776 AM_BACKSLASH
777 AM_DEFAULT_VERBOSITY
778 AM_DEFAULT_V
779 AM_V
780 am__untar
781 am__tar
782 AMTAR
783 am__leading_dot
784 SET_MAKE
785 AWK
786 mkdir_p
787 MKDIR_P
788 INSTALL_STRIP_PROGRAM
789 STRIP
790 install_sh
791 MAKEINFO
792 AUTOHEADER
793 AUTOMAKE
794 AUTOCONF
795 ACLOCAL
796 VERSION
797 PACKAGE
798 CYGPATH_W
799 am__isrc
800 INSTALL_DATA
801 INSTALL_SCRIPT
802 INSTALL_PROGRAM
803 ax_enable_builddir_sed
804 target_os
805 target_vendor
806 target_cpu
807 target
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 target_alias
817 host_alias
818 build_alias
819 LIBS
820 ECHO_T
821 ECHO_N
822 ECHO_C
823 DEFS
824 mandir
825 localedir
826 libdir
827 psdir
828 pdfdir
829 dvidir
830 htmldir
831 infodir
832 docdir
833 oldincludedir
834 includedir
835 localstatedir
836 sharedstatedir
837 sysconfdir
838 datadir
839 datarootdir
840 libexecdir
841 sbindir
842 bindir
843 program_transform_name
844 prefix
845 exec_prefix
846 PACKAGE_URL
847 PACKAGE_BUGREPORT
848 PACKAGE_STRING
849 PACKAGE_VERSION
850 PACKAGE_TARNAME
851 PACKAGE_NAME
852 PATH_SEPARATOR
853 SHELL'
854 ac_subst_files=''
855 ac_user_opts='
856 enable_option_checking
857 enable_builddir
858 enable_silent_rules
859 enable_dependency_tracking
860 enable_shared
861 enable_static
862 with_pic
863 enable_fast_install
864 with_gnu_ld
865 with_sysroot
866 enable_libtool_lock
867 enable_portable_binary
868 with_gcc_arch
869 enable_maintainer_mode
870 enable_pax_emutramp
871 enable_debug
872 enable_structs
873 enable_raw_api
874 enable_purify_safety
875 '
876       ac_precious_vars='build_alias
877 host_alias
878 target_alias
879 CCAS
880 CCASFLAGS
881 CPP
882 CPPFLAGS'
883
884
885 # Initialize some variables set by options.
886 ac_init_help=
887 ac_init_version=false
888 ac_unrecognized_opts=
889 ac_unrecognized_sep=
890 # The variables have the same names as the options, with
891 # dashes changed to underlines.
892 cache_file=/dev/null
893 exec_prefix=NONE
894 no_create=
895 no_recursion=
896 prefix=NONE
897 program_prefix=NONE
898 program_suffix=NONE
899 program_transform_name=s,x,x,
900 silent=
901 site=
902 srcdir=
903 verbose=
904 x_includes=NONE
905 x_libraries=NONE
906
907 # Installation directory options.
908 # These are left unexpanded so users can "make install exec_prefix=/foo"
909 # and all the variables that are supposed to be based on exec_prefix
910 # by default will actually change.
911 # Use braces instead of parens because sh, perl, etc. also accept them.
912 # (The list follows the same order as the GNU Coding Standards.)
913 bindir='${exec_prefix}/bin'
914 sbindir='${exec_prefix}/sbin'
915 libexecdir='${exec_prefix}/libexec'
916 datarootdir='${prefix}/share'
917 datadir='${datarootdir}'
918 sysconfdir='${prefix}/etc'
919 sharedstatedir='${prefix}/com'
920 localstatedir='${prefix}/var'
921 includedir='${prefix}/include'
922 oldincludedir='/usr/include'
923 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
924 infodir='${datarootdir}/info'
925 htmldir='${docdir}'
926 dvidir='${docdir}'
927 pdfdir='${docdir}'
928 psdir='${docdir}'
929 libdir='${exec_prefix}/lib'
930 localedir='${datarootdir}/locale'
931 mandir='${datarootdir}/man'
932
933 ac_prev=
934 ac_dashdash=
935 for ac_option
936 do
937   # If the previous option needs an argument, assign it.
938   if test -n "$ac_prev"; then
939     eval $ac_prev=\$ac_option
940     ac_prev=
941     continue
942   fi
943
944   case $ac_option in
945   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
946   *=)   ac_optarg= ;;
947   *)    ac_optarg=yes ;;
948   esac
949
950   # Accept the important Cygnus configure options, so we can diagnose typos.
951
952   case $ac_dashdash$ac_option in
953   --)
954     ac_dashdash=yes ;;
955
956   -bindir | --bindir | --bindi | --bind | --bin | --bi)
957     ac_prev=bindir ;;
958   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
959     bindir=$ac_optarg ;;
960
961   -build | --build | --buil | --bui | --bu)
962     ac_prev=build_alias ;;
963   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
964     build_alias=$ac_optarg ;;
965
966   -cache-file | --cache-file | --cache-fil | --cache-fi \
967   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
968     ac_prev=cache_file ;;
969   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
970   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
971     cache_file=$ac_optarg ;;
972
973   --config-cache | -C)
974     cache_file=config.cache ;;
975
976   -datadir | --datadir | --datadi | --datad)
977     ac_prev=datadir ;;
978   -datadir=* | --datadir=* | --datadi=* | --datad=*)
979     datadir=$ac_optarg ;;
980
981   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
982   | --dataroo | --dataro | --datar)
983     ac_prev=datarootdir ;;
984   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
985   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
986     datarootdir=$ac_optarg ;;
987
988   -disable-* | --disable-*)
989     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
990     # Reject names that are not valid shell variable names.
991     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992       as_fn_error $? "invalid feature name: $ac_useropt"
993     ac_useropt_orig=$ac_useropt
994     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995     case $ac_user_opts in
996       *"
997 "enable_$ac_useropt"
998 "*) ;;
999       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1000          ac_unrecognized_sep=', ';;
1001     esac
1002     eval enable_$ac_useropt=no ;;
1003
1004   -docdir | --docdir | --docdi | --doc | --do)
1005     ac_prev=docdir ;;
1006   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1007     docdir=$ac_optarg ;;
1008
1009   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1010     ac_prev=dvidir ;;
1011   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1012     dvidir=$ac_optarg ;;
1013
1014   -enable-* | --enable-*)
1015     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1016     # Reject names that are not valid shell variable names.
1017     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018       as_fn_error $? "invalid feature name: $ac_useropt"
1019     ac_useropt_orig=$ac_useropt
1020     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021     case $ac_user_opts in
1022       *"
1023 "enable_$ac_useropt"
1024 "*) ;;
1025       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1026          ac_unrecognized_sep=', ';;
1027     esac
1028     eval enable_$ac_useropt=\$ac_optarg ;;
1029
1030   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1031   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1032   | --exec | --exe | --ex)
1033     ac_prev=exec_prefix ;;
1034   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1035   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1036   | --exec=* | --exe=* | --ex=*)
1037     exec_prefix=$ac_optarg ;;
1038
1039   -gas | --gas | --ga | --g)
1040     # Obsolete; use --with-gas.
1041     with_gas=yes ;;
1042
1043   -help | --help | --hel | --he | -h)
1044     ac_init_help=long ;;
1045   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1046     ac_init_help=recursive ;;
1047   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1048     ac_init_help=short ;;
1049
1050   -host | --host | --hos | --ho)
1051     ac_prev=host_alias ;;
1052   -host=* | --host=* | --hos=* | --ho=*)
1053     host_alias=$ac_optarg ;;
1054
1055   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1056     ac_prev=htmldir ;;
1057   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1058   | --ht=*)
1059     htmldir=$ac_optarg ;;
1060
1061   -includedir | --includedir | --includedi | --included | --include \
1062   | --includ | --inclu | --incl | --inc)
1063     ac_prev=includedir ;;
1064   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1065   | --includ=* | --inclu=* | --incl=* | --inc=*)
1066     includedir=$ac_optarg ;;
1067
1068   -infodir | --infodir | --infodi | --infod | --info | --inf)
1069     ac_prev=infodir ;;
1070   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1071     infodir=$ac_optarg ;;
1072
1073   -libdir | --libdir | --libdi | --libd)
1074     ac_prev=libdir ;;
1075   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1076     libdir=$ac_optarg ;;
1077
1078   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1079   | --libexe | --libex | --libe)
1080     ac_prev=libexecdir ;;
1081   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1082   | --libexe=* | --libex=* | --libe=*)
1083     libexecdir=$ac_optarg ;;
1084
1085   -localedir | --localedir | --localedi | --localed | --locale)
1086     ac_prev=localedir ;;
1087   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1088     localedir=$ac_optarg ;;
1089
1090   -localstatedir | --localstatedir | --localstatedi | --localstated \
1091   | --localstate | --localstat | --localsta | --localst | --locals)
1092     ac_prev=localstatedir ;;
1093   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1094   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1095     localstatedir=$ac_optarg ;;
1096
1097   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1098     ac_prev=mandir ;;
1099   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1100     mandir=$ac_optarg ;;
1101
1102   -nfp | --nfp | --nf)
1103     # Obsolete; use --without-fp.
1104     with_fp=no ;;
1105
1106   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1107   | --no-cr | --no-c | -n)
1108     no_create=yes ;;
1109
1110   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1111   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1112     no_recursion=yes ;;
1113
1114   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1115   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1116   | --oldin | --oldi | --old | --ol | --o)
1117     ac_prev=oldincludedir ;;
1118   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1119   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1120   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1121     oldincludedir=$ac_optarg ;;
1122
1123   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1124     ac_prev=prefix ;;
1125   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1126     prefix=$ac_optarg ;;
1127
1128   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1129   | --program-pre | --program-pr | --program-p)
1130     ac_prev=program_prefix ;;
1131   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1132   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1133     program_prefix=$ac_optarg ;;
1134
1135   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1136   | --program-suf | --program-su | --program-s)
1137     ac_prev=program_suffix ;;
1138   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1139   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1140     program_suffix=$ac_optarg ;;
1141
1142   -program-transform-name | --program-transform-name \
1143   | --program-transform-nam | --program-transform-na \
1144   | --program-transform-n | --program-transform- \
1145   | --program-transform | --program-transfor \
1146   | --program-transfo | --program-transf \
1147   | --program-trans | --program-tran \
1148   | --progr-tra | --program-tr | --program-t)
1149     ac_prev=program_transform_name ;;
1150   -program-transform-name=* | --program-transform-name=* \
1151   | --program-transform-nam=* | --program-transform-na=* \
1152   | --program-transform-n=* | --program-transform-=* \
1153   | --program-transform=* | --program-transfor=* \
1154   | --program-transfo=* | --program-transf=* \
1155   | --program-trans=* | --program-tran=* \
1156   | --progr-tra=* | --program-tr=* | --program-t=*)
1157     program_transform_name=$ac_optarg ;;
1158
1159   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1160     ac_prev=pdfdir ;;
1161   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1162     pdfdir=$ac_optarg ;;
1163
1164   -psdir | --psdir | --psdi | --psd | --ps)
1165     ac_prev=psdir ;;
1166   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1167     psdir=$ac_optarg ;;
1168
1169   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1170   | -silent | --silent | --silen | --sile | --sil)
1171     silent=yes ;;
1172
1173   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1174     ac_prev=sbindir ;;
1175   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1176   | --sbi=* | --sb=*)
1177     sbindir=$ac_optarg ;;
1178
1179   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1180   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1181   | --sharedst | --shareds | --shared | --share | --shar \
1182   | --sha | --sh)
1183     ac_prev=sharedstatedir ;;
1184   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1185   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1186   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1187   | --sha=* | --sh=*)
1188     sharedstatedir=$ac_optarg ;;
1189
1190   -site | --site | --sit)
1191     ac_prev=site ;;
1192   -site=* | --site=* | --sit=*)
1193     site=$ac_optarg ;;
1194
1195   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1196     ac_prev=srcdir ;;
1197   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1198     srcdir=$ac_optarg ;;
1199
1200   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1201   | --syscon | --sysco | --sysc | --sys | --sy)
1202     ac_prev=sysconfdir ;;
1203   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1204   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1205     sysconfdir=$ac_optarg ;;
1206
1207   -target | --target | --targe | --targ | --tar | --ta | --t)
1208     ac_prev=target_alias ;;
1209   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1210     target_alias=$ac_optarg ;;
1211
1212   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1213     verbose=yes ;;
1214
1215   -version | --version | --versio | --versi | --vers | -V)
1216     ac_init_version=: ;;
1217
1218   -with-* | --with-*)
1219     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1220     # Reject names that are not valid shell variable names.
1221     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222       as_fn_error $? "invalid package name: $ac_useropt"
1223     ac_useropt_orig=$ac_useropt
1224     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225     case $ac_user_opts in
1226       *"
1227 "with_$ac_useropt"
1228 "*) ;;
1229       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1230          ac_unrecognized_sep=', ';;
1231     esac
1232     eval with_$ac_useropt=\$ac_optarg ;;
1233
1234   -without-* | --without-*)
1235     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1236     # Reject names that are not valid shell variable names.
1237     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238       as_fn_error $? "invalid package name: $ac_useropt"
1239     ac_useropt_orig=$ac_useropt
1240     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241     case $ac_user_opts in
1242       *"
1243 "with_$ac_useropt"
1244 "*) ;;
1245       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1246          ac_unrecognized_sep=', ';;
1247     esac
1248     eval with_$ac_useropt=no ;;
1249
1250   --x)
1251     # Obsolete; use --with-x.
1252     with_x=yes ;;
1253
1254   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1255   | --x-incl | --x-inc | --x-in | --x-i)
1256     ac_prev=x_includes ;;
1257   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1258   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1259     x_includes=$ac_optarg ;;
1260
1261   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1262   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1263     ac_prev=x_libraries ;;
1264   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1265   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1266     x_libraries=$ac_optarg ;;
1267
1268   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1269 Try \`$0 --help' for more information"
1270     ;;
1271
1272   *=*)
1273     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1274     # Reject names that are not valid shell variable names.
1275     case $ac_envvar in #(
1276       '' | [0-9]* | *[!_$as_cr_alnum]* )
1277       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1278     esac
1279     eval $ac_envvar=\$ac_optarg
1280     export $ac_envvar ;;
1281
1282   *)
1283     # FIXME: should be removed in autoconf 3.0.
1284     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1285     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1286       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1287     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288     ;;
1289
1290   esac
1291 done
1292
1293 if test -n "$ac_prev"; then
1294   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1295   as_fn_error $? "missing argument to $ac_option"
1296 fi
1297
1298 if test -n "$ac_unrecognized_opts"; then
1299   case $enable_option_checking in
1300     no) ;;
1301     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1302     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1303   esac
1304 fi
1305
1306 # Check all directory arguments for consistency.
1307 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1308                 datadir sysconfdir sharedstatedir localstatedir includedir \
1309                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1310                 libdir localedir mandir
1311 do
1312   eval ac_val=\$$ac_var
1313   # Remove trailing slashes.
1314   case $ac_val in
1315     */ )
1316       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1317       eval $ac_var=\$ac_val;;
1318   esac
1319   # Be sure to have absolute directory names.
1320   case $ac_val in
1321     [\\/$]* | ?:[\\/]* )  continue;;
1322     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1323   esac
1324   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1325 done
1326
1327 # There might be people who depend on the old broken behavior: `$host'
1328 # used to hold the argument of --host etc.
1329 # FIXME: To remove some day.
1330 build=$build_alias
1331 host=$host_alias
1332 target=$target_alias
1333
1334 # FIXME: To remove some day.
1335 if test "x$host_alias" != x; then
1336   if test "x$build_alias" = x; then
1337     cross_compiling=maybe
1338   elif test "x$build_alias" != "x$host_alias"; then
1339     cross_compiling=yes
1340   fi
1341 fi
1342
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1345
1346 test "$silent" = yes && exec 6>/dev/null
1347
1348
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352   as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354   as_fn_error $? "pwd does not report name of working directory"
1355
1356
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359   ac_srcdir_defaulted=yes
1360   # Try the directory containing this script, then the parent directory.
1361   ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363          X"$as_myself" : 'X\(//\)[^/]' \| \
1364          X"$as_myself" : 'X\(//\)$' \| \
1365          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\/\)[^/].*/{
1372             s//\1/
1373             q
1374           }
1375           /^X\(\/\/\)$/{
1376             s//\1/
1377             q
1378           }
1379           /^X\(\/\).*/{
1380             s//\1/
1381             q
1382           }
1383           s/.*/./; q'`
1384   srcdir=$ac_confdir
1385   if test ! -r "$srcdir/$ac_unique_file"; then
1386     srcdir=..
1387   fi
1388 else
1389   ac_srcdir_defaulted=no
1390 fi
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398         pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401   srcdir=.
1402 fi
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_env_${ac_var}_value=\$${ac_var}
1412   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1415
1416 #
1417 # Report the --help message.
1418 #
1419 if test "$ac_init_help" = "long"; then
1420   # Omit some internal or obsolete options to make the list less imposing.
1421   # This message is too long to be a string in the A/UX 3.1 sh.
1422   cat <<_ACEOF
1423 \`configure' configures libffi 3.0.14-rc0 to adapt to many kinds of systems.
1424
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1426
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE.  See below for descriptions of some of the useful variables.
1429
1430 Defaults for the options are specified in brackets.
1431
1432 Configuration:
1433   -h, --help              display this help and exit
1434       --help=short        display options specific to this package
1435       --help=recursive    display the short help of all the included packages
1436   -V, --version           display version information and exit
1437   -q, --quiet, --silent   do not print \`checking ...' messages
1438       --cache-file=FILE   cache test results in FILE [disabled]
1439   -C, --config-cache      alias for \`--cache-file=config.cache'
1440   -n, --no-create         do not create output files
1441       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1442
1443 Installation directories:
1444   --prefix=PREFIX         install architecture-independent files in PREFIX
1445                           [$ac_default_prefix]
1446   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1447                           [PREFIX]
1448
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1453
1454 For better control, use the options below.
1455
1456 Fine tuning of the installation directories:
1457   --bindir=DIR            user executables [EPREFIX/bin]
1458   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1459   --libexecdir=DIR        program executables [EPREFIX/libexec]
1460   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1461   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1462   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1463   --libdir=DIR            object code libraries [EPREFIX/lib]
1464   --includedir=DIR        C header files [PREFIX/include]
1465   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1466   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1467   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1468   --infodir=DIR           info documentation [DATAROOTDIR/info]
1469   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1470   --mandir=DIR            man documentation [DATAROOTDIR/man]
1471   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1472   --htmldir=DIR           html documentation [DOCDIR]
1473   --dvidir=DIR            dvi documentation [DOCDIR]
1474   --pdfdir=DIR            pdf documentation [DOCDIR]
1475   --psdir=DIR             ps documentation [DOCDIR]
1476 _ACEOF
1477
1478   cat <<\_ACEOF
1479
1480 Program names:
1481   --program-prefix=PREFIX            prepend PREFIX to installed program names
1482   --program-suffix=SUFFIX            append SUFFIX to installed program names
1483   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1484
1485 System types:
1486   --build=BUILD     configure for building on BUILD [guessed]
1487   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1488   --target=TARGET   configure for building compilers for TARGET [HOST]
1489 _ACEOF
1490 fi
1491
1492 if test -n "$ac_init_help"; then
1493   case $ac_init_help in
1494      short | recursive ) echo "Configuration of libffi 3.0.14-rc0:";;
1495    esac
1496   cat <<\_ACEOF
1497
1498 Optional Features:
1499   --disable-option-checking  ignore unrecognized --enable/--with options
1500   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1501   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1502   --disable-builddir      disable automatic build in subdir of sources
1503
1504   --enable-silent-rules   less verbose build output (undo: "make V=1")
1505   --disable-silent-rules  verbose build output (undo: "make V=0")
1506   --enable-dependency-tracking
1507                           do not reject slow dependency extractors
1508   --disable-dependency-tracking
1509                           speeds up one-time build
1510   --enable-shared[=PKGS]  build shared libraries [default=yes]
1511   --enable-static[=PKGS]  build static libraries [default=yes]
1512   --enable-fast-install[=PKGS]
1513                           optimize for fast installation [default=yes]
1514   --disable-libtool-lock  avoid locking (might break parallel builds)
1515   --enable-portable-binary
1516                           disable compiler optimizations that would produce
1517                           unportable binaries
1518   --enable-maintainer-mode
1519                           enable make rules and dependencies not useful (and
1520                           sometimes confusing) to the casual installer
1521   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1522   --enable-debug          debugging mode
1523   --disable-structs       omit code for struct support
1524   --disable-raw-api       make the raw api unavailable
1525   --enable-purify-safety  purify-safe mode
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-sysroot=DIR Search for dependent libraries within DIR
1534                         (or the compiler's sysroot if not specified).
1535   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1536                           instead of guessing
1537
1538 Some influential environment variables:
1539   CC          C compiler command
1540   CFLAGS      C compiler flags
1541   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1542               nonstandard directory <lib dir>
1543   LIBS        libraries to pass to the linker, e.g. -l<library>
1544   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545               you have headers in a nonstandard directory <include dir>
1546   CCAS        assembler compiler command (defaults to CC)
1547   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1548   CPP         C preprocessor
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to <http://github.com/atgreen/libffi/issues>.
1554 _ACEOF
1555 ac_status=$?
1556 fi
1557
1558 if test "$ac_init_help" = "recursive"; then
1559   # If there are subdirs, report their specific --help.
1560   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1561     test -d "$ac_dir" ||
1562       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1563       continue
1564     ac_builddir=.
1565
1566 case "$ac_dir" in
1567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1568 *)
1569   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1570   # A ".." for each directory in $ac_dir_suffix.
1571   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1572   case $ac_top_builddir_sub in
1573   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1574   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575   esac ;;
1576 esac
1577 ac_abs_top_builddir=$ac_pwd
1578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1579 # for backward compatibility:
1580 ac_top_builddir=$ac_top_build_prefix
1581
1582 case $srcdir in
1583   .)  # We are building in place.
1584     ac_srcdir=.
1585     ac_top_srcdir=$ac_top_builddir_sub
1586     ac_abs_top_srcdir=$ac_pwd ;;
1587   [\\/]* | ?:[\\/]* )  # Absolute name.
1588     ac_srcdir=$srcdir$ac_dir_suffix;
1589     ac_top_srcdir=$srcdir
1590     ac_abs_top_srcdir=$srcdir ;;
1591   *) # Relative name.
1592     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1593     ac_top_srcdir=$ac_top_build_prefix$srcdir
1594     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1595 esac
1596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1597
1598     cd "$ac_dir" || { ac_status=$?; continue; }
1599     # Check for guested configure.
1600     if test -f "$ac_srcdir/configure.gnu"; then
1601       echo &&
1602       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1603     elif test -f "$ac_srcdir/configure"; then
1604       echo &&
1605       $SHELL "$ac_srcdir/configure" --help=recursive
1606     else
1607       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1608     fi || ac_status=$?
1609     cd "$ac_pwd" || { ac_status=$?; break; }
1610   done
1611 fi
1612
1613 test -n "$ac_init_help" && exit $ac_status
1614 if $ac_init_version; then
1615   cat <<\_ACEOF
1616 libffi configure 3.0.14-rc0
1617 generated by GNU Autoconf 2.69
1618
1619 Copyright (C) 2012 Free Software Foundation, Inc.
1620 This configure script is free software; the Free Software Foundation
1621 gives unlimited permission to copy, distribute and modify it.
1622 _ACEOF
1623   exit
1624 fi
1625
1626 ## ------------------------ ##
1627 ## Autoconf initialization. ##
1628 ## ------------------------ ##
1629
1630 # ac_fn_c_try_compile LINENO
1631 # --------------------------
1632 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_compile ()
1634 {
1635   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636   rm -f conftest.$ac_objext
1637   if { { ac_try="$ac_compile"
1638 case "(($ac_try" in
1639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640   *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644   (eval "$ac_compile") 2>conftest.err
1645   ac_status=$?
1646   if test -s conftest.err; then
1647     grep -v '^ *+' conftest.err >conftest.er1
1648     cat conftest.er1 >&5
1649     mv -f conftest.er1 conftest.err
1650   fi
1651   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652   test $ac_status = 0; } && {
1653          test -z "$ac_c_werror_flag" ||
1654          test ! -s conftest.err
1655        } && test -s conftest.$ac_objext; then :
1656   ac_retval=0
1657 else
1658   $as_echo "$as_me: failed program was:" >&5
1659 sed 's/^/| /' conftest.$ac_ext >&5
1660
1661         ac_retval=1
1662 fi
1663   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664   as_fn_set_status $ac_retval
1665
1666 } # ac_fn_c_try_compile
1667
1668 # ac_fn_c_try_link LINENO
1669 # -----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 ac_fn_c_try_link ()
1672 {
1673   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674   rm -f conftest.$ac_objext conftest$ac_exeext
1675   if { { ac_try="$ac_link"
1676 case "(($ac_try" in
1677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678   *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682   (eval "$ac_link") 2>conftest.err
1683   ac_status=$?
1684   if test -s conftest.err; then
1685     grep -v '^ *+' conftest.err >conftest.er1
1686     cat conftest.er1 >&5
1687     mv -f conftest.er1 conftest.err
1688   fi
1689   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690   test $ac_status = 0; } && {
1691          test -z "$ac_c_werror_flag" ||
1692          test ! -s conftest.err
1693        } && test -s conftest$ac_exeext && {
1694          test "$cross_compiling" = yes ||
1695          test -x conftest$ac_exeext
1696        }; then :
1697   ac_retval=0
1698 else
1699   $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702         ac_retval=1
1703 fi
1704   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1705   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1706   # interfere with the next link command; also delete a directory that is
1707   # left behind by Apple's compiler.  We do this before executing the actions.
1708   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1710   as_fn_set_status $ac_retval
1711
1712 } # ac_fn_c_try_link
1713
1714 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1715 # -------------------------------------------------------
1716 # Tests whether HEADER exists and can be compiled using the include files in
1717 # INCLUDES, setting the cache variable VAR accordingly.
1718 ac_fn_c_check_header_compile ()
1719 {
1720   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724   $as_echo_n "(cached) " >&6
1725 else
1726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h.  */
1728 $4
1729 #include <$2>
1730 _ACEOF
1731 if ac_fn_c_try_compile "$LINENO"; then :
1732   eval "$3=yes"
1733 else
1734   eval "$3=no"
1735 fi
1736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 fi
1738 eval ac_res=\$$3
1739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742
1743 } # ac_fn_c_check_header_compile
1744
1745 # ac_fn_c_try_cpp LINENO
1746 # ----------------------
1747 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 ac_fn_c_try_cpp ()
1749 {
1750   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751   if { { ac_try="$ac_cpp conftest.$ac_ext"
1752 case "(($ac_try" in
1753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754   *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759   ac_status=$?
1760   if test -s conftest.err; then
1761     grep -v '^ *+' conftest.err >conftest.er1
1762     cat conftest.er1 >&5
1763     mv -f conftest.er1 conftest.err
1764   fi
1765   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766   test $ac_status = 0; } > conftest.i && {
1767          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1768          test ! -s conftest.err
1769        }; then :
1770   ac_retval=0
1771 else
1772   $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1774
1775     ac_retval=1
1776 fi
1777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1778   as_fn_set_status $ac_retval
1779
1780 } # ac_fn_c_try_cpp
1781
1782 # ac_fn_c_try_run LINENO
1783 # ----------------------
1784 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1785 # that executables *can* be run.
1786 ac_fn_c_try_run ()
1787 {
1788   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789   if { { ac_try="$ac_link"
1790 case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_link") 2>&5
1797   ac_status=$?
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1800   { { case "(($ac_try" in
1801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802   *) ac_try_echo=$ac_try;;
1803 esac
1804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805 $as_echo "$ac_try_echo"; } >&5
1806   (eval "$ac_try") 2>&5
1807   ac_status=$?
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; }; }; then :
1810   ac_retval=0
1811 else
1812   $as_echo "$as_me: program exited with status $ac_status" >&5
1813        $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1815
1816        ac_retval=$ac_status
1817 fi
1818   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1819   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820   as_fn_set_status $ac_retval
1821
1822 } # ac_fn_c_try_run
1823
1824 # ac_fn_c_check_func LINENO FUNC VAR
1825 # ----------------------------------
1826 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1827 ac_fn_c_check_func ()
1828 {
1829   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831 $as_echo_n "checking for $2... " >&6; }
1832 if eval \${$3+:} false; then :
1833   $as_echo_n "(cached) " >&6
1834 else
1835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h.  */
1837 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1838    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1839 #define $2 innocuous_$2
1840
1841 /* System header to define __stub macros and hopefully few prototypes,
1842     which can conflict with char $2 (); below.
1843     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1844     <limits.h> exists even on freestanding compilers.  */
1845
1846 #ifdef __STDC__
1847 # include <limits.h>
1848 #else
1849 # include <assert.h>
1850 #endif
1851
1852 #undef $2
1853
1854 /* Override any GCC internal prototype to avoid an error.
1855    Use char because int might match the return type of a GCC
1856    builtin and then its argument prototype would still apply.  */
1857 #ifdef __cplusplus
1858 extern "C"
1859 #endif
1860 char $2 ();
1861 /* The GNU C library defines this for functions which it implements
1862     to always fail with ENOSYS.  Some functions are actually named
1863     something starting with __ and the normal name is an alias.  */
1864 #if defined __stub_$2 || defined __stub___$2
1865 choke me
1866 #endif
1867
1868 int
1869 main ()
1870 {
1871 return $2 ();
1872   ;
1873   return 0;
1874 }
1875 _ACEOF
1876 if ac_fn_c_try_link "$LINENO"; then :
1877   eval "$3=yes"
1878 else
1879   eval "$3=no"
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext \
1882     conftest$ac_exeext conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888
1889 } # ac_fn_c_check_func
1890
1891 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1892 # --------------------------------------------
1893 # Tries to find the compile-time value of EXPR in a program that includes
1894 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1895 # computed
1896 ac_fn_c_compute_int ()
1897 {
1898   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899   if test "$cross_compiling" = yes; then
1900     # Depending upon the size, compute the lo and hi bounds.
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) >= 0)];
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_lo=0 ac_mid=0
1917   while :; do
1918     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h.  */
1920 $4
1921 int
1922 main ()
1923 {
1924 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1925 test_array [0] = 0;
1926 return test_array [0];
1927
1928   ;
1929   return 0;
1930 }
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933   ac_hi=$ac_mid; break
1934 else
1935   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1936                         if test $ac_lo -le $ac_mid; then
1937                           ac_lo= ac_hi=
1938                           break
1939                         fi
1940                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1941 fi
1942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1943   done
1944 else
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) < 0)];
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_hi=-1 ac_mid=-1
1961   while :; do
1962     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h.  */
1964 $4
1965 int
1966 main ()
1967 {
1968 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1969 test_array [0] = 0;
1970 return test_array [0];
1971
1972   ;
1973   return 0;
1974 }
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977   ac_lo=$ac_mid; break
1978 else
1979   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1980                         if test $ac_mid -le $ac_hi; then
1981                           ac_lo= ac_hi=
1982                           break
1983                         fi
1984                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987   done
1988 else
1989   ac_lo= ac_hi=
1990 fi
1991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 fi
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 # Binary search between lo and hi bounds.
1995 while test "x$ac_lo" != "x$ac_hi"; do
1996   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $4
2000 int
2001 main ()
2002 {
2003 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2004 test_array [0] = 0;
2005 return test_array [0];
2006
2007   ;
2008   return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"; then :
2012   ac_hi=$ac_mid
2013 else
2014   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2015 fi
2016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 done
2018 case $ac_lo in #((
2019 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2020 '') ac_retval=1 ;;
2021 esac
2022   else
2023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024 /* end confdefs.h.  */
2025 $4
2026 static long int longval () { return $2; }
2027 static unsigned long int ulongval () { return $2; }
2028 #include <stdio.h>
2029 #include <stdlib.h>
2030 int
2031 main ()
2032 {
2033
2034   FILE *f = fopen ("conftest.val", "w");
2035   if (! f)
2036     return 1;
2037   if (($2) < 0)
2038     {
2039       long int i = longval ();
2040       if (i != ($2))
2041         return 1;
2042       fprintf (f, "%ld", i);
2043     }
2044   else
2045     {
2046       unsigned long int i = ulongval ();
2047       if (i != ($2))
2048         return 1;
2049       fprintf (f, "%lu", i);
2050     }
2051   /* Do not output a trailing newline, as this causes \r\n confusion
2052      on some platforms.  */
2053   return ferror (f) || fclose (f) != 0;
2054
2055   ;
2056   return 0;
2057 }
2058 _ACEOF
2059 if ac_fn_c_try_run "$LINENO"; then :
2060   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2061 else
2062   ac_retval=1
2063 fi
2064 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2065   conftest.$ac_objext conftest.beam conftest.$ac_ext
2066 rm -f conftest.val
2067
2068   fi
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070   as_fn_set_status $ac_retval
2071
2072 } # ac_fn_c_compute_int
2073
2074 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2075 # -------------------------------------------------------
2076 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2077 # the include files in INCLUDES and setting the cache variable VAR
2078 # accordingly.
2079 ac_fn_c_check_header_mongrel ()
2080 {
2081   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2082   if eval \${$3+:} false; then :
2083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2084 $as_echo_n "checking for $2... " >&6; }
2085 if eval \${$3+:} false; then :
2086   $as_echo_n "(cached) " >&6
2087 fi
2088 eval ac_res=\$$3
2089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 else
2092   # Is the header compilable?
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2094 $as_echo_n "checking $2 usability... " >&6; }
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 $4
2098 #include <$2>
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_header_compiler=yes
2102 else
2103   ac_header_compiler=no
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2107 $as_echo "$ac_header_compiler" >&6; }
2108
2109 # Is the header present?
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2111 $as_echo_n "checking $2 presence... " >&6; }
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 #include <$2>
2115 _ACEOF
2116 if ac_fn_c_try_cpp "$LINENO"; then :
2117   ac_header_preproc=yes
2118 else
2119   ac_header_preproc=no
2120 fi
2121 rm -f conftest.err conftest.i conftest.$ac_ext
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2123 $as_echo "$ac_header_preproc" >&6; }
2124
2125 # So?  What about this header?
2126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2127   yes:no: )
2128     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2129 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2130     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132     ;;
2133   no:yes:* )
2134     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2135 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2137 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2139 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2140     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2141 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2143 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2144 ( $as_echo "## ------------------------------------------------------ ##
2145 ## Report this to http://github.com/atgreen/libffi/issues ##
2146 ## ------------------------------------------------------ ##"
2147      ) | sed "s/^/$as_me: WARNING:     /" >&2
2148     ;;
2149 esac
2150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2151 $as_echo_n "checking for $2... " >&6; }
2152 if eval \${$3+:} false; then :
2153   $as_echo_n "(cached) " >&6
2154 else
2155   eval "$3=\$ac_header_compiler"
2156 fi
2157 eval ac_res=\$$3
2158                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159 $as_echo "$ac_res" >&6; }
2160 fi
2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163 } # ac_fn_c_check_header_mongrel
2164
2165 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2166 # -------------------------------------------
2167 # Tests whether TYPE exists after having included INCLUDES, setting cache
2168 # variable VAR accordingly.
2169 ac_fn_c_check_type ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2173 $as_echo_n "checking for $2... " >&6; }
2174 if eval \${$3+:} false; then :
2175   $as_echo_n "(cached) " >&6
2176 else
2177   eval "$3=no"
2178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h.  */
2180 $4
2181 int
2182 main ()
2183 {
2184 if (sizeof ($2))
2185          return 0;
2186   ;
2187   return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h.  */
2193 $4
2194 int
2195 main ()
2196 {
2197 if (sizeof (($2)))
2198             return 0;
2199   ;
2200   return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204
2205 else
2206   eval "$3=yes"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$3
2213                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_type
2218 cat >config.log <<_ACEOF
2219 This file contains any messages produced by compilers while
2220 running configure, to aid debugging if configure makes a mistake.
2221
2222 It was created by libffi $as_me 3.0.14-rc0, which was
2223 generated by GNU Autoconf 2.69.  Invocation command line was
2224
2225   $ $0 $@
2226
2227 _ACEOF
2228 exec 5>>config.log
2229 {
2230 cat <<_ASUNAME
2231 ## --------- ##
2232 ## Platform. ##
2233 ## --------- ##
2234
2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2240
2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2243
2244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2251
2252 _ASUNAME
2253
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259     $as_echo "PATH: $as_dir"
2260   done
2261 IFS=$as_save_IFS
2262
2263 } >&5
2264
2265 cat >&5 <<_ACEOF
2266
2267
2268 ## ----------- ##
2269 ## Core tests. ##
2270 ## ----------- ##
2271
2272 _ACEOF
2273
2274
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2280 ac_configure_args=
2281 ac_configure_args0=
2282 ac_configure_args1=
2283 ac_must_keep_next=false
2284 for ac_pass in 1 2
2285 do
2286   for ac_arg
2287   do
2288     case $ac_arg in
2289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291     | -silent | --silent | --silen | --sile | --sil)
2292       continue ;;
2293     *\'*)
2294       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295     esac
2296     case $ac_pass in
2297     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2298     2)
2299       as_fn_append ac_configure_args1 " '$ac_arg'"
2300       if test $ac_must_keep_next = true; then
2301         ac_must_keep_next=false # Got value, back to normal.
2302       else
2303         case $ac_arg in
2304           *=* | --config-cache | -C | -disable-* | --disable-* \
2305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307           | -with-* | --with-* | -without-* | --without-* | --x)
2308             case "$ac_configure_args0 " in
2309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310             esac
2311             ;;
2312           -* ) ac_must_keep_next=true ;;
2313         esac
2314       fi
2315       as_fn_append ac_configure_args " '$ac_arg'"
2316       ;;
2317     esac
2318   done
2319 done
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2322
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log.  We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329   # Save into config.log some information that might help in debugging.
2330   {
2331     echo
2332
2333     $as_echo "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2336     echo
2337     # The following way of writing the cache mishandles newlines in values,
2338 (
2339   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340     eval ac_val=\$$ac_var
2341     case $ac_val in #(
2342     *${as_nl}*)
2343       case $ac_var in #(
2344       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346       esac
2347       case $ac_var in #(
2348       _ | IFS | as_nl) ;; #(
2349       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350       *) { eval $ac_var=; unset $ac_var;} ;;
2351       esac ;;
2352     esac
2353   done
2354   (set) 2>&1 |
2355     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356     *${as_nl}ac_space=\ *)
2357       sed -n \
2358         "s/'\''/'\''\\\\'\'''\''/g;
2359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360       ;; #(
2361     *)
2362       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363       ;;
2364     esac |
2365     sort
2366 )
2367     echo
2368
2369     $as_echo "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2372     echo
2373     for ac_var in $ac_subst_vars
2374     do
2375       eval ac_val=\$$ac_var
2376       case $ac_val in
2377       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378       esac
2379       $as_echo "$ac_var='\''$ac_val'\''"
2380     done | sort
2381     echo
2382
2383     if test -n "$ac_subst_files"; then
2384       $as_echo "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2387       echo
2388       for ac_var in $ac_subst_files
2389       do
2390         eval ac_val=\$$ac_var
2391         case $ac_val in
2392         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393         esac
2394         $as_echo "$ac_var='\''$ac_val'\''"
2395       done | sort
2396       echo
2397     fi
2398
2399     if test -s confdefs.h; then
2400       $as_echo "## ----------- ##
2401 ## confdefs.h. ##
2402 ## ----------- ##"
2403       echo
2404       cat confdefs.h
2405       echo
2406     fi
2407     test "$ac_signal" != 0 &&
2408       $as_echo "$as_me: caught signal $ac_signal"
2409     $as_echo "$as_me: exit $exit_status"
2410   } >&5
2411   rm -f core *.core core.conftest.* &&
2412     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413     exit $exit_status
2414 ' 0
2415 for ac_signal in 1 2 13 15; do
2416   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417 done
2418 ac_signal=0
2419
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2422
2423 $as_echo "/* confdefs.h */" > confdefs.h
2424
2425 # Predefined preprocessor variables.
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_NAME "$PACKAGE_NAME"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_STRING "$PACKAGE_STRING"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_URL "$PACKAGE_URL"
2449 _ACEOF
2450
2451
2452 # Let the site file select an alternate cache file if it wants to.
2453 # Prefer an explicitly selected file to automatically selected ones.
2454 ac_site_file1=NONE
2455 ac_site_file2=NONE
2456 if test -n "$CONFIG_SITE"; then
2457   # We do not want a PATH search for config.site.
2458   case $CONFIG_SITE in #((
2459     -*)  ac_site_file1=./$CONFIG_SITE;;
2460     */*) ac_site_file1=$CONFIG_SITE;;
2461     *)   ac_site_file1=./$CONFIG_SITE;;
2462   esac
2463 elif test "x$prefix" != xNONE; then
2464   ac_site_file1=$prefix/share/config.site
2465   ac_site_file2=$prefix/etc/config.site
2466 else
2467   ac_site_file1=$ac_default_prefix/share/config.site
2468   ac_site_file2=$ac_default_prefix/etc/config.site
2469 fi
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 do
2472   test "x$ac_site_file" = xNONE && continue
2473   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476     sed 's/^/| /' "$ac_site_file" >&5
2477     . "$ac_site_file" \
2478       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 as_fn_error $? "failed to load site script $ac_site_file
2481 See \`config.log' for more details" "$LINENO" 5; }
2482   fi
2483 done
2484
2485 if test -r "$cache_file"; then
2486   # Some versions of bash will fail to source /dev/null (special files
2487   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2488   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2491     case $cache_file in
2492       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493       *)                      . "./$cache_file";;
2494     esac
2495   fi
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499   >$cache_file
2500 fi
2501
2502 # Check that the precious variables saved in the cache have kept the same
2503 # value.
2504 ac_cache_corrupted=false
2505 for ac_var in $ac_precious_vars; do
2506   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507   eval ac_new_set=\$ac_env_${ac_var}_set
2508   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509   eval ac_new_val=\$ac_env_${ac_var}_value
2510   case $ac_old_set,$ac_new_set in
2511     set,)
2512       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514       ac_cache_corrupted=: ;;
2515     ,set)
2516       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518       ac_cache_corrupted=: ;;
2519     ,);;
2520     *)
2521       if test "x$ac_old_val" != "x$ac_new_val"; then
2522         # differences in whitespace do not lead to failure.
2523         ac_old_val_w=`echo x $ac_old_val`
2524         ac_new_val_w=`echo x $ac_new_val`
2525         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528           ac_cache_corrupted=:
2529         else
2530           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532           eval $ac_var=\$ac_old_val
2533         fi
2534         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2535 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2536         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2537 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2538       fi;;
2539   esac
2540   # Pass precious variables to config.status.
2541   if test "$ac_new_set" = set; then
2542     case $ac_new_val in
2543     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544     *) ac_arg=$ac_var=$ac_new_val ;;
2545     esac
2546     case " $ac_configure_args " in
2547       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2548       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549     esac
2550   fi
2551 done
2552 if $ac_cache_corrupted; then
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2558 fi
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570 ac_config_headers="$ac_config_headers fficonfig.h"
2571
2572
2573 ac_aux_dir=
2574 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2575   if test -f "$ac_dir/install-sh"; then
2576     ac_aux_dir=$ac_dir
2577     ac_install_sh="$ac_aux_dir/install-sh -c"
2578     break
2579   elif test -f "$ac_dir/install.sh"; then
2580     ac_aux_dir=$ac_dir
2581     ac_install_sh="$ac_aux_dir/install.sh -c"
2582     break
2583   elif test -f "$ac_dir/shtool"; then
2584     ac_aux_dir=$ac_dir
2585     ac_install_sh="$ac_aux_dir/shtool install -c"
2586     break
2587   fi
2588 done
2589 if test -z "$ac_aux_dir"; then
2590   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2591 fi
2592
2593 # These three variables are undocumented and unsupported,
2594 # and are intended to be withdrawn in a future Autoconf release.
2595 # They can cause serious problems if a builder's source tree is in a directory
2596 # whose full name contains unusual characters.
2597 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2598 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2599 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2600
2601
2602 # Make sure we can run config.sub.
2603 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2604   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2607 $as_echo_n "checking build system type... " >&6; }
2608 if ${ac_cv_build+:} false; then :
2609   $as_echo_n "(cached) " >&6
2610 else
2611   ac_build_alias=$build_alias
2612 test "x$ac_build_alias" = x &&
2613   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2614 test "x$ac_build_alias" = x &&
2615   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2617   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2618
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2621 $as_echo "$ac_cv_build" >&6; }
2622 case $ac_cv_build in
2623 *-*-*) ;;
2624 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2625 esac
2626 build=$ac_cv_build
2627 ac_save_IFS=$IFS; IFS='-'
2628 set x $ac_cv_build
2629 shift
2630 build_cpu=$1
2631 build_vendor=$2
2632 shift; shift
2633 # Remember, the first character of IFS is used to create $*,
2634 # except with old shells:
2635 build_os=$*
2636 IFS=$ac_save_IFS
2637 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2641 $as_echo_n "checking host system type... " >&6; }
2642 if ${ac_cv_host+:} false; then :
2643   $as_echo_n "(cached) " >&6
2644 else
2645   if test "x$host_alias" = x; then
2646   ac_cv_host=$ac_cv_build
2647 else
2648   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2650 fi
2651
2652 fi
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2654 $as_echo "$ac_cv_host" >&6; }
2655 case $ac_cv_host in
2656 *-*-*) ;;
2657 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2658 esac
2659 host=$ac_cv_host
2660 ac_save_IFS=$IFS; IFS='-'
2661 set x $ac_cv_host
2662 shift
2663 host_cpu=$1
2664 host_vendor=$2
2665 shift; shift
2666 # Remember, the first character of IFS is used to create $*,
2667 # except with old shells:
2668 host_os=$*
2669 IFS=$ac_save_IFS
2670 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2671
2672
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2674 $as_echo_n "checking target system type... " >&6; }
2675 if ${ac_cv_target+:} false; then :
2676   $as_echo_n "(cached) " >&6
2677 else
2678   if test "x$target_alias" = x; then
2679   ac_cv_target=$ac_cv_host
2680 else
2681   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2682     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2683 fi
2684
2685 fi
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2687 $as_echo "$ac_cv_target" >&6; }
2688 case $ac_cv_target in
2689 *-*-*) ;;
2690 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2691 esac
2692 target=$ac_cv_target
2693 ac_save_IFS=$IFS; IFS='-'
2694 set x $ac_cv_target
2695 shift
2696 target_cpu=$1
2697 target_vendor=$2
2698 shift; shift
2699 # Remember, the first character of IFS is used to create $*,
2700 # except with old shells:
2701 target_os=$*
2702 IFS=$ac_save_IFS
2703 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2704
2705
2706 # The aliases save the names the user supplied, while $host etc.
2707 # will get canonicalized.
2708 test -n "$target_alias" &&
2709   test "$program_prefix$program_suffix$program_transform_name" = \
2710     NONENONEs,x,x, &&
2711   program_prefix=${target_alias}-
2712
2713 target_alias=${target_alias-$host_alias}
2714
2715 . ${srcdir}/configure.host
2716
2717
2718    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2719    if test "${ac_configure_args+set}" != "set" ; then
2720       ac_configure_args=
2721       for ac_arg in ${1+"$@"}; do
2722          ac_configure_args="$ac_configure_args '$ac_arg'"
2723       done
2724    fi
2725
2726 # expand $ac_aux_dir to an absolute path
2727 am_aux_dir=`cd $ac_aux_dir && pwd`
2728
2729
2730 ax_enable_builddir="."
2731 # Check whether --enable-builddir was given.
2732 if test "${enable_builddir+set}" = set; then :
2733   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2734 else
2735   ax_enable_builddir="auto"
2736 fi
2737
2738 if test ".$ac_srcdir_defaulted" != ".no" ; then
2739 if test ".$srcdir" = ".." ; then
2740   if test -f config.status ; then
2741     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2742 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2743   else
2744     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2745     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2746     test ".$TARGET" = "." && TARGET="$target"
2747     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2748     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2749       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2750       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2751       cd $ax_enable_builddir
2752       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2753         rm conftest.tmp
2754         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2755 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2756       else
2757         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2758       fi
2759       srcdir=`echo "$ax_enable_builddir" |
2760               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2761       # going to restart from subdirectory location
2762       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2763       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2764       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2765       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2766       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2767 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2768       case "$0" in # restart
2769        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2770        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2771       esac ; exit $?
2772     fi
2773   fi
2774 fi fi
2775 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2776 # Extract the first word of "gsed sed", so it can be a program name with args.
2777 set dummy gsed sed; ac_word=$2
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2779 $as_echo_n "checking for $ac_word... " >&6; }
2780 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2781   $as_echo_n "(cached) " >&6
2782 else
2783   case $ax_enable_builddir_sed in
2784   [\\/]* | ?:[\\/]*)
2785   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2786   ;;
2787   *)
2788   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789 for as_dir in $PATH
2790 do
2791   IFS=$as_save_IFS
2792   test -z "$as_dir" && as_dir=.
2793     for ac_exec_ext in '' $ac_executable_extensions; do
2794   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2796     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797     break 2
2798   fi
2799 done
2800   done
2801 IFS=$as_save_IFS
2802
2803   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2804   ;;
2805 esac
2806 fi
2807 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2808 if test -n "$ax_enable_builddir_sed"; then
2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2810 $as_echo "$ax_enable_builddir_sed" >&6; }
2811 else
2812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2814 fi
2815
2816
2817 ax_enable_builddir_auxdir="$am_aux_dir"
2818 ac_config_commands="$ac_config_commands buildir"
2819
2820
2821 am__api_version='1.13'
2822
2823 # Find a good install program.  We prefer a C program (faster),
2824 # so one script is as good as another.  But avoid the broken or
2825 # incompatible versions:
2826 # SysV /etc/install, /usr/sbin/install
2827 # SunOS /usr/etc/install
2828 # IRIX /sbin/install
2829 # AIX /bin/install
2830 # AmigaOS /C/install, which installs bootblocks on floppy discs
2831 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2832 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2833 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2834 # OS/2's system install, which has a completely different semantic
2835 # ./install, which can be erroneously created by make from ./install.sh.
2836 # Reject install programs that cannot install multiple files.
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2838 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2839 if test -z "$INSTALL"; then
2840 if ${ac_cv_path_install+:} false; then :
2841   $as_echo_n "(cached) " >&6
2842 else
2843   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2844 for as_dir in $PATH
2845 do
2846   IFS=$as_save_IFS
2847   test -z "$as_dir" && as_dir=.
2848     # Account for people who put trailing slashes in PATH elements.
2849 case $as_dir/ in #((
2850   ./ | .// | /[cC]/* | \
2851   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2852   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2853   /usr/ucb/* ) ;;
2854   *)
2855     # OSF1 and SCO ODT 3.0 have their own names for install.
2856     # Don't use installbsd from OSF since it installs stuff as root
2857     # by default.
2858     for ac_prog in ginstall scoinst install; do
2859       for ac_exec_ext in '' $ac_executable_extensions; do
2860         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2861           if test $ac_prog = install &&
2862             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2863             # AIX install.  It has an incompatible calling convention.
2864             :
2865           elif test $ac_prog = install &&
2866             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2867             # program-specific install script used by HP pwplus--don't use.
2868             :
2869           else
2870             rm -rf conftest.one conftest.two conftest.dir
2871             echo one > conftest.one
2872             echo two > conftest.two
2873             mkdir conftest.dir
2874             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2875               test -s conftest.one && test -s conftest.two &&
2876               test -s conftest.dir/conftest.one &&
2877               test -s conftest.dir/conftest.two
2878             then
2879               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2880               break 3
2881             fi
2882           fi
2883         fi
2884       done
2885     done
2886     ;;
2887 esac
2888
2889   done
2890 IFS=$as_save_IFS
2891
2892 rm -rf conftest.one conftest.two conftest.dir
2893
2894 fi
2895   if test "${ac_cv_path_install+set}" = set; then
2896     INSTALL=$ac_cv_path_install
2897   else
2898     # As a last resort, use the slow shell script.  Don't cache a
2899     # value for INSTALL within a source directory, because that will
2900     # break other packages using the cache if that directory is
2901     # removed, or if the value is a relative name.
2902     INSTALL=$ac_install_sh
2903   fi
2904 fi
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2906 $as_echo "$INSTALL" >&6; }
2907
2908 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2909 # It thinks the first close brace ends the variable substitution.
2910 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2911
2912 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2913
2914 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2917 $as_echo_n "checking whether build environment is sane... " >&6; }
2918 # Reject unsafe characters in $srcdir or the absolute working directory
2919 # name.  Accept space and tab only in the latter.
2920 am_lf='
2921 '
2922 case `pwd` in
2923   *[\\\"\#\$\&\'\`$am_lf]*)
2924     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2925 esac
2926 case $srcdir in
2927   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2928     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2929 esac
2930
2931 # Do 'set' in a subshell so we don't clobber the current shell's
2932 # arguments.  Must try -L first in case configure is actually a
2933 # symlink; some systems play weird games with the mod time of symlinks
2934 # (eg FreeBSD returns the mod time of the symlink's containing
2935 # directory).
2936 if (
2937    am_has_slept=no
2938    for am_try in 1 2; do
2939      echo "timestamp, slept: $am_has_slept" > conftest.file
2940      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2941      if test "$*" = "X"; then
2942         # -L didn't work.
2943         set X `ls -t "$srcdir/configure" conftest.file`
2944      fi
2945      if test "$*" != "X $srcdir/configure conftest.file" \
2946         && test "$*" != "X conftest.file $srcdir/configure"; then
2947
2948         # If neither matched, then we have a broken ls.  This can happen
2949         # if, for instance, CONFIG_SHELL is bash and it inherits a
2950         # broken ls alias from the environment.  This has actually
2951         # happened.  Such a system could not be considered "sane".
2952         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2953   alias in your environment" "$LINENO" 5
2954      fi
2955      if test "$2" = conftest.file || test $am_try -eq 2; then
2956        break
2957      fi
2958      # Just in case.
2959      sleep 1
2960      am_has_slept=yes
2961    done
2962    test "$2" = conftest.file
2963    )
2964 then
2965    # Ok.
2966    :
2967 else
2968    as_fn_error $? "newly created file is older than distributed files!
2969 Check your system clock" "$LINENO" 5
2970 fi
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2972 $as_echo "yes" >&6; }
2973 # If we didn't sleep, we still need to ensure time stamps of config.status and
2974 # generated files are strictly newer.
2975 am_sleep_pid=
2976 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2977   ( sleep 1 ) &
2978   am_sleep_pid=$!
2979 fi
2980
2981 rm -f conftest.file
2982
2983 test "$program_prefix" != NONE &&
2984   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2985 # Use a double $ so make ignores it.
2986 test "$program_suffix" != NONE &&
2987   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2988 # Double any \ or $.
2989 # By default was `s,x,x', remove it if useless.
2990 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2991 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2992
2993 if test x"${MISSING+set}" != xset; then
2994   case $am_aux_dir in
2995   *\ * | *\     *)
2996     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2997   *)
2998     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2999   esac
3000 fi
3001 # Use eval to expand $SHELL
3002 if eval "$MISSING --is-lightweight"; then
3003   am_missing_run="$MISSING "
3004 else
3005   am_missing_run=
3006   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3007 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3008 fi
3009
3010 if test x"${install_sh}" != xset; then
3011   case $am_aux_dir in
3012   *\ * | *\     *)
3013     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3014   *)
3015     install_sh="\${SHELL} $am_aux_dir/install-sh"
3016   esac
3017 fi
3018
3019 # Installed binaries are usually stripped using 'strip' when the user
3020 # run "make install-strip".  However 'strip' might not be the right
3021 # tool to use in cross-compilation environments, therefore Automake
3022 # will honor the 'STRIP' environment variable to overrule this program.
3023 if test "$cross_compiling" != no; then
3024   if test -n "$ac_tool_prefix"; then
3025   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3026 set dummy ${ac_tool_prefix}strip; ac_word=$2
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3028 $as_echo_n "checking for $ac_word... " >&6; }
3029 if ${ac_cv_prog_STRIP+:} false; then :
3030   $as_echo_n "(cached) " >&6
3031 else
3032   if test -n "$STRIP"; then
3033   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3034 else
3035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040     for ac_exec_ext in '' $ac_executable_extensions; do
3041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3042     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044     break 2
3045   fi
3046 done
3047   done
3048 IFS=$as_save_IFS
3049
3050 fi
3051 fi
3052 STRIP=$ac_cv_prog_STRIP
3053 if test -n "$STRIP"; then
3054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3055 $as_echo "$STRIP" >&6; }
3056 else
3057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3059 fi
3060
3061
3062 fi
3063 if test -z "$ac_cv_prog_STRIP"; then
3064   ac_ct_STRIP=$STRIP
3065   # Extract the first word of "strip", so it can be a program name with args.
3066 set dummy strip; ac_word=$2
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3068 $as_echo_n "checking for $ac_word... " >&6; }
3069 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3070   $as_echo_n "(cached) " >&6
3071 else
3072   if test -n "$ac_ct_STRIP"; then
3073   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3074 else
3075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076 for as_dir in $PATH
3077 do
3078   IFS=$as_save_IFS
3079   test -z "$as_dir" && as_dir=.
3080     for ac_exec_ext in '' $ac_executable_extensions; do
3081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082     ac_cv_prog_ac_ct_STRIP="strip"
3083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3084     break 2
3085   fi
3086 done
3087   done
3088 IFS=$as_save_IFS
3089
3090 fi
3091 fi
3092 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3093 if test -n "$ac_ct_STRIP"; then
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3095 $as_echo "$ac_ct_STRIP" >&6; }
3096 else
3097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3098 $as_echo "no" >&6; }
3099 fi
3100
3101   if test "x$ac_ct_STRIP" = x; then
3102     STRIP=":"
3103   else
3104     case $cross_compiling:$ac_tool_warned in
3105 yes:)
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3108 ac_tool_warned=yes ;;
3109 esac
3110     STRIP=$ac_ct_STRIP
3111   fi
3112 else
3113   STRIP="$ac_cv_prog_STRIP"
3114 fi
3115
3116 fi
3117 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3118
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3120 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3121 if test -z "$MKDIR_P"; then
3122   if ${ac_cv_path_mkdir+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3127 do
3128   IFS=$as_save_IFS
3129   test -z "$as_dir" && as_dir=.
3130     for ac_prog in mkdir gmkdir; do
3131          for ac_exec_ext in '' $ac_executable_extensions; do
3132            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3133            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3134              'mkdir (GNU coreutils) '* | \
3135              'mkdir (coreutils) '* | \
3136              'mkdir (fileutils) '4.1*)
3137                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3138                break 3;;
3139            esac
3140          done
3141        done
3142   done
3143 IFS=$as_save_IFS
3144
3145 fi
3146
3147   test -d ./--version && rmdir ./--version
3148   if test "${ac_cv_path_mkdir+set}" = set; then
3149     MKDIR_P="$ac_cv_path_mkdir -p"
3150   else
3151     # As a last resort, use the slow shell script.  Don't cache a
3152     # value for MKDIR_P within a source directory, because that will
3153     # break other packages using the cache if that directory is
3154     # removed, or if the value is a relative name.
3155     MKDIR_P="$ac_install_sh -d"
3156   fi
3157 fi
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3159 $as_echo "$MKDIR_P" >&6; }
3160
3161 for ac_prog in gawk mawk nawk awk
3162 do
3163   # Extract the first word of "$ac_prog", so it can be a program name with args.
3164 set dummy $ac_prog; ac_word=$2
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3166 $as_echo_n "checking for $ac_word... " >&6; }
3167 if ${ac_cv_prog_AWK+:} false; then :
3168   $as_echo_n "(cached) " >&6
3169 else
3170   if test -n "$AWK"; then
3171   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3172 else
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3174 for as_dir in $PATH
3175 do
3176   IFS=$as_save_IFS
3177   test -z "$as_dir" && as_dir=.
3178     for ac_exec_ext in '' $ac_executable_extensions; do
3179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3180     ac_cv_prog_AWK="$ac_prog"
3181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3182     break 2
3183   fi
3184 done
3185   done
3186 IFS=$as_save_IFS
3187
3188 fi
3189 fi
3190 AWK=$ac_cv_prog_AWK
3191 if test -n "$AWK"; then
3192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3193 $as_echo "$AWK" >&6; }
3194 else
3195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3196 $as_echo "no" >&6; }
3197 fi
3198
3199
3200   test -n "$AWK" && break
3201 done
3202
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3204 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3205 set x ${MAKE-make}
3206 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3207 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3208   $as_echo_n "(cached) " >&6
3209 else
3210   cat >conftest.make <<\_ACEOF
3211 SHELL = /bin/sh
3212 all:
3213         @echo '@@@%%%=$(MAKE)=@@@%%%'
3214 _ACEOF
3215 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3216 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3217   *@@@%%%=?*=@@@%%%*)
3218     eval ac_cv_prog_make_${ac_make}_set=yes;;
3219   *)
3220     eval ac_cv_prog_make_${ac_make}_set=no;;
3221 esac
3222 rm -f conftest.make
3223 fi
3224 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3227   SET_MAKE=
3228 else
3229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231   SET_MAKE="MAKE=${MAKE-make}"
3232 fi
3233
3234 rm -rf .tst 2>/dev/null
3235 mkdir .tst 2>/dev/null
3236 if test -d .tst; then
3237   am__leading_dot=.
3238 else
3239   am__leading_dot=_
3240 fi
3241 rmdir .tst 2>/dev/null
3242
3243 # Check whether --enable-silent-rules was given.
3244 if test "${enable_silent_rules+set}" = set; then :
3245   enableval=$enable_silent_rules;
3246 fi
3247
3248 case $enable_silent_rules in # (((
3249   yes) AM_DEFAULT_VERBOSITY=0;;
3250    no) AM_DEFAULT_VERBOSITY=1;;
3251     *) AM_DEFAULT_VERBOSITY=1;;
3252 esac
3253 am_make=${MAKE-make}
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3255 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3256 if ${am_cv_make_support_nested_variables+:} false; then :
3257   $as_echo_n "(cached) " >&6
3258 else
3259   if $as_echo 'TRUE=$(BAR$(V))
3260 BAR0=false
3261 BAR1=true
3262 V=1
3263 am__doit:
3264         @$(TRUE)
3265 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3266   am_cv_make_support_nested_variables=yes
3267 else
3268   am_cv_make_support_nested_variables=no
3269 fi
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3272 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3273 if test $am_cv_make_support_nested_variables = yes; then
3274     AM_V='$(V)'
3275   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3276 else
3277   AM_V=$AM_DEFAULT_VERBOSITY
3278   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3279 fi
3280 AM_BACKSLASH='\'
3281
3282 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3283   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3284   # is not polluted with repeated "-I."
3285   am__isrc=' -I$(srcdir)'
3286   # test to see if srcdir already configured
3287   if test -f $srcdir/config.status; then
3288     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3289   fi
3290 fi
3291
3292 # test whether we have cygpath
3293 if test -z "$CYGPATH_W"; then
3294   if (cygpath --version) >/dev/null 2>/dev/null; then
3295     CYGPATH_W='cygpath -w'
3296   else
3297     CYGPATH_W=echo
3298   fi
3299 fi
3300
3301
3302 # Define the identity of the package.
3303  PACKAGE='libffi'
3304  VERSION='3.0.14-rc0'
3305
3306
3307 cat >>confdefs.h <<_ACEOF
3308 #define PACKAGE "$PACKAGE"
3309 _ACEOF
3310
3311
3312 cat >>confdefs.h <<_ACEOF
3313 #define VERSION "$VERSION"
3314 _ACEOF
3315
3316 # Some tools Automake needs.
3317
3318 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3319
3320
3321 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3322
3323
3324 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3325
3326
3327 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3328
3329
3330 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3331
3332 # For better backward compatibility.  To be removed once Automake 1.9.x
3333 # dies out for good.  For more background, see:
3334 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3335 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3336 mkdir_p='$(MKDIR_P)'
3337
3338 # We need awk for the "check" target.  The system "awk" is bad on
3339 # some platforms.
3340 # Always define AMTAR for backward compatibility.  Yes, it's still used
3341 # in the wild :-(  We should find a proper way to deprecate it ...
3342 AMTAR='$${TAR-tar}'
3343
3344
3345 # We'll loop over all known methods to create a tar archive until one works.
3346 _am_tools='gnutar  pax cpio none'
3347
3348 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3349
3350
3351
3352
3353
3354
3355
3356 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3357 # We must force CC to /not/ be precious variables; otherwise
3358 # the wrong, non-multilib-adjusted value will be used in multilibs.
3359 # As a side effect, we have to subst CFLAGS ourselves.
3360 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3361 # defaults of its own if none are provided.
3362
3363
3364
3365 save_CFLAGS=$CFLAGS
3366 ac_ext=c
3367 ac_cpp='$CPP $CPPFLAGS'
3368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3371 if test -n "$ac_tool_prefix"; then
3372   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3373 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 $as_echo_n "checking for $ac_word... " >&6; }
3376 if ${ac_cv_prog_CC+:} false; then :
3377   $as_echo_n "(cached) " >&6
3378 else
3379   if test -n "$CC"; then
3380   ac_cv_prog_CC="$CC" # Let the user override the test.
3381 else
3382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383 for as_dir in $PATH
3384 do
3385   IFS=$as_save_IFS
3386   test -z "$as_dir" && as_dir=.
3387     for ac_exec_ext in '' $ac_executable_extensions; do
3388   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3389     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3390     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391     break 2
3392   fi
3393 done
3394   done
3395 IFS=$as_save_IFS
3396
3397 fi
3398 fi
3399 CC=$ac_cv_prog_CC
3400 if test -n "$CC"; then
3401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 $as_echo "$CC" >&6; }
3403 else
3404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3406 fi
3407
3408
3409 fi
3410 if test -z "$ac_cv_prog_CC"; then
3411   ac_ct_CC=$CC
3412   # Extract the first word of "gcc", so it can be a program name with args.
3413 set dummy gcc; ac_word=$2
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3415 $as_echo_n "checking for $ac_word... " >&6; }
3416 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3417   $as_echo_n "(cached) " >&6
3418 else
3419   if test -n "$ac_ct_CC"; then
3420   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3421 else
3422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423 for as_dir in $PATH
3424 do
3425   IFS=$as_save_IFS
3426   test -z "$as_dir" && as_dir=.
3427     for ac_exec_ext in '' $ac_executable_extensions; do
3428   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429     ac_cv_prog_ac_ct_CC="gcc"
3430     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3431     break 2
3432   fi
3433 done
3434   done
3435 IFS=$as_save_IFS
3436
3437 fi
3438 fi
3439 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3440 if test -n "$ac_ct_CC"; then
3441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3442 $as_echo "$ac_ct_CC" >&6; }
3443 else
3444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3445 $as_echo "no" >&6; }
3446 fi
3447
3448   if test "x$ac_ct_CC" = x; then
3449     CC=""
3450   else
3451     case $cross_compiling:$ac_tool_warned in
3452 yes:)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3455 ac_tool_warned=yes ;;
3456 esac
3457     CC=$ac_ct_CC
3458   fi
3459 else
3460   CC="$ac_cv_prog_CC"
3461 fi
3462
3463 if test -z "$CC"; then
3464           if test -n "$ac_tool_prefix"; then
3465     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3466 set dummy ${ac_tool_prefix}cc; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_CC+:} false; then :
3470   $as_echo_n "(cached) " >&6
3471 else
3472   if test -n "$CC"; then
3473   ac_cv_prog_CC="$CC" # Let the user override the test.
3474 else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 for as_dir in $PATH
3477 do
3478   IFS=$as_save_IFS
3479   test -z "$as_dir" && as_dir=.
3480     for ac_exec_ext in '' $ac_executable_extensions; do
3481   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482     ac_cv_prog_CC="${ac_tool_prefix}cc"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490 fi
3491 fi
3492 CC=$ac_cv_prog_CC
3493 if test -n "$CC"; then
3494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3495 $as_echo "$CC" >&6; }
3496 else
3497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3499 fi
3500
3501
3502   fi
3503 fi
3504 if test -z "$CC"; then
3505   # Extract the first word of "cc", so it can be a program name with args.
3506 set dummy cc; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_CC+:} false; then :
3510   $as_echo_n "(cached) " >&6
3511 else
3512   if test -n "$CC"; then
3513   ac_cv_prog_CC="$CC" # Let the user override the test.
3514 else
3515   ac_prog_rejected=no
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519   IFS=$as_save_IFS
3520   test -z "$as_dir" && as_dir=.
3521     for ac_exec_ext in '' $ac_executable_extensions; do
3522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3524        ac_prog_rejected=yes
3525        continue
3526      fi
3527     ac_cv_prog_CC="cc"
3528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529     break 2
3530   fi
3531 done
3532   done
3533 IFS=$as_save_IFS
3534
3535 if test $ac_prog_rejected = yes; then
3536   # We found a bogon in the path, so make sure we never use it.
3537   set dummy $ac_cv_prog_CC
3538   shift
3539   if test $# != 0; then
3540     # We chose a different compiler from the bogus one.
3541     # However, it has the same basename, so the bogon will be chosen
3542     # first if we set CC to just the basename; use the full file name.
3543     shift
3544     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3545   fi
3546 fi
3547 fi
3548 fi
3549 CC=$ac_cv_prog_CC
3550 if test -n "$CC"; then
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3552 $as_echo "$CC" >&6; }
3553 else
3554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3555 $as_echo "no" >&6; }
3556 fi
3557
3558
3559 fi
3560 if test -z "$CC"; then
3561   if test -n "$ac_tool_prefix"; then
3562   for ac_prog in cl.exe
3563   do
3564     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3565 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3567 $as_echo_n "checking for $ac_word... " >&6; }
3568 if ${ac_cv_prog_CC+:} false; then :
3569   $as_echo_n "(cached) " >&6
3570 else
3571   if test -n "$CC"; then
3572   ac_cv_prog_CC="$CC" # Let the user override the test.
3573 else
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577   IFS=$as_save_IFS
3578   test -z "$as_dir" && as_dir=.
3579     for ac_exec_ext in '' $ac_executable_extensions; do
3580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3581     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583     break 2
3584   fi
3585 done
3586   done
3587 IFS=$as_save_IFS
3588
3589 fi
3590 fi
3591 CC=$ac_cv_prog_CC
3592 if test -n "$CC"; then
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3594 $as_echo "$CC" >&6; }
3595 else
3596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 fi
3599
3600
3601     test -n "$CC" && break
3602   done
3603 fi
3604 if test -z "$CC"; then
3605   ac_ct_CC=$CC
3606   for ac_prog in cl.exe
3607 do
3608   # Extract the first word of "$ac_prog", so it can be a program name with args.
3609 set dummy $ac_prog; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3613   $as_echo_n "(cached) " >&6
3614 else
3615   if test -n "$ac_ct_CC"; then
3616   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3617 else
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619 for as_dir in $PATH
3620 do
3621   IFS=$as_save_IFS
3622   test -z "$as_dir" && as_dir=.
3623     for ac_exec_ext in '' $ac_executable_extensions; do
3624   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3625     ac_cv_prog_ac_ct_CC="$ac_prog"
3626     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3627     break 2
3628   fi
3629 done
3630   done
3631 IFS=$as_save_IFS
3632
3633 fi
3634 fi
3635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3636 if test -n "$ac_ct_CC"; then
3637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3638 $as_echo "$ac_ct_CC" >&6; }
3639 else
3640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3642 fi
3643
3644
3645   test -n "$ac_ct_CC" && break
3646 done
3647
3648   if test "x$ac_ct_CC" = x; then
3649     CC=""
3650   else
3651     case $cross_compiling:$ac_tool_warned in
3652 yes:)
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655 ac_tool_warned=yes ;;
3656 esac
3657     CC=$ac_ct_CC
3658   fi
3659 fi
3660
3661 fi
3662
3663
3664 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error $? "no acceptable C compiler found in \$PATH
3667 See \`config.log' for more details" "$LINENO" 5; }
3668
3669 # Provide some information about the compiler.
3670 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3671 set X $ac_compile
3672 ac_compiler=$2
3673 for ac_option in --version -v -V -qversion; do
3674   { { ac_try="$ac_compiler $ac_option >&5"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3680 $as_echo "$ac_try_echo"; } >&5
3681   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3682   ac_status=$?
3683   if test -s conftest.err; then
3684     sed '10a\
3685 ... rest of stderr output deleted ...
3686          10q' conftest.err >conftest.er1
3687     cat conftest.er1 >&5
3688   fi
3689   rm -f conftest.er1 conftest.err
3690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691   test $ac_status = 0; }
3692 done
3693
3694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3695 /* end confdefs.h.  */
3696
3697 int
3698 main ()
3699 {
3700
3701   ;
3702   return 0;
3703 }
3704 _ACEOF
3705 ac_clean_files_save=$ac_clean_files
3706 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3707 # Try to create an executable without -o first, disregard a.out.
3708 # It will help us diagnose broken compilers, and finding out an intuition
3709 # of exeext.
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3711 $as_echo_n "checking whether the C compiler works... " >&6; }
3712 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3713
3714 # The possible output files:
3715 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3716
3717 ac_rmfiles=
3718 for ac_file in $ac_files
3719 do
3720   case $ac_file in
3721     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3722     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3723   esac
3724 done
3725 rm -f $ac_rmfiles
3726
3727 if { { ac_try="$ac_link_default"
3728 case "(($ac_try" in
3729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730   *) ac_try_echo=$ac_try;;
3731 esac
3732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3733 $as_echo "$ac_try_echo"; } >&5
3734   (eval "$ac_link_default") 2>&5
3735   ac_status=$?
3736   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3737   test $ac_status = 0; }; then :
3738   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3739 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3740 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3741 # so that the user can short-circuit this test for compilers unknown to
3742 # Autoconf.
3743 for ac_file in $ac_files ''
3744 do
3745   test -f "$ac_file" || continue
3746   case $ac_file in
3747     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3748         ;;
3749     [ab].out )
3750         # We found the default executable, but exeext='' is most
3751         # certainly right.
3752         break;;
3753     *.* )
3754         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3755         then :; else
3756            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757         fi
3758         # We set ac_cv_exeext here because the later test for it is not
3759         # safe: cross compilers may not add the suffix if given an `-o'
3760         # argument, so we may need to know it at that point already.
3761         # Even if this section looks crufty: it has the advantage of
3762         # actually working.
3763         break;;
3764     * )
3765         break;;
3766   esac
3767 done
3768 test "$ac_cv_exeext" = no && ac_cv_exeext=
3769
3770 else
3771   ac_file=''
3772 fi
3773 if test -z "$ac_file"; then :
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3780 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3781 as_fn_error 77 "C compiler cannot create executables
3782 See \`config.log' for more details" "$LINENO" 5; }
3783 else
3784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3785 $as_echo "yes" >&6; }
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3788 $as_echo_n "checking for C compiler default output file name... " >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3790 $as_echo "$ac_file" >&6; }
3791 ac_exeext=$ac_cv_exeext
3792
3793 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3794 ac_clean_files=$ac_clean_files_save
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3796 $as_echo_n "checking for suffix of executables... " >&6; }
3797 if { { ac_try="$ac_link"
3798 case "(($ac_try" in
3799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800   *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804   (eval "$ac_link") 2>&5
3805   ac_status=$?
3806   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807   test $ac_status = 0; }; then :
3808   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3809 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3810 # work properly (i.e., refer to `conftest.exe'), while it won't with
3811 # `rm'.
3812 for ac_file in conftest.exe conftest conftest.*; do
3813   test -f "$ac_file" || continue
3814   case $ac_file in
3815     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3816     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3817           break;;
3818     * ) break;;
3819   esac
3820 done
3821 else
3822   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3824 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3825 See \`config.log' for more details" "$LINENO" 5; }
3826 fi
3827 rm -f conftest conftest$ac_cv_exeext
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3829 $as_echo "$ac_cv_exeext" >&6; }
3830
3831 rm -f conftest.$ac_ext
3832 EXEEXT=$ac_cv_exeext
3833 ac_exeext=$EXEEXT
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836 #include <stdio.h>
3837 int
3838 main ()
3839 {
3840 FILE *f = fopen ("conftest.out", "w");
3841  return ferror (f) || fclose (f) != 0;
3842
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 ac_clean_files="$ac_clean_files conftest.out"
3848 # Check that the compiler produces executables we can run.  If not, either
3849 # the compiler is broken, or we cross compile.
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3851 $as_echo_n "checking whether we are cross compiling... " >&6; }
3852 if test "$cross_compiling" != yes; then
3853   { { ac_try="$ac_link"
3854 case "(($ac_try" in
3855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856   *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860   (eval "$ac_link") 2>&5
3861   ac_status=$?
3862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3863   test $ac_status = 0; }
3864   if { ac_try='./conftest$ac_cv_exeext'
3865   { { case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871   (eval "$ac_try") 2>&5
3872   ac_status=$?
3873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874   test $ac_status = 0; }; }; then
3875     cross_compiling=no
3876   else
3877     if test "$cross_compiling" = maybe; then
3878         cross_compiling=yes
3879     else
3880         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error $? "cannot run C compiled programs.
3883 If you meant to cross compile, use \`--host'.
3884 See \`config.log' for more details" "$LINENO" 5; }
3885     fi
3886   fi
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3889 $as_echo "$cross_compiling" >&6; }
3890
3891 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3892 ac_clean_files=$ac_clean_files_save
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3894 $as_echo_n "checking for suffix of object files... " >&6; }
3895 if ${ac_cv_objext+:} false; then :
3896   $as_echo_n "(cached) " >&6
3897 else
3898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3899 /* end confdefs.h.  */
3900
3901 int
3902 main ()
3903 {
3904
3905   ;
3906   return 0;
3907 }
3908 _ACEOF
3909 rm -f conftest.o conftest.obj
3910 if { { ac_try="$ac_compile"
3911 case "(($ac_try" in
3912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913   *) ac_try_echo=$ac_try;;
3914 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5
3917   (eval "$ac_compile") 2>&5
3918   ac_status=$?
3919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920   test $ac_status = 0; }; then :
3921   for ac_file in conftest.o conftest.obj conftest.*; do
3922   test -f "$ac_file" || continue;
3923   case $ac_file in
3924     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3925     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3926        break;;
3927   esac
3928 done
3929 else
3930   $as_echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935 as_fn_error $? "cannot compute suffix of object files: cannot compile
3936 See \`config.log' for more details" "$LINENO" 5; }
3937 fi
3938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3941 $as_echo "$ac_cv_objext" >&6; }
3942 OBJEXT=$ac_cv_objext
3943 ac_objext=$OBJEXT
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3945 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3946 if ${ac_cv_c_compiler_gnu+:} false; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h.  */
3951
3952 int
3953 main ()
3954 {
3955 #ifndef __GNUC__
3956        choke me
3957 #endif
3958
3959   ;
3960   return 0;
3961 }
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3964   ac_compiler_gnu=yes
3965 else
3966   ac_compiler_gnu=no
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3970
3971 fi
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3973 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3974 if test $ac_compiler_gnu = yes; then
3975   GCC=yes
3976 else
3977   GCC=
3978 fi
3979 ac_test_CFLAGS=${CFLAGS+set}
3980 ac_save_CFLAGS=$CFLAGS
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3982 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3983 if ${ac_cv_prog_cc_g+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   ac_save_c_werror_flag=$ac_c_werror_flag
3987    ac_c_werror_flag=yes
3988    ac_cv_prog_cc_g=no
3989    CFLAGS="-g"
3990    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h.  */
3992
3993 int
3994 main ()
3995 {
3996
3997   ;
3998   return 0;
3999 }
4000 _ACEOF
4001 if ac_fn_c_try_compile "$LINENO"; then :
4002   ac_cv_prog_cc_g=yes
4003 else
4004   CFLAGS=""
4005       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006 /* end confdefs.h.  */
4007
4008 int
4009 main ()
4010 {
4011
4012   ;
4013   return 0;
4014 }
4015 _ACEOF
4016 if ac_fn_c_try_compile "$LINENO"; then :
4017
4018 else
4019   ac_c_werror_flag=$ac_save_c_werror_flag
4020          CFLAGS="-g"
4021          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023
4024 int
4025 main ()
4026 {
4027
4028   ;
4029   return 0;
4030 }
4031 _ACEOF
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033   ac_cv_prog_cc_g=yes
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040    ac_c_werror_flag=$ac_save_c_werror_flag
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4043 $as_echo "$ac_cv_prog_cc_g" >&6; }
4044 if test "$ac_test_CFLAGS" = set; then
4045   CFLAGS=$ac_save_CFLAGS
4046 elif test $ac_cv_prog_cc_g = yes; then
4047   if test "$GCC" = yes; then
4048     CFLAGS="-g -O2"
4049   else
4050     CFLAGS="-g"
4051   fi
4052 else
4053   if test "$GCC" = yes; then
4054     CFLAGS="-O2"
4055   else
4056     CFLAGS=
4057   fi
4058 fi
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4060 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4061 if ${ac_cv_prog_cc_c89+:} false; then :
4062   $as_echo_n "(cached) " >&6
4063 else
4064   ac_cv_prog_cc_c89=no
4065 ac_save_CC=$CC
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h.  */
4068 #include <stdarg.h>
4069 #include <stdio.h>
4070 struct stat;
4071 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4072 struct buf { int x; };
4073 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4074 static char *e (p, i)
4075      char **p;
4076      int i;
4077 {
4078   return p[i];
4079 }
4080 static char *f (char * (*g) (char **, int), char **p, ...)
4081 {
4082   char *s;
4083   va_list v;
4084   va_start (v,p);
4085   s = g (p, va_arg (v,int));
4086   va_end (v);
4087   return s;
4088 }
4089
4090 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4091    function prototypes and stuff, but not '\xHH' hex character constants.
4092    These don't provoke an error unfortunately, instead are silently treated
4093    as 'x'.  The following induces an error, until -std is added to get
4094    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4095    array size at least.  It's necessary to write '\x00'==0 to get something
4096    that's true only with -std.  */
4097 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4098
4099 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4100    inside strings and character constants.  */
4101 #define FOO(x) 'x'
4102 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4103
4104 int test (int i, double x);
4105 struct s1 {int (*f) (int a);};
4106 struct s2 {int (*f) (double a);};
4107 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4108 int argc;
4109 char **argv;
4110 int
4111 main ()
4112 {
4113 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4114   ;
4115   return 0;
4116 }
4117 _ACEOF
4118 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4119         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4120 do
4121   CC="$ac_save_CC $ac_arg"
4122   if ac_fn_c_try_compile "$LINENO"; then :
4123   ac_cv_prog_cc_c89=$ac_arg
4124 fi
4125 rm -f core conftest.err conftest.$ac_objext
4126   test "x$ac_cv_prog_cc_c89" != "xno" && break
4127 done
4128 rm -f conftest.$ac_ext
4129 CC=$ac_save_CC
4130
4131 fi
4132 # AC_CACHE_VAL
4133 case "x$ac_cv_prog_cc_c89" in
4134   x)
4135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4136 $as_echo "none needed" >&6; } ;;
4137   xno)
4138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4139 $as_echo "unsupported" >&6; } ;;
4140   *)
4141     CC="$CC $ac_cv_prog_cc_c89"
4142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4143 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4144 esac
4145 if test "x$ac_cv_prog_cc_c89" != xno; then :
4146
4147 fi
4148
4149 ac_ext=c
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4154 DEPDIR="${am__leading_dot}deps"
4155
4156 ac_config_commands="$ac_config_commands depfiles"
4157
4158
4159 am_make=${MAKE-make}
4160 cat > confinc << 'END'
4161 am__doit:
4162         @echo this is the am__doit target
4163 .PHONY: am__doit
4164 END
4165 # If we don't find an include directive, just comment out the code.
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4167 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4168 am__include="#"
4169 am__quote=
4170 _am_result=none
4171 # First try GNU make style include.
4172 echo "include confinc" > confmf
4173 # Ignore all kinds of additional output from 'make'.
4174 case `$am_make -s -f confmf 2> /dev/null` in #(
4175 *the\ am__doit\ target*)
4176   am__include=include
4177   am__quote=
4178   _am_result=GNU
4179   ;;
4180 esac
4181 # Now try BSD make style include.
4182 if test "$am__include" = "#"; then
4183    echo '.include "confinc"' > confmf
4184    case `$am_make -s -f confmf 2> /dev/null` in #(
4185    *the\ am__doit\ target*)
4186      am__include=.include
4187      am__quote="\""
4188      _am_result=BSD
4189      ;;
4190    esac
4191 fi
4192
4193
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4195 $as_echo "$_am_result" >&6; }
4196 rm -f confinc confmf
4197
4198 # Check whether --enable-dependency-tracking was given.
4199 if test "${enable_dependency_tracking+set}" = set; then :
4200   enableval=$enable_dependency_tracking;
4201 fi
4202
4203 if test "x$enable_dependency_tracking" != xno; then
4204   am_depcomp="$ac_aux_dir/depcomp"
4205   AMDEPBACKSLASH='\'
4206   am__nodep='_no'
4207 fi
4208  if test "x$enable_dependency_tracking" != xno; then
4209   AMDEP_TRUE=
4210   AMDEP_FALSE='#'
4211 else
4212   AMDEP_TRUE='#'
4213   AMDEP_FALSE=
4214 fi
4215
4216
4217
4218 depcc="$CC"   am_compiler_list=
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4221 $as_echo_n "checking dependency style of $depcc... " >&6; }
4222 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4226   # We make a subdir and do the tests there.  Otherwise we can end up
4227   # making bogus files that we don't know about and never remove.  For
4228   # instance it was reported that on HP-UX the gcc test will end up
4229   # making a dummy file named 'D' -- because '-MD' means "put the output
4230   # in D".
4231   rm -rf conftest.dir
4232   mkdir conftest.dir
4233   # Copy depcomp to subdir because otherwise we won't find it if we're
4234   # using a relative directory.
4235   cp "$am_depcomp" conftest.dir
4236   cd conftest.dir
4237   # We will build objects and dependencies in a subdirectory because
4238   # it helps to detect inapplicable dependency modes.  For instance
4239   # both Tru64's cc and ICC support -MD to output dependencies as a
4240   # side effect of compilation, but ICC will put the dependencies in
4241   # the current directory while Tru64 will put them in the object
4242   # directory.
4243   mkdir sub
4244
4245   am_cv_CC_dependencies_compiler_type=none
4246   if test "$am_compiler_list" = ""; then
4247      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4248   fi
4249   am__universal=false
4250   case " $depcc " in #(
4251      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4252      esac
4253
4254   for depmode in $am_compiler_list; do
4255     # Setup a source with many dependencies, because some compilers
4256     # like to wrap large dependency lists on column 80 (with \), and
4257     # we should not choose a depcomp mode which is confused by this.
4258     #
4259     # We need to recreate these files for each test, as the compiler may
4260     # overwrite some of them when testing with obscure command lines.
4261     # This happens at least with the AIX C compiler.
4262     : > sub/conftest.c
4263     for i in 1 2 3 4 5 6; do
4264       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4265       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4266       # Solaris 10 /bin/sh.
4267       echo '/* dummy */' > sub/conftst$i.h
4268     done
4269     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4270
4271     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4272     # mode.  It turns out that the SunPro C++ compiler does not properly
4273     # handle '-M -o', and we need to detect this.  Also, some Intel
4274     # versions had trouble with output in subdirs.
4275     am__obj=sub/conftest.${OBJEXT-o}
4276     am__minus_obj="-o $am__obj"
4277     case $depmode in
4278     gcc)
4279       # This depmode causes a compiler race in universal mode.
4280       test "$am__universal" = false || continue
4281       ;;
4282     nosideeffect)
4283       # After this tag, mechanisms are not by side-effect, so they'll
4284       # only be used when explicitly requested.
4285       if test "x$enable_dependency_tracking" = xyes; then
4286         continue
4287       else
4288         break
4289       fi
4290       ;;
4291     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4292       # This compiler won't grok '-c -o', but also, the minuso test has
4293       # not run yet.  These depmodes are late enough in the game, and
4294       # so weak that their functioning should not be impacted.
4295       am__obj=conftest.${OBJEXT-o}
4296       am__minus_obj=
4297       ;;
4298     none) break ;;
4299     esac
4300     if depmode=$depmode \
4301        source=sub/conftest.c object=$am__obj \
4302        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4303        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4304          >/dev/null 2>conftest.err &&
4305        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4306        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4307        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4308        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4309       # icc doesn't choke on unknown options, it will just issue warnings
4310       # or remarks (even with -Werror).  So we grep stderr for any message
4311       # that says an option was ignored or not supported.
4312       # When given -MP, icc 7.0 and 7.1 complain thusly:
4313       #   icc: Command line warning: ignoring option '-M'; no argument required
4314       # The diagnosis changed in icc 8.0:
4315       #   icc: Command line remark: option '-MP' not supported
4316       if (grep 'ignoring option' conftest.err ||
4317           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4318         am_cv_CC_dependencies_compiler_type=$depmode
4319         break
4320       fi
4321     fi
4322   done
4323
4324   cd ..
4325   rm -rf conftest.dir
4326 else
4327   am_cv_CC_dependencies_compiler_type=none
4328 fi
4329
4330 fi
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4332 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4333 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4334
4335  if
4336   test "x$enable_dependency_tracking" != xno \
4337   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4338   am__fastdepCC_TRUE=
4339   am__fastdepCC_FALSE='#'
4340 else
4341   am__fastdepCC_TRUE='#'
4342   am__fastdepCC_FALSE=
4343 fi
4344
4345
4346 CFLAGS=$save_CFLAGS
4347
4348
4349
4350
4351
4352 # By default we simply use the C compiler to build assembly code.
4353
4354 test "${CCAS+set}" = set || CCAS=$CC
4355 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4356
4357
4358
4359 depcc="$CCAS"   am_compiler_list=
4360
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4362 $as_echo_n "checking dependency style of $depcc... " >&6; }
4363 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4364   $as_echo_n "(cached) " >&6
4365 else
4366   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4367   # We make a subdir and do the tests there.  Otherwise we can end up
4368   # making bogus files that we don't know about and never remove.  For
4369   # instance it was reported that on HP-UX the gcc test will end up
4370   # making a dummy file named 'D' -- because '-MD' means "put the output
4371   # in D".
4372   rm -rf conftest.dir
4373   mkdir conftest.dir
4374   # Copy depcomp to subdir because otherwise we won't find it if we're
4375   # using a relative directory.
4376   cp "$am_depcomp" conftest.dir
4377   cd conftest.dir
4378   # We will build objects and dependencies in a subdirectory because
4379   # it helps to detect inapplicable dependency modes.  For instance
4380   # both Tru64's cc and ICC support -MD to output dependencies as a
4381   # side effect of compilation, but ICC will put the dependencies in
4382   # the current directory while Tru64 will put them in the object
4383   # directory.
4384   mkdir sub
4385
4386   am_cv_CCAS_dependencies_compiler_type=none
4387   if test "$am_compiler_list" = ""; then
4388      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4389   fi
4390   am__universal=false
4391
4392
4393   for depmode in $am_compiler_list; do
4394     # Setup a source with many dependencies, because some compilers
4395     # like to wrap large dependency lists on column 80 (with \), and
4396     # we should not choose a depcomp mode which is confused by this.
4397     #
4398     # We need to recreate these files for each test, as the compiler may
4399     # overwrite some of them when testing with obscure command lines.
4400     # This happens at least with the AIX C compiler.
4401     : > sub/conftest.c
4402     for i in 1 2 3 4 5 6; do
4403       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4404       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4405       # Solaris 10 /bin/sh.
4406       echo '/* dummy */' > sub/conftst$i.h
4407     done
4408     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4409
4410     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4411     # mode.  It turns out that the SunPro C++ compiler does not properly
4412     # handle '-M -o', and we need to detect this.  Also, some Intel
4413     # versions had trouble with output in subdirs.
4414     am__obj=sub/conftest.${OBJEXT-o}
4415     am__minus_obj="-o $am__obj"
4416     case $depmode in
4417     gcc)
4418       # This depmode causes a compiler race in universal mode.
4419       test "$am__universal" = false || continue
4420       ;;
4421     nosideeffect)
4422       # After this tag, mechanisms are not by side-effect, so they'll
4423       # only be used when explicitly requested.
4424       if test "x$enable_dependency_tracking" = xyes; then
4425         continue
4426       else
4427         break
4428       fi
4429       ;;
4430     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4431       # This compiler won't grok '-c -o', but also, the minuso test has
4432       # not run yet.  These depmodes are late enough in the game, and
4433       # so weak that their functioning should not be impacted.
4434       am__obj=conftest.${OBJEXT-o}
4435       am__minus_obj=
4436       ;;
4437     none) break ;;
4438     esac
4439     if depmode=$depmode \
4440        source=sub/conftest.c object=$am__obj \
4441        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4442        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4443          >/dev/null 2>conftest.err &&
4444        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4445        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4446        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4447        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4448       # icc doesn't choke on unknown options, it will just issue warnings
4449       # or remarks (even with -Werror).  So we grep stderr for any message
4450       # that says an option was ignored or not supported.
4451       # When given -MP, icc 7.0 and 7.1 complain thusly:
4452       #   icc: Command line warning: ignoring option '-M'; no argument required
4453       # The diagnosis changed in icc 8.0:
4454       #   icc: Command line remark: option '-MP' not supported
4455       if (grep 'ignoring option' conftest.err ||
4456           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4457         am_cv_CCAS_dependencies_compiler_type=$depmode
4458         break
4459       fi
4460     fi
4461   done
4462
4463   cd ..
4464   rm -rf conftest.dir
4465 else
4466   am_cv_CCAS_dependencies_compiler_type=none
4467 fi
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4471 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4472 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4473
4474  if
4475   test "x$enable_dependency_tracking" != xno \
4476   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4477   am__fastdepCCAS_TRUE=
4478   am__fastdepCCAS_FALSE='#'
4479 else
4480   am__fastdepCCAS_TRUE='#'
4481   am__fastdepCCAS_FALSE=
4482 fi
4483
4484
4485 if test "x$CC" != xcc; then
4486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4487 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4488 else
4489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4490 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4491 fi
4492 set dummy $CC; ac_cc=`$as_echo "$2" |
4493                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4494 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4495   $as_echo_n "(cached) " >&6
4496 else
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499
4500 int
4501 main ()
4502 {
4503
4504   ;
4505   return 0;
4506 }
4507 _ACEOF
4508 # Make sure it works both with $CC and with simple cc.
4509 # We do the test twice because some compilers refuse to overwrite an
4510 # existing .o file with -o, though they will create one.
4511 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4512 rm -f conftest2.*
4513 if { { case "(($ac_try" in
4514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4515   *) ac_try_echo=$ac_try;;
4516 esac
4517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519   (eval "$ac_try") 2>&5
4520   ac_status=$?
4521   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522   test $ac_status = 0; } &&
4523    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525   *) ac_try_echo=$ac_try;;
4526 esac
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529   (eval "$ac_try") 2>&5
4530   ac_status=$?
4531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532   test $ac_status = 0; };
4533 then
4534   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4535   if test "x$CC" != xcc; then
4536     # Test first that cc exists at all.
4537     if { ac_try='cc -c conftest.$ac_ext >&5'
4538   { { case "(($ac_try" in
4539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4540   *) ac_try_echo=$ac_try;;
4541 esac
4542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4543 $as_echo "$ac_try_echo"; } >&5
4544   (eval "$ac_try") 2>&5
4545   ac_status=$?
4546   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4547   test $ac_status = 0; }; }; then
4548       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4549       rm -f conftest2.*
4550       if { { case "(($ac_try" in
4551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552   *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4555 $as_echo "$ac_try_echo"; } >&5
4556   (eval "$ac_try") 2>&5
4557   ac_status=$?
4558   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4559   test $ac_status = 0; } &&
4560          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562   *) ac_try_echo=$ac_try;;
4563 esac
4564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4565 $as_echo "$ac_try_echo"; } >&5
4566   (eval "$ac_try") 2>&5
4567   ac_status=$?
4568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569   test $ac_status = 0; };
4570       then
4571         # cc works too.
4572         :
4573       else
4574         # cc exists but doesn't like -o.
4575         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4576       fi
4577     fi
4578   fi
4579 else
4580   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4581 fi
4582 rm -f core conftest*
4583
4584 fi
4585 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4587 $as_echo "yes" >&6; }
4588 else
4589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4590 $as_echo "no" >&6; }
4591
4592 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4593
4594 fi
4595
4596 # FIXME: we rely on the cache variable name because
4597 # there is no other way.
4598 set dummy $CC
4599 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4600 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4601 if test "$am_t" != yes; then
4602    # Losing compiler, so override with the script.
4603    # FIXME: It is wrong to rewrite CC.
4604    # But if we don't then we get into trouble of one sort or another.
4605    # A longer-term fix would be to have automake use am__CC in this case,
4606    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4607    CC="$am_aux_dir/compile $CC"
4608 fi
4609
4610
4611 case `pwd` in
4612   *\ * | *\     *)
4613     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4614 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4615 esac
4616
4617
4618
4619 macro_version='2.4.2'
4620 macro_revision='1.3337'
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634 ltmain="$ac_aux_dir/ltmain.sh"
4635
4636 # Backslashify metacharacters that are still active within
4637 # double-quoted strings.
4638 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4639
4640 # Same as above, but do not quote variable references.
4641 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4642
4643 # Sed substitution to delay expansion of an escaped shell variable in a
4644 # double_quote_subst'ed string.
4645 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4646
4647 # Sed substitution to delay expansion of an escaped single quote.
4648 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4649
4650 # Sed substitution to avoid accidental globbing in evaled expressions
4651 no_glob_subst='s/\*/\\\*/g'
4652
4653 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4654 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4655 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4656
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4658 $as_echo_n "checking how to print strings... " >&6; }
4659 # Test print first, because it will be a builtin if present.
4660 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4661    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4662   ECHO='print -r --'
4663 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4664   ECHO='printf %s\n'
4665 else
4666   # Use this function as a fallback that always works.
4667   func_fallback_echo ()
4668   {
4669     eval 'cat <<_LTECHO_EOF
4670 $1
4671 _LTECHO_EOF'
4672   }
4673   ECHO='func_fallback_echo'
4674 fi
4675
4676 # func_echo_all arg...
4677 # Invoke $ECHO with all args, space-separated.
4678 func_echo_all ()
4679 {
4680     $ECHO ""
4681 }
4682
4683 case "$ECHO" in
4684   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4685 $as_echo "printf" >&6; } ;;
4686   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4687 $as_echo "print -r" >&6; } ;;
4688   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4689 $as_echo "cat" >&6; } ;;
4690 esac
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4706 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4707 if ${ac_cv_path_SED+:} false; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4711      for ac_i in 1 2 3 4 5 6 7; do
4712        ac_script="$ac_script$as_nl$ac_script"
4713      done
4714      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4715      { ac_script=; unset ac_script;}
4716      if test -z "$SED"; then
4717   ac_path_SED_found=false
4718   # Loop through the user's path and test for each of PROGNAME-LIST
4719   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH
4721 do
4722   IFS=$as_save_IFS
4723   test -z "$as_dir" && as_dir=.
4724     for ac_prog in sed gsed; do
4725     for ac_exec_ext in '' $ac_executable_extensions; do
4726       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4727       as_fn_executable_p "$ac_path_SED" || continue
4728 # Check for GNU ac_path_SED and select it if it is found.
4729   # Check for GNU $ac_path_SED
4730 case `"$ac_path_SED" --version 2>&1` in
4731 *GNU*)
4732   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4733 *)
4734   ac_count=0
4735   $as_echo_n 0123456789 >"conftest.in"
4736   while :
4737   do
4738     cat "conftest.in" "conftest.in" >"conftest.tmp"
4739     mv "conftest.tmp" "conftest.in"
4740     cp "conftest.in" "conftest.nl"
4741     $as_echo '' >> "conftest.nl"
4742     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4743     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4744     as_fn_arith $ac_count + 1 && ac_count=$as_val
4745     if test $ac_count -gt ${ac_path_SED_max-0}; then
4746       # Best one so far, save it but keep looking for a better one
4747       ac_cv_path_SED="$ac_path_SED"
4748       ac_path_SED_max=$ac_count
4749     fi
4750     # 10*(2^10) chars as input seems more than enough
4751     test $ac_count -gt 10 && break
4752   done
4753   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4754 esac
4755
4756       $ac_path_SED_found && break 3
4757     done
4758   done
4759   done
4760 IFS=$as_save_IFS
4761   if test -z "$ac_cv_path_SED"; then
4762     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4763   fi
4764 else
4765   ac_cv_path_SED=$SED
4766 fi
4767
4768 fi
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4770 $as_echo "$ac_cv_path_SED" >&6; }
4771  SED="$ac_cv_path_SED"
4772   rm -f conftest.sed
4773
4774 test -z "$SED" && SED=sed
4775 Xsed="$SED -e 1s/^X//"
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4788 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4789 if ${ac_cv_path_GREP+:} false; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if test -z "$GREP"; then
4793   ac_path_GREP_found=false
4794   # Loop through the user's path and test for each of PROGNAME-LIST
4795   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797 do
4798   IFS=$as_save_IFS
4799   test -z "$as_dir" && as_dir=.
4800     for ac_prog in grep ggrep; do
4801     for ac_exec_ext in '' $ac_executable_extensions; do
4802       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4803       as_fn_executable_p "$ac_path_GREP" || continue
4804 # Check for GNU ac_path_GREP and select it if it is found.
4805   # Check for GNU $ac_path_GREP
4806 case `"$ac_path_GREP" --version 2>&1` in
4807 *GNU*)
4808   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4809 *)
4810   ac_count=0
4811   $as_echo_n 0123456789 >"conftest.in"
4812   while :
4813   do
4814     cat "conftest.in" "conftest.in" >"conftest.tmp"
4815     mv "conftest.tmp" "conftest.in"
4816     cp "conftest.in" "conftest.nl"
4817     $as_echo 'GREP' >> "conftest.nl"
4818     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4819     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4820     as_fn_arith $ac_count + 1 && ac_count=$as_val
4821     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4822       # Best one so far, save it but keep looking for a better one
4823       ac_cv_path_GREP="$ac_path_GREP"
4824       ac_path_GREP_max=$ac_count
4825     fi
4826     # 10*(2^10) chars as input seems more than enough
4827     test $ac_count -gt 10 && break
4828   done
4829   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 esac
4831
4832       $ac_path_GREP_found && break 3
4833     done
4834   done
4835   done
4836 IFS=$as_save_IFS
4837   if test -z "$ac_cv_path_GREP"; then
4838     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839   fi
4840 else
4841   ac_cv_path_GREP=$GREP
4842 fi
4843
4844 fi
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4846 $as_echo "$ac_cv_path_GREP" >&6; }
4847  GREP="$ac_cv_path_GREP"
4848
4849
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4851 $as_echo_n "checking for egrep... " >&6; }
4852 if ${ac_cv_path_EGREP+:} false; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4856    then ac_cv_path_EGREP="$GREP -E"
4857    else
4858      if test -z "$EGREP"; then
4859   ac_path_EGREP_found=false
4860   # Loop through the user's path and test for each of PROGNAME-LIST
4861   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866     for ac_prog in egrep; do
4867     for ac_exec_ext in '' $ac_executable_extensions; do
4868       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4869       as_fn_executable_p "$ac_path_EGREP" || continue
4870 # Check for GNU ac_path_EGREP and select it if it is found.
4871   # Check for GNU $ac_path_EGREP
4872 case `"$ac_path_EGREP" --version 2>&1` in
4873 *GNU*)
4874   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4875 *)
4876   ac_count=0
4877   $as_echo_n 0123456789 >"conftest.in"
4878   while :
4879   do
4880     cat "conftest.in" "conftest.in" >"conftest.tmp"
4881     mv "conftest.tmp" "conftest.in"
4882     cp "conftest.in" "conftest.nl"
4883     $as_echo 'EGREP' >> "conftest.nl"
4884     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4885     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4886     as_fn_arith $ac_count + 1 && ac_count=$as_val
4887     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4888       # Best one so far, save it but keep looking for a better one
4889       ac_cv_path_EGREP="$ac_path_EGREP"
4890       ac_path_EGREP_max=$ac_count
4891     fi
4892     # 10*(2^10) chars as input seems more than enough
4893     test $ac_count -gt 10 && break
4894   done
4895   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4896 esac
4897
4898       $ac_path_EGREP_found && break 3
4899     done
4900   done
4901   done
4902 IFS=$as_save_IFS
4903   if test -z "$ac_cv_path_EGREP"; then
4904     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4905   fi
4906 else
4907   ac_cv_path_EGREP=$EGREP
4908 fi
4909
4910    fi
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4913 $as_echo "$ac_cv_path_EGREP" >&6; }
4914  EGREP="$ac_cv_path_EGREP"
4915
4916
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4918 $as_echo_n "checking for fgrep... " >&6; }
4919 if ${ac_cv_path_FGREP+:} false; then :
4920   $as_echo_n "(cached) " >&6
4921 else
4922   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4923    then ac_cv_path_FGREP="$GREP -F"
4924    else
4925      if test -z "$FGREP"; then
4926   ac_path_FGREP_found=false
4927   # Loop through the user's path and test for each of PROGNAME-LIST
4928   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 do
4931   IFS=$as_save_IFS
4932   test -z "$as_dir" && as_dir=.
4933     for ac_prog in fgrep; do
4934     for ac_exec_ext in '' $ac_executable_extensions; do
4935       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4936       as_fn_executable_p "$ac_path_FGREP" || continue
4937 # Check for GNU ac_path_FGREP and select it if it is found.
4938   # Check for GNU $ac_path_FGREP
4939 case `"$ac_path_FGREP" --version 2>&1` in
4940 *GNU*)
4941   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4942 *)
4943   ac_count=0
4944   $as_echo_n 0123456789 >"conftest.in"
4945   while :
4946   do
4947     cat "conftest.in" "conftest.in" >"conftest.tmp"
4948     mv "conftest.tmp" "conftest.in"
4949     cp "conftest.in" "conftest.nl"
4950     $as_echo 'FGREP' >> "conftest.nl"
4951     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4952     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4953     as_fn_arith $ac_count + 1 && ac_count=$as_val
4954     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4955       # Best one so far, save it but keep looking for a better one
4956       ac_cv_path_FGREP="$ac_path_FGREP"
4957       ac_path_FGREP_max=$ac_count
4958     fi
4959     # 10*(2^10) chars as input seems more than enough
4960     test $ac_count -gt 10 && break
4961   done
4962   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4963 esac
4964
4965       $ac_path_FGREP_found && break 3
4966     done
4967   done
4968   done
4969 IFS=$as_save_IFS
4970   if test -z "$ac_cv_path_FGREP"; then
4971     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4972   fi
4973 else
4974   ac_cv_path_FGREP=$FGREP
4975 fi
4976
4977    fi
4978 fi
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4980 $as_echo "$ac_cv_path_FGREP" >&6; }
4981  FGREP="$ac_cv_path_FGREP"
4982
4983
4984 test -z "$GREP" && GREP=grep
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004 # Check whether --with-gnu-ld was given.
5005 if test "${with_gnu_ld+set}" = set; then :
5006   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5007 else
5008   with_gnu_ld=no
5009 fi
5010
5011 ac_prog=ld
5012 if test "$GCC" = yes; then
5013   # Check if gcc -print-prog-name=ld gives a path.
5014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5015 $as_echo_n "checking for ld used by $CC... " >&6; }
5016   case $host in
5017   *-*-mingw*)
5018     # gcc leaves a trailing carriage return which upsets mingw
5019     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5020   *)
5021     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5022   esac
5023   case $ac_prog in
5024     # Accept absolute paths.
5025     [\\/]* | ?:[\\/]*)
5026       re_direlt='/[^/][^/]*/\.\./'
5027       # Canonicalize the pathname of ld
5028       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5029       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5030         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5031       done
5032       test -z "$LD" && LD="$ac_prog"
5033       ;;
5034   "")
5035     # If it fails, then pretend we aren't using GCC.
5036     ac_prog=ld
5037     ;;
5038   *)
5039     # If it is relative, then search for the first ld in PATH.
5040     with_gnu_ld=unknown
5041     ;;
5042   esac
5043 elif test "$with_gnu_ld" = yes; then
5044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5045 $as_echo_n "checking for GNU ld... " >&6; }
5046 else
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5048 $as_echo_n "checking for non-GNU ld... " >&6; }
5049 fi
5050 if ${lt_cv_path_LD+:} false; then :
5051   $as_echo_n "(cached) " >&6
5052 else
5053   if test -z "$LD"; then
5054   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5055   for ac_dir in $PATH; do
5056     IFS="$lt_save_ifs"
5057     test -z "$ac_dir" && ac_dir=.
5058     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5059       lt_cv_path_LD="$ac_dir/$ac_prog"
5060       # Check to see if the program is GNU ld.  I'd rather use --version,
5061       # but apparently some variants of GNU ld only accept -v.
5062       # Break only if it was the GNU/non-GNU ld that we prefer.
5063       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5064       *GNU* | *'with BFD'*)
5065         test "$with_gnu_ld" != no && break
5066         ;;
5067       *)
5068         test "$with_gnu_ld" != yes && break
5069         ;;
5070       esac
5071     fi
5072   done
5073   IFS="$lt_save_ifs"
5074 else
5075   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5076 fi
5077 fi
5078
5079 LD="$lt_cv_path_LD"
5080 if test -n "$LD"; then
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5082 $as_echo "$LD" >&6; }
5083 else
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5089 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5090 if ${lt_cv_prog_gnu_ld+:} false; then :
5091   $as_echo_n "(cached) " >&6
5092 else
5093   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5094 case `$LD -v 2>&1 </dev/null` in
5095 *GNU* | *'with BFD'*)
5096   lt_cv_prog_gnu_ld=yes
5097   ;;
5098 *)
5099   lt_cv_prog_gnu_ld=no
5100   ;;
5101 esac
5102 fi
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5104 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5105 with_gnu_ld=$lt_cv_prog_gnu_ld
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5116 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5117 if ${lt_cv_path_NM+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   if test -n "$NM"; then
5121   # Let the user override the test.
5122   lt_cv_path_NM="$NM"
5123 else
5124   lt_nm_to_check="${ac_tool_prefix}nm"
5125   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5126     lt_nm_to_check="$lt_nm_to_check nm"
5127   fi
5128   for lt_tmp_nm in $lt_nm_to_check; do
5129     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5130     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5131       IFS="$lt_save_ifs"
5132       test -z "$ac_dir" && ac_dir=.
5133       tmp_nm="$ac_dir/$lt_tmp_nm"
5134       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5135         # Check to see if the nm accepts a BSD-compat flag.
5136         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5137         #   nm: unknown option "B" ignored
5138         # Tru64's nm complains that /dev/null is an invalid object file
5139         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5140         */dev/null* | *'Invalid file or object type'*)
5141           lt_cv_path_NM="$tmp_nm -B"
5142           break
5143           ;;
5144         *)
5145           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5146           */dev/null*)
5147             lt_cv_path_NM="$tmp_nm -p"
5148             break
5149             ;;
5150           *)
5151             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5152             continue # so that we can try to find one that supports BSD flags
5153             ;;
5154           esac
5155           ;;
5156         esac
5157       fi
5158     done
5159     IFS="$lt_save_ifs"
5160   done
5161   : ${lt_cv_path_NM=no}
5162 fi
5163 fi
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5165 $as_echo "$lt_cv_path_NM" >&6; }
5166 if test "$lt_cv_path_NM" != "no"; then
5167   NM="$lt_cv_path_NM"
5168 else
5169   # Didn't find any BSD compatible name lister, look for dumpbin.
5170   if test -n "$DUMPBIN"; then :
5171     # Let the user override the test.
5172   else
5173     if test -n "$ac_tool_prefix"; then
5174   for ac_prog in dumpbin "link -dump"
5175   do
5176     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5177 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if ${ac_cv_prog_DUMPBIN+:} false; then :
5181   $as_echo_n "(cached) " >&6
5182 else
5183   if test -n "$DUMPBIN"; then
5184   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5188 do
5189   IFS=$as_save_IFS
5190   test -z "$as_dir" && as_dir=.
5191     for ac_exec_ext in '' $ac_executable_extensions; do
5192   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5193     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5194     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195     break 2
5196   fi
5197 done
5198   done
5199 IFS=$as_save_IFS
5200
5201 fi
5202 fi
5203 DUMPBIN=$ac_cv_prog_DUMPBIN
5204 if test -n "$DUMPBIN"; then
5205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5206 $as_echo "$DUMPBIN" >&6; }
5207 else
5208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5210 fi
5211
5212
5213     test -n "$DUMPBIN" && break
5214   done
5215 fi
5216 if test -z "$DUMPBIN"; then
5217   ac_ct_DUMPBIN=$DUMPBIN
5218   for ac_prog in dumpbin "link -dump"
5219 do
5220   # Extract the first word of "$ac_prog", so it can be a program name with args.
5221 set dummy $ac_prog; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227   if test -n "$ac_ct_DUMPBIN"; then
5228   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5229 else
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242   done
5243 IFS=$as_save_IFS
5244
5245 fi
5246 fi
5247 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5248 if test -n "$ac_ct_DUMPBIN"; then
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5250 $as_echo "$ac_ct_DUMPBIN" >&6; }
5251 else
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5254 fi
5255
5256
5257   test -n "$ac_ct_DUMPBIN" && break
5258 done
5259
5260   if test "x$ac_ct_DUMPBIN" = x; then
5261     DUMPBIN=":"
5262   else
5263     case $cross_compiling:$ac_tool_warned in
5264 yes:)
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5267 ac_tool_warned=yes ;;
5268 esac
5269     DUMPBIN=$ac_ct_DUMPBIN
5270   fi
5271 fi
5272
5273     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5274     *COFF*)
5275       DUMPBIN="$DUMPBIN -symbols"
5276       ;;
5277     *)
5278       DUMPBIN=:
5279       ;;
5280     esac
5281   fi
5282
5283   if test "$DUMPBIN" != ":"; then
5284     NM="$DUMPBIN"
5285   fi
5286 fi
5287 test -z "$NM" && NM=nm
5288
5289
5290
5291
5292
5293
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5295 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5296 if ${lt_cv_nm_interface+:} false; then :
5297   $as_echo_n "(cached) " >&6
5298 else
5299   lt_cv_nm_interface="BSD nm"
5300   echo "int some_variable = 0;" > conftest.$ac_ext
5301   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5302   (eval "$ac_compile" 2>conftest.err)
5303   cat conftest.err >&5
5304   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5305   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5306   cat conftest.err >&5
5307   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5308   cat conftest.out >&5
5309   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5310     lt_cv_nm_interface="MS dumpbin"
5311   fi
5312   rm -f conftest*
5313 fi
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5315 $as_echo "$lt_cv_nm_interface" >&6; }
5316
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5318 $as_echo_n "checking whether ln -s works... " >&6; }
5319 LN_S=$as_ln_s
5320 if test "$LN_S" = "ln -s"; then
5321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5322 $as_echo "yes" >&6; }
5323 else
5324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5325 $as_echo "no, using $LN_S" >&6; }
5326 fi
5327
5328 # find the maximum length of command line arguments
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5330 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5331 if ${lt_cv_sys_max_cmd_len+:} false; then :
5332   $as_echo_n "(cached) " >&6
5333 else
5334     i=0
5335   teststring="ABCD"
5336
5337   case $build_os in
5338   msdosdjgpp*)
5339     # On DJGPP, this test can blow up pretty badly due to problems in libc
5340     # (any single argument exceeding 2000 bytes causes a buffer overrun
5341     # during glob expansion).  Even if it were fixed, the result of this
5342     # check would be larger than it should be.
5343     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5344     ;;
5345
5346   gnu*)
5347     # Under GNU Hurd, this test is not required because there is
5348     # no limit to the length of command line arguments.
5349     # Libtool will interpret -1 as no limit whatsoever
5350     lt_cv_sys_max_cmd_len=-1;
5351     ;;
5352
5353   cygwin* | mingw* | cegcc*)
5354     # On Win9x/ME, this test blows up -- it succeeds, but takes
5355     # about 5 minutes as the teststring grows exponentially.
5356     # Worse, since 9x/ME are not pre-emptively multitasking,
5357     # you end up with a "frozen" computer, even though with patience
5358     # the test eventually succeeds (with a max line length of 256k).
5359     # Instead, let's just punt: use the minimum linelength reported by
5360     # all of the supported platforms: 8192 (on NT/2K/XP).
5361     lt_cv_sys_max_cmd_len=8192;
5362     ;;
5363
5364   mint*)
5365     # On MiNT this can take a long time and run out of memory.
5366     lt_cv_sys_max_cmd_len=8192;
5367     ;;
5368
5369   amigaos*)
5370     # On AmigaOS with pdksh, this test takes hours, literally.
5371     # So we just punt and use a minimum line length of 8192.
5372     lt_cv_sys_max_cmd_len=8192;
5373     ;;
5374
5375   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5376     # This has been around since 386BSD, at least.  Likely further.
5377     if test -x /sbin/sysctl; then
5378       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5379     elif test -x /usr/sbin/sysctl; then
5380       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5381     else
5382       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5383     fi
5384     # And add a safety zone
5385     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5386     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5387     ;;
5388
5389   interix*)
5390     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5391     lt_cv_sys_max_cmd_len=196608
5392     ;;
5393
5394   os2*)
5395     # The test takes a long time on OS/2.
5396     lt_cv_sys_max_cmd_len=8192
5397     ;;
5398
5399   osf*)
5400     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5401     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5402     # nice to cause kernel panics so lets avoid the loop below.
5403     # First set a reasonable default.
5404     lt_cv_sys_max_cmd_len=16384
5405     #
5406     if test -x /sbin/sysconfig; then
5407       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5408         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5409       esac
5410     fi
5411     ;;
5412   sco3.2v5*)
5413     lt_cv_sys_max_cmd_len=102400
5414     ;;
5415   sysv5* | sco5v6* | sysv4.2uw2*)
5416     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5417     if test -n "$kargmax"; then
5418       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5419     else
5420       lt_cv_sys_max_cmd_len=32768
5421     fi
5422     ;;
5423   *)
5424     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5425     if test -n "$lt_cv_sys_max_cmd_len" && \
5426       test undefined != "$lt_cv_sys_max_cmd_len"; then
5427       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5428       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5429     else
5430       # Make teststring a little bigger before we do anything with it.
5431       # a 1K string should be a reasonable start.
5432       for i in 1 2 3 4 5 6 7 8 ; do
5433         teststring=$teststring$teststring
5434       done
5435       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5436       # If test is not a shell built-in, we'll probably end up computing a
5437       # maximum length that is only half of the actual maximum length, but
5438       # we can't tell.
5439       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5440                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5441               test $i != 17 # 1/2 MB should be enough
5442       do
5443         i=`expr $i + 1`
5444         teststring=$teststring$teststring
5445       done
5446       # Only check the string length outside the loop.
5447       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5448       teststring=
5449       # Add a significant safety factor because C++ compilers can tack on
5450       # massive amounts of additional arguments before passing them to the
5451       # linker.  It appears as though 1/2 is a usable value.
5452       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5453     fi
5454     ;;
5455   esac
5456
5457 fi
5458
5459 if test -n $lt_cv_sys_max_cmd_len ; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5461 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5464 $as_echo "none" >&6; }
5465 fi
5466 max_cmd_len=$lt_cv_sys_max_cmd_len
5467
5468
5469
5470
5471
5472
5473 : ${CP="cp -f"}
5474 : ${MV="mv -f"}
5475 : ${RM="rm -f"}
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5478 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5479 # Try some XSI features
5480 xsi_shell=no
5481 ( _lt_dummy="a/b/c"
5482   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5483       = c,a/b,b/c, \
5484     && eval 'test $(( 1 + 1 )) -eq 2 \
5485     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5486   && xsi_shell=yes
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5488 $as_echo "$xsi_shell" >&6; }
5489
5490
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5492 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5493 lt_shell_append=no
5494 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5495     >/dev/null 2>&1 \
5496   && lt_shell_append=yes
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5498 $as_echo "$lt_shell_append" >&6; }
5499
5500
5501 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5502   lt_unset=unset
5503 else
5504   lt_unset=false
5505 fi
5506
5507
5508
5509
5510
5511 # test EBCDIC or ASCII
5512 case `echo X|tr X '\101'` in
5513  A) # ASCII based system
5514     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5515   lt_SP2NL='tr \040 \012'
5516   lt_NL2SP='tr \015\012 \040\040'
5517   ;;
5518  *) # EBCDIC based system
5519   lt_SP2NL='tr \100 \n'
5520   lt_NL2SP='tr \r\n \100\100'
5521   ;;
5522 esac
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5533 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5534 if ${lt_cv_to_host_file_cmd+:} false; then :
5535   $as_echo_n "(cached) " >&6
5536 else
5537   case $host in
5538   *-*-mingw* )
5539     case $build in
5540       *-*-mingw* ) # actually msys
5541         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5542         ;;
5543       *-*-cygwin* )
5544         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5545         ;;
5546       * ) # otherwise, assume *nix
5547         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5548         ;;
5549     esac
5550     ;;
5551   *-*-cygwin* )
5552     case $build in
5553       *-*-mingw* ) # actually msys
5554         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5555         ;;
5556       *-*-cygwin* )
5557         lt_cv_to_host_file_cmd=func_convert_file_noop
5558         ;;
5559       * ) # otherwise, assume *nix
5560         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5561         ;;
5562     esac
5563     ;;
5564   * ) # unhandled hosts (and "normal" native builds)
5565     lt_cv_to_host_file_cmd=func_convert_file_noop
5566     ;;
5567 esac
5568
5569 fi
5570
5571 to_host_file_cmd=$lt_cv_to_host_file_cmd
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5573 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5574
5575
5576
5577
5578
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5580 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5581 if ${lt_cv_to_tool_file_cmd+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   #assume ordinary cross tools, or native build.
5585 lt_cv_to_tool_file_cmd=func_convert_file_noop
5586 case $host in
5587   *-*-mingw* )
5588     case $build in
5589       *-*-mingw* ) # actually msys
5590         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5591         ;;
5592     esac
5593     ;;
5594 esac
5595
5596 fi
5597
5598 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5600 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5601
5602
5603
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5607 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5608 if ${lt_cv_ld_reload_flag+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   lt_cv_ld_reload_flag='-r'
5612 fi
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5614 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5615 reload_flag=$lt_cv_ld_reload_flag
5616 case $reload_flag in
5617 "" | " "*) ;;
5618 *) reload_flag=" $reload_flag" ;;
5619 esac
5620 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5621 case $host_os in
5622   cygwin* | mingw* | pw32* | cegcc*)
5623     if test "$GCC" != yes; then
5624       reload_cmds=false
5625     fi
5626     ;;
5627   darwin*)
5628     if test "$GCC" = yes; then
5629       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5630     else
5631       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5632     fi
5633     ;;
5634 esac
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644 if test -n "$ac_tool_prefix"; then
5645   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5646 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_prog_OBJDUMP+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   if test -n "$OBJDUMP"; then
5653   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5654 else
5655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 for as_dir in $PATH
5657 do
5658   IFS=$as_save_IFS
5659   test -z "$as_dir" && as_dir=.
5660     for ac_exec_ext in '' $ac_executable_extensions; do
5661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5662     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5664     break 2
5665   fi
5666 done
5667   done
5668 IFS=$as_save_IFS
5669
5670 fi
5671 fi
5672 OBJDUMP=$ac_cv_prog_OBJDUMP
5673 if test -n "$OBJDUMP"; then
5674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5675 $as_echo "$OBJDUMP" >&6; }
5676 else
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678 $as_echo "no" >&6; }
5679 fi
5680
5681
5682 fi
5683 if test -z "$ac_cv_prog_OBJDUMP"; then
5684   ac_ct_OBJDUMP=$OBJDUMP
5685   # Extract the first word of "objdump", so it can be a program name with args.
5686 set dummy objdump; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   if test -n "$ac_ct_OBJDUMP"; then
5693   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5694 else
5695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700     for ac_exec_ext in '' $ac_executable_extensions; do
5701   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5703     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5704     break 2
5705   fi
5706 done
5707   done
5708 IFS=$as_save_IFS
5709
5710 fi
5711 fi
5712 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5713 if test -n "$ac_ct_OBJDUMP"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5715 $as_echo "$ac_ct_OBJDUMP" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721   if test "x$ac_ct_OBJDUMP" = x; then
5722     OBJDUMP="false"
5723   else
5724     case $cross_compiling:$ac_tool_warned in
5725 yes:)
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5727 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5728 ac_tool_warned=yes ;;
5729 esac
5730     OBJDUMP=$ac_ct_OBJDUMP
5731   fi
5732 else
5733   OBJDUMP="$ac_cv_prog_OBJDUMP"
5734 fi
5735
5736 test -z "$OBJDUMP" && OBJDUMP=objdump
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5747 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5748 if ${lt_cv_deplibs_check_method+:} false; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   lt_cv_file_magic_cmd='$MAGIC_CMD'
5752 lt_cv_file_magic_test_file=
5753 lt_cv_deplibs_check_method='unknown'
5754 # Need to set the preceding variable on all platforms that support
5755 # interlibrary dependencies.
5756 # 'none' -- dependencies not supported.
5757 # `unknown' -- same as none, but documents that we really don't know.
5758 # 'pass_all' -- all dependencies passed with no checks.
5759 # 'test_compile' -- check by making test program.
5760 # 'file_magic [[regex]]' -- check by looking for files in library path
5761 # which responds to the $file_magic_cmd with a given extended regex.
5762 # If you have `file' or equivalent on your system and you're not sure
5763 # whether `pass_all' will *always* work, you probably want this one.
5764
5765 case $host_os in
5766 aix[4-9]*)
5767   lt_cv_deplibs_check_method=pass_all
5768   ;;
5769
5770 beos*)
5771   lt_cv_deplibs_check_method=pass_all
5772   ;;
5773
5774 bsdi[45]*)
5775   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5776   lt_cv_file_magic_cmd='/usr/bin/file -L'
5777   lt_cv_file_magic_test_file=/shlib/libc.so
5778   ;;
5779
5780 cygwin*)
5781   # func_win32_libid is a shell function defined in ltmain.sh
5782   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5783   lt_cv_file_magic_cmd='func_win32_libid'
5784   ;;
5785
5786 mingw* | pw32*)
5787   # Base MSYS/MinGW do not provide the 'file' command needed by
5788   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5789   # unless we find 'file', for example because we are cross-compiling.
5790   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5791   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5792     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5793     lt_cv_file_magic_cmd='func_win32_libid'
5794   else
5795     # Keep this pattern in sync with the one in func_win32_libid.
5796     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5797     lt_cv_file_magic_cmd='$OBJDUMP -f'
5798   fi
5799   ;;
5800
5801 cegcc*)
5802   # use the weaker test based on 'objdump'. See mingw*.
5803   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5804   lt_cv_file_magic_cmd='$OBJDUMP -f'
5805   ;;
5806
5807 darwin* | rhapsody*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 freebsd* | dragonfly*)
5812   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5813     case $host_cpu in
5814     i*86 )
5815       # Not sure whether the presence of OpenBSD here was a mistake.
5816       # Let's accept both of them until this is cleared up.
5817       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5818       lt_cv_file_magic_cmd=/usr/bin/file
5819       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5820       ;;
5821     esac
5822   else
5823     lt_cv_deplibs_check_method=pass_all
5824   fi
5825   ;;
5826
5827 gnu*)
5828   lt_cv_deplibs_check_method=pass_all
5829   ;;
5830
5831 haiku*)
5832   lt_cv_deplibs_check_method=pass_all
5833   ;;
5834
5835 hpux10.20* | hpux11*)
5836   lt_cv_file_magic_cmd=/usr/bin/file
5837   case $host_cpu in
5838   ia64*)
5839     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5840     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5841     ;;
5842   hppa*64*)
5843     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]'
5844     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5845     ;;
5846   *)
5847     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5848     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5849     ;;
5850   esac
5851   ;;
5852
5853 interix[3-9]*)
5854   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5855   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5856   ;;
5857
5858 irix5* | irix6* | nonstopux*)
5859   case $LD in
5860   *-32|*"-32 ") libmagic=32-bit;;
5861   *-n32|*"-n32 ") libmagic=N32;;
5862   *-64|*"-64 ") libmagic=64-bit;;
5863   *) libmagic=never-match;;
5864   esac
5865   lt_cv_deplibs_check_method=pass_all
5866   ;;
5867
5868 # This must be glibc/ELF.
5869 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5870   lt_cv_deplibs_check_method=pass_all
5871   ;;
5872
5873 netbsd*)
5874   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5875     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5876   else
5877     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5878   fi
5879   ;;
5880
5881 newos6*)
5882   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5883   lt_cv_file_magic_cmd=/usr/bin/file
5884   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5885   ;;
5886
5887 *nto* | *qnx*)
5888   lt_cv_deplibs_check_method=pass_all
5889   ;;
5890
5891 openbsd*)
5892   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5893     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5894   else
5895     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5896   fi
5897   ;;
5898
5899 osf3* | osf4* | osf5*)
5900   lt_cv_deplibs_check_method=pass_all
5901   ;;
5902
5903 rdos*)
5904   lt_cv_deplibs_check_method=pass_all
5905   ;;
5906
5907 solaris*)
5908   lt_cv_deplibs_check_method=pass_all
5909   ;;
5910
5911 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5912   lt_cv_deplibs_check_method=pass_all
5913   ;;
5914
5915 sysv4 | sysv4.3*)
5916   case $host_vendor in
5917   motorola)
5918     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]'
5919     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5920     ;;
5921   ncr)
5922     lt_cv_deplibs_check_method=pass_all
5923     ;;
5924   sequent)
5925     lt_cv_file_magic_cmd='/bin/file'
5926     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5927     ;;
5928   sni)
5929     lt_cv_file_magic_cmd='/bin/file'
5930     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5931     lt_cv_file_magic_test_file=/lib/libc.so
5932     ;;
5933   siemens)
5934     lt_cv_deplibs_check_method=pass_all
5935     ;;
5936   pc)
5937     lt_cv_deplibs_check_method=pass_all
5938     ;;
5939   esac
5940   ;;
5941
5942 tpf*)
5943   lt_cv_deplibs_check_method=pass_all
5944   ;;
5945 esac
5946
5947 fi
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5949 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5950
5951 file_magic_glob=
5952 want_nocaseglob=no
5953 if test "$build" = "$host"; then
5954   case $host_os in
5955   mingw* | pw32*)
5956     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5957       want_nocaseglob=yes
5958     else
5959       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5960     fi
5961     ;;
5962   esac
5963 fi
5964
5965 file_magic_cmd=$lt_cv_file_magic_cmd
5966 deplibs_check_method=$lt_cv_deplibs_check_method
5967 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990 if test -n "$ac_tool_prefix"; then
5991   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5992 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5994 $as_echo_n "checking for $ac_word... " >&6; }
5995 if ${ac_cv_prog_DLLTOOL+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998   if test -n "$DLLTOOL"; then
5999   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6000 else
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH
6003 do
6004   IFS=$as_save_IFS
6005   test -z "$as_dir" && as_dir=.
6006     for ac_exec_ext in '' $ac_executable_extensions; do
6007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6008     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6010     break 2
6011   fi
6012 done
6013   done
6014 IFS=$as_save_IFS
6015
6016 fi
6017 fi
6018 DLLTOOL=$ac_cv_prog_DLLTOOL
6019 if test -n "$DLLTOOL"; then
6020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6021 $as_echo "$DLLTOOL" >&6; }
6022 else
6023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6024 $as_echo "no" >&6; }
6025 fi
6026
6027
6028 fi
6029 if test -z "$ac_cv_prog_DLLTOOL"; then
6030   ac_ct_DLLTOOL=$DLLTOOL
6031   # Extract the first word of "dlltool", so it can be a program name with args.
6032 set dummy dlltool; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$ac_ct_DLLTOOL"; then
6039   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6059 if test -n "$ac_ct_DLLTOOL"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6061 $as_echo "$ac_ct_DLLTOOL" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067   if test "x$ac_ct_DLLTOOL" = x; then
6068     DLLTOOL="false"
6069   else
6070     case $cross_compiling:$ac_tool_warned in
6071 yes:)
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6074 ac_tool_warned=yes ;;
6075 esac
6076     DLLTOOL=$ac_ct_DLLTOOL
6077   fi
6078 else
6079   DLLTOOL="$ac_cv_prog_DLLTOOL"
6080 fi
6081
6082 test -z "$DLLTOOL" && DLLTOOL=dlltool
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6094 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6095 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   lt_cv_sharedlib_from_linklib_cmd='unknown'
6099
6100 case $host_os in
6101 cygwin* | mingw* | pw32* | cegcc*)
6102   # two different shell functions defined in ltmain.sh
6103   # decide which to use based on capabilities of $DLLTOOL
6104   case `$DLLTOOL --help 2>&1` in
6105   *--identify-strict*)
6106     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6107     ;;
6108   *)
6109     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6110     ;;
6111   esac
6112   ;;
6113 *)
6114   # fallback: assume linklib IS sharedlib
6115   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6116   ;;
6117 esac
6118
6119 fi
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6121 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6122 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6123 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6124
6125
6126
6127
6128
6129
6130
6131
6132 if test -n "$ac_tool_prefix"; then
6133   for ac_prog in ar
6134   do
6135     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6136 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6138 $as_echo_n "checking for $ac_word... " >&6; }
6139 if ${ac_cv_prog_AR+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$AR"; then
6143   ac_cv_prog_AR="$AR" # Let the user override the test.
6144 else
6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6146 for as_dir in $PATH
6147 do
6148   IFS=$as_save_IFS
6149   test -z "$as_dir" && as_dir=.
6150     for ac_exec_ext in '' $ac_executable_extensions; do
6151   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6152     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6154     break 2
6155   fi
6156 done
6157   done
6158 IFS=$as_save_IFS
6159
6160 fi
6161 fi
6162 AR=$ac_cv_prog_AR
6163 if test -n "$AR"; then
6164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6165 $as_echo "$AR" >&6; }
6166 else
6167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6168 $as_echo "no" >&6; }
6169 fi
6170
6171
6172     test -n "$AR" && break
6173   done
6174 fi
6175 if test -z "$AR"; then
6176   ac_ct_AR=$AR
6177   for ac_prog in ar
6178 do
6179   # Extract the first word of "$ac_prog", so it can be a program name with args.
6180 set dummy $ac_prog; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   if test -n "$ac_ct_AR"; then
6187   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6188 else
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6190 for as_dir in $PATH
6191 do
6192   IFS=$as_save_IFS
6193   test -z "$as_dir" && as_dir=.
6194     for ac_exec_ext in '' $ac_executable_extensions; do
6195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6196     ac_cv_prog_ac_ct_AR="$ac_prog"
6197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6198     break 2
6199   fi
6200 done
6201   done
6202 IFS=$as_save_IFS
6203
6204 fi
6205 fi
6206 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6207 if test -n "$ac_ct_AR"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6209 $as_echo "$ac_ct_AR" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216   test -n "$ac_ct_AR" && break
6217 done
6218
6219   if test "x$ac_ct_AR" = x; then
6220     AR="false"
6221   else
6222     case $cross_compiling:$ac_tool_warned in
6223 yes:)
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6226 ac_tool_warned=yes ;;
6227 esac
6228     AR=$ac_ct_AR
6229   fi
6230 fi
6231
6232 : ${AR=ar}
6233 : ${AR_FLAGS=cru}
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6246 $as_echo_n "checking for archiver @FILE support... " >&6; }
6247 if ${lt_cv_ar_at_file+:} false; then :
6248   $as_echo_n "(cached) " >&6
6249 else
6250   lt_cv_ar_at_file=no
6251    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6252 /* end confdefs.h.  */
6253
6254 int
6255 main ()
6256 {
6257
6258   ;
6259   return 0;
6260 }
6261 _ACEOF
6262 if ac_fn_c_try_compile "$LINENO"; then :
6263   echo conftest.$ac_objext > conftest.lst
6264       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6265       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6266   (eval $lt_ar_try) 2>&5
6267   ac_status=$?
6268   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269   test $ac_status = 0; }
6270       if test "$ac_status" -eq 0; then
6271         # Ensure the archiver fails upon bogus file names.
6272         rm -f conftest.$ac_objext libconftest.a
6273         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6274   (eval $lt_ar_try) 2>&5
6275   ac_status=$?
6276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277   test $ac_status = 0; }
6278         if test "$ac_status" -ne 0; then
6279           lt_cv_ar_at_file=@
6280         fi
6281       fi
6282       rm -f conftest.* libconftest.a
6283
6284 fi
6285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6286
6287 fi
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6289 $as_echo "$lt_cv_ar_at_file" >&6; }
6290
6291 if test "x$lt_cv_ar_at_file" = xno; then
6292   archiver_list_spec=
6293 else
6294   archiver_list_spec=$lt_cv_ar_at_file
6295 fi
6296
6297
6298
6299
6300
6301
6302
6303 if test -n "$ac_tool_prefix"; then
6304   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6305 set dummy ${ac_tool_prefix}strip; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_STRIP+:} false; then :
6309   $as_echo_n "(cached) " >&6
6310 else
6311   if test -n "$STRIP"; then
6312   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6316 do
6317   IFS=$as_save_IFS
6318   test -z "$as_dir" && as_dir=.
6319     for ac_exec_ext in '' $ac_executable_extensions; do
6320   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6322     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323     break 2
6324   fi
6325 done
6326   done
6327 IFS=$as_save_IFS
6328
6329 fi
6330 fi
6331 STRIP=$ac_cv_prog_STRIP
6332 if test -n "$STRIP"; then
6333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6334 $as_echo "$STRIP" >&6; }
6335 else
6336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6338 fi
6339
6340
6341 fi
6342 if test -z "$ac_cv_prog_STRIP"; then
6343   ac_ct_STRIP=$STRIP
6344   # Extract the first word of "strip", so it can be a program name with args.
6345 set dummy strip; ac_word=$2
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347 $as_echo_n "checking for $ac_word... " >&6; }
6348 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6349   $as_echo_n "(cached) " >&6
6350 else
6351   if test -n "$ac_ct_STRIP"; then
6352   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6353 else
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 for as_dir in $PATH
6356 do
6357   IFS=$as_save_IFS
6358   test -z "$as_dir" && as_dir=.
6359     for ac_exec_ext in '' $ac_executable_extensions; do
6360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6361     ac_cv_prog_ac_ct_STRIP="strip"
6362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6363     break 2
6364   fi
6365 done
6366   done
6367 IFS=$as_save_IFS
6368
6369 fi
6370 fi
6371 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6372 if test -n "$ac_ct_STRIP"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6374 $as_echo "$ac_ct_STRIP" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6377 $as_echo "no" >&6; }
6378 fi
6379
6380   if test "x$ac_ct_STRIP" = x; then
6381     STRIP=":"
6382   else
6383     case $cross_compiling:$ac_tool_warned in
6384 yes:)
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6387 ac_tool_warned=yes ;;
6388 esac
6389     STRIP=$ac_ct_STRIP
6390   fi
6391 else
6392   STRIP="$ac_cv_prog_STRIP"
6393 fi
6394
6395 test -z "$STRIP" && STRIP=:
6396
6397
6398
6399
6400
6401
6402 if test -n "$ac_tool_prefix"; then
6403   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6404 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6406 $as_echo_n "checking for $ac_word... " >&6; }
6407 if ${ac_cv_prog_RANLIB+:} false; then :
6408   $as_echo_n "(cached) " >&6
6409 else
6410   if test -n "$RANLIB"; then
6411   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6412 else
6413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6414 for as_dir in $PATH
6415 do
6416   IFS=$as_save_IFS
6417   test -z "$as_dir" && as_dir=.
6418     for ac_exec_ext in '' $ac_executable_extensions; do
6419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6420     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6422     break 2
6423   fi
6424 done
6425   done
6426 IFS=$as_save_IFS
6427
6428 fi
6429 fi
6430 RANLIB=$ac_cv_prog_RANLIB
6431 if test -n "$RANLIB"; then
6432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6433 $as_echo "$RANLIB" >&6; }
6434 else
6435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 $as_echo "no" >&6; }
6437 fi
6438
6439
6440 fi
6441 if test -z "$ac_cv_prog_RANLIB"; then
6442   ac_ct_RANLIB=$RANLIB
6443   # Extract the first word of "ranlib", so it can be a program name with args.
6444 set dummy ranlib; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6446 $as_echo_n "checking for $ac_word... " >&6; }
6447 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6448   $as_echo_n "(cached) " >&6
6449 else
6450   if test -n "$ac_ct_RANLIB"; then
6451   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6452 else
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6454 for as_dir in $PATH
6455 do
6456   IFS=$as_save_IFS
6457   test -z "$as_dir" && as_dir=.
6458     for ac_exec_ext in '' $ac_executable_extensions; do
6459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6460     ac_cv_prog_ac_ct_RANLIB="ranlib"
6461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6462     break 2
6463   fi
6464 done
6465   done
6466 IFS=$as_save_IFS
6467
6468 fi
6469 fi
6470 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6471 if test -n "$ac_ct_RANLIB"; then
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6473 $as_echo "$ac_ct_RANLIB" >&6; }
6474 else
6475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476 $as_echo "no" >&6; }
6477 fi
6478
6479   if test "x$ac_ct_RANLIB" = x; then
6480     RANLIB=":"
6481   else
6482     case $cross_compiling:$ac_tool_warned in
6483 yes:)
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6486 ac_tool_warned=yes ;;
6487 esac
6488     RANLIB=$ac_ct_RANLIB
6489   fi
6490 else
6491   RANLIB="$ac_cv_prog_RANLIB"
6492 fi
6493
6494 test -z "$RANLIB" && RANLIB=:
6495
6496
6497
6498
6499
6500
6501 # Determine commands to create old-style static archives.
6502 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6503 old_postinstall_cmds='chmod 644 $oldlib'
6504 old_postuninstall_cmds=
6505
6506 if test -n "$RANLIB"; then
6507   case $host_os in
6508   openbsd*)
6509     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6510     ;;
6511   *)
6512     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6513     ;;
6514   esac
6515   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6516 fi
6517
6518 case $host_os in
6519   darwin*)
6520     lock_old_archive_extraction=yes ;;
6521   *)
6522     lock_old_archive_extraction=no ;;
6523 esac
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563 # If no C compiler was specified, use CC.
6564 LTCC=${LTCC-"$CC"}
6565
6566 # If no C compiler flags were specified, use CFLAGS.
6567 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6568
6569 # Allow CC to be a program name with arguments.
6570 compiler=$CC
6571
6572
6573 # Check for command to grab the raw symbol name followed by C symbol from nm.
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6575 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6576 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6577   $as_echo_n "(cached) " >&6
6578 else
6579
6580 # These are sane defaults that work on at least a few old systems.
6581 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6582
6583 # Character class describing NM global symbol codes.
6584 symcode='[BCDEGRST]'
6585
6586 # Regexp to match symbols that can be accessed directly from C.
6587 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6588
6589 # Define system-specific variables.
6590 case $host_os in
6591 aix*)
6592   symcode='[BCDT]'
6593   ;;
6594 cygwin* | mingw* | pw32* | cegcc*)
6595   symcode='[ABCDGISTW]'
6596   ;;
6597 hpux*)
6598   if test "$host_cpu" = ia64; then
6599     symcode='[ABCDEGRST]'
6600   fi
6601   ;;
6602 irix* | nonstopux*)
6603   symcode='[BCDEGRST]'
6604   ;;
6605 osf*)
6606   symcode='[BCDEGQRST]'
6607   ;;
6608 solaris*)
6609   symcode='[BDRT]'
6610   ;;
6611 sco3.2v5*)
6612   symcode='[DT]'
6613   ;;
6614 sysv4.2uw2*)
6615   symcode='[DT]'
6616   ;;
6617 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6618   symcode='[ABDT]'
6619   ;;
6620 sysv4)
6621   symcode='[DFNSTU]'
6622   ;;
6623 esac
6624
6625 # If we're using GNU nm, then use its standard symbol codes.
6626 case `$NM -V 2>&1` in
6627 *GNU* | *'with BFD'*)
6628   symcode='[ABCDGIRSTW]' ;;
6629 esac
6630
6631 # Transform an extracted symbol line into a proper C declaration.
6632 # Some systems (esp. on ia64) link data and code symbols differently,
6633 # so use this general approach.
6634 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6635
6636 # Transform an extracted symbol line into symbol name and symbol address
6637 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6638 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'"
6639
6640 # Handle CRLF in mingw tool chain
6641 opt_cr=
6642 case $build_os in
6643 mingw*)
6644   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6645   ;;
6646 esac
6647
6648 # Try without a prefix underscore, then with it.
6649 for ac_symprfx in "" "_"; do
6650
6651   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6652   symxfrm="\\1 $ac_symprfx\\2 \\2"
6653
6654   # Write the raw and C identifiers.
6655   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6656     # Fake it for dumpbin and say T for any non-static function
6657     # and D for any global variable.
6658     # Also find C++ and __fastcall symbols from MSVC++,
6659     # which start with @ or ?.
6660     lt_cv_sys_global_symbol_pipe="$AWK '"\
6661 "     {last_section=section; section=\$ 3};"\
6662 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6663 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6664 "     \$ 0!~/External *\|/{next};"\
6665 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6666 "     {if(hide[section]) next};"\
6667 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6668 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6669 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6670 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6671 "     ' prfx=^$ac_symprfx"
6672   else
6673     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6674   fi
6675   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6676
6677   # Check to see that the pipe works correctly.
6678   pipe_works=no
6679
6680   rm -f conftest*
6681   cat > conftest.$ac_ext <<_LT_EOF
6682 #ifdef __cplusplus
6683 extern "C" {
6684 #endif
6685 char nm_test_var;
6686 void nm_test_func(void);
6687 void nm_test_func(void){}
6688 #ifdef __cplusplus
6689 }
6690 #endif
6691 int main(){nm_test_var='a';nm_test_func();return(0);}
6692 _LT_EOF
6693
6694   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6695   (eval $ac_compile) 2>&5
6696   ac_status=$?
6697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6698   test $ac_status = 0; }; then
6699     # Now try to grab the symbols.
6700     nlist=conftest.nm
6701     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6702   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6703   ac_status=$?
6704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6705   test $ac_status = 0; } && test -s "$nlist"; then
6706       # Try sorting and uniquifying the output.
6707       if sort "$nlist" | uniq > "$nlist"T; then
6708         mv -f "$nlist"T "$nlist"
6709       else
6710         rm -f "$nlist"T
6711       fi
6712
6713       # Make sure that we snagged all the symbols we need.
6714       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6715         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6716           cat <<_LT_EOF > conftest.$ac_ext
6717 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6718 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6719 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6720    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6721 # define LT_DLSYM_CONST
6722 #elif defined(__osf__)
6723 /* This system does not cope well with relocations in const data.  */
6724 # define LT_DLSYM_CONST
6725 #else
6726 # define LT_DLSYM_CONST const
6727 #endif
6728
6729 #ifdef __cplusplus
6730 extern "C" {
6731 #endif
6732
6733 _LT_EOF
6734           # Now generate the symbol file.
6735           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6736
6737           cat <<_LT_EOF >> conftest.$ac_ext
6738
6739 /* The mapping between symbol names and symbols.  */
6740 LT_DLSYM_CONST struct {
6741   const char *name;
6742   void       *address;
6743 }
6744 lt__PROGRAM__LTX_preloaded_symbols[] =
6745 {
6746   { "@PROGRAM@", (void *) 0 },
6747 _LT_EOF
6748           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6749           cat <<\_LT_EOF >> conftest.$ac_ext
6750   {0, (void *) 0}
6751 };
6752
6753 /* This works around a problem in FreeBSD linker */
6754 #ifdef FREEBSD_WORKAROUND
6755 static const void *lt_preloaded_setup() {
6756   return lt__PROGRAM__LTX_preloaded_symbols;
6757 }
6758 #endif
6759
6760 #ifdef __cplusplus
6761 }
6762 #endif
6763 _LT_EOF
6764           # Now try linking the two files.
6765           mv conftest.$ac_objext conftstm.$ac_objext
6766           lt_globsym_save_LIBS=$LIBS
6767           lt_globsym_save_CFLAGS=$CFLAGS
6768           LIBS="conftstm.$ac_objext"
6769           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6770           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6771   (eval $ac_link) 2>&5
6772   ac_status=$?
6773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6774   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6775             pipe_works=yes
6776           fi
6777           LIBS=$lt_globsym_save_LIBS
6778           CFLAGS=$lt_globsym_save_CFLAGS
6779         else
6780           echo "cannot find nm_test_func in $nlist" >&5
6781         fi
6782       else
6783         echo "cannot find nm_test_var in $nlist" >&5
6784       fi
6785     else
6786       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6787     fi
6788   else
6789     echo "$progname: failed program was:" >&5
6790     cat conftest.$ac_ext >&5
6791   fi
6792   rm -rf conftest* conftst*
6793
6794   # Do not use the global_symbol_pipe unless it works.
6795   if test "$pipe_works" = yes; then
6796     break
6797   else
6798     lt_cv_sys_global_symbol_pipe=
6799   fi
6800 done
6801
6802 fi
6803
6804 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6805   lt_cv_sys_global_symbol_to_cdecl=
6806 fi
6807 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6809 $as_echo "failed" >&6; }
6810 else
6811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6812 $as_echo "ok" >&6; }
6813 fi
6814
6815 # Response file support.
6816 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6817   nm_file_list_spec='@'
6818 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6819   nm_file_list_spec='@'
6820 fi
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6849 $as_echo_n "checking for sysroot... " >&6; }
6850
6851 # Check whether --with-sysroot was given.
6852 if test "${with_sysroot+set}" = set; then :
6853   withval=$with_sysroot;
6854 else
6855   with_sysroot=no
6856 fi
6857
6858
6859 lt_sysroot=
6860 case ${with_sysroot} in #(
6861  yes)
6862    if test "$GCC" = yes; then
6863      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6864    fi
6865    ;; #(
6866  /*)
6867    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6868    ;; #(
6869  no|'')
6870    ;; #(
6871  *)
6872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6873 $as_echo "${with_sysroot}" >&6; }
6874    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6875    ;;
6876 esac
6877
6878  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6879 $as_echo "${lt_sysroot:-no}" >&6; }
6880
6881
6882
6883
6884
6885 # Check whether --enable-libtool-lock was given.
6886 if test "${enable_libtool_lock+set}" = set; then :
6887   enableval=$enable_libtool_lock;
6888 fi
6889
6890 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6891
6892 # Some flags need to be propagated to the compiler or linker for good
6893 # libtool support.
6894 case $host in
6895 ia64-*-hpux*)
6896   # Find out which ABI we are using.
6897   echo 'int i;' > conftest.$ac_ext
6898   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899   (eval $ac_compile) 2>&5
6900   ac_status=$?
6901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902   test $ac_status = 0; }; then
6903     case `/usr/bin/file conftest.$ac_objext` in
6904       *ELF-32*)
6905         HPUX_IA64_MODE="32"
6906         ;;
6907       *ELF-64*)
6908         HPUX_IA64_MODE="64"
6909         ;;
6910     esac
6911   fi
6912   rm -rf conftest*
6913   ;;
6914 *-*-irix6*)
6915   # Find out which ABI we are using.
6916   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6917   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918   (eval $ac_compile) 2>&5
6919   ac_status=$?
6920   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6921   test $ac_status = 0; }; then
6922     if test "$lt_cv_prog_gnu_ld" = yes; then
6923       case `/usr/bin/file conftest.$ac_objext` in
6924         *32-bit*)
6925           LD="${LD-ld} -melf32bsmip"
6926           ;;
6927         *N32*)
6928           LD="${LD-ld} -melf32bmipn32"
6929           ;;
6930         *64-bit*)
6931           LD="${LD-ld} -melf64bmip"
6932         ;;
6933       esac
6934     else
6935       case `/usr/bin/file conftest.$ac_objext` in
6936         *32-bit*)
6937           LD="${LD-ld} -32"
6938           ;;
6939         *N32*)
6940           LD="${LD-ld} -n32"
6941           ;;
6942         *64-bit*)
6943           LD="${LD-ld} -64"
6944           ;;
6945       esac
6946     fi
6947   fi
6948   rm -rf conftest*
6949   ;;
6950
6951 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6952 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6953   # Find out which ABI we are using.
6954   echo 'int i;' > conftest.$ac_ext
6955   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6956   (eval $ac_compile) 2>&5
6957   ac_status=$?
6958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6959   test $ac_status = 0; }; then
6960     case `/usr/bin/file conftest.o` in
6961       *32-bit*)
6962         case $host in
6963           x86_64-*kfreebsd*-gnu)
6964             LD="${LD-ld} -m elf_i386_fbsd"
6965             ;;
6966           x86_64-*linux*)
6967             case `/usr/bin/file conftest.o` in
6968               *x86-64*)
6969                  LD="${LD-ld} -m elf32_x86_64"
6970                  ;;
6971               *)
6972                  LD="${LD-ld} -m elf_i386"
6973                  ;;
6974             esac
6975             ;;
6976           ppc64-*linux*|powerpc64-*linux*)
6977             LD="${LD-ld} -m elf32ppclinux"
6978             ;;
6979           s390x-*linux*)
6980             LD="${LD-ld} -m elf_s390"
6981             ;;
6982           sparc64-*linux*)
6983             LD="${LD-ld} -m elf32_sparc"
6984             ;;
6985         esac
6986         ;;
6987       *64-bit*)
6988         case $host in
6989           x86_64-*kfreebsd*-gnu)
6990             LD="${LD-ld} -m elf_x86_64_fbsd"
6991             ;;
6992           x86_64-*linux*)
6993             LD="${LD-ld} -m elf_x86_64"
6994             ;;
6995           ppc*-*linux*|powerpc*-*linux*)
6996             LD="${LD-ld} -m elf64ppc"
6997             ;;
6998           s390*-*linux*|s390*-*tpf*)
6999             LD="${LD-ld} -m elf64_s390"
7000             ;;
7001           sparc*-*linux*)
7002             LD="${LD-ld} -m elf64_sparc"
7003             ;;
7004         esac
7005         ;;
7006     esac
7007   fi
7008   rm -rf conftest*
7009   ;;
7010
7011 *-*-sco3.2v5*)
7012   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7013   SAVE_CFLAGS="$CFLAGS"
7014   CFLAGS="$CFLAGS -belf"
7015   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7016 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7017 if ${lt_cv_cc_needs_belf+:} false; then :
7018   $as_echo_n "(cached) " >&6
7019 else
7020   ac_ext=c
7021 ac_cpp='$CPP $CPPFLAGS'
7022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7025
7026      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7027 /* end confdefs.h.  */
7028
7029 int
7030 main ()
7031 {
7032
7033   ;
7034   return 0;
7035 }
7036 _ACEOF
7037 if ac_fn_c_try_link "$LINENO"; then :
7038   lt_cv_cc_needs_belf=yes
7039 else
7040   lt_cv_cc_needs_belf=no
7041 fi
7042 rm -f core conftest.err conftest.$ac_objext \
7043     conftest$ac_exeext conftest.$ac_ext
7044      ac_ext=c
7045 ac_cpp='$CPP $CPPFLAGS'
7046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7049
7050 fi
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7052 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7053   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7054     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7055     CFLAGS="$SAVE_CFLAGS"
7056   fi
7057   ;;
7058 *-*solaris*)
7059   # Find out which ABI we are using.
7060   echo 'int i;' > conftest.$ac_ext
7061   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062   (eval $ac_compile) 2>&5
7063   ac_status=$?
7064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065   test $ac_status = 0; }; then
7066     case `/usr/bin/file conftest.o` in
7067     *64-bit*)
7068       case $lt_cv_prog_gnu_ld in
7069       yes*)
7070         case $host in
7071         i?86-*-solaris*)
7072           LD="${LD-ld} -m elf_x86_64"
7073           ;;
7074         sparc*-*-solaris*)
7075           LD="${LD-ld} -m elf64_sparc"
7076           ;;
7077         esac
7078         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7079         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7080           LD="${LD-ld}_sol2"
7081         fi
7082         ;;
7083       *)
7084         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7085           LD="${LD-ld} -64"
7086         fi
7087         ;;
7088       esac
7089       ;;
7090     esac
7091   fi
7092   rm -rf conftest*
7093   ;;
7094 esac
7095
7096 need_locks="$enable_libtool_lock"
7097
7098 if test -n "$ac_tool_prefix"; then
7099   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}mt; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7102 $as_echo_n "checking for $ac_word... " >&6; }
7103 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7104   $as_echo_n "(cached) " >&6
7105 else
7106   if test -n "$MANIFEST_TOOL"; then
7107   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7108 else
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7110 for as_dir in $PATH
7111 do
7112   IFS=$as_save_IFS
7113   test -z "$as_dir" && as_dir=.
7114     for ac_exec_ext in '' $ac_executable_extensions; do
7115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7118     break 2
7119   fi
7120 done
7121   done
7122 IFS=$as_save_IFS
7123
7124 fi
7125 fi
7126 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7127 if test -n "$MANIFEST_TOOL"; then
7128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7129 $as_echo "$MANIFEST_TOOL" >&6; }
7130 else
7131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7132 $as_echo "no" >&6; }
7133 fi
7134
7135
7136 fi
7137 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7138   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7139   # Extract the first word of "mt", so it can be a program name with args.
7140 set dummy mt; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7142 $as_echo_n "checking for $ac_word... " >&6; }
7143 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7144   $as_echo_n "(cached) " >&6
7145 else
7146   if test -n "$ac_ct_MANIFEST_TOOL"; then
7147   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7148 else
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7150 for as_dir in $PATH
7151 do
7152   IFS=$as_save_IFS
7153   test -z "$as_dir" && as_dir=.
7154     for ac_exec_ext in '' $ac_executable_extensions; do
7155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7158     break 2
7159   fi
7160 done
7161   done
7162 IFS=$as_save_IFS
7163
7164 fi
7165 fi
7166 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7167 if test -n "$ac_ct_MANIFEST_TOOL"; then
7168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7169 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7170 else
7171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7172 $as_echo "no" >&6; }
7173 fi
7174
7175   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7176     MANIFEST_TOOL=":"
7177   else
7178     case $cross_compiling:$ac_tool_warned in
7179 yes:)
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7182 ac_tool_warned=yes ;;
7183 esac
7184     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7185   fi
7186 else
7187   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7188 fi
7189
7190 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7192 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7193 if ${lt_cv_path_mainfest_tool+:} false; then :
7194   $as_echo_n "(cached) " >&6
7195 else
7196   lt_cv_path_mainfest_tool=no
7197   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7198   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7199   cat conftest.err >&5
7200   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7201     lt_cv_path_mainfest_tool=yes
7202   fi
7203   rm -f conftest*
7204 fi
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7206 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7207 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7208   MANIFEST_TOOL=:
7209 fi
7210
7211
7212
7213
7214
7215
7216   case $host_os in
7217     rhapsody* | darwin*)
7218     if test -n "$ac_tool_prefix"; then
7219   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7220 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -n "$DSYMUTIL"; then
7227   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7247 if test -n "$DSYMUTIL"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7249 $as_echo "$DSYMUTIL" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255
7256 fi
7257 if test -z "$ac_cv_prog_DSYMUTIL"; then
7258   ac_ct_DSYMUTIL=$DSYMUTIL
7259   # Extract the first word of "dsymutil", so it can be a program name with args.
7260 set dummy dsymutil; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7262 $as_echo_n "checking for $ac_word... " >&6; }
7263 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7264   $as_echo_n "(cached) " >&6
7265 else
7266   if test -n "$ac_ct_DSYMUTIL"; then
7267   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7268 else
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7270 for as_dir in $PATH
7271 do
7272   IFS=$as_save_IFS
7273   test -z "$as_dir" && as_dir=.
7274     for ac_exec_ext in '' $ac_executable_extensions; do
7275   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7278     break 2
7279   fi
7280 done
7281   done
7282 IFS=$as_save_IFS
7283
7284 fi
7285 fi
7286 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7287 if test -n "$ac_ct_DSYMUTIL"; then
7288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7289 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7290 else
7291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7292 $as_echo "no" >&6; }
7293 fi
7294
7295   if test "x$ac_ct_DSYMUTIL" = x; then
7296     DSYMUTIL=":"
7297   else
7298     case $cross_compiling:$ac_tool_warned in
7299 yes:)
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7302 ac_tool_warned=yes ;;
7303 esac
7304     DSYMUTIL=$ac_ct_DSYMUTIL
7305   fi
7306 else
7307   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7308 fi
7309
7310     if test -n "$ac_tool_prefix"; then
7311   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7312 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314 $as_echo_n "checking for $ac_word... " >&6; }
7315 if ${ac_cv_prog_NMEDIT+:} false; then :
7316   $as_echo_n "(cached) " >&6
7317 else
7318   if test -n "$NMEDIT"; then
7319   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7320 else
7321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322 for as_dir in $PATH
7323 do
7324   IFS=$as_save_IFS
7325   test -z "$as_dir" && as_dir=.
7326     for ac_exec_ext in '' $ac_executable_extensions; do
7327   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7329     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330     break 2
7331   fi
7332 done
7333   done
7334 IFS=$as_save_IFS
7335
7336 fi
7337 fi
7338 NMEDIT=$ac_cv_prog_NMEDIT
7339 if test -n "$NMEDIT"; then
7340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7341 $as_echo "$NMEDIT" >&6; }
7342 else
7343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 fi
7346
7347
7348 fi
7349 if test -z "$ac_cv_prog_NMEDIT"; then
7350   ac_ct_NMEDIT=$NMEDIT
7351   # Extract the first word of "nmedit", so it can be a program name with args.
7352 set dummy nmedit; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354 $as_echo_n "checking for $ac_word... " >&6; }
7355 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7356   $as_echo_n "(cached) " >&6
7357 else
7358   if test -n "$ac_ct_NMEDIT"; then
7359   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7360 else
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362 for as_dir in $PATH
7363 do
7364   IFS=$as_save_IFS
7365   test -z "$as_dir" && as_dir=.
7366     for ac_exec_ext in '' $ac_executable_extensions; do
7367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370     break 2
7371   fi
7372 done
7373   done
7374 IFS=$as_save_IFS
7375
7376 fi
7377 fi
7378 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7379 if test -n "$ac_ct_NMEDIT"; then
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7381 $as_echo "$ac_ct_NMEDIT" >&6; }
7382 else
7383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384 $as_echo "no" >&6; }
7385 fi
7386
7387   if test "x$ac_ct_NMEDIT" = x; then
7388     NMEDIT=":"
7389   else
7390     case $cross_compiling:$ac_tool_warned in
7391 yes:)
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394 ac_tool_warned=yes ;;
7395 esac
7396     NMEDIT=$ac_ct_NMEDIT
7397   fi
7398 else
7399   NMEDIT="$ac_cv_prog_NMEDIT"
7400 fi
7401
7402     if test -n "$ac_tool_prefix"; then
7403   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_LIPO+:} false; then :
7408   $as_echo_n "(cached) " >&6
7409 else
7410   if test -n "$LIPO"; then
7411   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418     for ac_exec_ext in '' $ac_executable_extensions; do
7419   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7421     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425   done
7426 IFS=$as_save_IFS
7427
7428 fi
7429 fi
7430 LIPO=$ac_cv_prog_LIPO
7431 if test -n "$LIPO"; then
7432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7433 $as_echo "$LIPO" >&6; }
7434 else
7435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7437 fi
7438
7439
7440 fi
7441 if test -z "$ac_cv_prog_LIPO"; then
7442   ac_ct_LIPO=$LIPO
7443   # Extract the first word of "lipo", so it can be a program name with args.
7444 set dummy lipo; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7448   $as_echo_n "(cached) " >&6
7449 else
7450   if test -n "$ac_ct_LIPO"; then
7451   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7455 do
7456   IFS=$as_save_IFS
7457   test -z "$as_dir" && as_dir=.
7458     for ac_exec_ext in '' $ac_executable_extensions; do
7459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460     ac_cv_prog_ac_ct_LIPO="lipo"
7461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462     break 2
7463   fi
7464 done
7465   done
7466 IFS=$as_save_IFS
7467
7468 fi
7469 fi
7470 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7471 if test -n "$ac_ct_LIPO"; then
7472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7473 $as_echo "$ac_ct_LIPO" >&6; }
7474 else
7475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7477 fi
7478
7479   if test "x$ac_ct_LIPO" = x; then
7480     LIPO=":"
7481   else
7482     case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488     LIPO=$ac_ct_LIPO
7489   fi
7490 else
7491   LIPO="$ac_cv_prog_LIPO"
7492 fi
7493
7494     if test -n "$ac_tool_prefix"; then
7495   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7496 set dummy ${ac_tool_prefix}otool; ac_word=$2
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7498 $as_echo_n "checking for $ac_word... " >&6; }
7499 if ${ac_cv_prog_OTOOL+:} false; then :
7500   $as_echo_n "(cached) " >&6
7501 else
7502   if test -n "$OTOOL"; then
7503   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7504 else
7505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 for as_dir in $PATH
7507 do
7508   IFS=$as_save_IFS
7509   test -z "$as_dir" && as_dir=.
7510     for ac_exec_ext in '' $ac_executable_extensions; do
7511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7512     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7514     break 2
7515   fi
7516 done
7517   done
7518 IFS=$as_save_IFS
7519
7520 fi
7521 fi
7522 OTOOL=$ac_cv_prog_OTOOL
7523 if test -n "$OTOOL"; then
7524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7525 $as_echo "$OTOOL" >&6; }
7526 else
7527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 $as_echo "no" >&6; }
7529 fi
7530
7531
7532 fi
7533 if test -z "$ac_cv_prog_OTOOL"; then
7534   ac_ct_OTOOL=$OTOOL
7535   # Extract the first word of "otool", so it can be a program name with args.
7536 set dummy otool; ac_word=$2
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 $as_echo_n "checking for $ac_word... " >&6; }
7539 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7540   $as_echo_n "(cached) " >&6
7541 else
7542   if test -n "$ac_ct_OTOOL"; then
7543   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550     for ac_exec_ext in '' $ac_executable_extensions; do
7551   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552     ac_cv_prog_ac_ct_OTOOL="otool"
7553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557   done
7558 IFS=$as_save_IFS
7559
7560 fi
7561 fi
7562 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7563 if test -n "$ac_ct_OTOOL"; then
7564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7565 $as_echo "$ac_ct_OTOOL" >&6; }
7566 else
7567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7568 $as_echo "no" >&6; }
7569 fi
7570
7571   if test "x$ac_ct_OTOOL" = x; then
7572     OTOOL=":"
7573   else
7574     case $cross_compiling:$ac_tool_warned in
7575 yes:)
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7577 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7578 ac_tool_warned=yes ;;
7579 esac
7580     OTOOL=$ac_ct_OTOOL
7581   fi
7582 else
7583   OTOOL="$ac_cv_prog_OTOOL"
7584 fi
7585
7586     if test -n "$ac_tool_prefix"; then
7587   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7588 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7590 $as_echo_n "checking for $ac_word... " >&6; }
7591 if ${ac_cv_prog_OTOOL64+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   if test -n "$OTOOL64"; then
7595   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7596 else
7597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7598 for as_dir in $PATH
7599 do
7600   IFS=$as_save_IFS
7601   test -z "$as_dir" && as_dir=.
7602     for ac_exec_ext in '' $ac_executable_extensions; do
7603   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7604     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7606     break 2
7607   fi
7608 done
7609   done
7610 IFS=$as_save_IFS
7611
7612 fi
7613 fi
7614 OTOOL64=$ac_cv_prog_OTOOL64
7615 if test -n "$OTOOL64"; then
7616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7617 $as_echo "$OTOOL64" >&6; }
7618 else
7619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7620 $as_echo "no" >&6; }
7621 fi
7622
7623
7624 fi
7625 if test -z "$ac_cv_prog_OTOOL64"; then
7626   ac_ct_OTOOL64=$OTOOL64
7627   # Extract the first word of "otool64", so it can be a program name with args.
7628 set dummy otool64; ac_word=$2
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7630 $as_echo_n "checking for $ac_word... " >&6; }
7631 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7632   $as_echo_n "(cached) " >&6
7633 else
7634   if test -n "$ac_ct_OTOOL64"; then
7635   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7636 else
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642     for ac_exec_ext in '' $ac_executable_extensions; do
7643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7644     ac_cv_prog_ac_ct_OTOOL64="otool64"
7645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649   done
7650 IFS=$as_save_IFS
7651
7652 fi
7653 fi
7654 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7655 if test -n "$ac_ct_OTOOL64"; then
7656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7657 $as_echo "$ac_ct_OTOOL64" >&6; }
7658 else
7659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7660 $as_echo "no" >&6; }
7661 fi
7662
7663   if test "x$ac_ct_OTOOL64" = x; then
7664     OTOOL64=":"
7665   else
7666     case $cross_compiling:$ac_tool_warned in
7667 yes:)
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7669 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7670 ac_tool_warned=yes ;;
7671 esac
7672     OTOOL64=$ac_ct_OTOOL64
7673   fi
7674 else
7675   OTOOL64="$ac_cv_prog_OTOOL64"
7676 fi
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7705 $as_echo_n "checking for -single_module linker flag... " >&6; }
7706 if ${lt_cv_apple_cc_single_mod+:} false; then :
7707   $as_echo_n "(cached) " >&6
7708 else
7709   lt_cv_apple_cc_single_mod=no
7710       if test -z "${LT_MULTI_MODULE}"; then
7711         # By default we will add the -single_module flag. You can override
7712         # by either setting the environment variable LT_MULTI_MODULE
7713         # non-empty at configure time, or by adding -multi_module to the
7714         # link flags.
7715         rm -rf libconftest.dylib*
7716         echo "int foo(void){return 1;}" > conftest.c
7717         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7718 -dynamiclib -Wl,-single_module conftest.c" >&5
7719         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7720           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7721         _lt_result=$?
7722         # If there is a non-empty error log, and "single_module"
7723         # appears in it, assume the flag caused a linker warning
7724         if test -s conftest.err && $GREP single_module conftest.err; then
7725           cat conftest.err >&5
7726         # Otherwise, if the output was created with a 0 exit code from
7727         # the compiler, it worked.
7728         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7729           lt_cv_apple_cc_single_mod=yes
7730         else
7731           cat conftest.err >&5
7732         fi
7733         rm -rf libconftest.dylib*
7734         rm -f conftest.*
7735       fi
7736 fi
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7738 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7739
7740     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7741 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7742 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7743   $as_echo_n "(cached) " >&6
7744 else
7745   lt_cv_ld_exported_symbols_list=no
7746       save_LDFLAGS=$LDFLAGS
7747       echo "_main" > conftest.sym
7748       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7749       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7750 /* end confdefs.h.  */
7751
7752 int
7753 main ()
7754 {
7755
7756   ;
7757   return 0;
7758 }
7759 _ACEOF
7760 if ac_fn_c_try_link "$LINENO"; then :
7761   lt_cv_ld_exported_symbols_list=yes
7762 else
7763   lt_cv_ld_exported_symbols_list=no
7764 fi
7765 rm -f core conftest.err conftest.$ac_objext \
7766     conftest$ac_exeext conftest.$ac_ext
7767         LDFLAGS="$save_LDFLAGS"
7768
7769 fi
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7771 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7772
7773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7774 $as_echo_n "checking for -force_load linker flag... " >&6; }
7775 if ${lt_cv_ld_force_load+:} false; then :
7776   $as_echo_n "(cached) " >&6
7777 else
7778   lt_cv_ld_force_load=no
7779       cat > conftest.c << _LT_EOF
7780 int forced_loaded() { return 2;}
7781 _LT_EOF
7782       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7783       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7784       echo "$AR cru libconftest.a conftest.o" >&5
7785       $AR cru libconftest.a conftest.o 2>&5
7786       echo "$RANLIB libconftest.a" >&5
7787       $RANLIB libconftest.a 2>&5
7788       cat > conftest.c << _LT_EOF
7789 int main() { return 0;}
7790 _LT_EOF
7791       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7792       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7793       _lt_result=$?
7794       if test -s conftest.err && $GREP force_load conftest.err; then
7795         cat conftest.err >&5
7796       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7797         lt_cv_ld_force_load=yes
7798       else
7799         cat conftest.err >&5
7800       fi
7801         rm -f conftest.err libconftest.a conftest conftest.c
7802         rm -rf conftest.dSYM
7803
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7806 $as_echo "$lt_cv_ld_force_load" >&6; }
7807     case $host_os in
7808     rhapsody* | darwin1.[012])
7809       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7810     darwin1.*)
7811       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7812     darwin*) # darwin 5.x on
7813       # if running on 10.5 or later, the deployment target defaults
7814       # to the OS version, if on x86, and 10.4, the deployment
7815       # target defaults to 10.4. Don't you love it?
7816       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7817         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7818           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7819         10.[012]*)
7820           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7821         10.*)
7822           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7823       esac
7824     ;;
7825   esac
7826     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7827       _lt_dar_single_mod='$single_module'
7828     fi
7829     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7830       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7831     else
7832       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7833     fi
7834     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7835       _lt_dsymutil='~$DSYMUTIL $lib || :'
7836     else
7837       _lt_dsymutil=
7838     fi
7839     ;;
7840   esac
7841
7842 ac_ext=c
7843 ac_cpp='$CPP $CPPFLAGS'
7844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7848 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7849 # On Suns, sometimes $CPP names a directory.
7850 if test -n "$CPP" && test -d "$CPP"; then
7851   CPP=
7852 fi
7853 if test -z "$CPP"; then
7854   if ${ac_cv_prog_CPP+:} false; then :
7855   $as_echo_n "(cached) " >&6
7856 else
7857       # Double quotes because CPP needs to be expanded
7858     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7859     do
7860       ac_preproc_ok=false
7861 for ac_c_preproc_warn_flag in '' yes
7862 do
7863   # Use a header file that comes with gcc, so configuring glibc
7864   # with a fresh cross-compiler works.
7865   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7866   # <limits.h> exists even on freestanding compilers.
7867   # On the NeXT, cc -E runs the code through the compiler's parser,
7868   # not just through cpp. "Syntax error" is here to catch this case.
7869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870 /* end confdefs.h.  */
7871 #ifdef __STDC__
7872 # include <limits.h>
7873 #else
7874 # include <assert.h>
7875 #endif
7876                      Syntax error
7877 _ACEOF
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879
7880 else
7881   # Broken: fails on valid input.
7882 continue
7883 fi
7884 rm -f conftest.err conftest.i conftest.$ac_ext
7885
7886   # OK, works on sane cases.  Now check whether nonexistent headers
7887   # can be detected and how.
7888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7889 /* end confdefs.h.  */
7890 #include <ac_nonexistent.h>
7891 _ACEOF
7892 if ac_fn_c_try_cpp "$LINENO"; then :
7893   # Broken: success on invalid input.
7894 continue
7895 else
7896   # Passes both tests.
7897 ac_preproc_ok=:
7898 break
7899 fi
7900 rm -f conftest.err conftest.i conftest.$ac_ext
7901
7902 done
7903 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7904 rm -f conftest.i conftest.err conftest.$ac_ext
7905 if $ac_preproc_ok; then :
7906   break
7907 fi
7908
7909     done
7910     ac_cv_prog_CPP=$CPP
7911
7912 fi
7913   CPP=$ac_cv_prog_CPP
7914 else
7915   ac_cv_prog_CPP=$CPP
7916 fi
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7918 $as_echo "$CPP" >&6; }
7919 ac_preproc_ok=false
7920 for ac_c_preproc_warn_flag in '' yes
7921 do
7922   # Use a header file that comes with gcc, so configuring glibc
7923   # with a fresh cross-compiler works.
7924   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7925   # <limits.h> exists even on freestanding compilers.
7926   # On the NeXT, cc -E runs the code through the compiler's parser,
7927   # not just through cpp. "Syntax error" is here to catch this case.
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #ifdef __STDC__
7931 # include <limits.h>
7932 #else
7933 # include <assert.h>
7934 #endif
7935                      Syntax error
7936 _ACEOF
7937 if ac_fn_c_try_cpp "$LINENO"; then :
7938
7939 else
7940   # Broken: fails on valid input.
7941 continue
7942 fi
7943 rm -f conftest.err conftest.i conftest.$ac_ext
7944
7945   # OK, works on sane cases.  Now check whether nonexistent headers
7946   # can be detected and how.
7947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7948 /* end confdefs.h.  */
7949 #include <ac_nonexistent.h>
7950 _ACEOF
7951 if ac_fn_c_try_cpp "$LINENO"; then :
7952   # Broken: success on invalid input.
7953 continue
7954 else
7955   # Passes both tests.
7956 ac_preproc_ok=:
7957 break
7958 fi
7959 rm -f conftest.err conftest.i conftest.$ac_ext
7960
7961 done
7962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7963 rm -f conftest.i conftest.err conftest.$ac_ext
7964 if $ac_preproc_ok; then :
7965
7966 else
7967   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7969 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7970 See \`config.log' for more details" "$LINENO" 5; }
7971 fi
7972
7973 ac_ext=c
7974 ac_cpp='$CPP $CPPFLAGS'
7975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7978
7979
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7981 $as_echo_n "checking for ANSI C header files... " >&6; }
7982 if ${ac_cv_header_stdc+:} false; then :
7983   $as_echo_n "(cached) " >&6
7984 else
7985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986 /* end confdefs.h.  */
7987 #include <stdlib.h>
7988 #include <stdarg.h>
7989 #include <string.h>
7990 #include <float.h>
7991
7992 int
7993 main ()
7994 {
7995
7996   ;
7997   return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_compile "$LINENO"; then :
8001   ac_cv_header_stdc=yes
8002 else
8003   ac_cv_header_stdc=no
8004 fi
8005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006
8007 if test $ac_cv_header_stdc = yes; then
8008   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8010 /* end confdefs.h.  */
8011 #include <string.h>
8012
8013 _ACEOF
8014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8015   $EGREP "memchr" >/dev/null 2>&1; then :
8016
8017 else
8018   ac_cv_header_stdc=no
8019 fi
8020 rm -f conftest*
8021
8022 fi
8023
8024 if test $ac_cv_header_stdc = yes; then
8025   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027 /* end confdefs.h.  */
8028 #include <stdlib.h>
8029
8030 _ACEOF
8031 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8032   $EGREP "free" >/dev/null 2>&1; then :
8033
8034 else
8035   ac_cv_header_stdc=no
8036 fi
8037 rm -f conftest*
8038
8039 fi
8040
8041 if test $ac_cv_header_stdc = yes; then
8042   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8043   if test "$cross_compiling" = yes; then :
8044   :
8045 else
8046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h.  */
8048 #include <ctype.h>
8049 #include <stdlib.h>
8050 #if ((' ' & 0x0FF) == 0x020)
8051 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8052 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8053 #else
8054 # define ISLOWER(c) \
8055                    (('a' <= (c) && (c) <= 'i') \
8056                      || ('j' <= (c) && (c) <= 'r') \
8057                      || ('s' <= (c) && (c) <= 'z'))
8058 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8059 #endif
8060
8061 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8062 int
8063 main ()
8064 {
8065   int i;
8066   for (i = 0; i < 256; i++)
8067     if (XOR (islower (i), ISLOWER (i))
8068         || toupper (i) != TOUPPER (i))
8069       return 2;
8070   return 0;
8071 }
8072 _ACEOF
8073 if ac_fn_c_try_run "$LINENO"; then :
8074
8075 else
8076   ac_cv_header_stdc=no
8077 fi
8078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8079   conftest.$ac_objext conftest.beam conftest.$ac_ext
8080 fi
8081
8082 fi
8083 fi
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8085 $as_echo "$ac_cv_header_stdc" >&6; }
8086 if test $ac_cv_header_stdc = yes; then
8087
8088 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8089
8090 fi
8091
8092 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8094                   inttypes.h stdint.h unistd.h
8095 do :
8096   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8097 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8098 "
8099 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8100   cat >>confdefs.h <<_ACEOF
8101 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8102 _ACEOF
8103
8104 fi
8105
8106 done
8107
8108
8109 for ac_header in dlfcn.h
8110 do :
8111   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8112 "
8113 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8114   cat >>confdefs.h <<_ACEOF
8115 #define HAVE_DLFCN_H 1
8116 _ACEOF
8117
8118 fi
8119
8120 done
8121
8122
8123
8124
8125
8126 # Set options
8127
8128
8129
8130         enable_dlopen=no
8131
8132
8133   enable_win32_dll=no
8134
8135
8136             # Check whether --enable-shared was given.
8137 if test "${enable_shared+set}" = set; then :
8138   enableval=$enable_shared; p=${PACKAGE-default}
8139     case $enableval in
8140     yes) enable_shared=yes ;;
8141     no) enable_shared=no ;;
8142     *)
8143       enable_shared=no
8144       # Look at the argument we got.  We use all the common list separators.
8145       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8146       for pkg in $enableval; do
8147         IFS="$lt_save_ifs"
8148         if test "X$pkg" = "X$p"; then
8149           enable_shared=yes
8150         fi
8151       done
8152       IFS="$lt_save_ifs"
8153       ;;
8154     esac
8155 else
8156   enable_shared=yes
8157 fi
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167   # Check whether --enable-static was given.
8168 if test "${enable_static+set}" = set; then :
8169   enableval=$enable_static; p=${PACKAGE-default}
8170     case $enableval in
8171     yes) enable_static=yes ;;
8172     no) enable_static=no ;;
8173     *)
8174      enable_static=no
8175       # Look at the argument we got.  We use all the common list separators.
8176       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8177       for pkg in $enableval; do
8178         IFS="$lt_save_ifs"
8179         if test "X$pkg" = "X$p"; then
8180           enable_static=yes
8181         fi
8182       done
8183       IFS="$lt_save_ifs"
8184       ;;
8185     esac
8186 else
8187   enable_static=yes
8188 fi
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199 # Check whether --with-pic was given.
8200 if test "${with_pic+set}" = set; then :
8201   withval=$with_pic; lt_p=${PACKAGE-default}
8202     case $withval in
8203     yes|no) pic_mode=$withval ;;
8204     *)
8205       pic_mode=default
8206       # Look at the argument we got.  We use all the common list separators.
8207       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8208       for lt_pkg in $withval; do
8209         IFS="$lt_save_ifs"
8210         if test "X$lt_pkg" = "X$lt_p"; then
8211           pic_mode=yes
8212         fi
8213       done
8214       IFS="$lt_save_ifs"
8215       ;;
8216     esac
8217 else
8218   pic_mode=default
8219 fi
8220
8221
8222 test -z "$pic_mode" && pic_mode=default
8223
8224
8225
8226
8227
8228
8229
8230   # Check whether --enable-fast-install was given.
8231 if test "${enable_fast_install+set}" = set; then :
8232   enableval=$enable_fast_install; p=${PACKAGE-default}
8233     case $enableval in
8234     yes) enable_fast_install=yes ;;
8235     no) enable_fast_install=no ;;
8236     *)
8237       enable_fast_install=no
8238       # Look at the argument we got.  We use all the common list separators.
8239       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8240       for pkg in $enableval; do
8241         IFS="$lt_save_ifs"
8242         if test "X$pkg" = "X$p"; then
8243           enable_fast_install=yes
8244         fi
8245       done
8246       IFS="$lt_save_ifs"
8247       ;;
8248     esac
8249 else
8250   enable_fast_install=yes
8251 fi
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 # This can be used to rebuild libtool when needed
8264 LIBTOOL_DEPS="$ltmain"
8265
8266 # Always use our own libtool.
8267 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298 test -z "$LN_S" && LN_S="ln -s"
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313 if test -n "${ZSH_VERSION+set}" ; then
8314    setopt NO_GLOB_SUBST
8315 fi
8316
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8318 $as_echo_n "checking for objdir... " >&6; }
8319 if ${lt_cv_objdir+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   rm -f .libs 2>/dev/null
8323 mkdir .libs 2>/dev/null
8324 if test -d .libs; then
8325   lt_cv_objdir=.libs
8326 else
8327   # MS-DOS does not allow filenames that begin with a dot.
8328   lt_cv_objdir=_libs
8329 fi
8330 rmdir .libs 2>/dev/null
8331 fi
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8333 $as_echo "$lt_cv_objdir" >&6; }
8334 objdir=$lt_cv_objdir
8335
8336
8337
8338
8339
8340 cat >>confdefs.h <<_ACEOF
8341 #define LT_OBJDIR "$lt_cv_objdir/"
8342 _ACEOF
8343
8344
8345
8346
8347 case $host_os in
8348 aix3*)
8349   # AIX sometimes has problems with the GCC collect2 program.  For some
8350   # reason, if we set the COLLECT_NAMES environment variable, the problems
8351   # vanish in a puff of smoke.
8352   if test "X${COLLECT_NAMES+set}" != Xset; then
8353     COLLECT_NAMES=
8354     export COLLECT_NAMES
8355   fi
8356   ;;
8357 esac
8358
8359 # Global variables:
8360 ofile=libtool
8361 can_build_shared=yes
8362
8363 # All known linkers require a `.a' archive for static linking (except MSVC,
8364 # which needs '.lib').
8365 libext=a
8366
8367 with_gnu_ld="$lt_cv_prog_gnu_ld"
8368
8369 old_CC="$CC"
8370 old_CFLAGS="$CFLAGS"
8371
8372 # Set sane defaults for various variables
8373 test -z "$CC" && CC=cc
8374 test -z "$LTCC" && LTCC=$CC
8375 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8376 test -z "$LD" && LD=ld
8377 test -z "$ac_objext" && ac_objext=o
8378
8379 for cc_temp in $compiler""; do
8380   case $cc_temp in
8381     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8382     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8383     \-*) ;;
8384     *) break;;
8385   esac
8386 done
8387 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8388
8389
8390 # Only perform the check for file, if the check method requires it
8391 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8392 case $deplibs_check_method in
8393 file_magic*)
8394   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8395     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8396 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8397 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   case $MAGIC_CMD in
8401 [\\/*] |  ?:[\\/]*)
8402   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8403   ;;
8404 *)
8405   lt_save_MAGIC_CMD="$MAGIC_CMD"
8406   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8407   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8408   for ac_dir in $ac_dummy; do
8409     IFS="$lt_save_ifs"
8410     test -z "$ac_dir" && ac_dir=.
8411     if test -f $ac_dir/${ac_tool_prefix}file; then
8412       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8413       if test -n "$file_magic_test_file"; then
8414         case $deplibs_check_method in
8415         "file_magic "*)
8416           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8417           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8418           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8419             $EGREP "$file_magic_regex" > /dev/null; then
8420             :
8421           else
8422             cat <<_LT_EOF 1>&2
8423
8424 *** Warning: the command libtool uses to detect shared libraries,
8425 *** $file_magic_cmd, produces output that libtool cannot recognize.
8426 *** The result is that libtool may fail to recognize shared libraries
8427 *** as such.  This will affect the creation of libtool libraries that
8428 *** depend on shared libraries, but programs linked with such libtool
8429 *** libraries will work regardless of this problem.  Nevertheless, you
8430 *** may want to report the problem to your system manager and/or to
8431 *** bug-libtool@gnu.org
8432
8433 _LT_EOF
8434           fi ;;
8435         esac
8436       fi
8437       break
8438     fi
8439   done
8440   IFS="$lt_save_ifs"
8441   MAGIC_CMD="$lt_save_MAGIC_CMD"
8442   ;;
8443 esac
8444 fi
8445
8446 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8447 if test -n "$MAGIC_CMD"; then
8448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8449 $as_echo "$MAGIC_CMD" >&6; }
8450 else
8451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454
8455
8456
8457
8458
8459 if test -z "$lt_cv_path_MAGIC_CMD"; then
8460   if test -n "$ac_tool_prefix"; then
8461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8462 $as_echo_n "checking for file... " >&6; }
8463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8464   $as_echo_n "(cached) " >&6
8465 else
8466   case $MAGIC_CMD in
8467 [\\/*] |  ?:[\\/]*)
8468   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8469   ;;
8470 *)
8471   lt_save_MAGIC_CMD="$MAGIC_CMD"
8472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8473   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8474   for ac_dir in $ac_dummy; do
8475     IFS="$lt_save_ifs"
8476     test -z "$ac_dir" && ac_dir=.
8477     if test -f $ac_dir/file; then
8478       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8479       if test -n "$file_magic_test_file"; then
8480         case $deplibs_check_method in
8481         "file_magic "*)
8482           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8483           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8484           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8485             $EGREP "$file_magic_regex" > /dev/null; then
8486             :
8487           else
8488             cat <<_LT_EOF 1>&2
8489
8490 *** Warning: the command libtool uses to detect shared libraries,
8491 *** $file_magic_cmd, produces output that libtool cannot recognize.
8492 *** The result is that libtool may fail to recognize shared libraries
8493 *** as such.  This will affect the creation of libtool libraries that
8494 *** depend on shared libraries, but programs linked with such libtool
8495 *** libraries will work regardless of this problem.  Nevertheless, you
8496 *** may want to report the problem to your system manager and/or to
8497 *** bug-libtool@gnu.org
8498
8499 _LT_EOF
8500           fi ;;
8501         esac
8502       fi
8503       break
8504     fi
8505   done
8506   IFS="$lt_save_ifs"
8507   MAGIC_CMD="$lt_save_MAGIC_CMD"
8508   ;;
8509 esac
8510 fi
8511
8512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8513 if test -n "$MAGIC_CMD"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8515 $as_echo "$MAGIC_CMD" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521
8522   else
8523     MAGIC_CMD=:
8524   fi
8525 fi
8526
8527   fi
8528   ;;
8529 esac
8530
8531 # Use C for the default configuration in the libtool script
8532
8533 lt_save_CC="$CC"
8534 ac_ext=c
8535 ac_cpp='$CPP $CPPFLAGS'
8536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539
8540
8541 # Source file extension for C test sources.
8542 ac_ext=c
8543
8544 # Object file extension for compiled C test sources.
8545 objext=o
8546 objext=$objext
8547
8548 # Code to be used in simple compile tests
8549 lt_simple_compile_test_code="int some_variable = 0;"
8550
8551 # Code to be used in simple link tests
8552 lt_simple_link_test_code='int main(){return(0);}'
8553
8554
8555
8556
8557
8558
8559
8560 # If no C compiler was specified, use CC.
8561 LTCC=${LTCC-"$CC"}
8562
8563 # If no C compiler flags were specified, use CFLAGS.
8564 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8565
8566 # Allow CC to be a program name with arguments.
8567 compiler=$CC
8568
8569 # Save the default compiler, since it gets overwritten when the other
8570 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8571 compiler_DEFAULT=$CC
8572
8573 # save warnings/boilerplate of simple test code
8574 ac_outfile=conftest.$ac_objext
8575 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8576 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8577 _lt_compiler_boilerplate=`cat conftest.err`
8578 $RM conftest*
8579
8580 ac_outfile=conftest.$ac_objext
8581 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8582 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8583 _lt_linker_boilerplate=`cat conftest.err`
8584 $RM -r conftest*
8585
8586
8587 ## CAVEAT EMPTOR:
8588 ## There is no encapsulation within the following macros, do not change
8589 ## the running order or otherwise move them around unless you know exactly
8590 ## what you are doing...
8591 if test -n "$compiler"; then
8592
8593 lt_prog_compiler_no_builtin_flag=
8594
8595 if test "$GCC" = yes; then
8596   case $cc_basename in
8597   nvcc*)
8598     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8599   *)
8600     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8601   esac
8602
8603   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8604 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8605 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   lt_cv_prog_compiler_rtti_exceptions=no
8609    ac_outfile=conftest.$ac_objext
8610    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8611    lt_compiler_flag="-fno-rtti -fno-exceptions"
8612    # Insert the option either (1) after the last *FLAGS variable, or
8613    # (2) before a word containing "conftest.", or (3) at the end.
8614    # Note that $ac_compile itself does not contain backslashes and begins
8615    # with a dollar sign (not a hyphen), so the echo should work correctly.
8616    # The option is referenced via a variable to avoid confusing sed.
8617    lt_compile=`echo "$ac_compile" | $SED \
8618    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8619    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8620    -e 's:$: $lt_compiler_flag:'`
8621    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8622    (eval "$lt_compile" 2>conftest.err)
8623    ac_status=$?
8624    cat conftest.err >&5
8625    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626    if (exit $ac_status) && test -s "$ac_outfile"; then
8627      # The compiler can only warn and ignore the option if not recognized
8628      # So say no if there are warnings other than the usual output.
8629      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8630      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8631      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8632        lt_cv_prog_compiler_rtti_exceptions=yes
8633      fi
8634    fi
8635    $RM conftest*
8636
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8639 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8640
8641 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8642     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8643 else
8644     :
8645 fi
8646
8647 fi
8648
8649
8650
8651
8652
8653
8654   lt_prog_compiler_wl=
8655 lt_prog_compiler_pic=
8656 lt_prog_compiler_static=
8657
8658
8659   if test "$GCC" = yes; then
8660     lt_prog_compiler_wl='-Wl,'
8661     lt_prog_compiler_static='-static'
8662
8663     case $host_os in
8664       aix*)
8665       # All AIX code is PIC.
8666       if test "$host_cpu" = ia64; then
8667         # AIX 5 now supports IA64 processor
8668         lt_prog_compiler_static='-Bstatic'
8669       fi
8670       ;;
8671
8672     amigaos*)
8673       case $host_cpu in
8674       powerpc)
8675             # see comment about AmigaOS4 .so support
8676             lt_prog_compiler_pic='-fPIC'
8677         ;;
8678       m68k)
8679             # FIXME: we need at least 68020 code to build shared libraries, but
8680             # adding the `-m68020' flag to GCC prevents building anything better,
8681             # like `-m68040'.
8682             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8683         ;;
8684       esac
8685       ;;
8686
8687     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8688       # PIC is the default for these OSes.
8689       ;;
8690
8691     mingw* | cygwin* | pw32* | os2* | cegcc*)
8692       # This hack is so that the source file can tell whether it is being
8693       # built for inclusion in a dll (and should export symbols for example).
8694       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8695       # (--disable-auto-import) libraries
8696       lt_prog_compiler_pic='-DDLL_EXPORT'
8697       ;;
8698
8699     darwin* | rhapsody*)
8700       # PIC is the default on this platform
8701       # Common symbols not allowed in MH_DYLIB files
8702       lt_prog_compiler_pic='-fno-common'
8703       ;;
8704
8705     haiku*)
8706       # PIC is the default for Haiku.
8707       # The "-static" flag exists, but is broken.
8708       lt_prog_compiler_static=
8709       ;;
8710
8711     hpux*)
8712       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8713       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8714       # sets the default TLS model and affects inlining.
8715       case $host_cpu in
8716       hppa*64*)
8717         # +Z the default
8718         ;;
8719       *)
8720         lt_prog_compiler_pic='-fPIC'
8721         ;;
8722       esac
8723       ;;
8724
8725     interix[3-9]*)
8726       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8727       # Instead, we relocate shared libraries at runtime.
8728       ;;
8729
8730     msdosdjgpp*)
8731       # Just because we use GCC doesn't mean we suddenly get shared libraries
8732       # on systems that don't support them.
8733       lt_prog_compiler_can_build_shared=no
8734       enable_shared=no
8735       ;;
8736
8737     *nto* | *qnx*)
8738       # QNX uses GNU C++, but need to define -shared option too, otherwise
8739       # it will coredump.
8740       lt_prog_compiler_pic='-fPIC -shared'
8741       ;;
8742
8743     sysv4*MP*)
8744       if test -d /usr/nec; then
8745         lt_prog_compiler_pic=-Kconform_pic
8746       fi
8747       ;;
8748
8749     *)
8750       lt_prog_compiler_pic='-fPIC'
8751       ;;
8752     esac
8753
8754     case $cc_basename in
8755     nvcc*) # Cuda Compiler Driver 2.2
8756       lt_prog_compiler_wl='-Xlinker '
8757       if test -n "$lt_prog_compiler_pic"; then
8758         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8759       fi
8760       ;;
8761     esac
8762   else
8763     # PORTME Check for flag to pass linker flags through the system compiler.
8764     case $host_os in
8765     aix*)
8766       lt_prog_compiler_wl='-Wl,'
8767       if test "$host_cpu" = ia64; then
8768         # AIX 5 now supports IA64 processor
8769         lt_prog_compiler_static='-Bstatic'
8770       else
8771         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8772       fi
8773       ;;
8774
8775     mingw* | cygwin* | pw32* | os2* | cegcc*)
8776       # This hack is so that the source file can tell whether it is being
8777       # built for inclusion in a dll (and should export symbols for example).
8778       lt_prog_compiler_pic='-DDLL_EXPORT'
8779       ;;
8780
8781     hpux9* | hpux10* | hpux11*)
8782       lt_prog_compiler_wl='-Wl,'
8783       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8784       # not for PA HP-UX.
8785       case $host_cpu in
8786       hppa*64*|ia64*)
8787         # +Z the default
8788         ;;
8789       *)
8790         lt_prog_compiler_pic='+Z'
8791         ;;
8792       esac
8793       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8794       lt_prog_compiler_static='${wl}-a ${wl}archive'
8795       ;;
8796
8797     irix5* | irix6* | nonstopux*)
8798       lt_prog_compiler_wl='-Wl,'
8799       # PIC (with -KPIC) is the default.
8800       lt_prog_compiler_static='-non_shared'
8801       ;;
8802
8803     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8804       case $cc_basename in
8805       # old Intel for x86_64 which still supported -KPIC.
8806       ecc*)
8807         lt_prog_compiler_wl='-Wl,'
8808         lt_prog_compiler_pic='-KPIC'
8809         lt_prog_compiler_static='-static'
8810         ;;
8811       # icc used to be incompatible with GCC.
8812       # ICC 10 doesn't accept -KPIC any more.
8813       icc* | ifort*)
8814         lt_prog_compiler_wl='-Wl,'
8815         lt_prog_compiler_pic='-fPIC'
8816         lt_prog_compiler_static='-static'
8817         ;;
8818       # Lahey Fortran 8.1.
8819       lf95*)
8820         lt_prog_compiler_wl='-Wl,'
8821         lt_prog_compiler_pic='--shared'
8822         lt_prog_compiler_static='--static'
8823         ;;
8824       nagfor*)
8825         # NAG Fortran compiler
8826         lt_prog_compiler_wl='-Wl,-Wl,,'
8827         lt_prog_compiler_pic='-PIC'
8828         lt_prog_compiler_static='-Bstatic'
8829         ;;
8830       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8831         # Portland Group compilers (*not* the Pentium gcc compiler,
8832         # which looks to be a dead project)
8833         lt_prog_compiler_wl='-Wl,'
8834         lt_prog_compiler_pic='-fpic'
8835         lt_prog_compiler_static='-Bstatic'
8836         ;;
8837       ccc*)
8838         lt_prog_compiler_wl='-Wl,'
8839         # All Alpha code is PIC.
8840         lt_prog_compiler_static='-non_shared'
8841         ;;
8842       xl* | bgxl* | bgf* | mpixl*)
8843         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8844         lt_prog_compiler_wl='-Wl,'
8845         lt_prog_compiler_pic='-qpic'
8846         lt_prog_compiler_static='-qstaticlink'
8847         ;;
8848       *)
8849         case `$CC -V 2>&1 | sed 5q` in
8850         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8851           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8852           lt_prog_compiler_pic='-KPIC'
8853           lt_prog_compiler_static='-Bstatic'
8854           lt_prog_compiler_wl=''
8855           ;;
8856         *Sun\ F* | *Sun*Fortran*)
8857           lt_prog_compiler_pic='-KPIC'
8858           lt_prog_compiler_static='-Bstatic'
8859           lt_prog_compiler_wl='-Qoption ld '
8860           ;;
8861         *Sun\ C*)
8862           # Sun C 5.9
8863           lt_prog_compiler_pic='-KPIC'
8864           lt_prog_compiler_static='-Bstatic'
8865           lt_prog_compiler_wl='-Wl,'
8866           ;;
8867         *Intel*\ [CF]*Compiler*)
8868           lt_prog_compiler_wl='-Wl,'
8869           lt_prog_compiler_pic='-fPIC'
8870           lt_prog_compiler_static='-static'
8871           ;;
8872         *Portland\ Group*)
8873           lt_prog_compiler_wl='-Wl,'
8874           lt_prog_compiler_pic='-fpic'
8875           lt_prog_compiler_static='-Bstatic'
8876           ;;
8877         esac
8878         ;;
8879       esac
8880       ;;
8881
8882     newsos6)
8883       lt_prog_compiler_pic='-KPIC'
8884       lt_prog_compiler_static='-Bstatic'
8885       ;;
8886
8887     *nto* | *qnx*)
8888       # QNX uses GNU C++, but need to define -shared option too, otherwise
8889       # it will coredump.
8890       lt_prog_compiler_pic='-fPIC -shared'
8891       ;;
8892
8893     osf3* | osf4* | osf5*)
8894       lt_prog_compiler_wl='-Wl,'
8895       # All OSF/1 code is PIC.
8896       lt_prog_compiler_static='-non_shared'
8897       ;;
8898
8899     rdos*)
8900       lt_prog_compiler_static='-non_shared'
8901       ;;
8902
8903     solaris*)
8904       lt_prog_compiler_pic='-KPIC'
8905       lt_prog_compiler_static='-Bstatic'
8906       case $cc_basename in
8907       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8908         lt_prog_compiler_wl='-Qoption ld ';;
8909       *)
8910         lt_prog_compiler_wl='-Wl,';;
8911       esac
8912       ;;
8913
8914     sunos4*)
8915       lt_prog_compiler_wl='-Qoption ld '
8916       lt_prog_compiler_pic='-PIC'
8917       lt_prog_compiler_static='-Bstatic'
8918       ;;
8919
8920     sysv4 | sysv4.2uw2* | sysv4.3*)
8921       lt_prog_compiler_wl='-Wl,'
8922       lt_prog_compiler_pic='-KPIC'
8923       lt_prog_compiler_static='-Bstatic'
8924       ;;
8925
8926     sysv4*MP*)
8927       if test -d /usr/nec ;then
8928         lt_prog_compiler_pic='-Kconform_pic'
8929         lt_prog_compiler_static='-Bstatic'
8930       fi
8931       ;;
8932
8933     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8934       lt_prog_compiler_wl='-Wl,'
8935       lt_prog_compiler_pic='-KPIC'
8936       lt_prog_compiler_static='-Bstatic'
8937       ;;
8938
8939     unicos*)
8940       lt_prog_compiler_wl='-Wl,'
8941       lt_prog_compiler_can_build_shared=no
8942       ;;
8943
8944     uts4*)
8945       lt_prog_compiler_pic='-pic'
8946       lt_prog_compiler_static='-Bstatic'
8947       ;;
8948
8949     *)
8950       lt_prog_compiler_can_build_shared=no
8951       ;;
8952     esac
8953   fi
8954
8955 case $host_os in
8956   # For platforms which do not support PIC, -DPIC is meaningless:
8957   *djgpp*)
8958     lt_prog_compiler_pic=
8959     ;;
8960   *)
8961     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8962     ;;
8963 esac
8964
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8966 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8967 if ${lt_cv_prog_compiler_pic+:} false; then :
8968   $as_echo_n "(cached) " >&6
8969 else
8970   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8973 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8974 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8975
8976 #
8977 # Check to make sure the PIC flag actually works.
8978 #
8979 if test -n "$lt_prog_compiler_pic"; then
8980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8981 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8982 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   lt_cv_prog_compiler_pic_works=no
8986    ac_outfile=conftest.$ac_objext
8987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8989    # Insert the option either (1) after the last *FLAGS variable, or
8990    # (2) before a word containing "conftest.", or (3) at the end.
8991    # Note that $ac_compile itself does not contain backslashes and begins
8992    # with a dollar sign (not a hyphen), so the echo should work correctly.
8993    # The option is referenced via a variable to avoid confusing sed.
8994    lt_compile=`echo "$ac_compile" | $SED \
8995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997    -e 's:$: $lt_compiler_flag:'`
8998    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8999    (eval "$lt_compile" 2>conftest.err)
9000    ac_status=$?
9001    cat conftest.err >&5
9002    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003    if (exit $ac_status) && test -s "$ac_outfile"; then
9004      # The compiler can only warn and ignore the option if not recognized
9005      # So say no if there are warnings other than the usual output.
9006      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9007      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9008      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9009        lt_cv_prog_compiler_pic_works=yes
9010      fi
9011    fi
9012    $RM conftest*
9013
9014 fi
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9016 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9017
9018 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9019     case $lt_prog_compiler_pic in
9020      "" | " "*) ;;
9021      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9022      esac
9023 else
9024     lt_prog_compiler_pic=
9025      lt_prog_compiler_can_build_shared=no
9026 fi
9027
9028 fi
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040 #
9041 # Check to make sure the static flag actually works.
9042 #
9043 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9045 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9046 if ${lt_cv_prog_compiler_static_works+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   lt_cv_prog_compiler_static_works=no
9050    save_LDFLAGS="$LDFLAGS"
9051    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9052    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9053    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9054      # The linker can only warn and ignore the option if not recognized
9055      # So say no if there are warnings
9056      if test -s conftest.err; then
9057        # Append any errors to the config.log.
9058        cat conftest.err 1>&5
9059        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9060        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061        if diff conftest.exp conftest.er2 >/dev/null; then
9062          lt_cv_prog_compiler_static_works=yes
9063        fi
9064      else
9065        lt_cv_prog_compiler_static_works=yes
9066      fi
9067    fi
9068    $RM -r conftest*
9069    LDFLAGS="$save_LDFLAGS"
9070
9071 fi
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9073 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9074
9075 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9076     :
9077 else
9078     lt_prog_compiler_static=
9079 fi
9080
9081
9082
9083
9084
9085
9086
9087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9088 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9089 if ${lt_cv_prog_compiler_c_o+:} false; then :
9090   $as_echo_n "(cached) " >&6
9091 else
9092   lt_cv_prog_compiler_c_o=no
9093    $RM -r conftest 2>/dev/null
9094    mkdir conftest
9095    cd conftest
9096    mkdir out
9097    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9098
9099    lt_compiler_flag="-o out/conftest2.$ac_objext"
9100    # Insert the option either (1) after the last *FLAGS variable, or
9101    # (2) before a word containing "conftest.", or (3) at the end.
9102    # Note that $ac_compile itself does not contain backslashes and begins
9103    # with a dollar sign (not a hyphen), so the echo should work correctly.
9104    lt_compile=`echo "$ac_compile" | $SED \
9105    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9106    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9107    -e 's:$: $lt_compiler_flag:'`
9108    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9109    (eval "$lt_compile" 2>out/conftest.err)
9110    ac_status=$?
9111    cat out/conftest.err >&5
9112    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9114    then
9115      # The compiler can only warn and ignore the option if not recognized
9116      # So say no if there are warnings
9117      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9118      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9119      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9120        lt_cv_prog_compiler_c_o=yes
9121      fi
9122    fi
9123    chmod u+w . 2>&5
9124    $RM conftest*
9125    # SGI C++ compiler will create directory out/ii_files/ for
9126    # template instantiation
9127    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9128    $RM out/* && rmdir out
9129    cd ..
9130    $RM -r conftest
9131    $RM conftest*
9132
9133 fi
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9135 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9136
9137
9138
9139
9140
9141
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9144 if ${lt_cv_prog_compiler_c_o+:} false; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   lt_cv_prog_compiler_c_o=no
9148    $RM -r conftest 2>/dev/null
9149    mkdir conftest
9150    cd conftest
9151    mkdir out
9152    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9153
9154    lt_compiler_flag="-o out/conftest2.$ac_objext"
9155    # Insert the option either (1) after the last *FLAGS variable, or
9156    # (2) before a word containing "conftest.", or (3) at the end.
9157    # Note that $ac_compile itself does not contain backslashes and begins
9158    # with a dollar sign (not a hyphen), so the echo should work correctly.
9159    lt_compile=`echo "$ac_compile" | $SED \
9160    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9161    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9162    -e 's:$: $lt_compiler_flag:'`
9163    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9164    (eval "$lt_compile" 2>out/conftest.err)
9165    ac_status=$?
9166    cat out/conftest.err >&5
9167    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9169    then
9170      # The compiler can only warn and ignore the option if not recognized
9171      # So say no if there are warnings
9172      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9173      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9174      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9175        lt_cv_prog_compiler_c_o=yes
9176      fi
9177    fi
9178    chmod u+w . 2>&5
9179    $RM conftest*
9180    # SGI C++ compiler will create directory out/ii_files/ for
9181    # template instantiation
9182    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9183    $RM out/* && rmdir out
9184    cd ..
9185    $RM -r conftest
9186    $RM conftest*
9187
9188 fi
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9191
9192
9193
9194
9195 hard_links="nottested"
9196 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9197   # do not overwrite the value of need_locks provided by the user
9198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9199 $as_echo_n "checking if we can lock with hard links... " >&6; }
9200   hard_links=yes
9201   $RM conftest*
9202   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203   touch conftest.a
9204   ln conftest.a conftest.b 2>&5 || hard_links=no
9205   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9207 $as_echo "$hard_links" >&6; }
9208   if test "$hard_links" = no; then
9209     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9210 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9211     need_locks=warn
9212   fi
9213 else
9214   need_locks=no
9215 fi
9216
9217
9218
9219
9220
9221
9222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9223 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9224
9225   runpath_var=
9226   allow_undefined_flag=
9227   always_export_symbols=no
9228   archive_cmds=
9229   archive_expsym_cmds=
9230   compiler_needs_object=no
9231   enable_shared_with_static_runtimes=no
9232   export_dynamic_flag_spec=
9233   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9234   hardcode_automatic=no
9235   hardcode_direct=no
9236   hardcode_direct_absolute=no
9237   hardcode_libdir_flag_spec=
9238   hardcode_libdir_separator=
9239   hardcode_minus_L=no
9240   hardcode_shlibpath_var=unsupported
9241   inherit_rpath=no
9242   link_all_deplibs=unknown
9243   module_cmds=
9244   module_expsym_cmds=
9245   old_archive_from_new_cmds=
9246   old_archive_from_expsyms_cmds=
9247   thread_safe_flag_spec=
9248   whole_archive_flag_spec=
9249   # include_expsyms should be a list of space-separated symbols to be *always*
9250   # included in the symbol list
9251   include_expsyms=
9252   # exclude_expsyms can be an extended regexp of symbols to exclude
9253   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9254   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9255   # as well as any symbol that contains `d'.
9256   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9257   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9258   # platforms (ab)use it in PIC code, but their linkers get confused if
9259   # the symbol is explicitly referenced.  Since portable code cannot
9260   # rely on this symbol name, it's probably fine to never include it in
9261   # preloaded symbol tables.
9262   # Exclude shared library initialization/finalization symbols.
9263   extract_expsyms_cmds=
9264
9265   case $host_os in
9266   cygwin* | mingw* | pw32* | cegcc*)
9267     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9268     # When not using gcc, we currently assume that we are using
9269     # Microsoft Visual C++.
9270     if test "$GCC" != yes; then
9271       with_gnu_ld=no
9272     fi
9273     ;;
9274   interix*)
9275     # we just hope/assume this is gcc and not c89 (= MSVC++)
9276     with_gnu_ld=yes
9277     ;;
9278   openbsd*)
9279     with_gnu_ld=no
9280     ;;
9281   esac
9282
9283   ld_shlibs=yes
9284
9285   # On some targets, GNU ld is compatible enough with the native linker
9286   # that we're better off using the native interface for both.
9287   lt_use_gnu_ld_interface=no
9288   if test "$with_gnu_ld" = yes; then
9289     case $host_os in
9290       aix*)
9291         # The AIX port of GNU ld has always aspired to compatibility
9292         # with the native linker.  However, as the warning in the GNU ld
9293         # block says, versions before 2.19.5* couldn't really create working
9294         # shared libraries, regardless of the interface used.
9295         case `$LD -v 2>&1` in
9296           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299           *)
9300             lt_use_gnu_ld_interface=yes
9301             ;;
9302         esac
9303         ;;
9304       *)
9305         lt_use_gnu_ld_interface=yes
9306         ;;
9307     esac
9308   fi
9309
9310   if test "$lt_use_gnu_ld_interface" = yes; then
9311     # If archive_cmds runs LD, not CC, wlarc should be empty
9312     wlarc='${wl}'
9313
9314     # Set some defaults for GNU ld with shared library support. These
9315     # are reset later if shared libraries are not supported. Putting them
9316     # here allows them to be overridden if necessary.
9317     runpath_var=LD_RUN_PATH
9318     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9319     export_dynamic_flag_spec='${wl}--export-dynamic'
9320     # ancient GNU ld didn't support --whole-archive et. al.
9321     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9323     else
9324       whole_archive_flag_spec=
9325     fi
9326     supports_anon_versioning=no
9327     case `$LD -v 2>&1` in
9328       *GNU\ gold*) supports_anon_versioning=yes ;;
9329       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332       *\ 2.11.*) ;; # other 2.11 versions
9333       *) supports_anon_versioning=yes ;;
9334     esac
9335
9336     # See if GNU ld supports shared libraries.
9337     case $host_os in
9338     aix[3-9]*)
9339       # On AIX/PPC, the GNU linker is very broken
9340       if test "$host_cpu" != ia64; then
9341         ld_shlibs=no
9342         cat <<_LT_EOF 1>&2
9343
9344 *** Warning: the GNU linker, at least up to release 2.19, is reported
9345 *** to be unable to reliably create shared libraries on AIX.
9346 *** Therefore, libtool is disabling shared libraries support.  If you
9347 *** really care for shared libraries, you may want to install binutils
9348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349 *** You will then need to restart the configuration process.
9350
9351 _LT_EOF
9352       fi
9353       ;;
9354
9355     amigaos*)
9356       case $host_cpu in
9357       powerpc)
9358             # see comment about AmigaOS4 .so support
9359             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360             archive_expsym_cmds=''
9361         ;;
9362       m68k)
9363             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)'
9364             hardcode_libdir_flag_spec='-L$libdir'
9365             hardcode_minus_L=yes
9366         ;;
9367       esac
9368       ;;
9369
9370     beos*)
9371       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372         allow_undefined_flag=unsupported
9373         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9374         # support --undefined.  This deserves some investigation.  FIXME
9375         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9376       else
9377         ld_shlibs=no
9378       fi
9379       ;;
9380
9381     cygwin* | mingw* | pw32* | cegcc*)
9382       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383       # as there is no search path for DLLs.
9384       hardcode_libdir_flag_spec='-L$libdir'
9385       export_dynamic_flag_spec='${wl}--export-all-symbols'
9386       allow_undefined_flag=unsupported
9387       always_export_symbols=no
9388       enable_shared_with_static_runtimes=yes
9389       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'
9390       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9391
9392       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9393         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394         # If the export-symbols file already is a .def file (1st line
9395         # is EXPORTS), use it as is; otherwise, prepend...
9396         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9397           cp $export_symbols $output_objdir/$soname.def;
9398         else
9399           echo EXPORTS > $output_objdir/$soname.def;
9400           cat $export_symbols >> $output_objdir/$soname.def;
9401         fi~
9402         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9403       else
9404         ld_shlibs=no
9405       fi
9406       ;;
9407
9408     haiku*)
9409       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9410       link_all_deplibs=yes
9411       ;;
9412
9413     interix[3-9]*)
9414       hardcode_direct=no
9415       hardcode_shlibpath_var=no
9416       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9417       export_dynamic_flag_spec='${wl}-E'
9418       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9419       # Instead, shared libraries are loaded at an image base (0x10000000 by
9420       # default) and relocated if they conflict, which is a slow very memory
9421       # consuming and fragmenting process.  To avoid this, we pick a random,
9422       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9423       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9424       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9425       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'
9426       ;;
9427
9428     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9429       tmp_diet=no
9430       if test "$host_os" = linux-dietlibc; then
9431         case $cc_basename in
9432           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9433         esac
9434       fi
9435       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9436          && test "$tmp_diet" = no
9437       then
9438         tmp_addflag=' $pic_flag'
9439         tmp_sharedflag='-shared'
9440         case $cc_basename,$host_cpu in
9441         pgcc*)                          # Portland Group C compiler
9442           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'
9443           tmp_addflag=' $pic_flag'
9444           ;;
9445         pgf77* | pgf90* | pgf95* | pgfortran*)
9446                                         # Portland Group f77 and f90 compilers
9447           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'
9448           tmp_addflag=' $pic_flag -Mnomain' ;;
9449         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9450           tmp_addflag=' -i_dynamic' ;;
9451         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9452           tmp_addflag=' -i_dynamic -nofor_main' ;;
9453         ifc* | ifort*)                  # Intel Fortran compiler
9454           tmp_addflag=' -nofor_main' ;;
9455         lf95*)                          # Lahey Fortran 8.1
9456           whole_archive_flag_spec=
9457           tmp_sharedflag='--shared' ;;
9458         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9459           tmp_sharedflag='-qmkshrobj'
9460           tmp_addflag= ;;
9461         nvcc*)  # Cuda Compiler Driver 2.2
9462           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'
9463           compiler_needs_object=yes
9464           ;;
9465         esac
9466         case `$CC -V 2>&1 | sed 5q` in
9467         *Sun\ C*)                       # Sun C 5.9
9468           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'
9469           compiler_needs_object=yes
9470           tmp_sharedflag='-G' ;;
9471         *Sun\ F*)                       # Sun Fortran 8.3
9472           tmp_sharedflag='-G' ;;
9473         esac
9474         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9475
9476         if test "x$supports_anon_versioning" = xyes; then
9477           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9478             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9479             echo "local: *; };" >> $output_objdir/$libname.ver~
9480             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9481         fi
9482
9483         case $cc_basename in
9484         xlf* | bgf* | bgxlf* | mpixlf*)
9485           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9486           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9487           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9488           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9489           if test "x$supports_anon_versioning" = xyes; then
9490             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9491               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9492               echo "local: *; };" >> $output_objdir/$libname.ver~
9493               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9494           fi
9495           ;;
9496         esac
9497       else
9498         ld_shlibs=no
9499       fi
9500       ;;
9501
9502     netbsd*)
9503       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9504         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9505         wlarc=
9506       else
9507         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9508         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9509       fi
9510       ;;
9511
9512     solaris*)
9513       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9514         ld_shlibs=no
9515         cat <<_LT_EOF 1>&2
9516
9517 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9518 *** create shared libraries on Solaris systems.  Therefore, libtool
9519 *** is disabling shared libraries support.  We urge you to upgrade GNU
9520 *** binutils to release 2.9.1 or newer.  Another option is to modify
9521 *** your PATH or compiler configuration so that the native linker is
9522 *** used, and then restart.
9523
9524 _LT_EOF
9525       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9526         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9527         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9528       else
9529         ld_shlibs=no
9530       fi
9531       ;;
9532
9533     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9534       case `$LD -v 2>&1` in
9535         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9536         ld_shlibs=no
9537         cat <<_LT_EOF 1>&2
9538
9539 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9540 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9541 *** is disabling shared libraries support.  We urge you to upgrade GNU
9542 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9543 *** your PATH or compiler configuration so that the native linker is
9544 *** used, and then restart.
9545
9546 _LT_EOF
9547         ;;
9548         *)
9549           # For security reasons, it is highly recommended that you always
9550           # use absolute paths for naming shared libraries, and exclude the
9551           # DT_RUNPATH tag from executables and libraries.  But doing so
9552           # requires that you compile everything twice, which is a pain.
9553           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9554             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9555             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9556             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9557           else
9558             ld_shlibs=no
9559           fi
9560         ;;
9561       esac
9562       ;;
9563
9564     sunos4*)
9565       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9566       wlarc=
9567       hardcode_direct=yes
9568       hardcode_shlibpath_var=no
9569       ;;
9570
9571     *)
9572       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9573         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9574         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9575       else
9576         ld_shlibs=no
9577       fi
9578       ;;
9579     esac
9580
9581     if test "$ld_shlibs" = no; then
9582       runpath_var=
9583       hardcode_libdir_flag_spec=
9584       export_dynamic_flag_spec=
9585       whole_archive_flag_spec=
9586     fi
9587   else
9588     # PORTME fill in a description of your system's linker (not GNU ld)
9589     case $host_os in
9590     aix3*)
9591       allow_undefined_flag=unsupported
9592       always_export_symbols=yes
9593       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'
9594       # Note: this linker hardcodes the directories in LIBPATH if there
9595       # are no directories specified by -L.
9596       hardcode_minus_L=yes
9597       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9598         # Neither direct hardcoding nor static linking is supported with a
9599         # broken collect2.
9600         hardcode_direct=unsupported
9601       fi
9602       ;;
9603
9604     aix[4-9]*)
9605       if test "$host_cpu" = ia64; then
9606         # On IA64, the linker does run time linking by default, so we don't
9607         # have to do anything special.
9608         aix_use_runtimelinking=no
9609         exp_sym_flag='-Bexport'
9610         no_entry_flag=""
9611       else
9612         # If we're using GNU nm, then we don't want the "-C" option.
9613         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9614         # Also, AIX nm treats weak defined symbols like other global
9615         # defined symbols, whereas GNU nm marks them as "W".
9616         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9617           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'
9618         else
9619           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'
9620         fi
9621         aix_use_runtimelinking=no
9622
9623         # Test if we are trying to use run time linking or normal
9624         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9625         # need to do runtime linking.
9626         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9627           for ld_flag in $LDFLAGS; do
9628           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9629             aix_use_runtimelinking=yes
9630             break
9631           fi
9632           done
9633           ;;
9634         esac
9635
9636         exp_sym_flag='-bexport'
9637         no_entry_flag='-bnoentry'
9638       fi
9639
9640       # When large executables or shared objects are built, AIX ld can
9641       # have problems creating the table of contents.  If linking a library
9642       # or program results in "error TOC overflow" add -mminimal-toc to
9643       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9644       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9645
9646       archive_cmds=''
9647       hardcode_direct=yes
9648       hardcode_direct_absolute=yes
9649       hardcode_libdir_separator=':'
9650       link_all_deplibs=yes
9651       file_list_spec='${wl}-f,'
9652
9653       if test "$GCC" = yes; then
9654         case $host_os in aix4.[012]|aix4.[012].*)
9655         # We only want to do this on AIX 4.2 and lower, the check
9656         # below for broken collect2 doesn't work under 4.3+
9657           collect2name=`${CC} -print-prog-name=collect2`
9658           if test -f "$collect2name" &&
9659            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9660           then
9661           # We have reworked collect2
9662           :
9663           else
9664           # We have old collect2
9665           hardcode_direct=unsupported
9666           # It fails to find uninstalled libraries when the uninstalled
9667           # path is not listed in the libpath.  Setting hardcode_minus_L
9668           # to unsupported forces relinking
9669           hardcode_minus_L=yes
9670           hardcode_libdir_flag_spec='-L$libdir'
9671           hardcode_libdir_separator=
9672           fi
9673           ;;
9674         esac
9675         shared_flag='-shared'
9676         if test "$aix_use_runtimelinking" = yes; then
9677           shared_flag="$shared_flag "'${wl}-G'
9678         fi
9679       else
9680         # not using gcc
9681         if test "$host_cpu" = ia64; then
9682         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683         # chokes on -Wl,-G. The following line is correct:
9684           shared_flag='-G'
9685         else
9686           if test "$aix_use_runtimelinking" = yes; then
9687             shared_flag='${wl}-G'
9688           else
9689             shared_flag='${wl}-bM:SRE'
9690           fi
9691         fi
9692       fi
9693
9694       export_dynamic_flag_spec='${wl}-bexpall'
9695       # It seems that -bexpall does not export symbols beginning with
9696       # underscore (_), so it is better to generate a list of symbols to export.
9697       always_export_symbols=yes
9698       if test "$aix_use_runtimelinking" = yes; then
9699         # Warning - without using the other runtime loading flags (-brtl),
9700         # -berok will link without error, but may produce a broken library.
9701         allow_undefined_flag='-berok'
9702         # Determine the default libpath from the value encoded in an
9703         # empty executable.
9704         if test "${lt_cv_aix_libpath+set}" = set; then
9705   aix_libpath=$lt_cv_aix_libpath
9706 else
9707   if ${lt_cv_aix_libpath_+:} false; then :
9708   $as_echo_n "(cached) " >&6
9709 else
9710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h.  */
9712
9713 int
9714 main ()
9715 {
9716
9717   ;
9718   return 0;
9719 }
9720 _ACEOF
9721 if ac_fn_c_try_link "$LINENO"; then :
9722
9723   lt_aix_libpath_sed='
9724       /Import File Strings/,/^$/ {
9725           /^0/ {
9726               s/^0  *\([^ ]*\) *$/\1/
9727               p
9728           }
9729       }'
9730   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731   # Check for a 64-bit object if we didn't find anything.
9732   if test -z "$lt_cv_aix_libpath_"; then
9733     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9734   fi
9735 fi
9736 rm -f core conftest.err conftest.$ac_objext \
9737     conftest$ac_exeext conftest.$ac_ext
9738   if test -z "$lt_cv_aix_libpath_"; then
9739     lt_cv_aix_libpath_="/usr/lib:/lib"
9740   fi
9741
9742 fi
9743
9744   aix_libpath=$lt_cv_aix_libpath_
9745 fi
9746
9747         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9748         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"
9749       else
9750         if test "$host_cpu" = ia64; then
9751           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9752           allow_undefined_flag="-z nodefs"
9753           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"
9754         else
9755          # Determine the default libpath from the value encoded in an
9756          # empty executable.
9757          if test "${lt_cv_aix_libpath+set}" = set; then
9758   aix_libpath=$lt_cv_aix_libpath
9759 else
9760   if ${lt_cv_aix_libpath_+:} false; then :
9761   $as_echo_n "(cached) " >&6
9762 else
9763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764 /* end confdefs.h.  */
9765
9766 int
9767 main ()
9768 {
9769
9770   ;
9771   return 0;
9772 }
9773 _ACEOF
9774 if ac_fn_c_try_link "$LINENO"; then :
9775
9776   lt_aix_libpath_sed='
9777       /Import File Strings/,/^$/ {
9778           /^0/ {
9779               s/^0  *\([^ ]*\) *$/\1/
9780               p
9781           }
9782       }'
9783   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9784   # Check for a 64-bit object if we didn't find anything.
9785   if test -z "$lt_cv_aix_libpath_"; then
9786     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9787   fi
9788 fi
9789 rm -f core conftest.err conftest.$ac_objext \
9790     conftest$ac_exeext conftest.$ac_ext
9791   if test -z "$lt_cv_aix_libpath_"; then
9792     lt_cv_aix_libpath_="/usr/lib:/lib"
9793   fi
9794
9795 fi
9796
9797   aix_libpath=$lt_cv_aix_libpath_
9798 fi
9799
9800          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9801           # Warning - without using the other run time loading flags,
9802           # -berok will link without error, but may produce a broken library.
9803           no_undefined_flag=' ${wl}-bernotok'
9804           allow_undefined_flag=' ${wl}-berok'
9805           if test "$with_gnu_ld" = yes; then
9806             # We only use this code for GNU lds that support --whole-archive.
9807             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9808           else
9809             # Exported symbols can be pulled into shared objects from archives
9810             whole_archive_flag_spec='$convenience'
9811           fi
9812           archive_cmds_need_lc=yes
9813           # This is similar to how AIX traditionally builds its shared libraries.
9814           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'
9815         fi
9816       fi
9817       ;;
9818
9819     amigaos*)
9820       case $host_cpu in
9821       powerpc)
9822             # see comment about AmigaOS4 .so support
9823             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824             archive_expsym_cmds=''
9825         ;;
9826       m68k)
9827             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)'
9828             hardcode_libdir_flag_spec='-L$libdir'
9829             hardcode_minus_L=yes
9830         ;;
9831       esac
9832       ;;
9833
9834     bsdi[45]*)
9835       export_dynamic_flag_spec=-rdynamic
9836       ;;
9837
9838     cygwin* | mingw* | pw32* | cegcc*)
9839       # When not using gcc, we currently assume that we are using
9840       # Microsoft Visual C++.
9841       # hardcode_libdir_flag_spec is actually meaningless, as there is
9842       # no search path for DLLs.
9843       case $cc_basename in
9844       cl*)
9845         # Native MSVC
9846         hardcode_libdir_flag_spec=' '
9847         allow_undefined_flag=unsupported
9848         always_export_symbols=yes
9849         file_list_spec='@'
9850         # Tell ltmain to make .lib files, not .a files.
9851         libext=lib
9852         # Tell ltmain to make .dll files, not .so files.
9853         shrext_cmds=".dll"
9854         # FIXME: Setting linknames here is a bad hack.
9855         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9856         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9858           else
9859             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9860           fi~
9861           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9862           linknames='
9863         # The linker will not automatically build a static lib if we build a DLL.
9864         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9865         enable_shared_with_static_runtimes=yes
9866         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9867         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9868         # Don't use ranlib
9869         old_postinstall_cmds='chmod 644 $oldlib'
9870         postlink_cmds='lt_outputfile="@OUTPUT@"~
9871           lt_tool_outputfile="@TOOL_OUTPUT@"~
9872           case $lt_outputfile in
9873             *.exe|*.EXE) ;;
9874             *)
9875               lt_outputfile="$lt_outputfile.exe"
9876               lt_tool_outputfile="$lt_tool_outputfile.exe"
9877               ;;
9878           esac~
9879           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9880             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9881             $RM "$lt_outputfile.manifest";
9882           fi'
9883         ;;
9884       *)
9885         # Assume MSVC wrapper
9886         hardcode_libdir_flag_spec=' '
9887         allow_undefined_flag=unsupported
9888         # Tell ltmain to make .lib files, not .a files.
9889         libext=lib
9890         # Tell ltmain to make .dll files, not .so files.
9891         shrext_cmds=".dll"
9892         # FIXME: Setting linknames here is a bad hack.
9893         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9894         # The linker will automatically build a .lib file if we build a DLL.
9895         old_archive_from_new_cmds='true'
9896         # FIXME: Should let the user specify the lib program.
9897         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9898         enable_shared_with_static_runtimes=yes
9899         ;;
9900       esac
9901       ;;
9902
9903     darwin* | rhapsody*)
9904
9905
9906   archive_cmds_need_lc=no
9907   hardcode_direct=no
9908   hardcode_automatic=yes
9909   hardcode_shlibpath_var=unsupported
9910   if test "$lt_cv_ld_force_load" = "yes"; then
9911     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\"`'
9912
9913   else
9914     whole_archive_flag_spec=''
9915   fi
9916   link_all_deplibs=yes
9917   allow_undefined_flag="$_lt_dar_allow_undefined"
9918   case $cc_basename in
9919      ifort*) _lt_dar_can_shared=yes ;;
9920      *) _lt_dar_can_shared=$GCC ;;
9921   esac
9922   if test "$_lt_dar_can_shared" = "yes"; then
9923     output_verbose_link_cmd=func_echo_all
9924     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9925     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9926     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}"
9927     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}"
9928
9929   else
9930   ld_shlibs=no
9931   fi
9932
9933       ;;
9934
9935     dgux*)
9936       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937       hardcode_libdir_flag_spec='-L$libdir'
9938       hardcode_shlibpath_var=no
9939       ;;
9940
9941     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9942     # support.  Future versions do this automatically, but an explicit c++rt0.o
9943     # does not break anything, and helps significantly (at the cost of a little
9944     # extra space).
9945     freebsd2.2*)
9946       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9947       hardcode_libdir_flag_spec='-R$libdir'
9948       hardcode_direct=yes
9949       hardcode_shlibpath_var=no
9950       ;;
9951
9952     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9953     freebsd2.*)
9954       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9955       hardcode_direct=yes
9956       hardcode_minus_L=yes
9957       hardcode_shlibpath_var=no
9958       ;;
9959
9960     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9961     freebsd* | dragonfly*)
9962       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963       hardcode_libdir_flag_spec='-R$libdir'
9964       hardcode_direct=yes
9965       hardcode_shlibpath_var=no
9966       ;;
9967
9968     hpux9*)
9969       if test "$GCC" = yes; then
9970         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'
9971       else
9972         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'
9973       fi
9974       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9975       hardcode_libdir_separator=:
9976       hardcode_direct=yes
9977
9978       # hardcode_minus_L: Not really in the search PATH,
9979       # but as the default location of the library.
9980       hardcode_minus_L=yes
9981       export_dynamic_flag_spec='${wl}-E'
9982       ;;
9983
9984     hpux10*)
9985       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9986         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9987       else
9988         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9989       fi
9990       if test "$with_gnu_ld" = no; then
9991         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992         hardcode_libdir_separator=:
9993         hardcode_direct=yes
9994         hardcode_direct_absolute=yes
9995         export_dynamic_flag_spec='${wl}-E'
9996         # hardcode_minus_L: Not really in the search PATH,
9997         # but as the default location of the library.
9998         hardcode_minus_L=yes
9999       fi
10000       ;;
10001
10002     hpux11*)
10003       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10004         case $host_cpu in
10005         hppa*64*)
10006           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10007           ;;
10008         ia64*)
10009           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10010           ;;
10011         *)
10012           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10013           ;;
10014         esac
10015       else
10016         case $host_cpu in
10017         hppa*64*)
10018           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10019           ;;
10020         ia64*)
10021           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10022           ;;
10023         *)
10024
10025           # Older versions of the 11.00 compiler do not understand -b yet
10026           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10027           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10028 $as_echo_n "checking if $CC understands -b... " >&6; }
10029 if ${lt_cv_prog_compiler__b+:} false; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   lt_cv_prog_compiler__b=no
10033    save_LDFLAGS="$LDFLAGS"
10034    LDFLAGS="$LDFLAGS -b"
10035    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10036    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10037      # The linker can only warn and ignore the option if not recognized
10038      # So say no if there are warnings
10039      if test -s conftest.err; then
10040        # Append any errors to the config.log.
10041        cat conftest.err 1>&5
10042        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10043        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10044        if diff conftest.exp conftest.er2 >/dev/null; then
10045          lt_cv_prog_compiler__b=yes
10046        fi
10047      else
10048        lt_cv_prog_compiler__b=yes
10049      fi
10050    fi
10051    $RM -r conftest*
10052    LDFLAGS="$save_LDFLAGS"
10053
10054 fi
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10056 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10057
10058 if test x"$lt_cv_prog_compiler__b" = xyes; then
10059     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10060 else
10061     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10062 fi
10063
10064           ;;
10065         esac
10066       fi
10067       if test "$with_gnu_ld" = no; then
10068         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10069         hardcode_libdir_separator=:
10070
10071         case $host_cpu in
10072         hppa*64*|ia64*)
10073           hardcode_direct=no
10074           hardcode_shlibpath_var=no
10075           ;;
10076         *)
10077           hardcode_direct=yes
10078           hardcode_direct_absolute=yes
10079           export_dynamic_flag_spec='${wl}-E'
10080
10081           # hardcode_minus_L: Not really in the search PATH,
10082           # but as the default location of the library.
10083           hardcode_minus_L=yes
10084           ;;
10085         esac
10086       fi
10087       ;;
10088
10089     irix5* | irix6* | nonstopux*)
10090       if test "$GCC" = yes; then
10091         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'
10092         # Try to use the -exported_symbol ld option, if it does not
10093         # work, assume that -exports_file does not work either and
10094         # implicitly export all symbols.
10095         # This should be the same for all languages, so no per-tag cache variable.
10096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10097 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10098 if ${lt_cv_irix_exported_symbol+:} false; then :
10099   $as_echo_n "(cached) " >&6
10100 else
10101   save_LDFLAGS="$LDFLAGS"
10102            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104 /* end confdefs.h.  */
10105 int foo (void) { return 0; }
10106 _ACEOF
10107 if ac_fn_c_try_link "$LINENO"; then :
10108   lt_cv_irix_exported_symbol=yes
10109 else
10110   lt_cv_irix_exported_symbol=no
10111 fi
10112 rm -f core conftest.err conftest.$ac_objext \
10113     conftest$ac_exeext conftest.$ac_ext
10114            LDFLAGS="$save_LDFLAGS"
10115 fi
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10117 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10118         if test "$lt_cv_irix_exported_symbol" = yes; then
10119           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'
10120         fi
10121       else
10122         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'
10123         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'
10124       fi
10125       archive_cmds_need_lc='no'
10126       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10127       hardcode_libdir_separator=:
10128       inherit_rpath=yes
10129       link_all_deplibs=yes
10130       ;;
10131
10132     netbsd*)
10133       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10135       else
10136         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10137       fi
10138       hardcode_libdir_flag_spec='-R$libdir'
10139       hardcode_direct=yes
10140       hardcode_shlibpath_var=no
10141       ;;
10142
10143     newsos6)
10144       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145       hardcode_direct=yes
10146       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147       hardcode_libdir_separator=:
10148       hardcode_shlibpath_var=no
10149       ;;
10150
10151     *nto* | *qnx*)
10152       ;;
10153
10154     openbsd*)
10155       if test -f /usr/libexec/ld.so; then
10156         hardcode_direct=yes
10157         hardcode_shlibpath_var=no
10158         hardcode_direct_absolute=yes
10159         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10160           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10162           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163           export_dynamic_flag_spec='${wl}-E'
10164         else
10165           case $host_os in
10166            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10167              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168              hardcode_libdir_flag_spec='-R$libdir'
10169              ;;
10170            *)
10171              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10172              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10173              ;;
10174           esac
10175         fi
10176       else
10177         ld_shlibs=no
10178       fi
10179       ;;
10180
10181     os2*)
10182       hardcode_libdir_flag_spec='-L$libdir'
10183       hardcode_minus_L=yes
10184       allow_undefined_flag=unsupported
10185       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'
10186       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10187       ;;
10188
10189     osf3*)
10190       if test "$GCC" = yes; then
10191         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10192         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'
10193       else
10194         allow_undefined_flag=' -expect_unresolved \*'
10195         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'
10196       fi
10197       archive_cmds_need_lc='no'
10198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199       hardcode_libdir_separator=:
10200       ;;
10201
10202     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10203       if test "$GCC" = yes; then
10204         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10205         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'
10206         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10207       else
10208         allow_undefined_flag=' -expect_unresolved \*'
10209         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'
10210         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~
10211         $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'
10212
10213         # Both c and cxx compiler support -rpath directly
10214         hardcode_libdir_flag_spec='-rpath $libdir'
10215       fi
10216       archive_cmds_need_lc='no'
10217       hardcode_libdir_separator=:
10218       ;;
10219
10220     solaris*)
10221       no_undefined_flag=' -z defs'
10222       if test "$GCC" = yes; then
10223         wlarc='${wl}'
10224         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226           $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'
10227       else
10228         case `$CC -V 2>&1` in
10229         *"Compilers 5.0"*)
10230           wlarc=''
10231           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10233           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10234           ;;
10235         *)
10236           wlarc='${wl}'
10237           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10238           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10240           ;;
10241         esac
10242       fi
10243       hardcode_libdir_flag_spec='-R$libdir'
10244       hardcode_shlibpath_var=no
10245       case $host_os in
10246       solaris2.[0-5] | solaris2.[0-5].*) ;;
10247       *)
10248         # The compiler driver will combine and reorder linker options,
10249         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10250         # but is careful enough not to reorder.
10251         # Supported since Solaris 2.6 (maybe 2.5.1?)
10252         if test "$GCC" = yes; then
10253           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10254         else
10255           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10256         fi
10257         ;;
10258       esac
10259       link_all_deplibs=yes
10260       ;;
10261
10262     sunos4*)
10263       if test "x$host_vendor" = xsequent; then
10264         # Use $CC to link under sequent, because it throws in some extra .o
10265         # files that make .init and .fini sections work.
10266         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10267       else
10268         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10269       fi
10270       hardcode_libdir_flag_spec='-L$libdir'
10271       hardcode_direct=yes
10272       hardcode_minus_L=yes
10273       hardcode_shlibpath_var=no
10274       ;;
10275
10276     sysv4)
10277       case $host_vendor in
10278         sni)
10279           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280           hardcode_direct=yes # is this really true???
10281         ;;
10282         siemens)
10283           ## LD is ld it makes a PLAMLIB
10284           ## CC just makes a GrossModule.
10285           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10286           reload_cmds='$CC -r -o $output$reload_objs'
10287           hardcode_direct=no
10288         ;;
10289         motorola)
10290           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10292         ;;
10293       esac
10294       runpath_var='LD_RUN_PATH'
10295       hardcode_shlibpath_var=no
10296       ;;
10297
10298     sysv4.3*)
10299       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300       hardcode_shlibpath_var=no
10301       export_dynamic_flag_spec='-Bexport'
10302       ;;
10303
10304     sysv4*MP*)
10305       if test -d /usr/nec; then
10306         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307         hardcode_shlibpath_var=no
10308         runpath_var=LD_RUN_PATH
10309         hardcode_runpath_var=yes
10310         ld_shlibs=yes
10311       fi
10312       ;;
10313
10314     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10315       no_undefined_flag='${wl}-z,text'
10316       archive_cmds_need_lc=no
10317       hardcode_shlibpath_var=no
10318       runpath_var='LD_RUN_PATH'
10319
10320       if test "$GCC" = yes; then
10321         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10323       else
10324         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10326       fi
10327       ;;
10328
10329     sysv5* | sco3.2v5* | sco5v6*)
10330       # Note: We can NOT use -z defs as we might desire, because we do not
10331       # link with -lc, and that would cause any symbols used from libc to
10332       # always be unresolved, which means just about no library would
10333       # ever link correctly.  If we're not using GNU ld we use -z text
10334       # though, which does catch some bad symbols but isn't as heavy-handed
10335       # as -z defs.
10336       no_undefined_flag='${wl}-z,text'
10337       allow_undefined_flag='${wl}-z,nodefs'
10338       archive_cmds_need_lc=no
10339       hardcode_shlibpath_var=no
10340       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10341       hardcode_libdir_separator=':'
10342       link_all_deplibs=yes
10343       export_dynamic_flag_spec='${wl}-Bexport'
10344       runpath_var='LD_RUN_PATH'
10345
10346       if test "$GCC" = yes; then
10347         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10349       else
10350         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10352       fi
10353       ;;
10354
10355     uts4*)
10356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357       hardcode_libdir_flag_spec='-L$libdir'
10358       hardcode_shlibpath_var=no
10359       ;;
10360
10361     *)
10362       ld_shlibs=no
10363       ;;
10364     esac
10365
10366     if test x$host_vendor = xsni; then
10367       case $host in
10368       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10369         export_dynamic_flag_spec='${wl}-Blargedynsym'
10370         ;;
10371       esac
10372     fi
10373   fi
10374
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10376 $as_echo "$ld_shlibs" >&6; }
10377 test "$ld_shlibs" = no && can_build_shared=no
10378
10379 with_gnu_ld=$with_gnu_ld
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395 #
10396 # Do we need to explicitly link libc?
10397 #
10398 case "x$archive_cmds_need_lc" in
10399 x|xyes)
10400   # Assume -lc should be added
10401   archive_cmds_need_lc=yes
10402
10403   if test "$enable_shared" = yes && test "$GCC" = yes; then
10404     case $archive_cmds in
10405     *'~'*)
10406       # FIXME: we may have to deal with multi-command sequences.
10407       ;;
10408     '$CC '*)
10409       # Test whether the compiler implicitly links with -lc since on some
10410       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10411       # to ld, don't add -lc before -lgcc.
10412       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10414 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10415   $as_echo_n "(cached) " >&6
10416 else
10417   $RM conftest*
10418         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10419
10420         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10421   (eval $ac_compile) 2>&5
10422   ac_status=$?
10423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424   test $ac_status = 0; } 2>conftest.err; then
10425           soname=conftest
10426           lib=conftest
10427           libobjs=conftest.$ac_objext
10428           deplibs=
10429           wl=$lt_prog_compiler_wl
10430           pic_flag=$lt_prog_compiler_pic
10431           compiler_flags=-v
10432           linker_flags=-v
10433           verstring=
10434           output_objdir=.
10435           libname=conftest
10436           lt_save_allow_undefined_flag=$allow_undefined_flag
10437           allow_undefined_flag=
10438           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10439   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10440   ac_status=$?
10441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10442   test $ac_status = 0; }
10443           then
10444             lt_cv_archive_cmds_need_lc=no
10445           else
10446             lt_cv_archive_cmds_need_lc=yes
10447           fi
10448           allow_undefined_flag=$lt_save_allow_undefined_flag
10449         else
10450           cat conftest.err 1>&5
10451         fi
10452         $RM conftest*
10453
10454 fi
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10456 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10457       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10458       ;;
10459     esac
10460   fi
10461   ;;
10462 esac
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10616 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10617
10618 if test "$GCC" = yes; then
10619   case $host_os in
10620     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10621     *) lt_awk_arg="/^libraries:/" ;;
10622   esac
10623   case $host_os in
10624     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10625     *) lt_sed_strip_eq="s,=/,/,g" ;;
10626   esac
10627   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10628   case $lt_search_path_spec in
10629   *\;*)
10630     # if the path contains ";" then we assume it to be the separator
10631     # otherwise default to the standard path separator (i.e. ":") - it is
10632     # assumed that no part of a normal pathname contains ";" but that should
10633     # okay in the real world where ";" in dirpaths is itself problematic.
10634     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10635     ;;
10636   *)
10637     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10638     ;;
10639   esac
10640   # Ok, now we have the path, separated by spaces, we can step through it
10641   # and add multilib dir if necessary.
10642   lt_tmp_lt_search_path_spec=
10643   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10644   for lt_sys_path in $lt_search_path_spec; do
10645     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10646       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10647     else
10648       test -d "$lt_sys_path" && \
10649         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10650     fi
10651   done
10652   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10653 BEGIN {RS=" "; FS="/|\n";} {
10654   lt_foo="";
10655   lt_count=0;
10656   for (lt_i = NF; lt_i > 0; lt_i--) {
10657     if ($lt_i != "" && $lt_i != ".") {
10658       if ($lt_i == "..") {
10659         lt_count++;
10660       } else {
10661         if (lt_count == 0) {
10662           lt_foo="/" $lt_i lt_foo;
10663         } else {
10664           lt_count--;
10665         }
10666       }
10667     }
10668   }
10669   if (lt_foo != "") { lt_freq[lt_foo]++; }
10670   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10671 }'`
10672   # AWK program above erroneously prepends '/' to C:/dos/paths
10673   # for these hosts.
10674   case $host_os in
10675     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10676       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10677   esac
10678   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10679 else
10680   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10681 fi
10682 library_names_spec=
10683 libname_spec='lib$name'
10684 soname_spec=
10685 shrext_cmds=".so"
10686 postinstall_cmds=
10687 postuninstall_cmds=
10688 finish_cmds=
10689 finish_eval=
10690 shlibpath_var=
10691 shlibpath_overrides_runpath=unknown
10692 version_type=none
10693 dynamic_linker="$host_os ld.so"
10694 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10695 need_lib_prefix=unknown
10696 hardcode_into_libs=no
10697
10698 # when you set need_version to no, make sure it does not cause -set_version
10699 # flags to be left without arguments
10700 need_version=unknown
10701
10702 case $host_os in
10703 aix3*)
10704   version_type=linux # correct to gnu/linux during the next big refactor
10705   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10706   shlibpath_var=LIBPATH
10707
10708   # AIX 3 has no versioning support, so we append a major version to the name.
10709   soname_spec='${libname}${release}${shared_ext}$major'
10710   ;;
10711
10712 aix[4-9]*)
10713   version_type=linux # correct to gnu/linux during the next big refactor
10714   need_lib_prefix=no
10715   need_version=no
10716   hardcode_into_libs=yes
10717   if test "$host_cpu" = ia64; then
10718     # AIX 5 supports IA64
10719     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10720     shlibpath_var=LD_LIBRARY_PATH
10721   else
10722     # With GCC up to 2.95.x, collect2 would create an import file
10723     # for dependence libraries.  The import file would start with
10724     # the line `#! .'.  This would cause the generated library to
10725     # depend on `.', always an invalid library.  This was fixed in
10726     # development snapshots of GCC prior to 3.0.
10727     case $host_os in
10728       aix4 | aix4.[01] | aix4.[01].*)
10729       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10730            echo ' yes '
10731            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10732         :
10733       else
10734         can_build_shared=no
10735       fi
10736       ;;
10737     esac
10738     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10739     # soname into executable. Probably we can add versioning support to
10740     # collect2, so additional links can be useful in future.
10741     if test "$aix_use_runtimelinking" = yes; then
10742       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10743       # instead of lib<name>.a to let people know that these are not
10744       # typical AIX shared libraries.
10745       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746     else
10747       # We preserve .a as extension for shared libraries through AIX4.2
10748       # and later when we are not doing run time linking.
10749       library_names_spec='${libname}${release}.a $libname.a'
10750       soname_spec='${libname}${release}${shared_ext}$major'
10751     fi
10752     shlibpath_var=LIBPATH
10753   fi
10754   ;;
10755
10756 amigaos*)
10757   case $host_cpu in
10758   powerpc)
10759     # Since July 2007 AmigaOS4 officially supports .so libraries.
10760     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10761     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762     ;;
10763   m68k)
10764     library_names_spec='$libname.ixlibrary $libname.a'
10765     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10766     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'
10767     ;;
10768   esac
10769   ;;
10770
10771 beos*)
10772   library_names_spec='${libname}${shared_ext}'
10773   dynamic_linker="$host_os ld.so"
10774   shlibpath_var=LIBRARY_PATH
10775   ;;
10776
10777 bsdi[45]*)
10778   version_type=linux # correct to gnu/linux during the next big refactor
10779   need_version=no
10780   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781   soname_spec='${libname}${release}${shared_ext}$major'
10782   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10783   shlibpath_var=LD_LIBRARY_PATH
10784   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10785   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10786   # the default ld.so.conf also contains /usr/contrib/lib and
10787   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10788   # libtool to hard-code these into programs
10789   ;;
10790
10791 cygwin* | mingw* | pw32* | cegcc*)
10792   version_type=windows
10793   shrext_cmds=".dll"
10794   need_version=no
10795   need_lib_prefix=no
10796
10797   case $GCC,$cc_basename in
10798   yes,*)
10799     # gcc
10800     library_names_spec='$libname.dll.a'
10801     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10802     postinstall_cmds='base_file=`basename \${file}`~
10803       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10804       dldir=$destdir/`dirname \$dlpath`~
10805       test -d \$dldir || mkdir -p \$dldir~
10806       $install_prog $dir/$dlname \$dldir/$dlname~
10807       chmod a+x \$dldir/$dlname~
10808       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10809         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10810       fi'
10811     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812       dlpath=$dir/\$dldll~
10813        $RM \$dlpath'
10814     shlibpath_overrides_runpath=yes
10815
10816     case $host_os in
10817     cygwin*)
10818       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10819       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10820
10821       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10822       ;;
10823     mingw* | cegcc*)
10824       # MinGW DLLs use traditional 'lib' prefix
10825       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10826       ;;
10827     pw32*)
10828       # pw32 DLLs use 'pw' prefix rather than 'lib'
10829       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10830       ;;
10831     esac
10832     dynamic_linker='Win32 ld.exe'
10833     ;;
10834
10835   *,cl*)
10836     # Native MSVC
10837     libname_spec='$name'
10838     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839     library_names_spec='${libname}.dll.lib'
10840
10841     case $build_os in
10842     mingw*)
10843       sys_lib_search_path_spec=
10844       lt_save_ifs=$IFS
10845       IFS=';'
10846       for lt_path in $LIB
10847       do
10848         IFS=$lt_save_ifs
10849         # Let DOS variable expansion print the short 8.3 style file name.
10850         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10851         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10852       done
10853       IFS=$lt_save_ifs
10854       # Convert to MSYS style.
10855       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10856       ;;
10857     cygwin*)
10858       # Convert to unix form, then to dos form, then back to unix form
10859       # but this time dos style (no spaces!) so that the unix form looks
10860       # like /cygdrive/c/PROGRA~1:/cygdr...
10861       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10862       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10863       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10864       ;;
10865     *)
10866       sys_lib_search_path_spec="$LIB"
10867       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10868         # It is most probably a Windows format PATH.
10869         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10870       else
10871         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10872       fi
10873       # FIXME: find the short name or the path components, as spaces are
10874       # common. (e.g. "Program Files" -> "PROGRA~1")
10875       ;;
10876     esac
10877
10878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10879     postinstall_cmds='base_file=`basename \${file}`~
10880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10881       dldir=$destdir/`dirname \$dlpath`~
10882       test -d \$dldir || mkdir -p \$dldir~
10883       $install_prog $dir/$dlname \$dldir/$dlname'
10884     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10885       dlpath=$dir/\$dldll~
10886        $RM \$dlpath'
10887     shlibpath_overrides_runpath=yes
10888     dynamic_linker='Win32 link.exe'
10889     ;;
10890
10891   *)
10892     # Assume MSVC wrapper
10893     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10894     dynamic_linker='Win32 ld.exe'
10895     ;;
10896   esac
10897   # FIXME: first we should search . and the directory the executable is in
10898   shlibpath_var=PATH
10899   ;;
10900
10901 darwin* | rhapsody*)
10902   dynamic_linker="$host_os dyld"
10903   version_type=darwin
10904   need_lib_prefix=no
10905   need_version=no
10906   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10907   soname_spec='${libname}${release}${major}$shared_ext'
10908   shlibpath_overrides_runpath=yes
10909   shlibpath_var=DYLD_LIBRARY_PATH
10910   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10911
10912   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10913   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10914   ;;
10915
10916 dgux*)
10917   version_type=linux # correct to gnu/linux during the next big refactor
10918   need_lib_prefix=no
10919   need_version=no
10920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10921   soname_spec='${libname}${release}${shared_ext}$major'
10922   shlibpath_var=LD_LIBRARY_PATH
10923   ;;
10924
10925 freebsd* | dragonfly*)
10926   # DragonFly does not have aout.  When/if they implement a new
10927   # versioning mechanism, adjust this.
10928   if test -x /usr/bin/objformat; then
10929     objformat=`/usr/bin/objformat`
10930   else
10931     case $host_os in
10932     freebsd[23].*) objformat=aout ;;
10933     *) objformat=elf ;;
10934     esac
10935   fi
10936   version_type=freebsd-$objformat
10937   case $version_type in
10938     freebsd-elf*)
10939       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10940       need_version=no
10941       need_lib_prefix=no
10942       ;;
10943     freebsd-*)
10944       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10945       need_version=yes
10946       ;;
10947   esac
10948   shlibpath_var=LD_LIBRARY_PATH
10949   case $host_os in
10950   freebsd2.*)
10951     shlibpath_overrides_runpath=yes
10952     ;;
10953   freebsd3.[01]* | freebsdelf3.[01]*)
10954     shlibpath_overrides_runpath=yes
10955     hardcode_into_libs=yes
10956     ;;
10957   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10958   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10959     shlibpath_overrides_runpath=no
10960     hardcode_into_libs=yes
10961     ;;
10962   *) # from 4.6 on, and DragonFly
10963     shlibpath_overrides_runpath=yes
10964     hardcode_into_libs=yes
10965     ;;
10966   esac
10967   ;;
10968
10969 gnu*)
10970   version_type=linux # correct to gnu/linux during the next big refactor
10971   need_lib_prefix=no
10972   need_version=no
10973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10974   soname_spec='${libname}${release}${shared_ext}$major'
10975   shlibpath_var=LD_LIBRARY_PATH
10976   shlibpath_overrides_runpath=no
10977   hardcode_into_libs=yes
10978   ;;
10979
10980 haiku*)
10981   version_type=linux # correct to gnu/linux during the next big refactor
10982   need_lib_prefix=no
10983   need_version=no
10984   dynamic_linker="$host_os runtime_loader"
10985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10986   soname_spec='${libname}${release}${shared_ext}$major'
10987   shlibpath_var=LIBRARY_PATH
10988   shlibpath_overrides_runpath=yes
10989   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10990   hardcode_into_libs=yes
10991   ;;
10992
10993 hpux9* | hpux10* | hpux11*)
10994   # Give a soname corresponding to the major version so that dld.sl refuses to
10995   # link against other versions.
10996   version_type=sunos
10997   need_lib_prefix=no
10998   need_version=no
10999   case $host_cpu in
11000   ia64*)
11001     shrext_cmds='.so'
11002     hardcode_into_libs=yes
11003     dynamic_linker="$host_os dld.so"
11004     shlibpath_var=LD_LIBRARY_PATH
11005     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11007     soname_spec='${libname}${release}${shared_ext}$major'
11008     if test "X$HPUX_IA64_MODE" = X32; then
11009       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11010     else
11011       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11012     fi
11013     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11014     ;;
11015   hppa*64*)
11016     shrext_cmds='.sl'
11017     hardcode_into_libs=yes
11018     dynamic_linker="$host_os dld.sl"
11019     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11020     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11021     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11022     soname_spec='${libname}${release}${shared_ext}$major'
11023     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11024     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11025     ;;
11026   *)
11027     shrext_cmds='.sl'
11028     dynamic_linker="$host_os dld.sl"
11029     shlibpath_var=SHLIB_PATH
11030     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11031     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11032     soname_spec='${libname}${release}${shared_ext}$major'
11033     ;;
11034   esac
11035   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11036   postinstall_cmds='chmod 555 $lib'
11037   # or fails outright, so override atomically:
11038   install_override_mode=555
11039   ;;
11040
11041 interix[3-9]*)
11042   version_type=linux # correct to gnu/linux during the next big refactor
11043   need_lib_prefix=no
11044   need_version=no
11045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11046   soname_spec='${libname}${release}${shared_ext}$major'
11047   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11048   shlibpath_var=LD_LIBRARY_PATH
11049   shlibpath_overrides_runpath=no
11050   hardcode_into_libs=yes
11051   ;;
11052
11053 irix5* | irix6* | nonstopux*)
11054   case $host_os in
11055     nonstopux*) version_type=nonstopux ;;
11056     *)
11057         if test "$lt_cv_prog_gnu_ld" = yes; then
11058                 version_type=linux # correct to gnu/linux during the next big refactor
11059         else
11060                 version_type=irix
11061         fi ;;
11062   esac
11063   need_lib_prefix=no
11064   need_version=no
11065   soname_spec='${libname}${release}${shared_ext}$major'
11066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11067   case $host_os in
11068   irix5* | nonstopux*)
11069     libsuff= shlibsuff=
11070     ;;
11071   *)
11072     case $LD in # libtool.m4 will add one of these switches to LD
11073     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11074       libsuff= shlibsuff= libmagic=32-bit;;
11075     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11076       libsuff=32 shlibsuff=N32 libmagic=N32;;
11077     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11078       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11079     *) libsuff= shlibsuff= libmagic=never-match;;
11080     esac
11081     ;;
11082   esac
11083   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11084   shlibpath_overrides_runpath=no
11085   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11086   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11087   hardcode_into_libs=yes
11088   ;;
11089
11090 # No shared lib support for Linux oldld, aout, or coff.
11091 linux*oldld* | linux*aout* | linux*coff*)
11092   dynamic_linker=no
11093   ;;
11094
11095 # This must be glibc/ELF.
11096 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11097   version_type=linux # correct to gnu/linux during the next big refactor
11098   need_lib_prefix=no
11099   need_version=no
11100   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101   soname_spec='${libname}${release}${shared_ext}$major'
11102   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11103   shlibpath_var=LD_LIBRARY_PATH
11104   shlibpath_overrides_runpath=no
11105
11106   # Some binutils ld are patched to set DT_RUNPATH
11107   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11108   $as_echo_n "(cached) " >&6
11109 else
11110   lt_cv_shlibpath_overrides_runpath=no
11111     save_LDFLAGS=$LDFLAGS
11112     save_libdir=$libdir
11113     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11114          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11115     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h.  */
11117
11118 int
11119 main ()
11120 {
11121
11122   ;
11123   return 0;
11124 }
11125 _ACEOF
11126 if ac_fn_c_try_link "$LINENO"; then :
11127   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11128   lt_cv_shlibpath_overrides_runpath=yes
11129 fi
11130 fi
11131 rm -f core conftest.err conftest.$ac_objext \
11132     conftest$ac_exeext conftest.$ac_ext
11133     LDFLAGS=$save_LDFLAGS
11134     libdir=$save_libdir
11135
11136 fi
11137
11138   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11139
11140   # This implies no fast_install, which is unacceptable.
11141   # Some rework will be needed to allow for fast_install
11142   # before this can be enabled.
11143   hardcode_into_libs=yes
11144
11145   # Add ABI-specific directories to the system library path.
11146   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11147
11148   # Append ld.so.conf contents to the search path
11149   if test -f /etc/ld.so.conf; then
11150     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' ' '`
11151     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11152
11153   fi
11154
11155   # We used to test for /lib/ld.so.1 and disable shared libraries on
11156   # powerpc, because MkLinux only supported shared libraries with the
11157   # GNU dynamic linker.  Since this was broken with cross compilers,
11158   # most powerpc-linux boxes support dynamic linking these days and
11159   # people can always --disable-shared, the test was removed, and we
11160   # assume the GNU/Linux dynamic linker is in use.
11161   dynamic_linker='GNU/Linux ld.so'
11162   ;;
11163
11164 netbsd*)
11165   version_type=sunos
11166   need_lib_prefix=no
11167   need_version=no
11168   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11169     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11170     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11171     dynamic_linker='NetBSD (a.out) ld.so'
11172   else
11173     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11174     soname_spec='${libname}${release}${shared_ext}$major'
11175     dynamic_linker='NetBSD ld.elf_so'
11176   fi
11177   shlibpath_var=LD_LIBRARY_PATH
11178   shlibpath_overrides_runpath=yes
11179   hardcode_into_libs=yes
11180   ;;
11181
11182 newsos6)
11183   version_type=linux # correct to gnu/linux during the next big refactor
11184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185   shlibpath_var=LD_LIBRARY_PATH
11186   shlibpath_overrides_runpath=yes
11187   ;;
11188
11189 *nto* | *qnx*)
11190   version_type=qnx
11191   need_lib_prefix=no
11192   need_version=no
11193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11194   soname_spec='${libname}${release}${shared_ext}$major'
11195   shlibpath_var=LD_LIBRARY_PATH
11196   shlibpath_overrides_runpath=no
11197   hardcode_into_libs=yes
11198   dynamic_linker='ldqnx.so'
11199   ;;
11200
11201 openbsd*)
11202   version_type=sunos
11203   sys_lib_dlsearch_path_spec="/usr/lib"
11204   need_lib_prefix=no
11205   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11206   case $host_os in
11207     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11208     *)                          need_version=no  ;;
11209   esac
11210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11211   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11212   shlibpath_var=LD_LIBRARY_PATH
11213   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11214     case $host_os in
11215       openbsd2.[89] | openbsd2.[89].*)
11216         shlibpath_overrides_runpath=no
11217         ;;
11218       *)
11219         shlibpath_overrides_runpath=yes
11220         ;;
11221       esac
11222   else
11223     shlibpath_overrides_runpath=yes
11224   fi
11225   ;;
11226
11227 os2*)
11228   libname_spec='$name'
11229   shrext_cmds=".dll"
11230   need_lib_prefix=no
11231   library_names_spec='$libname${shared_ext} $libname.a'
11232   dynamic_linker='OS/2 ld.exe'
11233   shlibpath_var=LIBPATH
11234   ;;
11235
11236 osf3* | osf4* | osf5*)
11237   version_type=osf
11238   need_lib_prefix=no
11239   need_version=no
11240   soname_spec='${libname}${release}${shared_ext}$major'
11241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11242   shlibpath_var=LD_LIBRARY_PATH
11243   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11244   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11245   ;;
11246
11247 rdos*)
11248   dynamic_linker=no
11249   ;;
11250
11251 solaris*)
11252   version_type=linux # correct to gnu/linux during the next big refactor
11253   need_lib_prefix=no
11254   need_version=no
11255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256   soname_spec='${libname}${release}${shared_ext}$major'
11257   shlibpath_var=LD_LIBRARY_PATH
11258   shlibpath_overrides_runpath=yes
11259   hardcode_into_libs=yes
11260   # ldd complains unless libraries are executable
11261   postinstall_cmds='chmod +x $lib'
11262   ;;
11263
11264 sunos4*)
11265   version_type=sunos
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11267   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11268   shlibpath_var=LD_LIBRARY_PATH
11269   shlibpath_overrides_runpath=yes
11270   if test "$with_gnu_ld" = yes; then
11271     need_lib_prefix=no
11272   fi
11273   need_version=yes
11274   ;;
11275
11276 sysv4 | sysv4.3*)
11277   version_type=linux # correct to gnu/linux during the next big refactor
11278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279   soname_spec='${libname}${release}${shared_ext}$major'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   case $host_vendor in
11282     sni)
11283       shlibpath_overrides_runpath=no
11284       need_lib_prefix=no
11285       runpath_var=LD_RUN_PATH
11286       ;;
11287     siemens)
11288       need_lib_prefix=no
11289       ;;
11290     motorola)
11291       need_lib_prefix=no
11292       need_version=no
11293       shlibpath_overrides_runpath=no
11294       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11295       ;;
11296   esac
11297   ;;
11298
11299 sysv4*MP*)
11300   if test -d /usr/nec ;then
11301     version_type=linux # correct to gnu/linux during the next big refactor
11302     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11303     soname_spec='$libname${shared_ext}.$major'
11304     shlibpath_var=LD_LIBRARY_PATH
11305   fi
11306   ;;
11307
11308 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11309   version_type=freebsd-elf
11310   need_lib_prefix=no
11311   need_version=no
11312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11313   soname_spec='${libname}${release}${shared_ext}$major'
11314   shlibpath_var=LD_LIBRARY_PATH
11315   shlibpath_overrides_runpath=yes
11316   hardcode_into_libs=yes
11317   if test "$with_gnu_ld" = yes; then
11318     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11319   else
11320     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11321     case $host_os in
11322       sco3.2v5*)
11323         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11324         ;;
11325     esac
11326   fi
11327   sys_lib_dlsearch_path_spec='/usr/lib'
11328   ;;
11329
11330 tpf*)
11331   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11332   version_type=linux # correct to gnu/linux during the next big refactor
11333   need_lib_prefix=no
11334   need_version=no
11335   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11336   shlibpath_var=LD_LIBRARY_PATH
11337   shlibpath_overrides_runpath=no
11338   hardcode_into_libs=yes
11339   ;;
11340
11341 uts4*)
11342   version_type=linux # correct to gnu/linux during the next big refactor
11343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11344   soname_spec='${libname}${release}${shared_ext}$major'
11345   shlibpath_var=LD_LIBRARY_PATH
11346   ;;
11347
11348 *)
11349   dynamic_linker=no
11350   ;;
11351 esac
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11353 $as_echo "$dynamic_linker" >&6; }
11354 test "$dynamic_linker" = no && can_build_shared=no
11355
11356 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11357 if test "$GCC" = yes; then
11358   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11359 fi
11360
11361 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11362   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11363 fi
11364 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11365   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11366 fi
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11460 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11461 hardcode_action=
11462 if test -n "$hardcode_libdir_flag_spec" ||
11463    test -n "$runpath_var" ||
11464    test "X$hardcode_automatic" = "Xyes" ; then
11465
11466   # We can hardcode non-existent directories.
11467   if test "$hardcode_direct" != no &&
11468      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11469      # have to relink, otherwise we might link with an installed library
11470      # when we should be linking with a yet-to-be-installed one
11471      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11472      test "$hardcode_minus_L" != no; then
11473     # Linking always hardcodes the temporary library directory.
11474     hardcode_action=relink
11475   else
11476     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11477     hardcode_action=immediate
11478   fi
11479 else
11480   # We cannot hardcode anything, or else we can only hardcode existing
11481   # directories.
11482   hardcode_action=unsupported
11483 fi
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11485 $as_echo "$hardcode_action" >&6; }
11486
11487 if test "$hardcode_action" = relink ||
11488    test "$inherit_rpath" = yes; then
11489   # Fast installation is not supported
11490   enable_fast_install=no
11491 elif test "$shlibpath_overrides_runpath" = yes ||
11492      test "$enable_shared" = no; then
11493   # Fast installation is not necessary
11494   enable_fast_install=needless
11495 fi
11496
11497
11498
11499
11500
11501
11502   if test "x$enable_dlopen" != xyes; then
11503   enable_dlopen=unknown
11504   enable_dlopen_self=unknown
11505   enable_dlopen_self_static=unknown
11506 else
11507   lt_cv_dlopen=no
11508   lt_cv_dlopen_libs=
11509
11510   case $host_os in
11511   beos*)
11512     lt_cv_dlopen="load_add_on"
11513     lt_cv_dlopen_libs=
11514     lt_cv_dlopen_self=yes
11515     ;;
11516
11517   mingw* | pw32* | cegcc*)
11518     lt_cv_dlopen="LoadLibrary"
11519     lt_cv_dlopen_libs=
11520     ;;
11521
11522   cygwin*)
11523     lt_cv_dlopen="dlopen"
11524     lt_cv_dlopen_libs=
11525     ;;
11526
11527   darwin*)
11528   # if libdl is installed we need to link against it
11529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11530 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11531 if ${ac_cv_lib_dl_dlopen+:} false; then :
11532   $as_echo_n "(cached) " >&6
11533 else
11534   ac_check_lib_save_LIBS=$LIBS
11535 LIBS="-ldl  $LIBS"
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h.  */
11538
11539 /* Override any GCC internal prototype to avoid an error.
11540    Use char because int might match the return type of a GCC
11541    builtin and then its argument prototype would still apply.  */
11542 #ifdef __cplusplus
11543 extern "C"
11544 #endif
11545 char dlopen ();
11546 int
11547 main ()
11548 {
11549 return dlopen ();
11550   ;
11551   return 0;
11552 }
11553 _ACEOF
11554 if ac_fn_c_try_link "$LINENO"; then :
11555   ac_cv_lib_dl_dlopen=yes
11556 else
11557   ac_cv_lib_dl_dlopen=no
11558 fi
11559 rm -f core conftest.err conftest.$ac_objext \
11560     conftest$ac_exeext conftest.$ac_ext
11561 LIBS=$ac_check_lib_save_LIBS
11562 fi
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11564 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11565 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11566   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11567 else
11568
11569     lt_cv_dlopen="dyld"
11570     lt_cv_dlopen_libs=
11571     lt_cv_dlopen_self=yes
11572
11573 fi
11574
11575     ;;
11576
11577   *)
11578     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11579 if test "x$ac_cv_func_shl_load" = xyes; then :
11580   lt_cv_dlopen="shl_load"
11581 else
11582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11583 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11584 if ${ac_cv_lib_dld_shl_load+:} false; then :
11585   $as_echo_n "(cached) " >&6
11586 else
11587   ac_check_lib_save_LIBS=$LIBS
11588 LIBS="-ldld  $LIBS"
11589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11590 /* end confdefs.h.  */
11591
11592 /* Override any GCC internal prototype to avoid an error.
11593    Use char because int might match the return type of a GCC
11594    builtin and then its argument prototype would still apply.  */
11595 #ifdef __cplusplus
11596 extern "C"
11597 #endif
11598 char shl_load ();
11599 int
11600 main ()
11601 {
11602 return shl_load ();
11603   ;
11604   return 0;
11605 }
11606 _ACEOF
11607 if ac_fn_c_try_link "$LINENO"; then :
11608   ac_cv_lib_dld_shl_load=yes
11609 else
11610   ac_cv_lib_dld_shl_load=no
11611 fi
11612 rm -f core conftest.err conftest.$ac_objext \
11613     conftest$ac_exeext conftest.$ac_ext
11614 LIBS=$ac_check_lib_save_LIBS
11615 fi
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11617 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11618 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11619   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11620 else
11621   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11622 if test "x$ac_cv_func_dlopen" = xyes; then :
11623   lt_cv_dlopen="dlopen"
11624 else
11625   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11626 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11627 if ${ac_cv_lib_dl_dlopen+:} false; then :
11628   $as_echo_n "(cached) " >&6
11629 else
11630   ac_check_lib_save_LIBS=$LIBS
11631 LIBS="-ldl  $LIBS"
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h.  */
11634
11635 /* Override any GCC internal prototype to avoid an error.
11636    Use char because int might match the return type of a GCC
11637    builtin and then its argument prototype would still apply.  */
11638 #ifdef __cplusplus
11639 extern "C"
11640 #endif
11641 char dlopen ();
11642 int
11643 main ()
11644 {
11645 return dlopen ();
11646   ;
11647   return 0;
11648 }
11649 _ACEOF
11650 if ac_fn_c_try_link "$LINENO"; then :
11651   ac_cv_lib_dl_dlopen=yes
11652 else
11653   ac_cv_lib_dl_dlopen=no
11654 fi
11655 rm -f core conftest.err conftest.$ac_objext \
11656     conftest$ac_exeext conftest.$ac_ext
11657 LIBS=$ac_check_lib_save_LIBS
11658 fi
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11660 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11661 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11662   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11663 else
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11665 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11666 if ${ac_cv_lib_svld_dlopen+:} false; then :
11667   $as_echo_n "(cached) " >&6
11668 else
11669   ac_check_lib_save_LIBS=$LIBS
11670 LIBS="-lsvld  $LIBS"
11671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11672 /* end confdefs.h.  */
11673
11674 /* Override any GCC internal prototype to avoid an error.
11675    Use char because int might match the return type of a GCC
11676    builtin and then its argument prototype would still apply.  */
11677 #ifdef __cplusplus
11678 extern "C"
11679 #endif
11680 char dlopen ();
11681 int
11682 main ()
11683 {
11684 return dlopen ();
11685   ;
11686   return 0;
11687 }
11688 _ACEOF
11689 if ac_fn_c_try_link "$LINENO"; then :
11690   ac_cv_lib_svld_dlopen=yes
11691 else
11692   ac_cv_lib_svld_dlopen=no
11693 fi
11694 rm -f core conftest.err conftest.$ac_objext \
11695     conftest$ac_exeext conftest.$ac_ext
11696 LIBS=$ac_check_lib_save_LIBS
11697 fi
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11699 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11700 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11701   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11702 else
11703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11704 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11705 if ${ac_cv_lib_dld_dld_link+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   ac_check_lib_save_LIBS=$LIBS
11709 LIBS="-ldld  $LIBS"
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h.  */
11712
11713 /* Override any GCC internal prototype to avoid an error.
11714    Use char because int might match the return type of a GCC
11715    builtin and then its argument prototype would still apply.  */
11716 #ifdef __cplusplus
11717 extern "C"
11718 #endif
11719 char dld_link ();
11720 int
11721 main ()
11722 {
11723 return dld_link ();
11724   ;
11725   return 0;
11726 }
11727 _ACEOF
11728 if ac_fn_c_try_link "$LINENO"; then :
11729   ac_cv_lib_dld_dld_link=yes
11730 else
11731   ac_cv_lib_dld_dld_link=no
11732 fi
11733 rm -f core conftest.err conftest.$ac_objext \
11734     conftest$ac_exeext conftest.$ac_ext
11735 LIBS=$ac_check_lib_save_LIBS
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11738 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11739 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11740   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11741 fi
11742
11743
11744 fi
11745
11746
11747 fi
11748
11749
11750 fi
11751
11752
11753 fi
11754
11755
11756 fi
11757
11758     ;;
11759   esac
11760
11761   if test "x$lt_cv_dlopen" != xno; then
11762     enable_dlopen=yes
11763   else
11764     enable_dlopen=no
11765   fi
11766
11767   case $lt_cv_dlopen in
11768   dlopen)
11769     save_CPPFLAGS="$CPPFLAGS"
11770     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11771
11772     save_LDFLAGS="$LDFLAGS"
11773     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11774
11775     save_LIBS="$LIBS"
11776     LIBS="$lt_cv_dlopen_libs $LIBS"
11777
11778     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11779 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11780 if ${lt_cv_dlopen_self+:} false; then :
11781   $as_echo_n "(cached) " >&6
11782 else
11783           if test "$cross_compiling" = yes; then :
11784   lt_cv_dlopen_self=cross
11785 else
11786   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11787   lt_status=$lt_dlunknown
11788   cat > conftest.$ac_ext <<_LT_EOF
11789 #line $LINENO "configure"
11790 #include "confdefs.h"
11791
11792 #if HAVE_DLFCN_H
11793 #include <dlfcn.h>
11794 #endif
11795
11796 #include <stdio.h>
11797
11798 #ifdef RTLD_GLOBAL
11799 #  define LT_DLGLOBAL           RTLD_GLOBAL
11800 #else
11801 #  ifdef DL_GLOBAL
11802 #    define LT_DLGLOBAL         DL_GLOBAL
11803 #  else
11804 #    define LT_DLGLOBAL         0
11805 #  endif
11806 #endif
11807
11808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11809    find out it does not work in some platform. */
11810 #ifndef LT_DLLAZY_OR_NOW
11811 #  ifdef RTLD_LAZY
11812 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11813 #  else
11814 #    ifdef DL_LAZY
11815 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11816 #    else
11817 #      ifdef RTLD_NOW
11818 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11819 #      else
11820 #        ifdef DL_NOW
11821 #          define LT_DLLAZY_OR_NOW      DL_NOW
11822 #        else
11823 #          define LT_DLLAZY_OR_NOW      0
11824 #        endif
11825 #      endif
11826 #    endif
11827 #  endif
11828 #endif
11829
11830 /* When -fvisbility=hidden is used, assume the code has been annotated
11831    correspondingly for the symbols needed.  */
11832 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11833 int fnord () __attribute__((visibility("default")));
11834 #endif
11835
11836 int fnord () { return 42; }
11837 int main ()
11838 {
11839   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11840   int status = $lt_dlunknown;
11841
11842   if (self)
11843     {
11844       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11845       else
11846         {
11847           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11848           else puts (dlerror ());
11849         }
11850       /* dlclose (self); */
11851     }
11852   else
11853     puts (dlerror ());
11854
11855   return status;
11856 }
11857 _LT_EOF
11858   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11859   (eval $ac_link) 2>&5
11860   ac_status=$?
11861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11862   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11863     (./conftest; exit; ) >&5 2>/dev/null
11864     lt_status=$?
11865     case x$lt_status in
11866       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11867       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11868       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11869     esac
11870   else :
11871     # compilation failed
11872     lt_cv_dlopen_self=no
11873   fi
11874 fi
11875 rm -fr conftest*
11876
11877
11878 fi
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11880 $as_echo "$lt_cv_dlopen_self" >&6; }
11881
11882     if test "x$lt_cv_dlopen_self" = xyes; then
11883       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11884       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11885 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11886 if ${lt_cv_dlopen_self_static+:} false; then :
11887   $as_echo_n "(cached) " >&6
11888 else
11889           if test "$cross_compiling" = yes; then :
11890   lt_cv_dlopen_self_static=cross
11891 else
11892   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11893   lt_status=$lt_dlunknown
11894   cat > conftest.$ac_ext <<_LT_EOF
11895 #line $LINENO "configure"
11896 #include "confdefs.h"
11897
11898 #if HAVE_DLFCN_H
11899 #include <dlfcn.h>
11900 #endif
11901
11902 #include <stdio.h>
11903
11904 #ifdef RTLD_GLOBAL
11905 #  define LT_DLGLOBAL           RTLD_GLOBAL
11906 #else
11907 #  ifdef DL_GLOBAL
11908 #    define LT_DLGLOBAL         DL_GLOBAL
11909 #  else
11910 #    define LT_DLGLOBAL         0
11911 #  endif
11912 #endif
11913
11914 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11915    find out it does not work in some platform. */
11916 #ifndef LT_DLLAZY_OR_NOW
11917 #  ifdef RTLD_LAZY
11918 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11919 #  else
11920 #    ifdef DL_LAZY
11921 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11922 #    else
11923 #      ifdef RTLD_NOW
11924 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11925 #      else
11926 #        ifdef DL_NOW
11927 #          define LT_DLLAZY_OR_NOW      DL_NOW
11928 #        else
11929 #          define LT_DLLAZY_OR_NOW      0
11930 #        endif
11931 #      endif
11932 #    endif
11933 #  endif
11934 #endif
11935
11936 /* When -fvisbility=hidden is used, assume the code has been annotated
11937    correspondingly for the symbols needed.  */
11938 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11939 int fnord () __attribute__((visibility("default")));
11940 #endif
11941
11942 int fnord () { return 42; }
11943 int main ()
11944 {
11945   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11946   int status = $lt_dlunknown;
11947
11948   if (self)
11949     {
11950       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11951       else
11952         {
11953           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11954           else puts (dlerror ());
11955         }
11956       /* dlclose (self); */
11957     }
11958   else
11959     puts (dlerror ());
11960
11961   return status;
11962 }
11963 _LT_EOF
11964   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11965   (eval $ac_link) 2>&5
11966   ac_status=$?
11967   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11969     (./conftest; exit; ) >&5 2>/dev/null
11970     lt_status=$?
11971     case x$lt_status in
11972       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11973       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11974       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11975     esac
11976   else :
11977     # compilation failed
11978     lt_cv_dlopen_self_static=no
11979   fi
11980 fi
11981 rm -fr conftest*
11982
11983
11984 fi
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11986 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11987     fi
11988
11989     CPPFLAGS="$save_CPPFLAGS"
11990     LDFLAGS="$save_LDFLAGS"
11991     LIBS="$save_LIBS"
11992     ;;
11993   esac
11994
11995   case $lt_cv_dlopen_self in
11996   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11997   *) enable_dlopen_self=unknown ;;
11998   esac
11999
12000   case $lt_cv_dlopen_self_static in
12001   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12002   *) enable_dlopen_self_static=unknown ;;
12003   esac
12004 fi
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022 striplib=
12023 old_striplib=
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12025 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12026 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12027   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12028   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12030 $as_echo "yes" >&6; }
12031 else
12032 # FIXME - insert some real tests, host_os isn't really good enough
12033   case $host_os in
12034   darwin*)
12035     if test -n "$STRIP" ; then
12036       striplib="$STRIP -x"
12037       old_striplib="$STRIP -S"
12038       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12039 $as_echo "yes" >&6; }
12040     else
12041       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12042 $as_echo "no" >&6; }
12043     fi
12044     ;;
12045   *)
12046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12047 $as_echo "no" >&6; }
12048     ;;
12049   esac
12050 fi
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063   # Report which library types will actually be built
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12065 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12067 $as_echo "$can_build_shared" >&6; }
12068
12069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12070 $as_echo_n "checking whether to build shared libraries... " >&6; }
12071   test "$can_build_shared" = "no" && enable_shared=no
12072
12073   # On AIX, shared libraries and static libraries use the same namespace, and
12074   # are all built from PIC.
12075   case $host_os in
12076   aix3*)
12077     test "$enable_shared" = yes && enable_static=no
12078     if test -n "$RANLIB"; then
12079       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12080       postinstall_cmds='$RANLIB $lib'
12081     fi
12082     ;;
12083
12084   aix[4-9]*)
12085     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12086       test "$enable_shared" = yes && enable_static=no
12087     fi
12088     ;;
12089   esac
12090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12091 $as_echo "$enable_shared" >&6; }
12092
12093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12094 $as_echo_n "checking whether to build static libraries... " >&6; }
12095   # Make sure either enable_shared or enable_static is yes.
12096   test "$enable_shared" = yes || enable_static=yes
12097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12098 $as_echo "$enable_static" >&6; }
12099
12100
12101
12102
12103 fi
12104 ac_ext=c
12105 ac_cpp='$CPP $CPPFLAGS'
12106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12109
12110 CC="$lt_save_CC"
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126         ac_config_commands="$ac_config_commands libtool"
12127
12128
12129
12130
12131 # Only expand once:
12132
12133
12134
12135
12136 # Test for 64-bit build.
12137 # The cast to long int works around a bug in the HP C Compiler
12138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12140 # This bug is HP SR number 8606223364.
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12142 $as_echo_n "checking size of size_t... " >&6; }
12143 if ${ac_cv_sizeof_size_t+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12147
12148 else
12149   if test "$ac_cv_type_size_t" = yes; then
12150      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12152 as_fn_error 77 "cannot compute sizeof (size_t)
12153 See \`config.log' for more details" "$LINENO" 5; }
12154    else
12155      ac_cv_sizeof_size_t=0
12156    fi
12157 fi
12158
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12161 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12162
12163
12164
12165 cat >>confdefs.h <<_ACEOF
12166 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12167 _ACEOF
12168
12169
12170
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12172 $as_echo_n "checking for C compiler vendor... " >&6; }
12173 if ${ax_cv_c_compiler_vendor+:} false; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   # note: don't check for gcc first since some other compilers define __GNUC__
12177   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12178            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12179            pathscale: __PATHCC__,__PATHSCALE__
12180            clang:     __clang__
12181            gnu:       __GNUC__
12182            sun:       __SUNPRO_C,__SUNPRO_CC
12183            hp:        __HP_cc,__HP_aCC
12184            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12185            borland:   __BORLANDC__,__TURBOC__
12186            comeau:    __COMO__
12187            cray:      _CRAYC
12188            kai:       __KCC
12189            lcc:       __LCC__
12190            sgi:       __sgi,sgi
12191            microsoft: _MSC_VER
12192            metrowerks: __MWERKS__
12193            watcom:    __WATCOMC__
12194            portland:  __PGI
12195            unknown:   UNKNOWN"
12196   for ventest in $vendors; do
12197     case $ventest in
12198       *:) vendor=$ventest; continue ;;
12199       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12200     esac
12201     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12202 /* end confdefs.h.  */
12203
12204 int
12205 main ()
12206 {
12207
12208       #if !($vencpp)
12209         thisisanerror;
12210       #endif
12211
12212   ;
12213   return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_c_try_compile "$LINENO"; then :
12217   break
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12220   done
12221   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12222
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12225 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12226
12227
12228
12229
12230
12231
12232 # Check whether --enable-portable-binary was given.
12233 if test "${enable_portable_binary+set}" = set; then :
12234   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12235 else
12236   acx_maxopt_portable=no
12237 fi
12238
12239
12240 # Try to determine "good" native compiler flags if none specified via CFLAGS
12241 if test "$ac_test_CFLAGS" != "set"; then
12242   CFLAGS=""
12243   case $ax_cv_c_compiler_vendor in
12244     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12245          if test "x$acx_maxopt_portable" = xno; then
12246            CFLAGS="$CFLAGS -arch host"
12247          fi;;
12248
12249     sun) CFLAGS="-native -fast -xO5 -dalign"
12250          if test "x$acx_maxopt_portable" = xyes; then
12251            CFLAGS="$CFLAGS -xarch=generic"
12252          fi;;
12253
12254     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12255          if test "x$acx_maxopt_portable" = xyes; then
12256            CFLAGS="$CFLAGS +DAportable"
12257          fi;;
12258
12259     ibm) if test "x$acx_maxopt_portable" = xno; then
12260            xlc_opt="-qarch=auto -qtune=auto"
12261          else
12262            xlc_opt="-qtune=auto"
12263          fi
12264          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12266 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12267 if eval \${$as_CACHEVAR+:} false; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270
12271   ax_check_save_flags=$CFLAGS
12272   CFLAGS="$CFLAGS  $xlc_opt"
12273   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h.  */
12275
12276 int
12277 main ()
12278 {
12279
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 if ac_fn_c_try_compile "$LINENO"; then :
12285   eval "$as_CACHEVAR=yes"
12286 else
12287   eval "$as_CACHEVAR=no"
12288 fi
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290   CFLAGS=$ax_check_save_flags
12291 fi
12292 eval ac_res=\$$as_CACHEVAR
12293                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12294 $as_echo "$ac_res" >&6; }
12295 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12296   CFLAGS="-O3 -qansialias -w $xlc_opt"
12297 else
12298   CFLAGS="-O3 -qansialias -w"
12299                 echo "******************************************************"
12300                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12301                 echo "*  recommended for best performance that you use:    *"
12302                 echo "*                                                    *"
12303                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12304                 echo "*                      ^^^        ^^^                *"
12305                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12306                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12307                 echo "*  and re-run configure.)  For more info, man cc.    *"
12308                 echo "******************************************************"
12309 fi
12310
12311          ;;
12312
12313     intel) CFLAGS="-O3 -ansi_alias"
12314         if test "x$acx_maxopt_portable" = xno; then
12315           icc_archflag=unknown
12316           icc_flags=""
12317           case $host_cpu in
12318             i686*|x86_64*)
12319               # icc accepts gcc assembly syntax, so these should work:
12320
12321 ac_ext=c
12322 ac_cpp='$CPP $CPPFLAGS'
12323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12328 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12329 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   if test "$cross_compiling" = yes; then :
12333   ax_cv_gcc_x86_cpuid_0=unknown
12334 else
12335   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h.  */
12337 #include <stdio.h>
12338 int
12339 main ()
12340 {
12341
12342      int op = 0, eax, ebx, ecx, edx;
12343      FILE *f;
12344       __asm__("cpuid"
12345         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12346         : "a" (op));
12347      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12348      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12349      fclose(f);
12350      return 0;
12351
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_run "$LINENO"; then :
12357   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12358 else
12359   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12360 fi
12361 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12362   conftest.$ac_objext conftest.beam conftest.$ac_ext
12363 fi
12364
12365 fi
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12367 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12368 ac_ext=c
12369 ac_cpp='$CPP $CPPFLAGS'
12370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12373
12374
12375
12376 ac_ext=c
12377 ac_cpp='$CPP $CPPFLAGS'
12378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12381
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12383 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12384 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12385   $as_echo_n "(cached) " >&6
12386 else
12387   if test "$cross_compiling" = yes; then :
12388   ax_cv_gcc_x86_cpuid_1=unknown
12389 else
12390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12391 /* end confdefs.h.  */
12392 #include <stdio.h>
12393 int
12394 main ()
12395 {
12396
12397      int op = 1, eax, ebx, ecx, edx;
12398      FILE *f;
12399       __asm__("cpuid"
12400         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12401         : "a" (op));
12402      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12403      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12404      fclose(f);
12405      return 0;
12406
12407   ;
12408   return 0;
12409 }
12410 _ACEOF
12411 if ac_fn_c_try_run "$LINENO"; then :
12412   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12413 else
12414   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12415 fi
12416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12417   conftest.$ac_objext conftest.beam conftest.$ac_ext
12418 fi
12419
12420 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12422 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12423 ac_ext=c
12424 ac_cpp='$CPP $CPPFLAGS'
12425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12428
12429
12430               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12431                 *:756e6547:*:*) # Intel
12432                   case $ax_cv_gcc_x86_cpuid_1 in
12433                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12434                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12435                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12436                   esac ;;
12437               esac ;;
12438           esac
12439           if test "x$icc_flags" != x; then
12440             for flag in $icc_flags; do
12441               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12443 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12444 if eval \${$as_CACHEVAR+:} false; then :
12445   $as_echo_n "(cached) " >&6
12446 else
12447
12448   ax_check_save_flags=$CFLAGS
12449   CFLAGS="$CFLAGS  $flag"
12450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451 /* end confdefs.h.  */
12452
12453 int
12454 main ()
12455 {
12456
12457   ;
12458   return 0;
12459 }
12460 _ACEOF
12461 if ac_fn_c_try_compile "$LINENO"; then :
12462   eval "$as_CACHEVAR=yes"
12463 else
12464   eval "$as_CACHEVAR=no"
12465 fi
12466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467   CFLAGS=$ax_check_save_flags
12468 fi
12469 eval ac_res=\$$as_CACHEVAR
12470                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12471 $as_echo "$ac_res" >&6; }
12472 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12473   icc_archflag=$flag; break
12474 else
12475   :
12476 fi
12477
12478             done
12479           fi
12480           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12481 $as_echo_n "checking for icc architecture flag... " >&6; }
12482           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12483 $as_echo "$icc_archflag" >&6; }
12484           if test "x$icc_archflag" != xunknown; then
12485             CFLAGS="$CFLAGS $icc_archflag"
12486           fi
12487         fi
12488         ;;
12489
12490     gnu)
12491      # default optimization flags for gcc on all systems
12492      CFLAGS="-O3 -fomit-frame-pointer"
12493
12494      # -malign-double for x86 systems
12495      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12496      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12497
12498      #  -fstrict-aliasing for gcc-2.95+
12499      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12500 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12501 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12502   $as_echo_n "(cached) " >&6
12503 else
12504
12505   ax_check_save_flags=$CFLAGS
12506   CFLAGS="$CFLAGS  -fstrict-aliasing"
12507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508 /* end confdefs.h.  */
12509
12510 int
12511 main ()
12512 {
12513
12514   ;
12515   return 0;
12516 }
12517 _ACEOF
12518 if ac_fn_c_try_compile "$LINENO"; then :
12519   ax_cv_check_cflags___fstrict_aliasing=yes
12520 else
12521   ax_cv_check_cflags___fstrict_aliasing=no
12522 fi
12523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524   CFLAGS=$ax_check_save_flags
12525 fi
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12527 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12528 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12529   CFLAGS="$CFLAGS -fstrict-aliasing"
12530 else
12531   :
12532 fi
12533
12534
12535      # note that we enable "unsafe" fp optimization with other compilers, too
12536      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12537 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12538 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541
12542   ax_check_save_flags=$CFLAGS
12543   CFLAGS="$CFLAGS  -ffast-math"
12544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12545 /* end confdefs.h.  */
12546
12547 int
12548 main ()
12549 {
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556   ax_cv_check_cflags___ffast_math=yes
12557 else
12558   ax_cv_check_cflags___ffast_math=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561   CFLAGS=$ax_check_save_flags
12562 fi
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12564 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12565 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12566   CFLAGS="$CFLAGS -ffast-math"
12567 else
12568   :
12569 fi
12570
12571
12572
12573
12574
12575
12576 # Check whether --with-gcc-arch was given.
12577 if test "${with_gcc_arch+set}" = set; then :
12578   withval=$with_gcc_arch; ax_gcc_arch=$withval
12579 else
12580   ax_gcc_arch=yes
12581 fi
12582
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12585 $as_echo_n "checking for gcc architecture flag... " >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12587 $as_echo "" >&6; }
12588 if ${ax_cv_gcc_archflag+:} false; then :
12589   $as_echo_n "(cached) " >&6
12590 else
12591
12592 ax_cv_gcc_archflag="unknown"
12593
12594 if test "$GCC" = yes; then
12595
12596 if test "x$ax_gcc_arch" = xyes; then
12597 ax_gcc_arch=""
12598 if test "$cross_compiling" = no; then
12599 case $host_cpu in
12600   i[3456]86*|x86_64*) # use cpuid codes
12601
12602 ac_ext=c
12603 ac_cpp='$CPP $CPPFLAGS'
12604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12607
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12609 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12610 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12611   $as_echo_n "(cached) " >&6
12612 else
12613   if test "$cross_compiling" = yes; then :
12614   ax_cv_gcc_x86_cpuid_0=unknown
12615 else
12616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h.  */
12618 #include <stdio.h>
12619 int
12620 main ()
12621 {
12622
12623      int op = 0, eax, ebx, ecx, edx;
12624      FILE *f;
12625       __asm__("cpuid"
12626         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12627         : "a" (op));
12628      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12629      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12630      fclose(f);
12631      return 0;
12632
12633   ;
12634   return 0;
12635 }
12636 _ACEOF
12637 if ac_fn_c_try_run "$LINENO"; then :
12638   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12639 else
12640   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12641 fi
12642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12643   conftest.$ac_objext conftest.beam conftest.$ac_ext
12644 fi
12645
12646 fi
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12648 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12649 ac_ext=c
12650 ac_cpp='$CPP $CPPFLAGS'
12651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12654
12655
12656
12657 ac_ext=c
12658 ac_cpp='$CPP $CPPFLAGS'
12659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12662
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12664 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12665 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12666   $as_echo_n "(cached) " >&6
12667 else
12668   if test "$cross_compiling" = yes; then :
12669   ax_cv_gcc_x86_cpuid_1=unknown
12670 else
12671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12672 /* end confdefs.h.  */
12673 #include <stdio.h>
12674 int
12675 main ()
12676 {
12677
12678      int op = 1, eax, ebx, ecx, edx;
12679      FILE *f;
12680       __asm__("cpuid"
12681         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12682         : "a" (op));
12683      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12684      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12685      fclose(f);
12686      return 0;
12687
12688   ;
12689   return 0;
12690 }
12691 _ACEOF
12692 if ac_fn_c_try_run "$LINENO"; then :
12693   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12694 else
12695   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12696 fi
12697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12698   conftest.$ac_objext conftest.beam conftest.$ac_ext
12699 fi
12700
12701 fi
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12703 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12704 ac_ext=c
12705 ac_cpp='$CPP $CPPFLAGS'
12706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12709
12710
12711      case $ax_cv_gcc_x86_cpuid_0 in
12712        *:756e6547:*:*) # Intel
12713           case $ax_cv_gcc_x86_cpuid_1 in
12714             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12715             *5??:*:*:*) ax_gcc_arch=pentium ;;
12716             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12717             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12718             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12719             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12720             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12721             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12722             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12723             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12724             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12725             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12726             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12727             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12728             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12729                 case $host_cpu in
12730                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12731                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12732                 esac ;;
12733             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12734           esac ;;
12735        *:68747541:*:*) # AMD
12736           case $ax_cv_gcc_x86_cpuid_1 in
12737             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12738             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12739             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12740             *60?:*:*:*) ax_gcc_arch=k7 ;;
12741             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12742             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12743             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12744             *6[68a]?:*:*:*)
12745
12746 ac_ext=c
12747 ac_cpp='$CPP $CPPFLAGS'
12748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12751
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12753 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12754 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757   if test "$cross_compiling" = yes; then :
12758   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12759 else
12760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12761 /* end confdefs.h.  */
12762 #include <stdio.h>
12763 int
12764 main ()
12765 {
12766
12767      int op = 0x80000006, eax, ebx, ecx, edx;
12768      FILE *f;
12769       __asm__("cpuid"
12770         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12771         : "a" (op));
12772      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12773      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12774      fclose(f);
12775      return 0;
12776
12777   ;
12778   return 0;
12779 }
12780 _ACEOF
12781 if ac_fn_c_try_run "$LINENO"; then :
12782   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12783 else
12784   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12785 fi
12786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12787   conftest.$ac_objext conftest.beam conftest.$ac_ext
12788 fi
12789
12790 fi
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12792 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12793 ac_ext=c
12794 ac_cpp='$CPP $CPPFLAGS'
12795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12798
12799  # L2 cache size
12800                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12801                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12802                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12803                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12804                esac ;;
12805             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12806             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12807             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12808             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12809             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12810             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12811             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12812           esac ;;
12813         *:746e6543:*:*) # IDT
12814            case $ax_cv_gcc_x86_cpuid_1 in
12815              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12816              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12817              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12818              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12819            esac ;;
12820      esac
12821      if test x"$ax_gcc_arch" = x; then # fallback
12822         case $host_cpu in
12823           i586*) ax_gcc_arch=pentium ;;
12824           i686*) ax_gcc_arch=pentiumpro ;;
12825         esac
12826      fi
12827      ;;
12828
12829   sparc*)
12830      # Extract the first word of "prtdiag", so it can be a program name with args.
12831 set dummy prtdiag; ac_word=$2
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if ${ac_cv_path_PRTDIAG+:} false; then :
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $PRTDIAG in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12844 for as_dir in $as_dummy
12845 do
12846   IFS=$as_save_IFS
12847   test -z "$as_dir" && as_dir=.
12848     for ac_exec_ext in '' $ac_executable_extensions; do
12849   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12850     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12851     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12852     break 2
12853   fi
12854 done
12855   done
12856 IFS=$as_save_IFS
12857
12858   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12859   ;;
12860 esac
12861 fi
12862 PRTDIAG=$ac_cv_path_PRTDIAG
12863 if test -n "$PRTDIAG"; then
12864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12865 $as_echo "$PRTDIAG" >&6; }
12866 else
12867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869 fi
12870
12871
12872      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`
12873      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12874      case $cputype in
12875          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12876          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12877          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12878          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12879          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12880          *cypress*) ax_gcc_arch=cypress ;;
12881      esac ;;
12882
12883   alphaev5) ax_gcc_arch=ev5 ;;
12884   alphaev56) ax_gcc_arch=ev56 ;;
12885   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12886   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12887   alphaev6) ax_gcc_arch=ev6 ;;
12888   alphaev67) ax_gcc_arch=ev67 ;;
12889   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12890   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12891   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12892   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12893
12894   powerpc*)
12895      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`
12896      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12897      case $cputype in
12898        *750*) ax_gcc_arch="750 G3" ;;
12899        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12900        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12901        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12902        *970*) ax_gcc_arch="970 G5 power4";;
12903        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12904        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12905        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12906        *) ax_gcc_arch=$cputype ;;
12907      esac
12908      ax_gcc_arch="$ax_gcc_arch powerpc"
12909      ;;
12910 esac
12911 fi # not cross-compiling
12912 fi # guess arch
12913
12914 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12915 for arch in $ax_gcc_arch; do
12916   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12917     flags="-mtune=$arch"
12918     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12919     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12920     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12921   else
12922     flags="-march=$arch -mcpu=$arch -m$arch"
12923   fi
12924   for flag in $flags; do
12925     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12927 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12928 if eval \${$as_CACHEVAR+:} false; then :
12929   $as_echo_n "(cached) " >&6
12930 else
12931
12932   ax_check_save_flags=$CFLAGS
12933   CFLAGS="$CFLAGS  $flag"
12934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h.  */
12936
12937 int
12938 main ()
12939 {
12940
12941   ;
12942   return 0;
12943 }
12944 _ACEOF
12945 if ac_fn_c_try_compile "$LINENO"; then :
12946   eval "$as_CACHEVAR=yes"
12947 else
12948   eval "$as_CACHEVAR=no"
12949 fi
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951   CFLAGS=$ax_check_save_flags
12952 fi
12953 eval ac_res=\$$as_CACHEVAR
12954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12955 $as_echo "$ac_res" >&6; }
12956 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12957   ax_cv_gcc_archflag=$flag; break
12958 else
12959   :
12960 fi
12961
12962   done
12963   test "x$ax_cv_gcc_archflag" = xunknown || break
12964 done
12965 fi
12966
12967 fi # $GCC=yes
12968
12969 fi
12970
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12972 $as_echo_n "checking for gcc architecture flag... " >&6; }
12973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12974 $as_echo "$ax_cv_gcc_archflag" >&6; }
12975 if test "x$ax_cv_gcc_archflag" = xunknown; then
12976   :
12977 else
12978   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12979 fi
12980
12981      ;;
12982   esac
12983
12984   if test -z "$CFLAGS"; then
12985         echo ""
12986         echo "********************************************************"
12987         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12988         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12989         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12990         echo "********************************************************"
12991         echo ""
12992         CFLAGS="-O3"
12993   fi
12994
12995   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12997 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12998 if eval \${$as_CACHEVAR+:} false; then :
12999   $as_echo_n "(cached) " >&6
13000 else
13001
13002   ax_check_save_flags=$CFLAGS
13003   CFLAGS="$CFLAGS  $CFLAGS"
13004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13005 /* end confdefs.h.  */
13006
13007 int
13008 main ()
13009 {
13010
13011   ;
13012   return 0;
13013 }
13014 _ACEOF
13015 if ac_fn_c_try_compile "$LINENO"; then :
13016   eval "$as_CACHEVAR=yes"
13017 else
13018   eval "$as_CACHEVAR=no"
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13021   CFLAGS=$ax_check_save_flags
13022 fi
13023 eval ac_res=\$$as_CACHEVAR
13024                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13025 $as_echo "$ac_res" >&6; }
13026 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
13027   :
13028 else
13029
13030         echo ""
13031         echo "********************************************************"
13032         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
13033         echo "* your compiler.                                       *"
13034         echo "* Use ./configure CFLAGS=... to specify your own flags *"
13035         echo "********************************************************"
13036         echo ""
13037         CFLAGS=""
13038
13039 fi
13040
13041
13042 fi
13043
13044 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
13045 # compiler.
13046 if test "$ax_cv_c_compiler_vendor" != "sun"; then
13047   if ${CFLAGS+:} false; then :
13048   case " $CFLAGS " in
13049     *"  "*)
13050       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
13051   (: CFLAGS already contains ) 2>&5
13052   ac_status=$?
13053   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054   test $ac_status = 0; }
13055       ;;
13056     *)
13057       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
13058   (: CFLAGS="$CFLAGS ") 2>&5
13059   ac_status=$?
13060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13061   test $ac_status = 0; }
13062       CFLAGS="$CFLAGS "
13063       ;;
13064    esac
13065 else
13066   CFLAGS=""
13067 fi
13068
13069 ac_ext=c
13070 ac_cpp='$CPP $CPPFLAGS'
13071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13074
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13076 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13077 if ${ac_cv_cflags_warn_all+:} false; then :
13078   $as_echo_n "(cached) " >&6
13079 else
13080   ac_cv_cflags_warn_all="no, unknown"
13081 ac_save_CFLAGS="$CFLAGS"
13082 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"    #
13083 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13084    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h.  */
13086
13087 int
13088 main ()
13089 {
13090
13091   ;
13092   return 0;
13093 }
13094 _ACEOF
13095 if ac_fn_c_try_compile "$LINENO"; then :
13096   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 done
13100 CFLAGS="$ac_save_CFLAGS"
13101
13102 fi
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13104 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13105
13106 case ".$ac_cv_cflags_warn_all" in
13107      .ok|.ok,*)  ;;
13108    .|.no|.no,*)  ;;
13109    *) if ${CFLAGS+:} false; then :
13110   case " $CFLAGS " in
13111     *" $ac_cv_cflags_warn_all "*)
13112       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13113   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13114   ac_status=$?
13115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116   test $ac_status = 0; }
13117       ;;
13118     *)
13119       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13120   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13121   ac_status=$?
13122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13123   test $ac_status = 0; }
13124       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13125       ;;
13126    esac
13127 else
13128   CFLAGS="$ac_cv_cflags_warn_all"
13129 fi
13130  ;;
13131 esac
13132
13133 ac_ext=c
13134 ac_cpp='$CPP $CPPFLAGS'
13135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138
13139
13140 fi
13141
13142 if test "x$GCC" = "xyes"; then
13143   CFLAGS="$CFLAGS -fexceptions"
13144   touch local.exp
13145 else
13146   cat > local.exp <<EOF
13147 set CC_FOR_TARGET "$CC"
13148 EOF
13149 fi
13150
13151
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13153 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13154     # Check whether --enable-maintainer-mode was given.
13155 if test "${enable_maintainer_mode+set}" = set; then :
13156   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13157 else
13158   USE_MAINTAINER_MODE=no
13159 fi
13160
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13162 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13163    if test $USE_MAINTAINER_MODE = yes; then
13164   MAINTAINER_MODE_TRUE=
13165   MAINTAINER_MODE_FALSE='#'
13166 else
13167   MAINTAINER_MODE_TRUE='#'
13168   MAINTAINER_MODE_FALSE=
13169 fi
13170
13171   MAINT=$MAINTAINER_MODE_TRUE
13172
13173
13174
13175 for ac_header in sys/mman.h
13176 do :
13177   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13178 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13179   cat >>confdefs.h <<_ACEOF
13180 #define HAVE_SYS_MMAN_H 1
13181 _ACEOF
13182
13183 fi
13184
13185 done
13186
13187 for ac_func in mmap
13188 do :
13189   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13190 if test "x$ac_cv_func_mmap" = xyes; then :
13191   cat >>confdefs.h <<_ACEOF
13192 #define HAVE_MMAP 1
13193 _ACEOF
13194
13195 fi
13196 done
13197
13198
13199 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13200 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13201   libffi_header_sys_mman_h=yes
13202 else
13203   libffi_header_sys_mman_h=no
13204 fi
13205
13206
13207 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13208 if test "x$ac_cv_func_mmap" = xyes; then :
13209   libffi_func_mmap=yes
13210 else
13211   libffi_func_mmap=no
13212 fi
13213
13214 if test "$libffi_header_sys_mman_h" != yes \
13215  || test "$libffi_func_mmap" != yes; then
13216    ac_cv_func_mmap_file=no
13217    ac_cv_func_mmap_dev_zero=no
13218    ac_cv_func_mmap_anon=no
13219 else
13220    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13221 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13222 if ${ac_cv_func_mmap_file+:} false; then :
13223   $as_echo_n "(cached) " >&6
13224 else
13225   # Add a system to this blacklist if
13226    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13227    # memory area containing the same data that you'd get if you applied
13228    # read() to the same fd.  The only system known to have a problem here
13229    # is VMS, where text files have record structure.
13230    case "$host_os" in
13231      vms* | ultrix*)
13232         ac_cv_func_mmap_file=no ;;
13233      *)
13234         ac_cv_func_mmap_file=yes;;
13235    esac
13236 fi
13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13238 $as_echo "$ac_cv_func_mmap_file" >&6; }
13239    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13240 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13241 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13242   $as_echo_n "(cached) " >&6
13243 else
13244   # Add a system to this blacklist if it has mmap() but /dev/zero
13245    # does not exist, or if mmapping /dev/zero does not give anonymous
13246    # zeroed pages with both the following properties:
13247    # 1. If you map N consecutive pages in with one call, and then
13248    #    unmap any subset of those pages, the pages that were not
13249    #    explicitly unmapped remain accessible.
13250    # 2. If you map two adjacent blocks of memory and then unmap them
13251    #    both at once, they must both go away.
13252    # Systems known to be in this category are Windows (all variants),
13253    # VMS, and Darwin.
13254    case "$host_os" in
13255      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13256         ac_cv_func_mmap_dev_zero=no ;;
13257      *)
13258         ac_cv_func_mmap_dev_zero=yes;;
13259    esac
13260 fi
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13262 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13263
13264    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13265    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13266 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13267 if ${ac_cv_decl_map_anon+:} false; then :
13268   $as_echo_n "(cached) " >&6
13269 else
13270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h.  */
13272 #include <sys/types.h>
13273 #include <sys/mman.h>
13274 #include <unistd.h>
13275
13276 #ifndef MAP_ANONYMOUS
13277 #define MAP_ANONYMOUS MAP_ANON
13278 #endif
13279
13280 int
13281 main ()
13282 {
13283 int n = MAP_ANONYMOUS;
13284   ;
13285   return 0;
13286 }
13287 _ACEOF
13288 if ac_fn_c_try_compile "$LINENO"; then :
13289   ac_cv_decl_map_anon=yes
13290 else
13291   ac_cv_decl_map_anon=no
13292 fi
13293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13294 fi
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13296 $as_echo "$ac_cv_decl_map_anon" >&6; }
13297
13298    if test $ac_cv_decl_map_anon = no; then
13299      ac_cv_func_mmap_anon=no
13300    else
13301      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13302 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13303 if ${ac_cv_func_mmap_anon+:} false; then :
13304   $as_echo_n "(cached) " >&6
13305 else
13306   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13307    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13308    # doesn't give anonymous zeroed pages with the same properties listed
13309    # above for use of /dev/zero.
13310    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13311    case "$host_os" in
13312      vms* | cygwin* | pe | mingw* | sco* | udk* )
13313         ac_cv_func_mmap_anon=no ;;
13314      *)
13315         ac_cv_func_mmap_anon=yes;;
13316    esac
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13319 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13320    fi
13321 fi
13322
13323 if test $ac_cv_func_mmap_file = yes; then
13324
13325 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13326
13327 fi
13328 if test $ac_cv_func_mmap_dev_zero = yes; then
13329
13330 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13331
13332 fi
13333 if test $ac_cv_func_mmap_anon = yes; then
13334
13335 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13336
13337 fi
13338
13339
13340  if test -d $srcdir/testsuite; then
13341   TESTSUBDIR_TRUE=
13342   TESTSUBDIR_FALSE='#'
13343 else
13344   TESTSUBDIR_TRUE='#'
13345   TESTSUBDIR_FALSE=
13346 fi
13347
13348
13349 TARGETDIR="unknown"
13350 case "$host" in
13351   aarch64*-*-*)
13352         TARGET=AARCH64; TARGETDIR=aarch64
13353         ;;
13354
13355   alpha*-*-*)
13356         TARGET=ALPHA; TARGETDIR=alpha;
13357         # Support 128-bit long double, changeable via command-line switch.
13358         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13359         ;;
13360
13361   arc*-*-*)
13362         TARGET=ARC; TARGETDIR=arc
13363         ;;
13364
13365   arm*-*-*)
13366         TARGET=ARM; TARGETDIR=arm
13367         ;;
13368
13369   amd64-*-freebsd* | amd64-*-openbsd*)
13370         TARGET=X86_64; TARGETDIR=x86
13371         ;;
13372
13373   amd64-*-freebsd*)
13374         TARGET=X86_64; TARGETDIR=x86
13375         ;;
13376
13377   amd64-*-freebsd*)
13378         TARGET=X86_64; TARGETDIR=x86
13379         ;;
13380
13381   avr32*-*-*)
13382         TARGET=AVR32; TARGETDIR=avr32
13383         ;;
13384
13385   bfin*)
13386         TARGET=BFIN; TARGETDIR=bfin
13387         ;;
13388
13389   cris-*-*)
13390         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13391         ;;
13392
13393   frv-*-*)
13394         TARGET=FRV; TARGETDIR=frv
13395         ;;
13396
13397   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13398         TARGET=PA_LINUX; TARGETDIR=pa
13399         ;;
13400   hppa*64-*-hpux*)
13401         TARGET=PA64_HPUX; TARGETDIR=pa
13402         ;;
13403   hppa*-*-hpux*)
13404         TARGET=PA_HPUX; TARGETDIR=pa
13405         ;;
13406
13407   i?86-*-freebsd* | i?86-*-openbsd*)
13408         TARGET=X86_FREEBSD; TARGETDIR=x86
13409         ;;
13410   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13411         TARGET=X86_WIN32; TARGETDIR=x86
13412         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13413         # We must also check with_cross_host to decide if this is a native
13414         # or cross-build and select where to install dlls appropriately.
13415         if test -n "$with_cross_host" &&
13416            test x"$with_cross_host" != x"no"; then
13417           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13418         else
13419           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13420         fi
13421         ;;
13422   i?86-*-darwin*)
13423         TARGET=X86_DARWIN; TARGETDIR=x86
13424         ;;
13425   i?86-*-solaris2.1[0-9]*)
13426         TARGETDIR=x86
13427         if test $ac_cv_sizeof_size_t = 4; then
13428           TARGET=X86;
13429         else
13430           TARGET=X86_64;
13431         fi
13432         ;;
13433
13434   x86_64-*-darwin*)
13435         TARGET=X86_DARWIN; TARGETDIR=x86
13436         ;;
13437
13438   x86_64-*-cygwin* | x86_64-*-mingw*)
13439         TARGET=X86_WIN64; TARGETDIR=x86
13440         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13441         # We must also check with_cross_host to decide if this is a native
13442         # or cross-build and select where to install dlls appropriately.
13443         if test -n "$with_cross_host" &&
13444            test x"$with_cross_host" != x"no"; then
13445           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13446         else
13447           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13448         fi
13449         ;;
13450
13451   i?86-*-* | x86_64-*-*)
13452         TARGETDIR=x86
13453         if test $ac_cv_sizeof_size_t = 4; then
13454           case "$host" in
13455             *-gnux32)
13456               TARGET=X86_64
13457               ;;
13458             *)
13459               TARGET=X86
13460               ;;
13461           esac
13462         else
13463           TARGET=X86_64;
13464         fi
13465         ;;
13466
13467   ia64*-*-*)
13468         TARGET=IA64; TARGETDIR=ia64
13469         ;;
13470
13471   m32r*-*-*)
13472         TARGET=M32R; TARGETDIR=m32r
13473         ;;
13474
13475   m68k-*-*)
13476         TARGET=M68K; TARGETDIR=m68k
13477         ;;
13478
13479   m88k-*-*)
13480         TARGET=M88K; TARGETDIR=m88k
13481         ;;
13482
13483   microblaze*-*-*)
13484         TARGET=MICROBLAZE; TARGETDIR=microblaze
13485         ;;
13486
13487   moxie-*-*)
13488         TARGET=MOXIE; TARGETDIR=moxie
13489         ;;
13490
13491   metag-*-*)
13492         TARGET=METAG; TARGETDIR=metag
13493         ;;
13494
13495   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13496         TARGET=MIPS; TARGETDIR=mips
13497         ;;
13498   mips*-*-linux* | mips*-*-openbsd*)
13499         # Support 128-bit long double for NewABI.
13500         HAVE_LONG_DOUBLE='defined(__mips64)'
13501         TARGET=MIPS; TARGETDIR=mips
13502         ;;
13503
13504   nios2*-linux*)
13505         TARGET=NIOS2; TARGETDIR=nios2
13506         ;;
13507
13508   powerpc*-*-linux* | powerpc-*-sysv*)
13509         TARGET=POWERPC; TARGETDIR=powerpc
13510         ;;
13511   powerpc-*-amigaos*)
13512         TARGET=POWERPC; TARGETDIR=powerpc
13513         ;;
13514   powerpc-*-beos*)
13515         TARGET=POWERPC; TARGETDIR=powerpc
13516         ;;
13517   powerpc-*-darwin* | powerpc64-*-darwin*)
13518         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13519         ;;
13520   powerpc-*-aix* | rs6000-*-aix*)
13521         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13522         ;;
13523   powerpc-*-freebsd* | powerpc-*-openbsd*)
13524         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13525         ;;
13526   powerpc64-*-freebsd*)
13527         TARGET=POWERPC; TARGETDIR=powerpc
13528         ;;
13529   powerpc*-*-rtems*)
13530         TARGET=POWERPC; TARGETDIR=powerpc
13531         ;;
13532
13533   s390-*-* | s390x-*-*)
13534         TARGET=S390; TARGETDIR=s390
13535         ;;
13536
13537   sh-*-* | sh[34]*-*-*)
13538         TARGET=SH; TARGETDIR=sh
13539         ;;
13540   sh64-*-* | sh5*-*-*)
13541         TARGET=SH64; TARGETDIR=sh64
13542         ;;
13543
13544   sparc*-*-*)
13545         TARGET=SPARC; TARGETDIR=sparc
13546         ;;
13547
13548   tile*-*)
13549         TARGET=TILE; TARGETDIR=tile
13550         ;;
13551
13552   vax-*-*)
13553         TARGET=VAX; TARGETDIR=vax
13554         ;;
13555
13556   xtensa*-*)
13557         TARGET=XTENSA; TARGETDIR=xtensa
13558         ;;
13559
13560 esac
13561
13562
13563
13564
13565 if test $TARGETDIR = unknown; then
13566   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13567 fi
13568
13569  if test x$TARGET = xMIPS; then
13570   MIPS_TRUE=
13571   MIPS_FALSE='#'
13572 else
13573   MIPS_TRUE='#'
13574   MIPS_FALSE=
13575 fi
13576
13577  if test x$TARGET = xBFIN; then
13578   BFIN_TRUE=
13579   BFIN_FALSE='#'
13580 else
13581   BFIN_TRUE='#'
13582   BFIN_FALSE=
13583 fi
13584
13585  if test x$TARGET = xSPARC; then
13586   SPARC_TRUE=
13587   SPARC_FALSE='#'
13588 else
13589   SPARC_TRUE='#'
13590   SPARC_FALSE=
13591 fi
13592
13593  if test x$TARGET = xX86; then
13594   X86_TRUE=
13595   X86_FALSE='#'
13596 else
13597   X86_TRUE='#'
13598   X86_FALSE=
13599 fi
13600
13601  if test x$TARGET = xX86_FREEBSD; then
13602   X86_FREEBSD_TRUE=
13603   X86_FREEBSD_FALSE='#'
13604 else
13605   X86_FREEBSD_TRUE='#'
13606   X86_FREEBSD_FALSE=
13607 fi
13608
13609  if test x$TARGET = xX86_WIN32; then
13610   X86_WIN32_TRUE=
13611   X86_WIN32_FALSE='#'
13612 else
13613   X86_WIN32_TRUE='#'
13614   X86_WIN32_FALSE=
13615 fi
13616
13617  if test x$TARGET = xX86_WIN64; then
13618   X86_WIN64_TRUE=
13619   X86_WIN64_FALSE='#'
13620 else
13621   X86_WIN64_TRUE='#'
13622   X86_WIN64_FALSE=
13623 fi
13624
13625  if test x$TARGET = xX86_DARWIN; then
13626   X86_DARWIN_TRUE=
13627   X86_DARWIN_FALSE='#'
13628 else
13629   X86_DARWIN_TRUE='#'
13630   X86_DARWIN_FALSE=
13631 fi
13632
13633  if test x$TARGET = xALPHA; then
13634   ALPHA_TRUE=
13635   ALPHA_FALSE='#'
13636 else
13637   ALPHA_TRUE='#'
13638   ALPHA_FALSE=
13639 fi
13640
13641  if test x$TARGET = xIA64; then
13642   IA64_TRUE=
13643   IA64_FALSE='#'
13644 else
13645   IA64_TRUE='#'
13646   IA64_FALSE=
13647 fi
13648
13649  if test x$TARGET = xM32R; then
13650   M32R_TRUE=
13651   M32R_FALSE='#'
13652 else
13653   M32R_TRUE='#'
13654   M32R_FALSE=
13655 fi
13656
13657  if test x$TARGET = xM68K; then
13658   M68K_TRUE=
13659   M68K_FALSE='#'
13660 else
13661   M68K_TRUE='#'
13662   M68K_FALSE=
13663 fi
13664
13665  if test x$TARGET = xM88K; then
13666   M88K_TRUE=
13667   M88K_FALSE='#'
13668 else
13669   M88K_TRUE='#'
13670   M88K_FALSE=
13671 fi
13672
13673  if test x$TARGET = xMICROBLAZE; then
13674   MICROBLAZE_TRUE=
13675   MICROBLAZE_FALSE='#'
13676 else
13677   MICROBLAZE_TRUE='#'
13678   MICROBLAZE_FALSE=
13679 fi
13680
13681  if test x$TARGET = xMETAG; then
13682   METAG_TRUE=
13683   METAG_FALSE='#'
13684 else
13685   METAG_TRUE='#'
13686   METAG_FALSE=
13687 fi
13688
13689  if test x$TARGET = xMOXIE; then
13690   MOXIE_TRUE=
13691   MOXIE_FALSE='#'
13692 else
13693   MOXIE_TRUE='#'
13694   MOXIE_FALSE=
13695 fi
13696
13697  if test x$TARGET = xNIOS2; then
13698   NIOS2_TRUE=
13699   NIOS2_FALSE='#'
13700 else
13701   NIOS2_TRUE='#'
13702   NIOS2_FALSE=
13703 fi
13704
13705  if test x$TARGET = xPOWERPC; then
13706   POWERPC_TRUE=
13707   POWERPC_FALSE='#'
13708 else
13709   POWERPC_TRUE='#'
13710   POWERPC_FALSE=
13711 fi
13712
13713  if test x$TARGET = xPOWERPC_AIX; then
13714   POWERPC_AIX_TRUE=
13715   POWERPC_AIX_FALSE='#'
13716 else
13717   POWERPC_AIX_TRUE='#'
13718   POWERPC_AIX_FALSE=
13719 fi
13720
13721  if test x$TARGET = xPOWERPC_DARWIN; then
13722   POWERPC_DARWIN_TRUE=
13723   POWERPC_DARWIN_FALSE='#'
13724 else
13725   POWERPC_DARWIN_TRUE='#'
13726   POWERPC_DARWIN_FALSE=
13727 fi
13728
13729  if test x$TARGET = xPOWERPC_FREEBSD; then
13730   POWERPC_FREEBSD_TRUE=
13731   POWERPC_FREEBSD_FALSE='#'
13732 else
13733   POWERPC_FREEBSD_TRUE='#'
13734   POWERPC_FREEBSD_FALSE=
13735 fi
13736
13737  if test x$TARGET = xAARCH64; then
13738   AARCH64_TRUE=
13739   AARCH64_FALSE='#'
13740 else
13741   AARCH64_TRUE='#'
13742   AARCH64_FALSE=
13743 fi
13744
13745  if test x$TARGET = xARC; then
13746   ARC_TRUE=
13747   ARC_FALSE='#'
13748 else
13749   ARC_TRUE='#'
13750   ARC_FALSE=
13751 fi
13752
13753  if test x$TARGET = xARM; then
13754   ARM_TRUE=
13755   ARM_FALSE='#'
13756 else
13757   ARM_TRUE='#'
13758   ARM_FALSE=
13759 fi
13760
13761  if test x$TARGET = xAVR32; then
13762   AVR32_TRUE=
13763   AVR32_FALSE='#'
13764 else
13765   AVR32_TRUE='#'
13766   AVR32_FALSE=
13767 fi
13768
13769  if test x$TARGET = xLIBFFI_CRIS; then
13770   LIBFFI_CRIS_TRUE=
13771   LIBFFI_CRIS_FALSE='#'
13772 else
13773   LIBFFI_CRIS_TRUE='#'
13774   LIBFFI_CRIS_FALSE=
13775 fi
13776
13777  if test x$TARGET = xFRV; then
13778   FRV_TRUE=
13779   FRV_FALSE='#'
13780 else
13781   FRV_TRUE='#'
13782   FRV_FALSE=
13783 fi
13784
13785  if test x$TARGET = xS390; then
13786   S390_TRUE=
13787   S390_FALSE='#'
13788 else
13789   S390_TRUE='#'
13790   S390_FALSE=
13791 fi
13792
13793  if test x$TARGET = xX86_64; then
13794   X86_64_TRUE=
13795   X86_64_FALSE='#'
13796 else
13797   X86_64_TRUE='#'
13798   X86_64_FALSE=
13799 fi
13800
13801  if test x$TARGET = xSH; then
13802   SH_TRUE=
13803   SH_FALSE='#'
13804 else
13805   SH_TRUE='#'
13806   SH_FALSE=
13807 fi
13808
13809  if test x$TARGET = xSH64; then
13810   SH64_TRUE=
13811   SH64_FALSE='#'
13812 else
13813   SH64_TRUE='#'
13814   SH64_FALSE=
13815 fi
13816
13817  if test x$TARGET = xPA_LINUX; then
13818   PA_LINUX_TRUE=
13819   PA_LINUX_FALSE='#'
13820 else
13821   PA_LINUX_TRUE='#'
13822   PA_LINUX_FALSE=
13823 fi
13824
13825  if test x$TARGET = xPA_HPUX; then
13826   PA_HPUX_TRUE=
13827   PA_HPUX_FALSE='#'
13828 else
13829   PA_HPUX_TRUE='#'
13830   PA_HPUX_FALSE=
13831 fi
13832
13833  if test x$TARGET = xPA64_HPUX; then
13834   PA64_HPUX_TRUE=
13835   PA64_HPUX_FALSE='#'
13836 else
13837   PA64_HPUX_TRUE='#'
13838   PA64_HPUX_FALSE=
13839 fi
13840
13841  if test x$TARGET = xTILE; then
13842   TILE_TRUE=
13843   TILE_FALSE='#'
13844 else
13845   TILE_TRUE='#'
13846   TILE_FALSE=
13847 fi
13848
13849  if test x$TARGET = xVAX; then
13850   VAX_TRUE=
13851   VAX_FALSE='#'
13852 else
13853   VAX_TRUE='#'
13854   VAX_FALSE=
13855 fi
13856
13857  if test x$TARGET = xXTENSA; then
13858   XTENSA_TRUE=
13859   XTENSA_FALSE='#'
13860 else
13861   XTENSA_TRUE='#'
13862   XTENSA_FALSE=
13863 fi
13864
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13867 $as_echo_n "checking for ANSI C header files... " >&6; }
13868 if ${ac_cv_header_stdc+:} false; then :
13869   $as_echo_n "(cached) " >&6
13870 else
13871   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h.  */
13873 #include <stdlib.h>
13874 #include <stdarg.h>
13875 #include <string.h>
13876 #include <float.h>
13877
13878 int
13879 main ()
13880 {
13881
13882   ;
13883   return 0;
13884 }
13885 _ACEOF
13886 if ac_fn_c_try_compile "$LINENO"; then :
13887   ac_cv_header_stdc=yes
13888 else
13889   ac_cv_header_stdc=no
13890 fi
13891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13892
13893 if test $ac_cv_header_stdc = yes; then
13894   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13896 /* end confdefs.h.  */
13897 #include <string.h>
13898
13899 _ACEOF
13900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13901   $EGREP "memchr" >/dev/null 2>&1; then :
13902
13903 else
13904   ac_cv_header_stdc=no
13905 fi
13906 rm -f conftest*
13907
13908 fi
13909
13910 if test $ac_cv_header_stdc = yes; then
13911   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13913 /* end confdefs.h.  */
13914 #include <stdlib.h>
13915
13916 _ACEOF
13917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13918   $EGREP "free" >/dev/null 2>&1; then :
13919
13920 else
13921   ac_cv_header_stdc=no
13922 fi
13923 rm -f conftest*
13924
13925 fi
13926
13927 if test $ac_cv_header_stdc = yes; then
13928   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13929   if test "$cross_compiling" = yes; then :
13930   :
13931 else
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934 #include <ctype.h>
13935 #include <stdlib.h>
13936 #if ((' ' & 0x0FF) == 0x020)
13937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13939 #else
13940 # define ISLOWER(c) \
13941                    (('a' <= (c) && (c) <= 'i') \
13942                      || ('j' <= (c) && (c) <= 'r') \
13943                      || ('s' <= (c) && (c) <= 'z'))
13944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13945 #endif
13946
13947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13948 int
13949 main ()
13950 {
13951   int i;
13952   for (i = 0; i < 256; i++)
13953     if (XOR (islower (i), ISLOWER (i))
13954         || toupper (i) != TOUPPER (i))
13955       return 2;
13956   return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_run "$LINENO"; then :
13960
13961 else
13962   ac_cv_header_stdc=no
13963 fi
13964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13965   conftest.$ac_objext conftest.beam conftest.$ac_ext
13966 fi
13967
13968 fi
13969 fi
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13971 $as_echo "$ac_cv_header_stdc" >&6; }
13972 if test $ac_cv_header_stdc = yes; then
13973
13974 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13975
13976 fi
13977
13978 for ac_func in memcpy
13979 do :
13980   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13981 if test "x$ac_cv_func_memcpy" = xyes; then :
13982   cat >>confdefs.h <<_ACEOF
13983 #define HAVE_MEMCPY 1
13984 _ACEOF
13985
13986 fi
13987 done
13988
13989 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13990 if test "x$ac_cv_type_size_t" = xyes; then :
13991
13992 else
13993
13994 cat >>confdefs.h <<_ACEOF
13995 #define size_t unsigned int
13996 _ACEOF
13997
13998 fi
13999
14000 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14001 # for constant arguments.  Useless!
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
14003 $as_echo_n "checking for working alloca.h... " >&6; }
14004 if ${ac_cv_working_alloca_h+:} false; then :
14005   $as_echo_n "(cached) " >&6
14006 else
14007   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14008 /* end confdefs.h.  */
14009 #include <alloca.h>
14010 int
14011 main ()
14012 {
14013 char *p = (char *) alloca (2 * sizeof (int));
14014                           if (p) return 0;
14015   ;
14016   return 0;
14017 }
14018 _ACEOF
14019 if ac_fn_c_try_link "$LINENO"; then :
14020   ac_cv_working_alloca_h=yes
14021 else
14022   ac_cv_working_alloca_h=no
14023 fi
14024 rm -f core conftest.err conftest.$ac_objext \
14025     conftest$ac_exeext conftest.$ac_ext
14026 fi
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
14028 $as_echo "$ac_cv_working_alloca_h" >&6; }
14029 if test $ac_cv_working_alloca_h = yes; then
14030
14031 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
14032
14033 fi
14034
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
14036 $as_echo_n "checking for alloca... " >&6; }
14037 if ${ac_cv_func_alloca_works+:} false; then :
14038   $as_echo_n "(cached) " >&6
14039 else
14040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041 /* end confdefs.h.  */
14042 #ifdef __GNUC__
14043 # define alloca __builtin_alloca
14044 #else
14045 # ifdef _MSC_VER
14046 #  include <malloc.h>
14047 #  define alloca _alloca
14048 # else
14049 #  ifdef HAVE_ALLOCA_H
14050 #   include <alloca.h>
14051 #  else
14052 #   ifdef _AIX
14053  #pragma alloca
14054 #   else
14055 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14056 void *alloca (size_t);
14057 #    endif
14058 #   endif
14059 #  endif
14060 # endif
14061 #endif
14062
14063 int
14064 main ()
14065 {
14066 char *p = (char *) alloca (1);
14067                                     if (p) return 0;
14068   ;
14069   return 0;
14070 }
14071 _ACEOF
14072 if ac_fn_c_try_link "$LINENO"; then :
14073   ac_cv_func_alloca_works=yes
14074 else
14075   ac_cv_func_alloca_works=no
14076 fi
14077 rm -f core conftest.err conftest.$ac_objext \
14078     conftest$ac_exeext conftest.$ac_ext
14079 fi
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
14081 $as_echo "$ac_cv_func_alloca_works" >&6; }
14082
14083 if test $ac_cv_func_alloca_works = yes; then
14084
14085 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
14086
14087 else
14088   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14089 # that cause trouble.  Some versions do not even contain alloca or
14090 # contain a buggy version.  If you still want to use their alloca,
14091 # use ar to extract alloca.o from them instead of compiling alloca.c.
14092
14093 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14094
14095 $as_echo "#define C_ALLOCA 1" >>confdefs.h
14096
14097
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
14099 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
14100 if ${ac_cv_os_cray+:} false; then :
14101   $as_echo_n "(cached) " >&6
14102 else
14103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14104 /* end confdefs.h.  */
14105 #if defined CRAY && ! defined CRAY2
14106 webecray
14107 #else
14108 wenotbecray
14109 #endif
14110
14111 _ACEOF
14112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14113   $EGREP "webecray" >/dev/null 2>&1; then :
14114   ac_cv_os_cray=yes
14115 else
14116   ac_cv_os_cray=no
14117 fi
14118 rm -f conftest*
14119
14120 fi
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
14122 $as_echo "$ac_cv_os_cray" >&6; }
14123 if test $ac_cv_os_cray = yes; then
14124   for ac_func in _getb67 GETB67 getb67; do
14125     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14127 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14128
14129 cat >>confdefs.h <<_ACEOF
14130 #define CRAY_STACKSEG_END $ac_func
14131 _ACEOF
14132
14133     break
14134 fi
14135
14136   done
14137 fi
14138
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
14140 $as_echo_n "checking stack direction for C alloca... " >&6; }
14141 if ${ac_cv_c_stack_direction+:} false; then :
14142   $as_echo_n "(cached) " >&6
14143 else
14144   if test "$cross_compiling" = yes; then :
14145   ac_cv_c_stack_direction=0
14146 else
14147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14148 /* end confdefs.h.  */
14149 $ac_includes_default
14150 int
14151 find_stack_direction (int *addr, int depth)
14152 {
14153   int dir, dummy = 0;
14154   if (! addr)
14155     addr = &dummy;
14156   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14157   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14158   return dir + dummy;
14159 }
14160
14161 int
14162 main (int argc, char **argv)
14163 {
14164   return find_stack_direction (0, argc + !argv + 20) < 0;
14165 }
14166 _ACEOF
14167 if ac_fn_c_try_run "$LINENO"; then :
14168   ac_cv_c_stack_direction=1
14169 else
14170   ac_cv_c_stack_direction=-1
14171 fi
14172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14173   conftest.$ac_objext conftest.beam conftest.$ac_ext
14174 fi
14175
14176 fi
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14178 $as_echo "$ac_cv_c_stack_direction" >&6; }
14179 cat >>confdefs.h <<_ACEOF
14180 #define STACK_DIRECTION $ac_cv_c_stack_direction
14181 _ACEOF
14182
14183
14184 fi
14185
14186
14187 # The cast to long int works around a bug in the HP C Compiler
14188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14190 # This bug is HP SR number 8606223364.
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14192 $as_echo_n "checking size of double... " >&6; }
14193 if ${ac_cv_sizeof_double+:} false; then :
14194   $as_echo_n "(cached) " >&6
14195 else
14196   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14197
14198 else
14199   if test "$ac_cv_type_double" = yes; then
14200      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14202 as_fn_error 77 "cannot compute sizeof (double)
14203 See \`config.log' for more details" "$LINENO" 5; }
14204    else
14205      ac_cv_sizeof_double=0
14206    fi
14207 fi
14208
14209 fi
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14211 $as_echo "$ac_cv_sizeof_double" >&6; }
14212
14213
14214
14215 cat >>confdefs.h <<_ACEOF
14216 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14217 _ACEOF
14218
14219
14220 # The cast to long int works around a bug in the HP C Compiler
14221 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14222 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14223 # This bug is HP SR number 8606223364.
14224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14225 $as_echo_n "checking size of long double... " >&6; }
14226 if ${ac_cv_sizeof_long_double+:} false; then :
14227   $as_echo_n "(cached) " >&6
14228 else
14229   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14230
14231 else
14232   if test "$ac_cv_type_long_double" = yes; then
14233      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14235 as_fn_error 77 "cannot compute sizeof (long double)
14236 See \`config.log' for more details" "$LINENO" 5; }
14237    else
14238      ac_cv_sizeof_long_double=0
14239    fi
14240 fi
14241
14242 fi
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14244 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14245
14246
14247
14248 cat >>confdefs.h <<_ACEOF
14249 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14250 _ACEOF
14251
14252
14253
14254 # Also AC_SUBST this variable for ffi.h.
14255 if test -z "$HAVE_LONG_DOUBLE"; then
14256   HAVE_LONG_DOUBLE=0
14257   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14258     if test $ac_cv_sizeof_long_double != 0; then
14259       HAVE_LONG_DOUBLE=1
14260
14261 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14262
14263     fi
14264   fi
14265 fi
14266
14267
14268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14269 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14270 if ${ac_cv_c_bigendian+:} false; then :
14271   $as_echo_n "(cached) " >&6
14272 else
14273   ac_cv_c_bigendian=unknown
14274     # See if we're dealing with a universal compiler.
14275     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h.  */
14277 #ifndef __APPLE_CC__
14278                not a universal capable compiler
14279              #endif
14280              typedef int dummy;
14281
14282 _ACEOF
14283 if ac_fn_c_try_compile "$LINENO"; then :
14284
14285         # Check for potential -arch flags.  It is not universal unless
14286         # there are at least two -arch flags with different values.
14287         ac_arch=
14288         ac_prev=
14289         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14290          if test -n "$ac_prev"; then
14291            case $ac_word in
14292              i?86 | x86_64 | ppc | ppc64)
14293                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14294                  ac_arch=$ac_word
14295                else
14296                  ac_cv_c_bigendian=universal
14297                  break
14298                fi
14299                ;;
14300            esac
14301            ac_prev=
14302          elif test "x$ac_word" = "x-arch"; then
14303            ac_prev=arch
14304          fi
14305        done
14306 fi
14307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14308     if test $ac_cv_c_bigendian = unknown; then
14309       # See if sys/param.h defines the BYTE_ORDER macro.
14310       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14311 /* end confdefs.h.  */
14312 #include <sys/types.h>
14313              #include <sys/param.h>
14314
14315 int
14316 main ()
14317 {
14318 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14319                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14320                      && LITTLE_ENDIAN)
14321               bogus endian macros
14322              #endif
14323
14324   ;
14325   return 0;
14326 }
14327 _ACEOF
14328 if ac_fn_c_try_compile "$LINENO"; then :
14329   # It does; now see whether it defined to BIG_ENDIAN or not.
14330          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h.  */
14332 #include <sys/types.h>
14333                 #include <sys/param.h>
14334
14335 int
14336 main ()
14337 {
14338 #if BYTE_ORDER != BIG_ENDIAN
14339                  not big endian
14340                 #endif
14341
14342   ;
14343   return 0;
14344 }
14345 _ACEOF
14346 if ac_fn_c_try_compile "$LINENO"; then :
14347   ac_cv_c_bigendian=yes
14348 else
14349   ac_cv_c_bigendian=no
14350 fi
14351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14352 fi
14353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14354     fi
14355     if test $ac_cv_c_bigendian = unknown; then
14356       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14357       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h.  */
14359 #include <limits.h>
14360
14361 int
14362 main ()
14363 {
14364 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14365               bogus endian macros
14366              #endif
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_compile "$LINENO"; then :
14373   # It does; now see whether it defined to _BIG_ENDIAN or not.
14374          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h.  */
14376 #include <limits.h>
14377
14378 int
14379 main ()
14380 {
14381 #ifndef _BIG_ENDIAN
14382                  not big endian
14383                 #endif
14384
14385   ;
14386   return 0;
14387 }
14388 _ACEOF
14389 if ac_fn_c_try_compile "$LINENO"; then :
14390   ac_cv_c_bigendian=yes
14391 else
14392   ac_cv_c_bigendian=no
14393 fi
14394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14397     fi
14398     if test $ac_cv_c_bigendian = unknown; then
14399       # Compile a test program.
14400       if test "$cross_compiling" = yes; then :
14401   # Try to guess by grepping values from an object file.
14402          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14403 /* end confdefs.h.  */
14404 short int ascii_mm[] =
14405                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14406                 short int ascii_ii[] =
14407                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14408                 int use_ascii (int i) {
14409                   return ascii_mm[i] + ascii_ii[i];
14410                 }
14411                 short int ebcdic_ii[] =
14412                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14413                 short int ebcdic_mm[] =
14414                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14415                 int use_ebcdic (int i) {
14416                   return ebcdic_mm[i] + ebcdic_ii[i];
14417                 }
14418                 extern int foo;
14419
14420 int
14421 main ()
14422 {
14423 return use_ascii (foo) == use_ebcdic (foo);
14424   ;
14425   return 0;
14426 }
14427 _ACEOF
14428 if ac_fn_c_try_compile "$LINENO"; then :
14429   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14430               ac_cv_c_bigendian=yes
14431             fi
14432             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14433               if test "$ac_cv_c_bigendian" = unknown; then
14434                 ac_cv_c_bigendian=no
14435               else
14436                 # finding both strings is unlikely to happen, but who knows?
14437                 ac_cv_c_bigendian=unknown
14438               fi
14439             fi
14440 fi
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14442 else
14443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14444 /* end confdefs.h.  */
14445 $ac_includes_default
14446 int
14447 main ()
14448 {
14449
14450              /* Are we little or big endian?  From Harbison&Steele.  */
14451              union
14452              {
14453                long int l;
14454                char c[sizeof (long int)];
14455              } u;
14456              u.l = 1;
14457              return u.c[sizeof (long int) - 1] == 1;
14458
14459   ;
14460   return 0;
14461 }
14462 _ACEOF
14463 if ac_fn_c_try_run "$LINENO"; then :
14464   ac_cv_c_bigendian=no
14465 else
14466   ac_cv_c_bigendian=yes
14467 fi
14468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14469   conftest.$ac_objext conftest.beam conftest.$ac_ext
14470 fi
14471
14472     fi
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14475 $as_echo "$ac_cv_c_bigendian" >&6; }
14476  case $ac_cv_c_bigendian in #(
14477    yes)
14478      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14479 ;; #(
14480    no)
14481       ;; #(
14482    universal)
14483
14484 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14485
14486      ;; #(
14487    *)
14488      as_fn_error $? "unknown endianness
14489  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14490  esac
14491
14492
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14494 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14495 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14496   $as_echo_n "(cached) " >&6
14497 else
14498
14499     gcc_cv_as_cfi_pseudo_op=unknown
14500     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h.  */
14502 asm (".cfi_startproc\n\t.cfi_endproc");
14503 int
14504 main ()
14505 {
14506
14507   ;
14508   return 0;
14509 }
14510 _ACEOF
14511 if ac_fn_c_try_compile "$LINENO"; then :
14512   gcc_cv_as_cfi_pseudo_op=yes
14513 else
14514   gcc_cv_as_cfi_pseudo_op=no
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517
14518 fi
14519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14520 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14521  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14522
14523 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14524
14525  fi
14526
14527
14528 if test x$TARGET = xSPARC; then
14529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14530 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14531 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14532   $as_echo_n "(cached) " >&6
14533 else
14534
14535         save_CFLAGS="$CFLAGS"
14536         save_LDFLAGS="$LDFLAGS"
14537         CFLAGS="$CFLAGS -fpic"
14538         LDFLAGS="$LDFLAGS -shared"
14539         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14540 /* end confdefs.h.  */
14541 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14542 int
14543 main ()
14544 {
14545
14546   ;
14547   return 0;
14548 }
14549 _ACEOF
14550 if ac_fn_c_try_link "$LINENO"; then :
14551   libffi_cv_as_sparc_ua_pcrel=yes
14552 else
14553   libffi_cv_as_sparc_ua_pcrel=no
14554 fi
14555 rm -f core conftest.err conftest.$ac_objext \
14556     conftest$ac_exeext conftest.$ac_ext
14557         CFLAGS="$save_CFLAGS"
14558         LDFLAGS="$save_LDFLAGS"
14559 fi
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14561 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14562     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14563
14564 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14565
14566     fi
14567
14568     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14569 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14570 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14571   $as_echo_n "(cached) " >&6
14572 else
14573
14574        libffi_cv_as_register_pseudo_op=unknown
14575        # Check if we have .register
14576        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h.  */
14578
14579 int
14580 main ()
14581 {
14582 asm (".register %g2, #scratch");
14583   ;
14584   return 0;
14585 }
14586 _ACEOF
14587 if ac_fn_c_try_compile "$LINENO"; then :
14588   libffi_cv_as_register_pseudo_op=yes
14589 else
14590   libffi_cv_as_register_pseudo_op=no
14591 fi
14592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14593
14594 fi
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14596 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14597     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14598
14599 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14600
14601     fi
14602 fi
14603
14604 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14605     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14606 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14607 if ${libffi_cv_as_x86_pcrel+:} false; then :
14608   $as_echo_n "(cached) " >&6
14609 else
14610
14611         libffi_cv_as_x86_pcrel=no
14612         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14613         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14614             libffi_cv_as_x86_pcrel=yes
14615         fi
14616
14617 fi
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14619 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14620     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14621
14622 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14623
14624     fi
14625
14626     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14627 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14628 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14629   $as_echo_n "(cached) " >&6
14630 else
14631
14632        libffi_cv_as_ascii_pseudo_op=unknown
14633        # Check if we have .ascii
14634        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14635 /* end confdefs.h.  */
14636
14637 int
14638 main ()
14639 {
14640 asm (".ascii \\"string\\"");
14641   ;
14642   return 0;
14643 }
14644 _ACEOF
14645 if ac_fn_c_try_compile "$LINENO"; then :
14646   libffi_cv_as_ascii_pseudo_op=yes
14647 else
14648   libffi_cv_as_ascii_pseudo_op=no
14649 fi
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14654 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14655     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14656
14657 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14658
14659     fi
14660
14661     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14662 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14663 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14664   $as_echo_n "(cached) " >&6
14665 else
14666
14667        libffi_cv_as_string_pseudo_op=unknown
14668        # Check if we have .string
14669        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14670 /* end confdefs.h.  */
14671
14672 int
14673 main ()
14674 {
14675 asm (".string \\"string\\"");
14676   ;
14677   return 0;
14678 }
14679 _ACEOF
14680 if ac_fn_c_try_compile "$LINENO"; then :
14681   libffi_cv_as_string_pseudo_op=yes
14682 else
14683   libffi_cv_as_string_pseudo_op=no
14684 fi
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686
14687 fi
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14689 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14690     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14691
14692 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14693
14694     fi
14695 fi
14696
14697 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14698 # Check whether --enable-pax_emutramp was given.
14699 if test "${enable_pax_emutramp+set}" = set; then :
14700   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14701
14702 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14703
14704   fi
14705 fi
14706
14707
14708 if test x$TARGET = xX86_WIN64; then
14709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14710 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14711 if ${lt_cv_sys_symbol_underscore+:} false; then :
14712   $as_echo_n "(cached) " >&6
14713 else
14714   lt_cv_sys_symbol_underscore=no
14715   cat > conftest.$ac_ext <<_LT_EOF
14716 void nm_test_func(){}
14717 int main(){nm_test_func;return 0;}
14718 _LT_EOF
14719   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14720   (eval $ac_compile) 2>&5
14721   ac_status=$?
14722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14723   test $ac_status = 0; }; then
14724     # Now try to grab the symbols.
14725     ac_nlist=conftest.nm
14726     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14727   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14728   ac_status=$?
14729   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14730   test $ac_status = 0; } && test -s "$ac_nlist"; then
14731       # See whether the symbols have a leading underscore.
14732       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14733         lt_cv_sys_symbol_underscore=yes
14734       else
14735         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14736           :
14737         else
14738           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14739         fi
14740       fi
14741     else
14742       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14743     fi
14744   else
14745     echo "configure: failed program was:" >&5
14746     cat conftest.c >&5
14747   fi
14748   rm -rf conftest*
14749
14750 fi
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14752 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14753   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14754
14755
14756     if test "x$sys_symbol_underscore" = xyes; then
14757
14758 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14759
14760     fi
14761 fi
14762
14763 FFI_EXEC_TRAMPOLINE_TABLE=0
14764 case "$target" in
14765      *arm*-apple-darwin*)
14766        FFI_EXEC_TRAMPOLINE_TABLE=1
14767
14768 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14769
14770      ;;
14771      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14772
14773 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14774
14775      ;;
14776 esac
14777  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14778   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14779   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14780 else
14781   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14782   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14783 fi
14784
14785
14786
14787 if test x$TARGET = xX86_64; then
14788     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14789 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14790 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14791   $as_echo_n "(cached) " >&6
14792 else
14793
14794         libffi_cv_as_x86_64_unwind_section_type=yes
14795         echo '.section .eh_frame,"a",@unwind' > conftest.s
14796         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14797             libffi_cv_as_x86_64_unwind_section_type=no
14798         fi
14799
14800 fi
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14802 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14803     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14804
14805 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14806
14807     fi
14808 fi
14809
14810 if test "x$GCC" = "xyes"; then
14811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14812 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14813 if ${libffi_cv_ro_eh_frame+:} false; then :
14814   $as_echo_n "(cached) " >&6
14815 else
14816
14817         libffi_cv_ro_eh_frame=no
14818         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14819         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14820             objdump -h conftest.o > conftest.dump 2>&1
14821             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14822             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14823             sed -n $libffi_test_line conftest.dump > conftest.line
14824             if grep READONLY conftest.line > /dev/null; then
14825                 libffi_cv_ro_eh_frame=yes
14826             fi
14827         fi
14828         rm -f conftest.*
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14832 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14833   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14834
14835 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14836
14837
14838 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14839
14840   else
14841
14842 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14843
14844   fi
14845
14846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14847 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14848 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14849   $as_echo_n "(cached) " >&6
14850 else
14851
14852         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14853         libffi_cv_hidden_visibility_attribute=no
14854         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14855   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14859   test $ac_status = 0; }; }; then
14860             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14861                 libffi_cv_hidden_visibility_attribute=yes
14862             fi
14863         fi
14864         rm -f conftest.*
14865
14866 fi
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14868 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14869   if test $libffi_cv_hidden_visibility_attribute = yes; then
14870
14871 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14872
14873   fi
14874 fi
14875
14876
14877
14878
14879
14880
14881
14882
14883 # Check whether --enable-debug was given.
14884 if test "${enable_debug+set}" = set; then :
14885   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14886
14887 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14888
14889   fi
14890 fi
14891
14892  if test "$enable_debug" = "yes"; then
14893   FFI_DEBUG_TRUE=
14894   FFI_DEBUG_FALSE='#'
14895 else
14896   FFI_DEBUG_TRUE='#'
14897   FFI_DEBUG_FALSE=
14898 fi
14899
14900
14901 # Check whether --enable-structs was given.
14902 if test "${enable_structs+set}" = set; then :
14903   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14904
14905 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14906
14907   fi
14908 fi
14909
14910  if test "$enable_debug" = "yes"; then
14911   FFI_DEBUG_TRUE=
14912   FFI_DEBUG_FALSE='#'
14913 else
14914   FFI_DEBUG_TRUE='#'
14915   FFI_DEBUG_FALSE=
14916 fi
14917
14918
14919 # Check whether --enable-raw-api was given.
14920 if test "${enable_raw_api+set}" = set; then :
14921   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14922
14923 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14924
14925   fi
14926 fi
14927
14928
14929 # Check whether --enable-purify-safety was given.
14930 if test "${enable_purify_safety+set}" = set; then :
14931   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14932
14933 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14934
14935   fi
14936 fi
14937
14938
14939 # These variables are only ever used when we cross-build to X86_WIN32.
14940 # And we only support this with GCC, so...
14941 if test "x$GCC" = "xyes"; then
14942   if test -n "$with_cross_host" &&
14943      test x"$with_cross_host" != x"no"; then
14944     toolexecdir='$(exec_prefix)/$(target_alias)'
14945     toolexeclibdir='$(toolexecdir)/lib'
14946   else
14947     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14948     toolexeclibdir='$(libdir)'
14949   fi
14950   multi_os_directory=`$CC -print-multi-os-directory`
14951   case $multi_os_directory in
14952     .) ;; # Avoid trailing /.
14953     ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14954   esac
14955
14956 else
14957   toolexeclibdir='$(libdir)'
14958 fi
14959
14960
14961 ac_config_commands="$ac_config_commands include"
14962
14963 ac_config_commands="$ac_config_commands src"
14964
14965
14966 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14967
14968
14969 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14970
14971
14972 cat >confcache <<\_ACEOF
14973 # This file is a shell script that caches the results of configure
14974 # tests run on this system so they can be shared between configure
14975 # scripts and configure runs, see configure's option --config-cache.
14976 # It is not useful on other systems.  If it contains results you don't
14977 # want to keep, you may remove or edit it.
14978 #
14979 # config.status only pays attention to the cache file if you give it
14980 # the --recheck option to rerun configure.
14981 #
14982 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14983 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14984 # following values.
14985
14986 _ACEOF
14987
14988 # The following way of writing the cache mishandles newlines in values,
14989 # but we know of no workaround that is simple, portable, and efficient.
14990 # So, we kill variables containing newlines.
14991 # Ultrix sh set writes to stderr and can't be redirected directly,
14992 # and sets the high bit in the cache file unless we assign to the vars.
14993 (
14994   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14995     eval ac_val=\$$ac_var
14996     case $ac_val in #(
14997     *${as_nl}*)
14998       case $ac_var in #(
14999       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15000 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15001       esac
15002       case $ac_var in #(
15003       _ | IFS | as_nl) ;; #(
15004       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15005       *) { eval $ac_var=; unset $ac_var;} ;;
15006       esac ;;
15007     esac
15008   done
15009
15010   (set) 2>&1 |
15011     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15012     *${as_nl}ac_space=\ *)
15013       # `set' does not quote correctly, so add quotes: double-quote
15014       # substitution turns \\\\ into \\, and sed turns \\ into \.
15015       sed -n \
15016         "s/'/'\\\\''/g;
15017           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15018       ;; #(
15019     *)
15020       # `set' quotes correctly as required by POSIX, so do not add quotes.
15021       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15022       ;;
15023     esac |
15024     sort
15025 ) |
15026   sed '
15027      /^ac_cv_env_/b end
15028      t clear
15029      :clear
15030      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15031      t end
15032      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15033      :end' >>confcache
15034 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15035   if test -w "$cache_file"; then
15036     if test "x$cache_file" != "x/dev/null"; then
15037       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15038 $as_echo "$as_me: updating cache $cache_file" >&6;}
15039       if test ! -f "$cache_file" || test -h "$cache_file"; then
15040         cat confcache >"$cache_file"
15041       else
15042         case $cache_file in #(
15043         */* | ?:*)
15044           mv -f confcache "$cache_file"$$ &&
15045           mv -f "$cache_file"$$ "$cache_file" ;; #(
15046         *)
15047           mv -f confcache "$cache_file" ;;
15048         esac
15049       fi
15050     fi
15051   else
15052     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15053 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15054   fi
15055 fi
15056 rm -f confcache
15057
15058 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15059 # Let make expand exec_prefix.
15060 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15061
15062 DEFS=-DHAVE_CONFIG_H
15063
15064 ac_libobjs=
15065 ac_ltlibobjs=
15066 U=
15067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15068   # 1. Remove the extension, and $U if already installed.
15069   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15070   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15071   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15072   #    will be set to the directory where LIBOBJS objects are built.
15073   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15074   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15075 done
15076 LIBOBJS=$ac_libobjs
15077
15078 LTLIBOBJS=$ac_ltlibobjs
15079
15080
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15082 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15083    if test -n "$am_sleep_pid"; then
15084      # Hide warnings about reused PIDs.
15085      wait $am_sleep_pid 2>/dev/null
15086    fi
15087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15088 $as_echo "done" >&6; }
15089  if test -n "$EXEEXT"; then
15090   am__EXEEXT_TRUE=
15091   am__EXEEXT_FALSE='#'
15092 else
15093   am__EXEEXT_TRUE='#'
15094   am__EXEEXT_FALSE=
15095 fi
15096
15097 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15098   as_fn_error $? "conditional \"AMDEP\" was never defined.
15099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15100 fi
15101 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15102   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15104 fi
15105 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
15106   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
15107 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15108 fi
15109 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15110   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15111 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15112 fi
15113 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
15114   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
15115 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15116 fi
15117 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
15118   as_fn_error $? "conditional \"MIPS\" was never defined.
15119 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15120 fi
15121 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
15122   as_fn_error $? "conditional \"BFIN\" was never defined.
15123 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15124 fi
15125 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
15126   as_fn_error $? "conditional \"SPARC\" was never defined.
15127 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15128 fi
15129 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
15130   as_fn_error $? "conditional \"X86\" was never defined.
15131 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15132 fi
15133 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
15134   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
15135 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15136 fi
15137 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
15138   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
15139 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15140 fi
15141 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
15142   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
15143 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15144 fi
15145 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
15146   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
15147 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15148 fi
15149 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15150   as_fn_error $? "conditional \"ALPHA\" was never defined.
15151 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15152 fi
15153 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15154   as_fn_error $? "conditional \"IA64\" was never defined.
15155 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15156 fi
15157 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15158   as_fn_error $? "conditional \"M32R\" was never defined.
15159 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15160 fi
15161 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15162   as_fn_error $? "conditional \"M68K\" was never defined.
15163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15164 fi
15165 if test -z "${M88K_TRUE}" && test -z "${M88K_FALSE}"; then
15166   as_fn_error $? "conditional \"M88K\" was never defined.
15167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15168 fi
15169 if test -z "${MICROBLAZE_TRUE}" && test -z "${MICROBLAZE_FALSE}"; then
15170   as_fn_error $? "conditional \"MICROBLAZE\" was never defined.
15171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15172 fi
15173 if test -z "${METAG_TRUE}" && test -z "${METAG_FALSE}"; then
15174   as_fn_error $? "conditional \"METAG\" was never defined.
15175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15176 fi
15177 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15178   as_fn_error $? "conditional \"MOXIE\" was never defined.
15179 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15180 fi
15181 if test -z "${NIOS2_TRUE}" && test -z "${NIOS2_FALSE}"; then
15182   as_fn_error $? "conditional \"NIOS2\" was never defined.
15183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15184 fi
15185 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15186   as_fn_error $? "conditional \"POWERPC\" was never defined.
15187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15188 fi
15189 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15190   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15192 fi
15193 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15194   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15196 fi
15197 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15198   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15200 fi
15201 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15202   as_fn_error $? "conditional \"AARCH64\" was never defined.
15203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15204 fi
15205 if test -z "${ARC_TRUE}" && test -z "${ARC_FALSE}"; then
15206   as_fn_error $? "conditional \"ARC\" was never defined.
15207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15208 fi
15209 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15210   as_fn_error $? "conditional \"ARM\" was never defined.
15211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15212 fi
15213 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15214   as_fn_error $? "conditional \"AVR32\" was never defined.
15215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15216 fi
15217 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15218   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15220 fi
15221 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15222   as_fn_error $? "conditional \"FRV\" was never defined.
15223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15224 fi
15225 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15226   as_fn_error $? "conditional \"S390\" was never defined.
15227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15228 fi
15229 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15230   as_fn_error $? "conditional \"X86_64\" was never defined.
15231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15232 fi
15233 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15234   as_fn_error $? "conditional \"SH\" was never defined.
15235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15236 fi
15237 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15238   as_fn_error $? "conditional \"SH64\" was never defined.
15239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15240 fi
15241 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15242   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15244 fi
15245 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15246   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15248 fi
15249 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15250   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15252 fi
15253 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15254   as_fn_error $? "conditional \"TILE\" was never defined.
15255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15256 fi
15257 if test -z "${VAX_TRUE}" && test -z "${VAX_FALSE}"; then
15258   as_fn_error $? "conditional \"VAX\" was never defined.
15259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15260 fi
15261 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15262   as_fn_error $? "conditional \"XTENSA\" was never defined.
15263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15264 fi
15265
15266 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15267   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15269 fi
15270 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15271   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15273 fi
15274 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15275   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15277 fi
15278
15279 : "${CONFIG_STATUS=./config.status}"
15280 ac_write_fail=0
15281 ac_clean_files_save=$ac_clean_files
15282 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15284 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15285 as_write_fail=0
15286 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15287 #! $SHELL
15288 # Generated by $as_me.
15289 # Run this file to recreate the current configuration.
15290 # Compiler output produced by configure, useful for debugging
15291 # configure, is in config.log if it exists.
15292
15293 debug=false
15294 ac_cs_recheck=false
15295 ac_cs_silent=false
15296
15297 SHELL=\${CONFIG_SHELL-$SHELL}
15298 export SHELL
15299 _ASEOF
15300 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15301 ## -------------------- ##
15302 ## M4sh Initialization. ##
15303 ## -------------------- ##
15304
15305 # Be more Bourne compatible
15306 DUALCASE=1; export DUALCASE # for MKS sh
15307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15308   emulate sh
15309   NULLCMD=:
15310   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15311   # is contrary to our usage.  Disable this feature.
15312   alias -g '${1+"$@"}'='"$@"'
15313   setopt NO_GLOB_SUBST
15314 else
15315   case `(set -o) 2>/dev/null` in #(
15316   *posix*) :
15317     set -o posix ;; #(
15318   *) :
15319      ;;
15320 esac
15321 fi
15322
15323
15324 as_nl='
15325 '
15326 export as_nl
15327 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15328 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15329 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15330 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15331 # Prefer a ksh shell builtin over an external printf program on Solaris,
15332 # but without wasting forks for bash or zsh.
15333 if test -z "$BASH_VERSION$ZSH_VERSION" \
15334     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15335   as_echo='print -r --'
15336   as_echo_n='print -rn --'
15337 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15338   as_echo='printf %s\n'
15339   as_echo_n='printf %s'
15340 else
15341   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15342     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15343     as_echo_n='/usr/ucb/echo -n'
15344   else
15345     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15346     as_echo_n_body='eval
15347       arg=$1;
15348       case $arg in #(
15349       *"$as_nl"*)
15350         expr "X$arg" : "X\\(.*\\)$as_nl";
15351         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15352       esac;
15353       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15354     '
15355     export as_echo_n_body
15356     as_echo_n='sh -c $as_echo_n_body as_echo'
15357   fi
15358   export as_echo_body
15359   as_echo='sh -c $as_echo_body as_echo'
15360 fi
15361
15362 # The user is always right.
15363 if test "${PATH_SEPARATOR+set}" != set; then
15364   PATH_SEPARATOR=:
15365   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15366     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15367       PATH_SEPARATOR=';'
15368   }
15369 fi
15370
15371
15372 # IFS
15373 # We need space, tab and new line, in precisely that order.  Quoting is
15374 # there to prevent editors from complaining about space-tab.
15375 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15376 # splitting by setting IFS to empty value.)
15377 IFS=" ""        $as_nl"
15378
15379 # Find who we are.  Look in the path if we contain no directory separator.
15380 as_myself=
15381 case $0 in #((
15382   *[\\/]* ) as_myself=$0 ;;
15383   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15384 for as_dir in $PATH
15385 do
15386   IFS=$as_save_IFS
15387   test -z "$as_dir" && as_dir=.
15388     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15389   done
15390 IFS=$as_save_IFS
15391
15392      ;;
15393 esac
15394 # We did not find ourselves, most probably we were run as `sh COMMAND'
15395 # in which case we are not to be found in the path.
15396 if test "x$as_myself" = x; then
15397   as_myself=$0
15398 fi
15399 if test ! -f "$as_myself"; then
15400   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15401   exit 1
15402 fi
15403
15404 # Unset variables that we do not need and which cause bugs (e.g. in
15405 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15406 # suppresses any "Segmentation fault" message there.  '((' could
15407 # trigger a bug in pdksh 5.2.14.
15408 for as_var in BASH_ENV ENV MAIL MAILPATH
15409 do eval test x\${$as_var+set} = xset \
15410   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15411 done
15412 PS1='$ '
15413 PS2='> '
15414 PS4='+ '
15415
15416 # NLS nuisances.
15417 LC_ALL=C
15418 export LC_ALL
15419 LANGUAGE=C
15420 export LANGUAGE
15421
15422 # CDPATH.
15423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15424
15425
15426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15427 # ----------------------------------------
15428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15430 # script with STATUS, using 1 if that was 0.
15431 as_fn_error ()
15432 {
15433   as_status=$1; test $as_status -eq 0 && as_status=1
15434   if test "$4"; then
15435     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15436     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15437   fi
15438   $as_echo "$as_me: error: $2" >&2
15439   as_fn_exit $as_status
15440 } # as_fn_error
15441
15442
15443 # as_fn_set_status STATUS
15444 # -----------------------
15445 # Set $? to STATUS, without forking.
15446 as_fn_set_status ()
15447 {
15448   return $1
15449 } # as_fn_set_status
15450
15451 # as_fn_exit STATUS
15452 # -----------------
15453 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15454 as_fn_exit ()
15455 {
15456   set +e
15457   as_fn_set_status $1
15458   exit $1
15459 } # as_fn_exit
15460
15461 # as_fn_unset VAR
15462 # ---------------
15463 # Portably unset VAR.
15464 as_fn_unset ()
15465 {
15466   { eval $1=; unset $1;}
15467 }
15468 as_unset=as_fn_unset
15469 # as_fn_append VAR VALUE
15470 # ----------------------
15471 # Append the text in VALUE to the end of the definition contained in VAR. Take
15472 # advantage of any shell optimizations that allow amortized linear growth over
15473 # repeated appends, instead of the typical quadratic growth present in naive
15474 # implementations.
15475 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15476   eval 'as_fn_append ()
15477   {
15478     eval $1+=\$2
15479   }'
15480 else
15481   as_fn_append ()
15482   {
15483     eval $1=\$$1\$2
15484   }
15485 fi # as_fn_append
15486
15487 # as_fn_arith ARG...
15488 # ------------------
15489 # Perform arithmetic evaluation on the ARGs, and store the result in the
15490 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15491 # must be portable across $(()) and expr.
15492 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15493   eval 'as_fn_arith ()
15494   {
15495     as_val=$(( $* ))
15496   }'
15497 else
15498   as_fn_arith ()
15499   {
15500     as_val=`expr "$@" || test $? -eq 1`
15501   }
15502 fi # as_fn_arith
15503
15504
15505 if expr a : '\(a\)' >/dev/null 2>&1 &&
15506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15507   as_expr=expr
15508 else
15509   as_expr=false
15510 fi
15511
15512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15513   as_basename=basename
15514 else
15515   as_basename=false
15516 fi
15517
15518 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15519   as_dirname=dirname
15520 else
15521   as_dirname=false
15522 fi
15523
15524 as_me=`$as_basename -- "$0" ||
15525 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15526          X"$0" : 'X\(//\)$' \| \
15527          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15528 $as_echo X/"$0" |
15529     sed '/^.*\/\([^/][^/]*\)\/*$/{
15530             s//\1/
15531             q
15532           }
15533           /^X\/\(\/\/\)$/{
15534             s//\1/
15535             q
15536           }
15537           /^X\/\(\/\).*/{
15538             s//\1/
15539             q
15540           }
15541           s/.*/./; q'`
15542
15543 # Avoid depending upon Character Ranges.
15544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15547 as_cr_digits='0123456789'
15548 as_cr_alnum=$as_cr_Letters$as_cr_digits
15549
15550 ECHO_C= ECHO_N= ECHO_T=
15551 case `echo -n x` in #(((((
15552 -n*)
15553   case `echo 'xy\c'` in
15554   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15555   xy)  ECHO_C='\c';;
15556   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15557        ECHO_T=' ';;
15558   esac;;
15559 *)
15560   ECHO_N='-n';;
15561 esac
15562
15563 rm -f conf$$ conf$$.exe conf$$.file
15564 if test -d conf$$.dir; then
15565   rm -f conf$$.dir/conf$$.file
15566 else
15567   rm -f conf$$.dir
15568   mkdir conf$$.dir 2>/dev/null
15569 fi
15570 if (echo >conf$$.file) 2>/dev/null; then
15571   if ln -s conf$$.file conf$$ 2>/dev/null; then
15572     as_ln_s='ln -s'
15573     # ... but there are two gotchas:
15574     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15575     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15576     # In both cases, we have to default to `cp -pR'.
15577     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15578       as_ln_s='cp -pR'
15579   elif ln conf$$.file conf$$ 2>/dev/null; then
15580     as_ln_s=ln
15581   else
15582     as_ln_s='cp -pR'
15583   fi
15584 else
15585   as_ln_s='cp -pR'
15586 fi
15587 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15588 rmdir conf$$.dir 2>/dev/null
15589
15590
15591 # as_fn_mkdir_p
15592 # -------------
15593 # Create "$as_dir" as a directory, including parents if necessary.
15594 as_fn_mkdir_p ()
15595 {
15596
15597   case $as_dir in #(
15598   -*) as_dir=./$as_dir;;
15599   esac
15600   test -d "$as_dir" || eval $as_mkdir_p || {
15601     as_dirs=
15602     while :; do
15603       case $as_dir in #(
15604       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15605       *) as_qdir=$as_dir;;
15606       esac
15607       as_dirs="'$as_qdir' $as_dirs"
15608       as_dir=`$as_dirname -- "$as_dir" ||
15609 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15610          X"$as_dir" : 'X\(//\)[^/]' \| \
15611          X"$as_dir" : 'X\(//\)$' \| \
15612          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15613 $as_echo X"$as_dir" |
15614     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15615             s//\1/
15616             q
15617           }
15618           /^X\(\/\/\)[^/].*/{
15619             s//\1/
15620             q
15621           }
15622           /^X\(\/\/\)$/{
15623             s//\1/
15624             q
15625           }
15626           /^X\(\/\).*/{
15627             s//\1/
15628             q
15629           }
15630           s/.*/./; q'`
15631       test -d "$as_dir" && break
15632     done
15633     test -z "$as_dirs" || eval "mkdir $as_dirs"
15634   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15635
15636
15637 } # as_fn_mkdir_p
15638 if mkdir -p . 2>/dev/null; then
15639   as_mkdir_p='mkdir -p "$as_dir"'
15640 else
15641   test -d ./-p && rmdir ./-p
15642   as_mkdir_p=false
15643 fi
15644
15645
15646 # as_fn_executable_p FILE
15647 # -----------------------
15648 # Test if FILE is an executable regular file.
15649 as_fn_executable_p ()
15650 {
15651   test -f "$1" && test -x "$1"
15652 } # as_fn_executable_p
15653 as_test_x='test -x'
15654 as_executable_p=as_fn_executable_p
15655
15656 # Sed expression to map a string onto a valid CPP name.
15657 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15658
15659 # Sed expression to map a string onto a valid variable name.
15660 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15661
15662
15663 exec 6>&1
15664 ## ----------------------------------- ##
15665 ## Main body of $CONFIG_STATUS script. ##
15666 ## ----------------------------------- ##
15667 _ASEOF
15668 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15669
15670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15671 # Save the log message, to keep $0 and so on meaningful, and to
15672 # report actual input values of CONFIG_FILES etc. instead of their
15673 # values after options handling.
15674 ac_log="
15675 This file was extended by libffi $as_me 3.0.14-rc0, which was
15676 generated by GNU Autoconf 2.69.  Invocation command line was
15677
15678   CONFIG_FILES    = $CONFIG_FILES
15679   CONFIG_HEADERS  = $CONFIG_HEADERS
15680   CONFIG_LINKS    = $CONFIG_LINKS
15681   CONFIG_COMMANDS = $CONFIG_COMMANDS
15682   $ $0 $@
15683
15684 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15685 "
15686
15687 _ACEOF
15688
15689 case $ac_config_files in *"
15690 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15691 esac
15692
15693 case $ac_config_headers in *"
15694 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15695 esac
15696
15697
15698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15699 # Files that config.status was made for.
15700 config_files="$ac_config_files"
15701 config_headers="$ac_config_headers"
15702 config_links="$ac_config_links"
15703 config_commands="$ac_config_commands"
15704
15705 _ACEOF
15706
15707 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15708 ac_cs_usage="\
15709 \`$as_me' instantiates files and other configuration actions
15710 from templates according to the current configuration.  Unless the files
15711 and actions are specified as TAGs, all are instantiated by default.
15712
15713 Usage: $0 [OPTION]... [TAG]...
15714
15715   -h, --help       print this help, then exit
15716   -V, --version    print version number and configuration settings, then exit
15717       --config     print configuration, then exit
15718   -q, --quiet, --silent
15719                    do not print progress messages
15720   -d, --debug      don't remove temporary files
15721       --recheck    update $as_me by reconfiguring in the same conditions
15722       --file=FILE[:TEMPLATE]
15723                    instantiate the configuration file FILE
15724       --header=FILE[:TEMPLATE]
15725                    instantiate the configuration header FILE
15726
15727 Configuration files:
15728 $config_files
15729
15730 Configuration headers:
15731 $config_headers
15732
15733 Configuration links:
15734 $config_links
15735
15736 Configuration commands:
15737 $config_commands
15738
15739 Report bugs to <http://github.com/atgreen/libffi/issues>."
15740
15741 _ACEOF
15742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15743 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15744 ac_cs_version="\\
15745 libffi config.status 3.0.14-rc0
15746 configured by $0, generated by GNU Autoconf 2.69,
15747   with options \\"\$ac_cs_config\\"
15748
15749 Copyright (C) 2012 Free Software Foundation, Inc.
15750 This config.status script is free software; the Free Software Foundation
15751 gives unlimited permission to copy, distribute and modify it."
15752
15753 ac_pwd='$ac_pwd'
15754 srcdir='$srcdir'
15755 INSTALL='$INSTALL'
15756 MKDIR_P='$MKDIR_P'
15757 AWK='$AWK'
15758 test -n "\$AWK" || AWK=awk
15759 _ACEOF
15760
15761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15762 # The default lists apply if the user does not specify any file.
15763 ac_need_defaults=:
15764 while test $# != 0
15765 do
15766   case $1 in
15767   --*=?*)
15768     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15769     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15770     ac_shift=:
15771     ;;
15772   --*=)
15773     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15774     ac_optarg=
15775     ac_shift=:
15776     ;;
15777   *)
15778     ac_option=$1
15779     ac_optarg=$2
15780     ac_shift=shift
15781     ;;
15782   esac
15783
15784   case $ac_option in
15785   # Handling of the options.
15786   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15787     ac_cs_recheck=: ;;
15788   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15789     $as_echo "$ac_cs_version"; exit ;;
15790   --config | --confi | --conf | --con | --co | --c )
15791     $as_echo "$ac_cs_config"; exit ;;
15792   --debug | --debu | --deb | --de | --d | -d )
15793     debug=: ;;
15794   --file | --fil | --fi | --f )
15795     $ac_shift
15796     case $ac_optarg in
15797     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15798     '') as_fn_error $? "missing file argument" ;;
15799     esac
15800     as_fn_append CONFIG_FILES " '$ac_optarg'"
15801     ac_need_defaults=false;;
15802   --header | --heade | --head | --hea )
15803     $ac_shift
15804     case $ac_optarg in
15805     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15806     esac
15807     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15808     ac_need_defaults=false;;
15809   --he | --h)
15810     # Conflict between --help and --header
15811     as_fn_error $? "ambiguous option: \`$1'
15812 Try \`$0 --help' for more information.";;
15813   --help | --hel | -h )
15814     $as_echo "$ac_cs_usage"; exit ;;
15815   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15816   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15817     ac_cs_silent=: ;;
15818
15819   # This is an error.
15820   -*) as_fn_error $? "unrecognized option: \`$1'
15821 Try \`$0 --help' for more information." ;;
15822
15823   *) as_fn_append ac_config_targets " $1"
15824      ac_need_defaults=false ;;
15825
15826   esac
15827   shift
15828 done
15829
15830 ac_configure_extra_args=
15831
15832 if $ac_cs_silent; then
15833   exec 6>/dev/null
15834   ac_configure_extra_args="$ac_configure_extra_args --silent"
15835 fi
15836
15837 _ACEOF
15838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15839 if \$ac_cs_recheck; then
15840   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15841   shift
15842   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15843   CONFIG_SHELL='$SHELL'
15844   export CONFIG_SHELL
15845   exec "\$@"
15846 fi
15847
15848 _ACEOF
15849 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15850 exec 5>>config.log
15851 {
15852   echo
15853   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15854 ## Running $as_me. ##
15855 _ASBOX
15856   $as_echo "$ac_log"
15857 } >&5
15858
15859 _ACEOF
15860 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15861 #
15862 # INIT-COMMANDS
15863 #
15864 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15865 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15866 ax_enable_builddir_version="$VERSION"                  # $VERSION
15867 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15868 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15869 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15870 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15871
15872 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15873
15874
15875 # The HP-UX ksh and POSIX shell print the target directory to stdout
15876 # if CDPATH is set.
15877 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15878
15879 sed_quote_subst='$sed_quote_subst'
15880 double_quote_subst='$double_quote_subst'
15881 delay_variable_subst='$delay_variable_subst'
15882 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15883 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15884 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15885 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15886 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15887 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15888 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15889 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15890 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15891 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15892 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15893 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15894 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15895 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15896 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15897 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15898 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15899 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15900 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15901 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15902 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15903 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15904 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15905 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15906 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15907 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15908 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15909 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15910 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15911 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15912 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15913 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15914 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15915 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15916 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15917 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15918 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15919 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15920 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15921 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15922 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15923 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15924 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15925 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15926 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15927 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15928 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15929 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15930 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15931 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15932 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15933 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15934 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15935 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15936 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15937 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15938 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"`'
15939 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15940 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15941 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15942 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15943 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15944 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15945 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15946 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15947 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15948 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15949 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15950 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15951 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15952 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15953 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15954 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15955 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15956 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15957 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15958 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15959 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15960 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15961 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15962 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15963 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15964 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15965 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15966 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15967 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15968 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15969 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15970 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15971 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15972 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15973 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15974 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15975 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15976 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15977 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15978 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15979 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15980 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15981 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15982 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15983 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15984 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15985 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15986 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15987 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15988 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15989 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15990 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15991 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15992 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15993 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15994 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15995 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15996 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15997 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15998 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15999 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16000 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16001 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16002 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16003 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16004 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16005 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16006 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16007 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16008 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16009 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16010 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16011 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16012
16013 LTCC='$LTCC'
16014 LTCFLAGS='$LTCFLAGS'
16015 compiler='$compiler_DEFAULT'
16016
16017 # A function that is used when there is no print builtin or printf.
16018 func_fallback_echo ()
16019 {
16020   eval 'cat <<_LTECHO_EOF
16021 \$1
16022 _LTECHO_EOF'
16023 }
16024
16025 # Quote evaled strings.
16026 for var in SHELL \
16027 ECHO \
16028 PATH_SEPARATOR \
16029 SED \
16030 GREP \
16031 EGREP \
16032 FGREP \
16033 LD \
16034 NM \
16035 LN_S \
16036 lt_SP2NL \
16037 lt_NL2SP \
16038 reload_flag \
16039 OBJDUMP \
16040 deplibs_check_method \
16041 file_magic_cmd \
16042 file_magic_glob \
16043 want_nocaseglob \
16044 DLLTOOL \
16045 sharedlib_from_linklib_cmd \
16046 AR \
16047 AR_FLAGS \
16048 archiver_list_spec \
16049 STRIP \
16050 RANLIB \
16051 CC \
16052 CFLAGS \
16053 compiler \
16054 lt_cv_sys_global_symbol_pipe \
16055 lt_cv_sys_global_symbol_to_cdecl \
16056 lt_cv_sys_global_symbol_to_c_name_address \
16057 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16058 nm_file_list_spec \
16059 lt_prog_compiler_no_builtin_flag \
16060 lt_prog_compiler_pic \
16061 lt_prog_compiler_wl \
16062 lt_prog_compiler_static \
16063 lt_cv_prog_compiler_c_o \
16064 need_locks \
16065 MANIFEST_TOOL \
16066 DSYMUTIL \
16067 NMEDIT \
16068 LIPO \
16069 OTOOL \
16070 OTOOL64 \
16071 shrext_cmds \
16072 export_dynamic_flag_spec \
16073 whole_archive_flag_spec \
16074 compiler_needs_object \
16075 with_gnu_ld \
16076 allow_undefined_flag \
16077 no_undefined_flag \
16078 hardcode_libdir_flag_spec \
16079 hardcode_libdir_separator \
16080 exclude_expsyms \
16081 include_expsyms \
16082 file_list_spec \
16083 variables_saved_for_relink \
16084 libname_spec \
16085 library_names_spec \
16086 soname_spec \
16087 install_override_mode \
16088 finish_eval \
16089 old_striplib \
16090 striplib; do
16091     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16092     *[\\\\\\\`\\"\\\$]*)
16093       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16094       ;;
16095     *)
16096       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16097       ;;
16098     esac
16099 done
16100
16101 # Double-quote double-evaled strings.
16102 for var in reload_cmds \
16103 old_postinstall_cmds \
16104 old_postuninstall_cmds \
16105 old_archive_cmds \
16106 extract_expsyms_cmds \
16107 old_archive_from_new_cmds \
16108 old_archive_from_expsyms_cmds \
16109 archive_cmds \
16110 archive_expsym_cmds \
16111 module_cmds \
16112 module_expsym_cmds \
16113 export_symbols_cmds \
16114 prelink_cmds \
16115 postlink_cmds \
16116 postinstall_cmds \
16117 postuninstall_cmds \
16118 finish_cmds \
16119 sys_lib_search_path_spec \
16120 sys_lib_dlsearch_path_spec; do
16121     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16122     *[\\\\\\\`\\"\\\$]*)
16123       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16124       ;;
16125     *)
16126       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16127       ;;
16128     esac
16129 done
16130
16131 ac_aux_dir='$ac_aux_dir'
16132 xsi_shell='$xsi_shell'
16133 lt_shell_append='$lt_shell_append'
16134
16135 # See if we are running on zsh, and set the options which allow our
16136 # commands through without removal of \ escapes INIT.
16137 if test -n "\${ZSH_VERSION+set}" ; then
16138    setopt NO_GLOB_SUBST
16139 fi
16140
16141
16142     PACKAGE='$PACKAGE'
16143     VERSION='$VERSION'
16144     TIMESTAMP='$TIMESTAMP'
16145     RM='$RM'
16146     ofile='$ofile'
16147
16148
16149
16150 TARGETDIR="$TARGETDIR"
16151
16152 _ACEOF
16153
16154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16155
16156 # Handling of arguments.
16157 for ac_config_target in $ac_config_targets
16158 do
16159   case $ac_config_target in
16160     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
16161     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
16162     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16163     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16164     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
16165     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
16166     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
16167     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
16168     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
16169     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16170     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
16171     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16172     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16173
16174   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16175   esac
16176 done
16177
16178
16179 # If the user did not use the arguments to specify the items to instantiate,
16180 # then the envvar interface is used.  Set only those that are not.
16181 # We use the long form for the default assignment because of an extremely
16182 # bizarre bug on SunOS 4.1.3.
16183 if $ac_need_defaults; then
16184   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16185   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16186   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16187   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16188 fi
16189
16190 # Have a temporary directory for convenience.  Make it in the build tree
16191 # simply because there is no reason against having it here, and in addition,
16192 # creating and moving files from /tmp can sometimes cause problems.
16193 # Hook for its removal unless debugging.
16194 # Note that there is a small window in which the directory will not be cleaned:
16195 # after its creation but before its name has been assigned to `$tmp'.
16196 $debug ||
16197 {
16198   tmp= ac_tmp=
16199   trap 'exit_status=$?
16200   : "${ac_tmp:=$tmp}"
16201   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16202 ' 0
16203   trap 'as_fn_exit 1' 1 2 13 15
16204 }
16205 # Create a (secure) tmp directory for tmp files.
16206
16207 {
16208   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16209   test -d "$tmp"
16210 }  ||
16211 {
16212   tmp=./conf$$-$RANDOM
16213   (umask 077 && mkdir "$tmp")
16214 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16215 ac_tmp=$tmp
16216
16217 # Set up the scripts for CONFIG_FILES section.
16218 # No need to generate them if there are no CONFIG_FILES.
16219 # This happens for instance with `./config.status config.h'.
16220 if test -n "$CONFIG_FILES"; then
16221
16222
16223 ac_cr=`echo X | tr X '\015'`
16224 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16225 # But we know of no other shell where ac_cr would be empty at this
16226 # point, so we can use a bashism as a fallback.
16227 if test "x$ac_cr" = x; then
16228   eval ac_cr=\$\'\\r\'
16229 fi
16230 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16231 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16232   ac_cs_awk_cr='\\r'
16233 else
16234   ac_cs_awk_cr=$ac_cr
16235 fi
16236
16237 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16238 _ACEOF
16239
16240
16241 {
16242   echo "cat >conf$$subs.awk <<_ACEOF" &&
16243   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16244   echo "_ACEOF"
16245 } >conf$$subs.sh ||
16246   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16247 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16248 ac_delim='%!_!# '
16249 for ac_last_try in false false false false false :; do
16250   . ./conf$$subs.sh ||
16251     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16252
16253   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16254   if test $ac_delim_n = $ac_delim_num; then
16255     break
16256   elif $ac_last_try; then
16257     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16258   else
16259     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16260   fi
16261 done
16262 rm -f conf$$subs.sh
16263
16264 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16265 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16266 _ACEOF
16267 sed -n '
16268 h
16269 s/^/S["/; s/!.*/"]=/
16270 p
16271 g
16272 s/^[^!]*!//
16273 :repl
16274 t repl
16275 s/'"$ac_delim"'$//
16276 t delim
16277 :nl
16278 h
16279 s/\(.\{148\}\)..*/\1/
16280 t more1
16281 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16282 p
16283 n
16284 b repl
16285 :more1
16286 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16287 p
16288 g
16289 s/.\{148\}//
16290 t nl
16291 :delim
16292 h
16293 s/\(.\{148\}\)..*/\1/
16294 t more2
16295 s/["\\]/\\&/g; s/^/"/; s/$/"/
16296 p
16297 b
16298 :more2
16299 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16300 p
16301 g
16302 s/.\{148\}//
16303 t delim
16304 ' <conf$$subs.awk | sed '
16305 /^[^""]/{
16306   N
16307   s/\n//
16308 }
16309 ' >>$CONFIG_STATUS || ac_write_fail=1
16310 rm -f conf$$subs.awk
16311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16312 _ACAWK
16313 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16314   for (key in S) S_is_set[key] = 1
16315   FS = "\a"
16316
16317 }
16318 {
16319   line = $ 0
16320   nfields = split(line, field, "@")
16321   substed = 0
16322   len = length(field[1])
16323   for (i = 2; i < nfields; i++) {
16324     key = field[i]
16325     keylen = length(key)
16326     if (S_is_set[key]) {
16327       value = S[key]
16328       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16329       len += length(value) + length(field[++i])
16330       substed = 1
16331     } else
16332       len += 1 + keylen
16333   }
16334
16335   print line
16336 }
16337
16338 _ACAWK
16339 _ACEOF
16340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16342   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16343 else
16344   cat
16345 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16346   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16347 _ACEOF
16348
16349 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16350 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16351 # trailing colons and then remove the whole line if VPATH becomes empty
16352 # (actually we leave an empty line to preserve line numbers).
16353 if test "x$srcdir" = x.; then
16354   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16355 h
16356 s///
16357 s/^/:/
16358 s/[      ]*$/:/
16359 s/:\$(srcdir):/:/g
16360 s/:\${srcdir}:/:/g
16361 s/:@srcdir@:/:/g
16362 s/^:*//
16363 s/:*$//
16364 x
16365 s/\(=[   ]*\).*/\1/
16366 G
16367 s/\n//
16368 s/^[^=]*=[       ]*$//
16369 }'
16370 fi
16371
16372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16373 fi # test -n "$CONFIG_FILES"
16374
16375 # Set up the scripts for CONFIG_HEADERS section.
16376 # No need to generate them if there are no CONFIG_HEADERS.
16377 # This happens for instance with `./config.status Makefile'.
16378 if test -n "$CONFIG_HEADERS"; then
16379 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16380 BEGIN {
16381 _ACEOF
16382
16383 # Transform confdefs.h into an awk script `defines.awk', embedded as
16384 # here-document in config.status, that substitutes the proper values into
16385 # config.h.in to produce config.h.
16386
16387 # Create a delimiter string that does not exist in confdefs.h, to ease
16388 # handling of long lines.
16389 ac_delim='%!_!# '
16390 for ac_last_try in false false :; do
16391   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16392   if test -z "$ac_tt"; then
16393     break
16394   elif $ac_last_try; then
16395     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16396   else
16397     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16398   fi
16399 done
16400
16401 # For the awk script, D is an array of macro values keyed by name,
16402 # likewise P contains macro parameters if any.  Preserve backslash
16403 # newline sequences.
16404
16405 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16406 sed -n '
16407 s/.\{148\}/&'"$ac_delim"'/g
16408 t rset
16409 :rset
16410 s/^[     ]*#[    ]*define[       ][      ]*/ /
16411 t def
16412 d
16413 :def
16414 s/\\$//
16415 t bsnl
16416 s/["\\]/\\&/g
16417 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16418 D["\1"]=" \3"/p
16419 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16420 d
16421 :bsnl
16422 s/["\\]/\\&/g
16423 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16424 D["\1"]=" \3\\\\\\n"\\/p
16425 t cont
16426 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16427 t cont
16428 d
16429 :cont
16430 n
16431 s/.\{148\}/&'"$ac_delim"'/g
16432 t clear
16433 :clear
16434 s/\\$//
16435 t bsnlc
16436 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16437 d
16438 :bsnlc
16439 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16440 b cont
16441 ' <confdefs.h | sed '
16442 s/'"$ac_delim"'/"\\\
16443 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16444
16445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16446   for (key in D) D_is_set[key] = 1
16447   FS = "\a"
16448 }
16449 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16450   line = \$ 0
16451   split(line, arg, " ")
16452   if (arg[1] == "#") {
16453     defundef = arg[2]
16454     mac1 = arg[3]
16455   } else {
16456     defundef = substr(arg[1], 2)
16457     mac1 = arg[2]
16458   }
16459   split(mac1, mac2, "(") #)
16460   macro = mac2[1]
16461   prefix = substr(line, 1, index(line, defundef) - 1)
16462   if (D_is_set[macro]) {
16463     # Preserve the white space surrounding the "#".
16464     print prefix "define", macro P[macro] D[macro]
16465     next
16466   } else {
16467     # Replace #undef with comments.  This is necessary, for example,
16468     # in the case of _POSIX_SOURCE, which is predefined and required
16469     # on some systems where configure will not decide to define it.
16470     if (defundef == "undef") {
16471       print "/*", prefix defundef, macro, "*/"
16472       next
16473     }
16474   }
16475 }
16476 { print }
16477 _ACAWK
16478 _ACEOF
16479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16480   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16481 fi # test -n "$CONFIG_HEADERS"
16482
16483
16484 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16485 shift
16486 for ac_tag
16487 do
16488   case $ac_tag in
16489   :[FHLC]) ac_mode=$ac_tag; continue;;
16490   esac
16491   case $ac_mode$ac_tag in
16492   :[FHL]*:*);;
16493   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16494   :[FH]-) ac_tag=-:-;;
16495   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16496   esac
16497   ac_save_IFS=$IFS
16498   IFS=:
16499   set x $ac_tag
16500   IFS=$ac_save_IFS
16501   shift
16502   ac_file=$1
16503   shift
16504
16505   case $ac_mode in
16506   :L) ac_source=$1;;
16507   :[FH])
16508     ac_file_inputs=
16509     for ac_f
16510     do
16511       case $ac_f in
16512       -) ac_f="$ac_tmp/stdin";;
16513       *) # Look for the file first in the build tree, then in the source tree
16514          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16515          # because $ac_f cannot contain `:'.
16516          test -f "$ac_f" ||
16517            case $ac_f in
16518            [\\/$]*) false;;
16519            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16520            esac ||
16521            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16522       esac
16523       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16524       as_fn_append ac_file_inputs " '$ac_f'"
16525     done
16526
16527     # Let's still pretend it is `configure' which instantiates (i.e., don't
16528     # use $as_me), people would be surprised to read:
16529     #    /* config.h.  Generated by config.status.  */
16530     configure_input='Generated from '`
16531           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16532         `' by configure.'
16533     if test x"$ac_file" != x-; then
16534       configure_input="$ac_file.  $configure_input"
16535       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16536 $as_echo "$as_me: creating $ac_file" >&6;}
16537     fi
16538     # Neutralize special characters interpreted by sed in replacement strings.
16539     case $configure_input in #(
16540     *\&* | *\|* | *\\* )
16541        ac_sed_conf_input=`$as_echo "$configure_input" |
16542        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16543     *) ac_sed_conf_input=$configure_input;;
16544     esac
16545
16546     case $ac_tag in
16547     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16548       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16549     esac
16550     ;;
16551   esac
16552
16553   ac_dir=`$as_dirname -- "$ac_file" ||
16554 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16555          X"$ac_file" : 'X\(//\)[^/]' \| \
16556          X"$ac_file" : 'X\(//\)$' \| \
16557          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16558 $as_echo X"$ac_file" |
16559     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16560             s//\1/
16561             q
16562           }
16563           /^X\(\/\/\)[^/].*/{
16564             s//\1/
16565             q
16566           }
16567           /^X\(\/\/\)$/{
16568             s//\1/
16569             q
16570           }
16571           /^X\(\/\).*/{
16572             s//\1/
16573             q
16574           }
16575           s/.*/./; q'`
16576   as_dir="$ac_dir"; as_fn_mkdir_p
16577   ac_builddir=.
16578
16579 case "$ac_dir" in
16580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16581 *)
16582   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16583   # A ".." for each directory in $ac_dir_suffix.
16584   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16585   case $ac_top_builddir_sub in
16586   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16587   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16588   esac ;;
16589 esac
16590 ac_abs_top_builddir=$ac_pwd
16591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16592 # for backward compatibility:
16593 ac_top_builddir=$ac_top_build_prefix
16594
16595 case $srcdir in
16596   .)  # We are building in place.
16597     ac_srcdir=.
16598     ac_top_srcdir=$ac_top_builddir_sub
16599     ac_abs_top_srcdir=$ac_pwd ;;
16600   [\\/]* | ?:[\\/]* )  # Absolute name.
16601     ac_srcdir=$srcdir$ac_dir_suffix;
16602     ac_top_srcdir=$srcdir
16603     ac_abs_top_srcdir=$srcdir ;;
16604   *) # Relative name.
16605     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16606     ac_top_srcdir=$ac_top_build_prefix$srcdir
16607     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16608 esac
16609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16610
16611
16612   case $ac_mode in
16613   :F)
16614   #
16615   # CONFIG_FILE
16616   #
16617
16618   case $INSTALL in
16619   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16620   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16621   esac
16622   ac_MKDIR_P=$MKDIR_P
16623   case $MKDIR_P in
16624   [\\/$]* | ?:[\\/]* ) ;;
16625   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16626   esac
16627 _ACEOF
16628
16629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16630 # If the template does not know about datarootdir, expand it.
16631 # FIXME: This hack should be removed a few years after 2.60.
16632 ac_datarootdir_hack=; ac_datarootdir_seen=
16633 ac_sed_dataroot='
16634 /datarootdir/ {
16635   p
16636   q
16637 }
16638 /@datadir@/p
16639 /@docdir@/p
16640 /@infodir@/p
16641 /@localedir@/p
16642 /@mandir@/p'
16643 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16644 *datarootdir*) ac_datarootdir_seen=yes;;
16645 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16646   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16647 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16648 _ACEOF
16649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16650   ac_datarootdir_hack='
16651   s&@datadir@&$datadir&g
16652   s&@docdir@&$docdir&g
16653   s&@infodir@&$infodir&g
16654   s&@localedir@&$localedir&g
16655   s&@mandir@&$mandir&g
16656   s&\\\${datarootdir}&$datarootdir&g' ;;
16657 esac
16658 _ACEOF
16659
16660 # Neutralize VPATH when `$srcdir' = `.'.
16661 # Shell code in configure.ac might set extrasub.
16662 # FIXME: do we really want to maintain this feature?
16663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16664 ac_sed_extra="$ac_vpsub
16665 $extrasub
16666 _ACEOF
16667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16668 :t
16669 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16670 s|@configure_input@|$ac_sed_conf_input|;t t
16671 s&@top_builddir@&$ac_top_builddir_sub&;t t
16672 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16673 s&@srcdir@&$ac_srcdir&;t t
16674 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16675 s&@top_srcdir@&$ac_top_srcdir&;t t
16676 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16677 s&@builddir@&$ac_builddir&;t t
16678 s&@abs_builddir@&$ac_abs_builddir&;t t
16679 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16680 s&@INSTALL@&$ac_INSTALL&;t t
16681 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16682 $ac_datarootdir_hack
16683 "
16684 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16685   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16686
16687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16688   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16689   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16690       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16691   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16692 which seems to be undefined.  Please make sure it is defined" >&5
16693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16694 which seems to be undefined.  Please make sure it is defined" >&2;}
16695
16696   rm -f "$ac_tmp/stdin"
16697   case $ac_file in
16698   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16699   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16700   esac \
16701   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16702  ;;
16703   :H)
16704   #
16705   # CONFIG_HEADER
16706   #
16707   if test x"$ac_file" != x-; then
16708     {
16709       $as_echo "/* $configure_input  */" \
16710       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16711     } >"$ac_tmp/config.h" \
16712       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16713     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16714       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16715 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16716     else
16717       rm -f "$ac_file"
16718       mv "$ac_tmp/config.h" "$ac_file" \
16719         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16720     fi
16721   else
16722     $as_echo "/* $configure_input  */" \
16723       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16724       || as_fn_error $? "could not create -" "$LINENO" 5
16725   fi
16726 # Compute "$ac_file"'s index in $config_headers.
16727 _am_arg="$ac_file"
16728 _am_stamp_count=1
16729 for _am_header in $config_headers :; do
16730   case $_am_header in
16731     $_am_arg | $_am_arg:* )
16732       break ;;
16733     * )
16734       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16735   esac
16736 done
16737 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16738 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16739          X"$_am_arg" : 'X\(//\)[^/]' \| \
16740          X"$_am_arg" : 'X\(//\)$' \| \
16741          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16742 $as_echo X"$_am_arg" |
16743     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16744             s//\1/
16745             q
16746           }
16747           /^X\(\/\/\)[^/].*/{
16748             s//\1/
16749             q
16750           }
16751           /^X\(\/\/\)$/{
16752             s//\1/
16753             q
16754           }
16755           /^X\(\/\).*/{
16756             s//\1/
16757             q
16758           }
16759           s/.*/./; q'`/stamp-h$_am_stamp_count
16760  ;;
16761   :L)
16762   #
16763   # CONFIG_LINK
16764   #
16765
16766   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16767     :
16768   else
16769     # Prefer the file from the source tree if names are identical.
16770     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16771       ac_source=$srcdir/$ac_source
16772     fi
16773
16774     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16775 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16776
16777     if test ! -r "$ac_source"; then
16778       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16779     fi
16780     rm -f "$ac_file"
16781
16782     # Try a relative symlink, then a hard link, then a copy.
16783     case $ac_source in
16784     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16785         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16786     esac
16787     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16788       ln "$ac_source" "$ac_file" 2>/dev/null ||
16789       cp -p "$ac_source" "$ac_file" ||
16790       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16791   fi
16792  ;;
16793   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16794 $as_echo "$as_me: executing $ac_file commands" >&6;}
16795  ;;
16796   esac
16797
16798
16799   case $ac_file$ac_mode in
16800     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16801   if test ".$ax_enable_builddir" = ".." ; then
16802     if test -f "$top_srcdir/Makefile" ; then
16803       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16804 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16805     else
16806       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16807 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16808     fi
16809   else
16810     if test -f "$ac_top_srcdir/Makefile" ; then
16811       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16812       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16813     fi
16814     if test -f "$ac_top_srcdir/Makefile" ; then
16815         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16816         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16817       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16818       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16819       then rm $ac_top_srcdir/Makefile ; fi
16820       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16821     fi
16822     if test ! -f "$ac_top_srcdir/Makefile" ; then
16823       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16824 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16825       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16826 /^\$/n
16827 x
16828 /^\$/bS
16829 x
16830 /\\\\\$/{H;d;}
16831 {H;s/.*//;x;}
16832 bM
16833 :S
16834 x
16835 /\\\\\$/{h;d;}
16836 {h;s/.*//;x;}
16837 :M
16838 s/\\(\\n\\)     /\\1 /g
16839 /^      /d
16840 /^[      ]*[\\#]/d
16841 /^VPATH *=/d
16842 s/^srcdir *=.*/srcdir = ./
16843 s/^top_srcdir *=.*/top_srcdir = ./
16844 /[:=]/!d
16845 /^\\./d
16846 / = /b
16847 / .= /b
16848 /:/!b
16849 s/:.*/:/
16850 s/ /  /g
16851 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16852 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16853 s/  / /g
16854 /^all all-all[ :]/i\\
16855 all-configured : all-all
16856 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16857 /-all-all/d
16858 a\\
16859         @ HOST="\$(HOST)\" \\\\\\
16860         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16861         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16862         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16863         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16864         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16865         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16866         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16867         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16868         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16869 /dist-all *:/a\\
16870         @ HOST="\$(HOST)\" \\\\\\
16871         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16872         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16873         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16874         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16875         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16876         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16877         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16878         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16879         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16880 /dist-[a-zA-Z0-9]*-all *:/a\\
16881         @ HOST="\$(HOST)\" \\\\\\
16882         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16883         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16884         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16885         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16886         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16887         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16888         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16889         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16890         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16891 /distclean-all *:/a\\
16892         @ HOST="\$(HOST)\" \\\\\\
16893         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16894         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16895         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16896         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16897         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16898         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16899         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16900         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16901         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16902         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16903         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16904 _EOF
16905       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16906       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16907       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16908         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16909 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16910         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16911       fi ; xxxx="####"
16912       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16913       # sanity check
16914       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16915         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16916 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16917         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16918           >$ac_top_srcdir/Makefile~
16919         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16920       fi
16921     else
16922       xxxx="\\#\\#\\#\\#"
16923       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16924       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16925       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16926         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16927         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16928       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16929         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16930 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16931         rm "$tmp/mkfile.tmp"
16932       else
16933         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16934 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16935         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16936       fi
16937     fi
16938     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16939 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16940     xxxx="####"
16941     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16942   fi
16943  ;;
16944     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16945   # Older Autoconf quotes --file arguments for eval, but not when files
16946   # are listed without --file.  Let's play safe and only enable the eval
16947   # if we detect the quoting.
16948   case $CONFIG_FILES in
16949   *\'*) eval set x "$CONFIG_FILES" ;;
16950   *)   set x $CONFIG_FILES ;;
16951   esac
16952   shift
16953   for mf
16954   do
16955     # Strip MF so we end up with the name of the file.
16956     mf=`echo "$mf" | sed -e 's/:.*$//'`
16957     # Check whether this is an Automake generated Makefile or not.
16958     # We used to match only the files named 'Makefile.in', but
16959     # some people rename them; so instead we look at the file content.
16960     # Grep'ing the first line is not enough: some people post-process
16961     # each Makefile.in and add a new line on top of each file to say so.
16962     # Grep'ing the whole file is not good either: AIX grep has a line
16963     # limit of 2048, but all sed's we know have understand at least 4000.
16964     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16965       dirpart=`$as_dirname -- "$mf" ||
16966 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16967          X"$mf" : 'X\(//\)[^/]' \| \
16968          X"$mf" : 'X\(//\)$' \| \
16969          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16970 $as_echo X"$mf" |
16971     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16972             s//\1/
16973             q
16974           }
16975           /^X\(\/\/\)[^/].*/{
16976             s//\1/
16977             q
16978           }
16979           /^X\(\/\/\)$/{
16980             s//\1/
16981             q
16982           }
16983           /^X\(\/\).*/{
16984             s//\1/
16985             q
16986           }
16987           s/.*/./; q'`
16988     else
16989       continue
16990     fi
16991     # Extract the definition of DEPDIR, am__include, and am__quote
16992     # from the Makefile without running 'make'.
16993     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16994     test -z "$DEPDIR" && continue
16995     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16996     test -z "$am__include" && continue
16997     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16998     # Find all dependency output files, they are included files with
16999     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17000     # simplest approach to changing $(DEPDIR) to its actual value in the
17001     # expansion.
17002     for file in `sed -n "
17003       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17004          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17005       # Make sure the directory exists.
17006       test -f "$dirpart/$file" && continue
17007       fdir=`$as_dirname -- "$file" ||
17008 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17009          X"$file" : 'X\(//\)[^/]' \| \
17010          X"$file" : 'X\(//\)$' \| \
17011          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17012 $as_echo X"$file" |
17013     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17014             s//\1/
17015             q
17016           }
17017           /^X\(\/\/\)[^/].*/{
17018             s//\1/
17019             q
17020           }
17021           /^X\(\/\/\)$/{
17022             s//\1/
17023             q
17024           }
17025           /^X\(\/\).*/{
17026             s//\1/
17027             q
17028           }
17029           s/.*/./; q'`
17030       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17031       # echo "creating $dirpart/$file"
17032       echo '# dummy' > "$dirpart/$file"
17033     done
17034   done
17035 }
17036  ;;
17037     "libtool":C)
17038
17039     # See if we are running on zsh, and set the options which allow our
17040     # commands through without removal of \ escapes.
17041     if test -n "${ZSH_VERSION+set}" ; then
17042       setopt NO_GLOB_SUBST
17043     fi
17044
17045     cfgfile="${ofile}T"
17046     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17047     $RM "$cfgfile"
17048
17049     cat <<_LT_EOF >> "$cfgfile"
17050 #! $SHELL
17051
17052 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17053 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17054 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17055 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17056 #
17057 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17058 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17059 #                 Foundation, Inc.
17060 #   Written by Gordon Matzigkeit, 1996
17061 #
17062 #   This file is part of GNU Libtool.
17063 #
17064 # GNU Libtool is free software; you can redistribute it and/or
17065 # modify it under the terms of the GNU General Public License as
17066 # published by the Free Software Foundation; either version 2 of
17067 # the License, or (at your option) any later version.
17068 #
17069 # As a special exception to the GNU General Public License,
17070 # if you distribute this file as part of a program or library that
17071 # is built using GNU Libtool, you may include this file under the
17072 # same distribution terms that you use for the rest of that program.
17073 #
17074 # GNU Libtool is distributed in the hope that it will be useful,
17075 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17076 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17077 # GNU General Public License for more details.
17078 #
17079 # You should have received a copy of the GNU General Public License
17080 # along with GNU Libtool; see the file COPYING.  If not, a copy
17081 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17082 # obtained by writing to the Free Software Foundation, Inc.,
17083 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17084
17085
17086 # The names of the tagged configurations supported by this script.
17087 available_tags=""
17088
17089 # ### BEGIN LIBTOOL CONFIG
17090
17091 # Which release of libtool.m4 was used?
17092 macro_version=$macro_version
17093 macro_revision=$macro_revision
17094
17095 # Whether or not to build shared libraries.
17096 build_libtool_libs=$enable_shared
17097
17098 # Whether or not to build static libraries.
17099 build_old_libs=$enable_static
17100
17101 # What type of objects to build.
17102 pic_mode=$pic_mode
17103
17104 # Whether or not to optimize for fast installation.
17105 fast_install=$enable_fast_install
17106
17107 # Shell to use when invoking shell scripts.
17108 SHELL=$lt_SHELL
17109
17110 # An echo program that protects backslashes.
17111 ECHO=$lt_ECHO
17112
17113 # The PATH separator for the build system.
17114 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17115
17116 # The host system.
17117 host_alias=$host_alias
17118 host=$host
17119 host_os=$host_os
17120
17121 # The build system.
17122 build_alias=$build_alias
17123 build=$build
17124 build_os=$build_os
17125
17126 # A sed program that does not truncate output.
17127 SED=$lt_SED
17128
17129 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17130 Xsed="\$SED -e 1s/^X//"
17131
17132 # A grep program that handles long lines.
17133 GREP=$lt_GREP
17134
17135 # An ERE matcher.
17136 EGREP=$lt_EGREP
17137
17138 # A literal string matcher.
17139 FGREP=$lt_FGREP
17140
17141 # A BSD- or MS-compatible name lister.
17142 NM=$lt_NM
17143
17144 # Whether we need soft or hard links.
17145 LN_S=$lt_LN_S
17146
17147 # What is the maximum length of a command?
17148 max_cmd_len=$max_cmd_len
17149
17150 # Object file suffix (normally "o").
17151 objext=$ac_objext
17152
17153 # Executable file suffix (normally "").
17154 exeext=$exeext
17155
17156 # whether the shell understands "unset".
17157 lt_unset=$lt_unset
17158
17159 # turn spaces into newlines.
17160 SP2NL=$lt_lt_SP2NL
17161
17162 # turn newlines into spaces.
17163 NL2SP=$lt_lt_NL2SP
17164
17165 # convert \$build file names to \$host format.
17166 to_host_file_cmd=$lt_cv_to_host_file_cmd
17167
17168 # convert \$build files to toolchain format.
17169 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17170
17171 # An object symbol dumper.
17172 OBJDUMP=$lt_OBJDUMP
17173
17174 # Method to check whether dependent libraries are shared objects.
17175 deplibs_check_method=$lt_deplibs_check_method
17176
17177 # Command to use when deplibs_check_method = "file_magic".
17178 file_magic_cmd=$lt_file_magic_cmd
17179
17180 # How to find potential files when deplibs_check_method = "file_magic".
17181 file_magic_glob=$lt_file_magic_glob
17182
17183 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17184 want_nocaseglob=$lt_want_nocaseglob
17185
17186 # DLL creation program.
17187 DLLTOOL=$lt_DLLTOOL
17188
17189 # Command to associate shared and link libraries.
17190 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17191
17192 # The archiver.
17193 AR=$lt_AR
17194
17195 # Flags to create an archive.
17196 AR_FLAGS=$lt_AR_FLAGS
17197
17198 # How to feed a file listing to the archiver.
17199 archiver_list_spec=$lt_archiver_list_spec
17200
17201 # A symbol stripping program.
17202 STRIP=$lt_STRIP
17203
17204 # Commands used to install an old-style archive.
17205 RANLIB=$lt_RANLIB
17206 old_postinstall_cmds=$lt_old_postinstall_cmds
17207 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17208
17209 # Whether to use a lock for old archive extraction.
17210 lock_old_archive_extraction=$lock_old_archive_extraction
17211
17212 # A C compiler.
17213 LTCC=$lt_CC
17214
17215 # LTCC compiler flags.
17216 LTCFLAGS=$lt_CFLAGS
17217
17218 # Take the output of nm and produce a listing of raw symbols and C names.
17219 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17220
17221 # Transform the output of nm in a proper C declaration.
17222 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17223
17224 # Transform the output of nm in a C name address pair.
17225 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17226
17227 # Transform the output of nm in a C name address pair when lib prefix is needed.
17228 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17229
17230 # Specify filename containing input files for \$NM.
17231 nm_file_list_spec=$lt_nm_file_list_spec
17232
17233 # The root where to search for dependent libraries,and in which our libraries should be installed.
17234 lt_sysroot=$lt_sysroot
17235
17236 # The name of the directory that contains temporary libtool files.
17237 objdir=$objdir
17238
17239 # Used to examine libraries when file_magic_cmd begins with "file".
17240 MAGIC_CMD=$MAGIC_CMD
17241
17242 # Must we lock files when doing compilation?
17243 need_locks=$lt_need_locks
17244
17245 # Manifest tool.
17246 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17247
17248 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17249 DSYMUTIL=$lt_DSYMUTIL
17250
17251 # Tool to change global to local symbols on Mac OS X.
17252 NMEDIT=$lt_NMEDIT
17253
17254 # Tool to manipulate fat objects and archives on Mac OS X.
17255 LIPO=$lt_LIPO
17256
17257 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17258 OTOOL=$lt_OTOOL
17259
17260 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17261 OTOOL64=$lt_OTOOL64
17262
17263 # Old archive suffix (normally "a").
17264 libext=$libext
17265
17266 # Shared library suffix (normally ".so").
17267 shrext_cmds=$lt_shrext_cmds
17268
17269 # The commands to extract the exported symbol list from a shared archive.
17270 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17271
17272 # Variables whose values should be saved in libtool wrapper scripts and
17273 # restored at link time.
17274 variables_saved_for_relink=$lt_variables_saved_for_relink
17275
17276 # Do we need the "lib" prefix for modules?
17277 need_lib_prefix=$need_lib_prefix
17278
17279 # Do we need a version for libraries?
17280 need_version=$need_version
17281
17282 # Library versioning type.
17283 version_type=$version_type
17284
17285 # Shared library runtime path variable.
17286 runpath_var=$runpath_var
17287
17288 # Shared library path variable.
17289 shlibpath_var=$shlibpath_var
17290
17291 # Is shlibpath searched before the hard-coded library search path?
17292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17293
17294 # Format of library name prefix.
17295 libname_spec=$lt_libname_spec
17296
17297 # List of archive names.  First name is the real one, the rest are links.
17298 # The last name is the one that the linker finds with -lNAME
17299 library_names_spec=$lt_library_names_spec
17300
17301 # The coded name of the library, if different from the real name.
17302 soname_spec=$lt_soname_spec
17303
17304 # Permission mode override for installation of shared libraries.
17305 install_override_mode=$lt_install_override_mode
17306
17307 # Command to use after installation of a shared archive.
17308 postinstall_cmds=$lt_postinstall_cmds
17309
17310 # Command to use after uninstallation of a shared archive.
17311 postuninstall_cmds=$lt_postuninstall_cmds
17312
17313 # Commands used to finish a libtool library installation in a directory.
17314 finish_cmds=$lt_finish_cmds
17315
17316 # As "finish_cmds", except a single script fragment to be evaled but
17317 # not shown.
17318 finish_eval=$lt_finish_eval
17319
17320 # Whether we should hardcode library paths into libraries.
17321 hardcode_into_libs=$hardcode_into_libs
17322
17323 # Compile-time system search path for libraries.
17324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17325
17326 # Run-time system search path for libraries.
17327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17328
17329 # Whether dlopen is supported.
17330 dlopen_support=$enable_dlopen
17331
17332 # Whether dlopen of programs is supported.
17333 dlopen_self=$enable_dlopen_self
17334
17335 # Whether dlopen of statically linked programs is supported.
17336 dlopen_self_static=$enable_dlopen_self_static
17337
17338 # Commands to strip libraries.
17339 old_striplib=$lt_old_striplib
17340 striplib=$lt_striplib
17341
17342
17343 # The linker used to build libraries.
17344 LD=$lt_LD
17345
17346 # How to create reloadable object files.
17347 reload_flag=$lt_reload_flag
17348 reload_cmds=$lt_reload_cmds
17349
17350 # Commands used to build an old-style archive.
17351 old_archive_cmds=$lt_old_archive_cmds
17352
17353 # A language specific compiler.
17354 CC=$lt_compiler
17355
17356 # Is the compiler the GNU compiler?
17357 with_gcc=$GCC
17358
17359 # Compiler flag to turn off builtin functions.
17360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17361
17362 # Additional compiler flags for building library objects.
17363 pic_flag=$lt_lt_prog_compiler_pic
17364
17365 # How to pass a linker flag through the compiler.
17366 wl=$lt_lt_prog_compiler_wl
17367
17368 # Compiler flag to prevent dynamic linking.
17369 link_static_flag=$lt_lt_prog_compiler_static
17370
17371 # Does compiler simultaneously support -c and -o options?
17372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17373
17374 # Whether or not to add -lc for building shared libraries.
17375 build_libtool_need_lc=$archive_cmds_need_lc
17376
17377 # Whether or not to disallow shared libs when runtime libs are static.
17378 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17379
17380 # Compiler flag to allow reflexive dlopens.
17381 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17382
17383 # Compiler flag to generate shared objects directly from archives.
17384 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17385
17386 # Whether the compiler copes with passing no objects directly.
17387 compiler_needs_object=$lt_compiler_needs_object
17388
17389 # Create an old-style archive from a shared archive.
17390 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17391
17392 # Create a temporary old-style archive to link instead of a shared archive.
17393 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17394
17395 # Commands used to build a shared archive.
17396 archive_cmds=$lt_archive_cmds
17397 archive_expsym_cmds=$lt_archive_expsym_cmds
17398
17399 # Commands used to build a loadable module if different from building
17400 # a shared archive.
17401 module_cmds=$lt_module_cmds
17402 module_expsym_cmds=$lt_module_expsym_cmds
17403
17404 # Whether we are building with GNU ld or not.
17405 with_gnu_ld=$lt_with_gnu_ld
17406
17407 # Flag that allows shared libraries with undefined symbols to be built.
17408 allow_undefined_flag=$lt_allow_undefined_flag
17409
17410 # Flag that enforces no undefined symbols.
17411 no_undefined_flag=$lt_no_undefined_flag
17412
17413 # Flag to hardcode \$libdir into a binary during linking.
17414 # This must work even if \$libdir does not exist
17415 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17416
17417 # Whether we need a single "-rpath" flag with a separated argument.
17418 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17419
17420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17421 # DIR into the resulting binary.
17422 hardcode_direct=$hardcode_direct
17423
17424 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17425 # DIR into the resulting binary and the resulting library dependency is
17426 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17427 # library is relocated.
17428 hardcode_direct_absolute=$hardcode_direct_absolute
17429
17430 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17431 # into the resulting binary.
17432 hardcode_minus_L=$hardcode_minus_L
17433
17434 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17435 # into the resulting binary.
17436 hardcode_shlibpath_var=$hardcode_shlibpath_var
17437
17438 # Set to "yes" if building a shared library automatically hardcodes DIR
17439 # into the library and all subsequent libraries and executables linked
17440 # against it.
17441 hardcode_automatic=$hardcode_automatic
17442
17443 # Set to yes if linker adds runtime paths of dependent libraries
17444 # to runtime path list.
17445 inherit_rpath=$inherit_rpath
17446
17447 # Whether libtool must link a program against all its dependency libraries.
17448 link_all_deplibs=$link_all_deplibs
17449
17450 # Set to "yes" if exported symbols are required.
17451 always_export_symbols=$always_export_symbols
17452
17453 # The commands to list exported symbols.
17454 export_symbols_cmds=$lt_export_symbols_cmds
17455
17456 # Symbols that should not be listed in the preloaded symbols.
17457 exclude_expsyms=$lt_exclude_expsyms
17458
17459 # Symbols that must always be exported.
17460 include_expsyms=$lt_include_expsyms
17461
17462 # Commands necessary for linking programs (against libraries) with templates.
17463 prelink_cmds=$lt_prelink_cmds
17464
17465 # Commands necessary for finishing linking programs.
17466 postlink_cmds=$lt_postlink_cmds
17467
17468 # Specify filename containing input files.
17469 file_list_spec=$lt_file_list_spec
17470
17471 # How to hardcode a shared library path into an executable.
17472 hardcode_action=$hardcode_action
17473
17474 # ### END LIBTOOL CONFIG
17475
17476 _LT_EOF
17477
17478   case $host_os in
17479   aix3*)
17480     cat <<\_LT_EOF >> "$cfgfile"
17481 # AIX sometimes has problems with the GCC collect2 program.  For some
17482 # reason, if we set the COLLECT_NAMES environment variable, the problems
17483 # vanish in a puff of smoke.
17484 if test "X${COLLECT_NAMES+set}" != Xset; then
17485   COLLECT_NAMES=
17486   export COLLECT_NAMES
17487 fi
17488 _LT_EOF
17489     ;;
17490   esac
17491
17492
17493 ltmain="$ac_aux_dir/ltmain.sh"
17494
17495
17496   # We use sed instead of cat because bash on DJGPP gets confused if
17497   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17498   # text mode, it properly converts lines to CR/LF.  This bash problem
17499   # is reportedly fixed, but why not run on old versions too?
17500   sed '$q' "$ltmain" >> "$cfgfile" \
17501      || (rm -f "$cfgfile"; exit 1)
17502
17503   if test x"$xsi_shell" = xyes; then
17504   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17505 func_dirname ()\
17506 {\
17507 \    case ${1} in\
17508 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17509 \      *  ) func_dirname_result="${3}" ;;\
17510 \    esac\
17511 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17512   && mv -f "$cfgfile.tmp" "$cfgfile" \
17513     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17514 test 0 -eq $? || _lt_function_replace_fail=:
17515
17516
17517   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17518 func_basename ()\
17519 {\
17520 \    func_basename_result="${1##*/}"\
17521 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17522   && mv -f "$cfgfile.tmp" "$cfgfile" \
17523     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17524 test 0 -eq $? || _lt_function_replace_fail=:
17525
17526
17527   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17528 func_dirname_and_basename ()\
17529 {\
17530 \    case ${1} in\
17531 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17532 \      *  ) func_dirname_result="${3}" ;;\
17533 \    esac\
17534 \    func_basename_result="${1##*/}"\
17535 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17536   && mv -f "$cfgfile.tmp" "$cfgfile" \
17537     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17538 test 0 -eq $? || _lt_function_replace_fail=:
17539
17540
17541   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17542 func_stripname ()\
17543 {\
17544 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17545 \    # positional parameters, so assign one to ordinary parameter first.\
17546 \    func_stripname_result=${3}\
17547 \    func_stripname_result=${func_stripname_result#"${1}"}\
17548 \    func_stripname_result=${func_stripname_result%"${2}"}\
17549 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17550   && mv -f "$cfgfile.tmp" "$cfgfile" \
17551     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17552 test 0 -eq $? || _lt_function_replace_fail=:
17553
17554
17555   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17556 func_split_long_opt ()\
17557 {\
17558 \    func_split_long_opt_name=${1%%=*}\
17559 \    func_split_long_opt_arg=${1#*=}\
17560 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17561   && mv -f "$cfgfile.tmp" "$cfgfile" \
17562     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17563 test 0 -eq $? || _lt_function_replace_fail=:
17564
17565
17566   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17567 func_split_short_opt ()\
17568 {\
17569 \    func_split_short_opt_arg=${1#??}\
17570 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17571 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17572   && mv -f "$cfgfile.tmp" "$cfgfile" \
17573     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17574 test 0 -eq $? || _lt_function_replace_fail=:
17575
17576
17577   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17578 func_lo2o ()\
17579 {\
17580 \    case ${1} in\
17581 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17582 \      *)    func_lo2o_result=${1} ;;\
17583 \    esac\
17584 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17585   && mv -f "$cfgfile.tmp" "$cfgfile" \
17586     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17587 test 0 -eq $? || _lt_function_replace_fail=:
17588
17589
17590   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17591 func_xform ()\
17592 {\
17593     func_xform_result=${1%.*}.lo\
17594 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17595   && mv -f "$cfgfile.tmp" "$cfgfile" \
17596     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17597 test 0 -eq $? || _lt_function_replace_fail=:
17598
17599
17600   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17601 func_arith ()\
17602 {\
17603     func_arith_result=$(( $* ))\
17604 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17605   && mv -f "$cfgfile.tmp" "$cfgfile" \
17606     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17607 test 0 -eq $? || _lt_function_replace_fail=:
17608
17609
17610   sed -e '/^func_len ()$/,/^} # func_len /c\
17611 func_len ()\
17612 {\
17613     func_len_result=${#1}\
17614 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17615   && mv -f "$cfgfile.tmp" "$cfgfile" \
17616     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17617 test 0 -eq $? || _lt_function_replace_fail=:
17618
17619 fi
17620
17621 if test x"$lt_shell_append" = xyes; then
17622   sed -e '/^func_append ()$/,/^} # func_append /c\
17623 func_append ()\
17624 {\
17625     eval "${1}+=\\${2}"\
17626 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17627   && mv -f "$cfgfile.tmp" "$cfgfile" \
17628     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17629 test 0 -eq $? || _lt_function_replace_fail=:
17630
17631
17632   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17633 func_append_quoted ()\
17634 {\
17635 \    func_quote_for_eval "${2}"\
17636 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17637 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17638   && mv -f "$cfgfile.tmp" "$cfgfile" \
17639     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17640 test 0 -eq $? || _lt_function_replace_fail=:
17641
17642
17643   # Save a `func_append' function call where possible by direct use of '+='
17644   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17645     && mv -f "$cfgfile.tmp" "$cfgfile" \
17646       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17647   test 0 -eq $? || _lt_function_replace_fail=:
17648 else
17649   # Save a `func_append' function call even when '+=' is not available
17650   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17651     && mv -f "$cfgfile.tmp" "$cfgfile" \
17652       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17653   test 0 -eq $? || _lt_function_replace_fail=:
17654 fi
17655
17656 if test x"$_lt_function_replace_fail" = x":"; then
17657   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17658 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17659 fi
17660
17661
17662    mv -f "$cfgfile" "$ofile" ||
17663     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17664   chmod +x "$ofile"
17665
17666  ;;
17667     "include":C) test -d include || mkdir include ;;
17668     "src":C)
17669 test -d src || mkdir src
17670 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17671  ;;
17672
17673   esac
17674 done # for ac_tag
17675
17676
17677 as_fn_exit 0
17678 _ACEOF
17679 ac_clean_files=$ac_clean_files_save
17680
17681 test $ac_write_fail = 0 ||
17682   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17683
17684
17685 # configure is writing to config.log, and then calls config.status.
17686 # config.status does its own redirection, appending to config.log.
17687 # Unfortunately, on DOS this fails, as config.log is still kept open
17688 # by configure, so config.status won't be able to write to it; its
17689 # output is simply discarded.  So we exec the FD to /dev/null,
17690 # effectively closing config.log, so it can be properly (re)opened and
17691 # appended to by config.status.  When coming back to configure, we
17692 # need to make the FD available again.
17693 if test "$no_create" != yes; then
17694   ac_cs_success=:
17695   ac_config_status_args=
17696   test "$silent" = yes &&
17697     ac_config_status_args="$ac_config_status_args --quiet"
17698   exec 5>/dev/null
17699   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17700   exec 5>>config.log
17701   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17702   # would make configure fail if this is the last instruction.
17703   $ac_cs_success || as_fn_exit 1
17704 fi
17705 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17706   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17707 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17708 fi
17709