Don't use warning checking macro with sun compiler
[platform/upstream/libffi.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.0.12-rc0.
4 #
5 # Report bugs to <http://gcc.gnu.org/bugs.html>.
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://gcc.gnu.org/bugs.html about your system,
279 $0: including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282   fi
283   exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301   { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310   return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318   set +e
319   as_fn_set_status $1
320   exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329   case $as_dir in #(
330   -*) as_dir=./$as_dir;;
331   esac
332   test -d "$as_dir" || eval $as_mkdir_p || {
333     as_dirs=
334     while :; do
335       case $as_dir in #(
336       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337       *) as_qdir=$as_dir;;
338       esac
339       as_dirs="'$as_qdir' $as_dirs"
340       as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342          X"$as_dir" : 'X\(//\)[^/]' \| \
343          X"$as_dir" : 'X\(//\)$' \| \
344          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347             s//\1/
348             q
349           }
350           /^X\(\/\/\)[^/].*/{
351             s//\1/
352             q
353           }
354           /^X\(\/\/\)$/{
355             s//\1/
356             q
357           }
358           /^X\(\/\).*/{
359             s//\1/
360             q
361           }
362           s/.*/./; q'`
363       test -d "$as_dir" && break
364     done
365     test -z "$as_dirs" || eval "mkdir $as_dirs"
366   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376   test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385   eval 'as_fn_append ()
386   {
387     eval $1+=\$2
388   }'
389 else
390   as_fn_append ()
391   {
392     eval $1=\$$1\$2
393   }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421   as_status=$1; test $as_status -eq 0 && as_status=1
422   if test "$4"; then
423     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425   fi
426   $as_echo "$as_me: error: $2" >&2
427   as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431    test "X`expr 00001 : '.*\(...\)'`" = X001; then
432   as_expr=expr
433 else
434   as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438   as_basename=basename
439 else
440   as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444   as_dirname=dirname
445 else
446   as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451          X"$0" : 'X\(//\)$' \| \
452          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454     sed '/^.*\/\([^/][^/]*\)\/*$/{
455             s//\1/
456             q
457           }
458           /^X\/\(\/\/\)$/{
459             s//\1/
460             q
461           }
462           /^X\/\(\/\).*/{
463             s//\1/
464             q
465           }
466           s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476   as_lineno_1=$LINENO as_lineno_1a=$LINENO
477   as_lineno_2=$LINENO as_lineno_2a=$LINENO
478   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481   sed -n '
482     p
483     /[$]LINENO/=
484   ' <$as_myself |
485     sed '
486       s/[$]LINENO.*/&-/
487       t lineno
488       b
489       :lineno
490       N
491       :loop
492       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493       t loop
494       s/-\n.*//
495     ' >$as_me.lineno &&
496   chmod +x "$as_me.lineno" ||
497     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500   # already done that, so ensure we don't try to do so again and fall
501   # in an infinite loop.  This has already happened in practice.
502   _as_can_reexec=no; export _as_can_reexec
503   # Don't try to exec as it changes $[0], causing all sort of problems
504   # (the dirname of $[0] is not the place where we might find the
505   # original and so on.  Autoconf is especially sensitive to this).
506   . "./$as_me.lineno"
507   # Exit status is that of the last command.
508   exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514   case `echo 'xy\c'` in
515   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
516   xy)  ECHO_C='\c';;
517   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518        ECHO_T=' ';;
519   esac;;
520 *)
521   ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526   rm -f conf$$.dir/conf$$.file
527 else
528   rm -f conf$$.dir
529   mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532   if ln -s conf$$.file conf$$ 2>/dev/null; then
533     as_ln_s='ln -s'
534     # ... but there are two gotchas:
535     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537     # In both cases, we have to default to `cp -pR'.
538     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539       as_ln_s='cp -pR'
540   elif ln conf$$.file conf$$ 2>/dev/null; then
541     as_ln_s=ln
542   else
543     as_ln_s='cp -pR'
544   fi
545 else
546   as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552   as_mkdir_p='mkdir -p "$as_dir"'
553 else
554   test -d ./-p && rmdir ./-p
555   as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.0.12-rc0'
594 PACKAGE_STRING='libffi 3.0.12-rc0'
595 PACKAGE_BUGREPORT='http://gcc.gnu.org/bugs.html'
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 TILE_FALSE
651 TILE_TRUE
652 PA64_HPUX_FALSE
653 PA64_HPUX_TRUE
654 PA_HPUX_FALSE
655 PA_HPUX_TRUE
656 PA_LINUX_FALSE
657 PA_LINUX_TRUE
658 SH64_FALSE
659 SH64_TRUE
660 SH_FALSE
661 SH_TRUE
662 X86_64_FALSE
663 X86_64_TRUE
664 S390_FALSE
665 S390_TRUE
666 FRV_FALSE
667 FRV_TRUE
668 LIBFFI_CRIS_FALSE
669 LIBFFI_CRIS_TRUE
670 AVR32_FALSE
671 AVR32_TRUE
672 ARM_FALSE
673 ARM_TRUE
674 AARCH64_FALSE
675 AARCH64_TRUE
676 POWERPC_FREEBSD_FALSE
677 POWERPC_FREEBSD_TRUE
678 POWERPC_DARWIN_FALSE
679 POWERPC_DARWIN_TRUE
680 POWERPC_AIX_FALSE
681 POWERPC_AIX_TRUE
682 POWERPC_FALSE
683 POWERPC_TRUE
684 MOXIE_FALSE
685 MOXIE_TRUE
686 M68K_FALSE
687 M68K_TRUE
688 M32R_FALSE
689 M32R_TRUE
690 IA64_FALSE
691 IA64_TRUE
692 ALPHA_FALSE
693 ALPHA_TRUE
694 X86_DARWIN_FALSE
695 X86_DARWIN_TRUE
696 X86_WIN64_FALSE
697 X86_WIN64_TRUE
698 X86_WIN32_FALSE
699 X86_WIN32_TRUE
700 X86_FREEBSD_FALSE
701 X86_FREEBSD_TRUE
702 X86_FALSE
703 X86_TRUE
704 SPARC_FALSE
705 SPARC_TRUE
706 BFIN_FALSE
707 BFIN_TRUE
708 MIPS_FALSE
709 MIPS_TRUE
710 AM_LTLDFLAGS
711 AM_RUNTESTFLAGS
712 TESTSUBDIR_FALSE
713 TESTSUBDIR_TRUE
714 MAINT
715 MAINTAINER_MODE_FALSE
716 MAINTAINER_MODE_TRUE
717 PRTDIAG
718 CPP
719 OTOOL64
720 OTOOL
721 LIPO
722 NMEDIT
723 DSYMUTIL
724 MANIFEST_TOOL
725 RANLIB
726 ac_ct_AR
727 AR
728 DLLTOOL
729 OBJDUMP
730 LN_S
731 NM
732 ac_ct_DUMPBIN
733 DUMPBIN
734 LD
735 FGREP
736 EGREP
737 GREP
738 SED
739 LIBTOOL
740 am__fastdepCCAS_FALSE
741 am__fastdepCCAS_TRUE
742 CCASDEPMODE
743 CCASFLAGS
744 CCAS
745 am__fastdepCC_FALSE
746 am__fastdepCC_TRUE
747 CCDEPMODE
748 am__nodep
749 AMDEPBACKSLASH
750 AMDEP_FALSE
751 AMDEP_TRUE
752 am__quote
753 am__include
754 DEPDIR
755 OBJEXT
756 EXEEXT
757 ac_ct_CC
758 CPPFLAGS
759 LDFLAGS
760 CFLAGS
761 CC
762 am__untar
763 am__tar
764 AMTAR
765 am__leading_dot
766 SET_MAKE
767 AWK
768 mkdir_p
769 MKDIR_P
770 INSTALL_STRIP_PROGRAM
771 STRIP
772 install_sh
773 MAKEINFO
774 AUTOHEADER
775 AUTOMAKE
776 AUTOCONF
777 ACLOCAL
778 VERSION
779 PACKAGE
780 CYGPATH_W
781 am__isrc
782 INSTALL_DATA
783 INSTALL_SCRIPT
784 INSTALL_PROGRAM
785 ax_enable_builddir_sed
786 target_os
787 target_vendor
788 target_cpu
789 target
790 host_os
791 host_vendor
792 host_cpu
793 host
794 build_os
795 build_vendor
796 build_cpu
797 build
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL'
836 ac_subst_files=''
837 ac_user_opts='
838 enable_option_checking
839 enable_builddir
840 enable_dependency_tracking
841 enable_shared
842 enable_static
843 with_pic
844 enable_fast_install
845 with_gnu_ld
846 with_sysroot
847 enable_libtool_lock
848 enable_portable_binary
849 with_gcc_arch
850 enable_maintainer_mode
851 enable_pax_emutramp
852 enable_debug
853 enable_structs
854 enable_raw_api
855 enable_purify_safety
856 '
857       ac_precious_vars='build_alias
858 host_alias
859 target_alias
860 CCAS
861 CCASFLAGS
862 CPP
863 CPPFLAGS'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
906 htmldir='${docdir}'
907 dvidir='${docdir}'
908 pdfdir='${docdir}'
909 psdir='${docdir}'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
913
914 ac_prev=
915 ac_dashdash=
916 for ac_option
917 do
918   # If the previous option needs an argument, assign it.
919   if test -n "$ac_prev"; then
920     eval $ac_prev=\$ac_option
921     ac_prev=
922     continue
923   fi
924
925   case $ac_option in
926   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927   *=)   ac_optarg= ;;
928   *)    ac_optarg=yes ;;
929   esac
930
931   # Accept the important Cygnus configure options, so we can diagnose typos.
932
933   case $ac_dashdash$ac_option in
934   --)
935     ac_dashdash=yes ;;
936
937   -bindir | --bindir | --bindi | --bind | --bin | --bi)
938     ac_prev=bindir ;;
939   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940     bindir=$ac_optarg ;;
941
942   -build | --build | --buil | --bui | --bu)
943     ac_prev=build_alias ;;
944   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945     build_alias=$ac_optarg ;;
946
947   -cache-file | --cache-file | --cache-fil | --cache-fi \
948   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949     ac_prev=cache_file ;;
950   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952     cache_file=$ac_optarg ;;
953
954   --config-cache | -C)
955     cache_file=config.cache ;;
956
957   -datadir | --datadir | --datadi | --datad)
958     ac_prev=datadir ;;
959   -datadir=* | --datadir=* | --datadi=* | --datad=*)
960     datadir=$ac_optarg ;;
961
962   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963   | --dataroo | --dataro | --datar)
964     ac_prev=datarootdir ;;
965   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967     datarootdir=$ac_optarg ;;
968
969   -disable-* | --disable-*)
970     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971     # Reject names that are not valid shell variable names.
972     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973       as_fn_error $? "invalid feature name: $ac_useropt"
974     ac_useropt_orig=$ac_useropt
975     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976     case $ac_user_opts in
977       *"
978 "enable_$ac_useropt"
979 "*) ;;
980       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981          ac_unrecognized_sep=', ';;
982     esac
983     eval enable_$ac_useropt=no ;;
984
985   -docdir | --docdir | --docdi | --doc | --do)
986     ac_prev=docdir ;;
987   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988     docdir=$ac_optarg ;;
989
990   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991     ac_prev=dvidir ;;
992   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993     dvidir=$ac_optarg ;;
994
995   -enable-* | --enable-*)
996     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997     # Reject names that are not valid shell variable names.
998     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999       as_fn_error $? "invalid feature name: $ac_useropt"
1000     ac_useropt_orig=$ac_useropt
1001     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002     case $ac_user_opts in
1003       *"
1004 "enable_$ac_useropt"
1005 "*) ;;
1006       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007          ac_unrecognized_sep=', ';;
1008     esac
1009     eval enable_$ac_useropt=\$ac_optarg ;;
1010
1011   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013   | --exec | --exe | --ex)
1014     ac_prev=exec_prefix ;;
1015   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017   | --exec=* | --exe=* | --ex=*)
1018     exec_prefix=$ac_optarg ;;
1019
1020   -gas | --gas | --ga | --g)
1021     # Obsolete; use --with-gas.
1022     with_gas=yes ;;
1023
1024   -help | --help | --hel | --he | -h)
1025     ac_init_help=long ;;
1026   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027     ac_init_help=recursive ;;
1028   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029     ac_init_help=short ;;
1030
1031   -host | --host | --hos | --ho)
1032     ac_prev=host_alias ;;
1033   -host=* | --host=* | --hos=* | --ho=*)
1034     host_alias=$ac_optarg ;;
1035
1036   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037     ac_prev=htmldir ;;
1038   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039   | --ht=*)
1040     htmldir=$ac_optarg ;;
1041
1042   -includedir | --includedir | --includedi | --included | --include \
1043   | --includ | --inclu | --incl | --inc)
1044     ac_prev=includedir ;;
1045   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046   | --includ=* | --inclu=* | --incl=* | --inc=*)
1047     includedir=$ac_optarg ;;
1048
1049   -infodir | --infodir | --infodi | --infod | --info | --inf)
1050     ac_prev=infodir ;;
1051   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052     infodir=$ac_optarg ;;
1053
1054   -libdir | --libdir | --libdi | --libd)
1055     ac_prev=libdir ;;
1056   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057     libdir=$ac_optarg ;;
1058
1059   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060   | --libexe | --libex | --libe)
1061     ac_prev=libexecdir ;;
1062   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063   | --libexe=* | --libex=* | --libe=*)
1064     libexecdir=$ac_optarg ;;
1065
1066   -localedir | --localedir | --localedi | --localed | --locale)
1067     ac_prev=localedir ;;
1068   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069     localedir=$ac_optarg ;;
1070
1071   -localstatedir | --localstatedir | --localstatedi | --localstated \
1072   | --localstate | --localstat | --localsta | --localst | --locals)
1073     ac_prev=localstatedir ;;
1074   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076     localstatedir=$ac_optarg ;;
1077
1078   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079     ac_prev=mandir ;;
1080   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081     mandir=$ac_optarg ;;
1082
1083   -nfp | --nfp | --nf)
1084     # Obsolete; use --without-fp.
1085     with_fp=no ;;
1086
1087   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088   | --no-cr | --no-c | -n)
1089     no_create=yes ;;
1090
1091   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093     no_recursion=yes ;;
1094
1095   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097   | --oldin | --oldi | --old | --ol | --o)
1098     ac_prev=oldincludedir ;;
1099   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102     oldincludedir=$ac_optarg ;;
1103
1104   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105     ac_prev=prefix ;;
1106   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107     prefix=$ac_optarg ;;
1108
1109   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110   | --program-pre | --program-pr | --program-p)
1111     ac_prev=program_prefix ;;
1112   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114     program_prefix=$ac_optarg ;;
1115
1116   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117   | --program-suf | --program-su | --program-s)
1118     ac_prev=program_suffix ;;
1119   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121     program_suffix=$ac_optarg ;;
1122
1123   -program-transform-name | --program-transform-name \
1124   | --program-transform-nam | --program-transform-na \
1125   | --program-transform-n | --program-transform- \
1126   | --program-transform | --program-transfor \
1127   | --program-transfo | --program-transf \
1128   | --program-trans | --program-tran \
1129   | --progr-tra | --program-tr | --program-t)
1130     ac_prev=program_transform_name ;;
1131   -program-transform-name=* | --program-transform-name=* \
1132   | --program-transform-nam=* | --program-transform-na=* \
1133   | --program-transform-n=* | --program-transform-=* \
1134   | --program-transform=* | --program-transfor=* \
1135   | --program-transfo=* | --program-transf=* \
1136   | --program-trans=* | --program-tran=* \
1137   | --progr-tra=* | --program-tr=* | --program-t=*)
1138     program_transform_name=$ac_optarg ;;
1139
1140   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141     ac_prev=pdfdir ;;
1142   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143     pdfdir=$ac_optarg ;;
1144
1145   -psdir | --psdir | --psdi | --psd | --ps)
1146     ac_prev=psdir ;;
1147   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148     psdir=$ac_optarg ;;
1149
1150   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151   | -silent | --silent | --silen | --sile | --sil)
1152     silent=yes ;;
1153
1154   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155     ac_prev=sbindir ;;
1156   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157   | --sbi=* | --sb=*)
1158     sbindir=$ac_optarg ;;
1159
1160   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162   | --sharedst | --shareds | --shared | --share | --shar \
1163   | --sha | --sh)
1164     ac_prev=sharedstatedir ;;
1165   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168   | --sha=* | --sh=*)
1169     sharedstatedir=$ac_optarg ;;
1170
1171   -site | --site | --sit)
1172     ac_prev=site ;;
1173   -site=* | --site=* | --sit=*)
1174     site=$ac_optarg ;;
1175
1176   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177     ac_prev=srcdir ;;
1178   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179     srcdir=$ac_optarg ;;
1180
1181   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182   | --syscon | --sysco | --sysc | --sys | --sy)
1183     ac_prev=sysconfdir ;;
1184   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186     sysconfdir=$ac_optarg ;;
1187
1188   -target | --target | --targe | --targ | --tar | --ta | --t)
1189     ac_prev=target_alias ;;
1190   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191     target_alias=$ac_optarg ;;
1192
1193   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194     verbose=yes ;;
1195
1196   -version | --version | --versio | --versi | --vers | -V)
1197     ac_init_version=: ;;
1198
1199   -with-* | --with-*)
1200     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201     # Reject names that are not valid shell variable names.
1202     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203       as_fn_error $? "invalid package name: $ac_useropt"
1204     ac_useropt_orig=$ac_useropt
1205     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206     case $ac_user_opts in
1207       *"
1208 "with_$ac_useropt"
1209 "*) ;;
1210       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211          ac_unrecognized_sep=', ';;
1212     esac
1213     eval with_$ac_useropt=\$ac_optarg ;;
1214
1215   -without-* | --without-*)
1216     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217     # Reject names that are not valid shell variable names.
1218     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219       as_fn_error $? "invalid package name: $ac_useropt"
1220     ac_useropt_orig=$ac_useropt
1221     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222     case $ac_user_opts in
1223       *"
1224 "with_$ac_useropt"
1225 "*) ;;
1226       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227          ac_unrecognized_sep=', ';;
1228     esac
1229     eval with_$ac_useropt=no ;;
1230
1231   --x)
1232     # Obsolete; use --with-x.
1233     with_x=yes ;;
1234
1235   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236   | --x-incl | --x-inc | --x-in | --x-i)
1237     ac_prev=x_includes ;;
1238   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240     x_includes=$ac_optarg ;;
1241
1242   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244     ac_prev=x_libraries ;;
1245   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247     x_libraries=$ac_optarg ;;
1248
1249   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information"
1251     ;;
1252
1253   *=*)
1254     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255     # Reject names that are not valid shell variable names.
1256     case $ac_envvar in #(
1257       '' | [0-9]* | *[!_$as_cr_alnum]* )
1258       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1259     esac
1260     eval $ac_envvar=\$ac_optarg
1261     export $ac_envvar ;;
1262
1263   *)
1264     # FIXME: should be removed in autoconf 3.0.
1265     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269     ;;
1270
1271   esac
1272 done
1273
1274 if test -n "$ac_prev"; then
1275   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276   as_fn_error $? "missing argument to $ac_option"
1277 fi
1278
1279 if test -n "$ac_unrecognized_opts"; then
1280   case $enable_option_checking in
1281     no) ;;
1282     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1283     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284   esac
1285 fi
1286
1287 # Check all directory arguments for consistency.
1288 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289                 datadir sysconfdir sharedstatedir localstatedir includedir \
1290                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291                 libdir localedir mandir
1292 do
1293   eval ac_val=\$$ac_var
1294   # Remove trailing slashes.
1295   case $ac_val in
1296     */ )
1297       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298       eval $ac_var=\$ac_val;;
1299   esac
1300   # Be sure to have absolute directory names.
1301   case $ac_val in
1302     [\\/$]* | ?:[\\/]* )  continue;;
1303     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304   esac
1305   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317   if test "x$build_alias" = x; then
1318     cross_compiling=maybe
1319   elif test "x$build_alias" != "x$host_alias"; then
1320     cross_compiling=yes
1321   fi
1322 fi
1323
1324 ac_tool_prefix=
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326
1327 test "$silent" = yes && exec 6>/dev/null
1328
1329
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333   as_fn_error $? "working directory cannot be determined"
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335   as_fn_error $? "pwd does not report name of working directory"
1336
1337
1338 # Find the source files, if location was not specified.
1339 if test -z "$srcdir"; then
1340   ac_srcdir_defaulted=yes
1341   # Try the directory containing this script, then the parent directory.
1342   ac_confdir=`$as_dirname -- "$as_myself" ||
1343 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1344          X"$as_myself" : 'X\(//\)[^/]' \| \
1345          X"$as_myself" : 'X\(//\)$' \| \
1346          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1347 $as_echo X"$as_myself" |
1348     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1349             s//\1/
1350             q
1351           }
1352           /^X\(\/\/\)[^/].*/{
1353             s//\1/
1354             q
1355           }
1356           /^X\(\/\/\)$/{
1357             s//\1/
1358             q
1359           }
1360           /^X\(\/\).*/{
1361             s//\1/
1362             q
1363           }
1364           s/.*/./; q'`
1365   srcdir=$ac_confdir
1366   if test ! -r "$srcdir/$ac_unique_file"; then
1367     srcdir=..
1368   fi
1369 else
1370   ac_srcdir_defaulted=no
1371 fi
1372 if test ! -r "$srcdir/$ac_unique_file"; then
1373   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1374   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1375 fi
1376 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1377 ac_abs_confdir=`(
1378         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1379         pwd)`
1380 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382   srcdir=.
1383 fi
1384 # Remove unnecessary trailing slashes from srcdir.
1385 # Double slashes in file names in object file debugging info
1386 # mess up M-x gdb in Emacs.
1387 case $srcdir in
1388 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 esac
1390 for ac_var in $ac_precious_vars; do
1391   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1392   eval ac_env_${ac_var}_value=\$${ac_var}
1393   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1395 done
1396
1397 #
1398 # Report the --help message.
1399 #
1400 if test "$ac_init_help" = "long"; then
1401   # Omit some internal or obsolete options to make the list less imposing.
1402   # This message is too long to be a string in the A/UX 3.1 sh.
1403   cat <<_ACEOF
1404 \`configure' configures libffi 3.0.12-rc0 to adapt to many kinds of systems.
1405
1406 Usage: $0 [OPTION]... [VAR=VALUE]...
1407
1408 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1409 VAR=VALUE.  See below for descriptions of some of the useful variables.
1410
1411 Defaults for the options are specified in brackets.
1412
1413 Configuration:
1414   -h, --help              display this help and exit
1415       --help=short        display options specific to this package
1416       --help=recursive    display the short help of all the included packages
1417   -V, --version           display version information and exit
1418   -q, --quiet, --silent   do not print \`checking ...' messages
1419       --cache-file=FILE   cache test results in FILE [disabled]
1420   -C, --config-cache      alias for \`--cache-file=config.cache'
1421   -n, --no-create         do not create output files
1422       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1423
1424 Installation directories:
1425   --prefix=PREFIX         install architecture-independent files in PREFIX
1426                           [$ac_default_prefix]
1427   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1428                           [PREFIX]
1429
1430 By default, \`make install' will install all the files in
1431 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1432 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1433 for instance \`--prefix=\$HOME'.
1434
1435 For better control, use the options below.
1436
1437 Fine tuning of the installation directories:
1438   --bindir=DIR            user executables [EPREFIX/bin]
1439   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1440   --libexecdir=DIR        program executables [EPREFIX/libexec]
1441   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1442   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1443   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1444   --libdir=DIR            object code libraries [EPREFIX/lib]
1445   --includedir=DIR        C header files [PREFIX/include]
1446   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1447   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1448   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1449   --infodir=DIR           info documentation [DATAROOTDIR/info]
1450   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1451   --mandir=DIR            man documentation [DATAROOTDIR/man]
1452   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1453   --htmldir=DIR           html documentation [DOCDIR]
1454   --dvidir=DIR            dvi documentation [DOCDIR]
1455   --pdfdir=DIR            pdf documentation [DOCDIR]
1456   --psdir=DIR             ps documentation [DOCDIR]
1457 _ACEOF
1458
1459   cat <<\_ACEOF
1460
1461 Program names:
1462   --program-prefix=PREFIX            prepend PREFIX to installed program names
1463   --program-suffix=SUFFIX            append SUFFIX to installed program names
1464   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1465
1466 System types:
1467   --build=BUILD     configure for building on BUILD [guessed]
1468   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1469   --target=TARGET   configure for building compilers for TARGET [HOST]
1470 _ACEOF
1471 fi
1472
1473 if test -n "$ac_init_help"; then
1474   case $ac_init_help in
1475      short | recursive ) echo "Configuration of libffi 3.0.12-rc0:";;
1476    esac
1477   cat <<\_ACEOF
1478
1479 Optional Features:
1480   --disable-option-checking  ignore unrecognized --enable/--with options
1481   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1482   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1483   --disable-builddir      disable automatic build in subdir of sources
1484
1485   --enable-dependency-tracking
1486                           do not reject slow dependency extractors
1487   --disable-dependency-tracking
1488                           speeds up one-time build
1489   --enable-shared[=PKGS]  build shared libraries [default=yes]
1490   --enable-static[=PKGS]  build static libraries [default=yes]
1491   --enable-fast-install[=PKGS]
1492                           optimize for fast installation [default=yes]
1493   --disable-libtool-lock  avoid locking (might break parallel builds)
1494   --enable-portable-binary
1495                           disable compiler optimizations that would produce
1496                           unportable binaries
1497   --enable-maintainer-mode
1498                           enable make rules and dependencies not useful (and
1499                           sometimes confusing) to the casual installer
1500   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1501   --enable-debug          debugging mode
1502   --disable-structs       omit code for struct support
1503   --disable-raw-api       make the raw api unavailable
1504   --enable-purify-safety  purify-safe mode
1505
1506 Optional Packages:
1507   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1508   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1509   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1510                           both]
1511   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1512   --with-sysroot=DIR Search for dependent libraries within DIR
1513                         (or the compiler's sysroot if not specified).
1514   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1515                           instead of guessing
1516
1517 Some influential environment variables:
1518   CC          C compiler command
1519   CFLAGS      C compiler flags
1520   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1521               nonstandard directory <lib dir>
1522   LIBS        libraries to pass to the linker, e.g. -l<library>
1523   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524               you have headers in a nonstandard directory <include dir>
1525   CCAS        assembler compiler command (defaults to CC)
1526   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1527   CPP         C preprocessor
1528
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1531
1532 Report bugs to <http://gcc.gnu.org/bugs.html>.
1533 _ACEOF
1534 ac_status=$?
1535 fi
1536
1537 if test "$ac_init_help" = "recursive"; then
1538   # If there are subdirs, report their specific --help.
1539   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1540     test -d "$ac_dir" ||
1541       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1542       continue
1543     ac_builddir=.
1544
1545 case "$ac_dir" in
1546 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 *)
1548   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1549   # A ".." for each directory in $ac_dir_suffix.
1550   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1551   case $ac_top_builddir_sub in
1552   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1554   esac ;;
1555 esac
1556 ac_abs_top_builddir=$ac_pwd
1557 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1558 # for backward compatibility:
1559 ac_top_builddir=$ac_top_build_prefix
1560
1561 case $srcdir in
1562   .)  # We are building in place.
1563     ac_srcdir=.
1564     ac_top_srcdir=$ac_top_builddir_sub
1565     ac_abs_top_srcdir=$ac_pwd ;;
1566   [\\/]* | ?:[\\/]* )  # Absolute name.
1567     ac_srcdir=$srcdir$ac_dir_suffix;
1568     ac_top_srcdir=$srcdir
1569     ac_abs_top_srcdir=$srcdir ;;
1570   *) # Relative name.
1571     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1572     ac_top_srcdir=$ac_top_build_prefix$srcdir
1573     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 esac
1575 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576
1577     cd "$ac_dir" || { ac_status=$?; continue; }
1578     # Check for guested configure.
1579     if test -f "$ac_srcdir/configure.gnu"; then
1580       echo &&
1581       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582     elif test -f "$ac_srcdir/configure"; then
1583       echo &&
1584       $SHELL "$ac_srcdir/configure" --help=recursive
1585     else
1586       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587     fi || ac_status=$?
1588     cd "$ac_pwd" || { ac_status=$?; break; }
1589   done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594   cat <<\_ACEOF
1595 libffi configure 3.0.12-rc0
1596 generated by GNU Autoconf 2.69
1597
1598 Copyright (C) 2012 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601 _ACEOF
1602   exit
1603 fi
1604
1605 ## ------------------------ ##
1606 ## Autoconf initialization. ##
1607 ## ------------------------ ##
1608
1609 # ac_fn_c_try_compile LINENO
1610 # --------------------------
1611 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1612 ac_fn_c_try_compile ()
1613 {
1614   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615   rm -f conftest.$ac_objext
1616   if { { ac_try="$ac_compile"
1617 case "(($ac_try" in
1618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619   *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623   (eval "$ac_compile") 2>conftest.err
1624   ac_status=$?
1625   if test -s conftest.err; then
1626     grep -v '^ *+' conftest.err >conftest.er1
1627     cat conftest.er1 >&5
1628     mv -f conftest.er1 conftest.err
1629   fi
1630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631   test $ac_status = 0; } && {
1632          test -z "$ac_c_werror_flag" ||
1633          test ! -s conftest.err
1634        } && test -s conftest.$ac_objext; then :
1635   ac_retval=0
1636 else
1637   $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1639
1640         ac_retval=1
1641 fi
1642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643   as_fn_set_status $ac_retval
1644
1645 } # ac_fn_c_try_compile
1646
1647 # ac_fn_c_try_link LINENO
1648 # -----------------------
1649 # Try to link conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_link ()
1651 {
1652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653   rm -f conftest.$ac_objext conftest$ac_exeext
1654   if { { ac_try="$ac_link"
1655 case "(($ac_try" in
1656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657   *) ac_try_echo=$ac_try;;
1658 esac
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661   (eval "$ac_link") 2>conftest.err
1662   ac_status=$?
1663   if test -s conftest.err; then
1664     grep -v '^ *+' conftest.err >conftest.er1
1665     cat conftest.er1 >&5
1666     mv -f conftest.er1 conftest.err
1667   fi
1668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669   test $ac_status = 0; } && {
1670          test -z "$ac_c_werror_flag" ||
1671          test ! -s conftest.err
1672        } && test -s conftest$ac_exeext && {
1673          test "$cross_compiling" = yes ||
1674          test -x conftest$ac_exeext
1675        }; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1684   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1685   # interfere with the next link command; also delete a directory that is
1686   # left behind by Apple's compiler.  We do this before executing the actions.
1687   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1689   as_fn_set_status $ac_retval
1690
1691 } # ac_fn_c_try_link
1692
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1698 {
1699   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if eval \${$3+:} false; then :
1703   $as_echo_n "(cached) " >&6
1704 else
1705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h.  */
1707 $4
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711   eval "$3=yes"
1712 else
1713   eval "$3=no"
1714 fi
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1716 fi
1717 eval ac_res=\$$3
1718                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
1722 } # ac_fn_c_check_header_compile
1723
1724 # ac_fn_c_try_cpp LINENO
1725 # ----------------------
1726 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_cpp ()
1728 {
1729   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730   if { { ac_try="$ac_cpp conftest.$ac_ext"
1731 case "(($ac_try" in
1732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733   *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1738   ac_status=$?
1739   if test -s conftest.err; then
1740     grep -v '^ *+' conftest.err >conftest.er1
1741     cat conftest.er1 >&5
1742     mv -f conftest.er1 conftest.err
1743   fi
1744   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745   test $ac_status = 0; } > conftest.i && {
1746          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1747          test ! -s conftest.err
1748        }; then :
1749   ac_retval=0
1750 else
1751   $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1753
1754     ac_retval=1
1755 fi
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757   as_fn_set_status $ac_retval
1758
1759 } # ac_fn_c_try_cpp
1760
1761 # ac_fn_c_try_run LINENO
1762 # ----------------------
1763 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1764 # that executables *can* be run.
1765 ac_fn_c_try_run ()
1766 {
1767   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768   if { { ac_try="$ac_link"
1769 case "(($ac_try" in
1770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771   *) ac_try_echo=$ac_try;;
1772 esac
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775   (eval "$ac_link") 2>&5
1776   ac_status=$?
1777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1779   { { case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_try") 2>&5
1786   ac_status=$?
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; }; }; then :
1789   ac_retval=0
1790 else
1791   $as_echo "$as_me: program exited with status $ac_status" >&5
1792        $as_echo "$as_me: failed program was:" >&5
1793 sed 's/^/| /' conftest.$ac_ext >&5
1794
1795        ac_retval=$ac_status
1796 fi
1797   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_run
1802
1803 # ac_fn_c_check_func LINENO FUNC VAR
1804 # ----------------------------------
1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1806 ac_fn_c_check_func ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval \${$3+:} false; then :
1812   $as_echo_n "(cached) " >&6
1813 else
1814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h.  */
1816 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1817    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1818 #define $2 innocuous_$2
1819
1820 /* System header to define __stub macros and hopefully few prototypes,
1821     which can conflict with char $2 (); below.
1822     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1823     <limits.h> exists even on freestanding compilers.  */
1824
1825 #ifdef __STDC__
1826 # include <limits.h>
1827 #else
1828 # include <assert.h>
1829 #endif
1830
1831 #undef $2
1832
1833 /* Override any GCC internal prototype to avoid an error.
1834    Use char because int might match the return type of a GCC
1835    builtin and then its argument prototype would still apply.  */
1836 #ifdef __cplusplus
1837 extern "C"
1838 #endif
1839 char $2 ();
1840 /* The GNU C library defines this for functions which it implements
1841     to always fail with ENOSYS.  Some functions are actually named
1842     something starting with __ and the normal name is an alias.  */
1843 #if defined __stub_$2 || defined __stub___$2
1844 choke me
1845 #endif
1846
1847 int
1848 main ()
1849 {
1850 return $2 ();
1851   ;
1852   return 0;
1853 }
1854 _ACEOF
1855 if ac_fn_c_try_link "$LINENO"; then :
1856   eval "$3=yes"
1857 else
1858   eval "$3=no"
1859 fi
1860 rm -f core conftest.err conftest.$ac_objext \
1861     conftest$ac_exeext conftest.$ac_ext
1862 fi
1863 eval ac_res=\$$3
1864                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1865 $as_echo "$ac_res" >&6; }
1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867
1868 } # ac_fn_c_check_func
1869
1870 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1871 # -------------------------------------------------------
1872 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1873 # the include files in INCLUDES and setting the cache variable VAR
1874 # accordingly.
1875 ac_fn_c_check_header_mongrel ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   if eval \${$3+:} false; then :
1879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880 $as_echo_n "checking for $2... " >&6; }
1881 if eval \${$3+:} false; then :
1882   $as_echo_n "(cached) " >&6
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 else
1888   # Is the header compilable?
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1890 $as_echo_n "checking $2 usability... " >&6; }
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h.  */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   ac_header_compiler=yes
1898 else
1899   ac_header_compiler=no
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1903 $as_echo "$ac_header_compiler" >&6; }
1904
1905 # Is the header present?
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1907 $as_echo_n "checking $2 presence... " >&6; }
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909 /* end confdefs.h.  */
1910 #include <$2>
1911 _ACEOF
1912 if ac_fn_c_try_cpp "$LINENO"; then :
1913   ac_header_preproc=yes
1914 else
1915   ac_header_preproc=no
1916 fi
1917 rm -f conftest.err conftest.i conftest.$ac_ext
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1919 $as_echo "$ac_header_preproc" >&6; }
1920
1921 # So?  What about this header?
1922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1923   yes:no: )
1924     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1925 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928     ;;
1929   no:yes:* )
1930     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1931 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1932     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1933 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1935 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1936     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1937 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1938     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1940 ( $as_echo "## ------------------------------------------- ##
1941 ## Report this to http://gcc.gnu.org/bugs.html ##
1942 ## ------------------------------------------- ##"
1943      ) | sed "s/^/$as_me: WARNING:     /" >&2
1944     ;;
1945 esac
1946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949   $as_echo_n "(cached) " >&6
1950 else
1951   eval "$3=\$ac_header_compiler"
1952 fi
1953 eval ac_res=\$$3
1954                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955 $as_echo "$ac_res" >&6; }
1956 fi
1957   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959 } # ac_fn_c_check_header_mongrel
1960
1961 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962 # -------------------------------------------
1963 # Tests whether TYPE exists after having included INCLUDES, setting cache
1964 # variable VAR accordingly.
1965 ac_fn_c_check_type ()
1966 {
1967   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969 $as_echo_n "checking for $2... " >&6; }
1970 if eval \${$3+:} false; then :
1971   $as_echo_n "(cached) " >&6
1972 else
1973   eval "$3=no"
1974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h.  */
1976 $4
1977 int
1978 main ()
1979 {
1980 if (sizeof ($2))
1981          return 0;
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 int
1991 main ()
1992 {
1993 if (sizeof (($2)))
1994             return 0;
1995   ;
1996   return 0;
1997 }
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000
2001 else
2002   eval "$3=yes"
2003 fi
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005 fi
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_type
2014
2015 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2016 # --------------------------------------------
2017 # Tries to find the compile-time value of EXPR in a program that includes
2018 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2019 # computed
2020 ac_fn_c_compute_int ()
2021 {
2022   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023   if test "$cross_compiling" = yes; then
2024     # Depending upon the size, compute the lo and hi bounds.
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h.  */
2027 $4
2028 int
2029 main ()
2030 {
2031 static int test_array [1 - 2 * !(($2) >= 0)];
2032 test_array [0] = 0;
2033 return test_array [0];
2034
2035   ;
2036   return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   ac_lo=0 ac_mid=0
2041   while :; do
2042     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043 /* end confdefs.h.  */
2044 $4
2045 int
2046 main ()
2047 {
2048 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2049 test_array [0] = 0;
2050 return test_array [0];
2051
2052   ;
2053   return 0;
2054 }
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057   ac_hi=$ac_mid; break
2058 else
2059   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060                         if test $ac_lo -le $ac_mid; then
2061                           ac_lo= ac_hi=
2062                           break
2063                         fi
2064                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2065 fi
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067   done
2068 else
2069   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h.  */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) < 0)];
2076 test_array [0] = 0;
2077 return test_array [0];
2078
2079   ;
2080   return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084   ac_hi=-1 ac_mid=-1
2085   while :; do
2086     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087 /* end confdefs.h.  */
2088 $4
2089 int
2090 main ()
2091 {
2092 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2093 test_array [0] = 0;
2094 return test_array [0];
2095
2096   ;
2097   return 0;
2098 }
2099 _ACEOF
2100 if ac_fn_c_try_compile "$LINENO"; then :
2101   ac_lo=$ac_mid; break
2102 else
2103   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2104                         if test $ac_mid -le $ac_hi; then
2105                           ac_lo= ac_hi=
2106                           break
2107                         fi
2108                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111   done
2112 else
2113   ac_lo= ac_hi=
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 # Binary search between lo and hi bounds.
2119 while test "x$ac_lo" != "x$ac_hi"; do
2120   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2128 test_array [0] = 0;
2129 return test_array [0];
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 if ac_fn_c_try_compile "$LINENO"; then :
2136   ac_hi=$ac_mid
2137 else
2138   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2139 fi
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2141 done
2142 case $ac_lo in #((
2143 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2144 '') ac_retval=1 ;;
2145 esac
2146   else
2147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148 /* end confdefs.h.  */
2149 $4
2150 static long int longval () { return $2; }
2151 static unsigned long int ulongval () { return $2; }
2152 #include <stdio.h>
2153 #include <stdlib.h>
2154 int
2155 main ()
2156 {
2157
2158   FILE *f = fopen ("conftest.val", "w");
2159   if (! f)
2160     return 1;
2161   if (($2) < 0)
2162     {
2163       long int i = longval ();
2164       if (i != ($2))
2165         return 1;
2166       fprintf (f, "%ld", i);
2167     }
2168   else
2169     {
2170       unsigned long int i = ulongval ();
2171       if (i != ($2))
2172         return 1;
2173       fprintf (f, "%lu", i);
2174     }
2175   /* Do not output a trailing newline, as this causes \r\n confusion
2176      on some platforms.  */
2177   return ferror (f) || fclose (f) != 0;
2178
2179   ;
2180   return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_run "$LINENO"; then :
2184   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2185 else
2186   ac_retval=1
2187 fi
2188 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2189   conftest.$ac_objext conftest.beam conftest.$ac_ext
2190 rm -f conftest.val
2191
2192   fi
2193   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194   as_fn_set_status $ac_retval
2195
2196 } # ac_fn_c_compute_int
2197 cat >config.log <<_ACEOF
2198 This file contains any messages produced by compilers while
2199 running configure, to aid debugging if configure makes a mistake.
2200
2201 It was created by libffi $as_me 3.0.12-rc0, which was
2202 generated by GNU Autoconf 2.69.  Invocation command line was
2203
2204   $ $0 $@
2205
2206 _ACEOF
2207 exec 5>>config.log
2208 {
2209 cat <<_ASUNAME
2210 ## --------- ##
2211 ## Platform. ##
2212 ## --------- ##
2213
2214 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2215 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2216 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2217 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2218 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2219
2220 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2221 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2222
2223 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2224 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2225 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2226 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2227 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2228 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2229 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2230
2231 _ASUNAME
2232
2233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2234 for as_dir in $PATH
2235 do
2236   IFS=$as_save_IFS
2237   test -z "$as_dir" && as_dir=.
2238     $as_echo "PATH: $as_dir"
2239   done
2240 IFS=$as_save_IFS
2241
2242 } >&5
2243
2244 cat >&5 <<_ACEOF
2245
2246
2247 ## ----------- ##
2248 ## Core tests. ##
2249 ## ----------- ##
2250
2251 _ACEOF
2252
2253
2254 # Keep a trace of the command line.
2255 # Strip out --no-create and --no-recursion so they do not pile up.
2256 # Strip out --silent because we don't want to record it for future runs.
2257 # Also quote any args containing shell meta-characters.
2258 # Make two passes to allow for proper duplicate-argument suppression.
2259 ac_configure_args=
2260 ac_configure_args0=
2261 ac_configure_args1=
2262 ac_must_keep_next=false
2263 for ac_pass in 1 2
2264 do
2265   for ac_arg
2266   do
2267     case $ac_arg in
2268     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2269     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2270     | -silent | --silent | --silen | --sile | --sil)
2271       continue ;;
2272     *\'*)
2273       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2274     esac
2275     case $ac_pass in
2276     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2277     2)
2278       as_fn_append ac_configure_args1 " '$ac_arg'"
2279       if test $ac_must_keep_next = true; then
2280         ac_must_keep_next=false # Got value, back to normal.
2281       else
2282         case $ac_arg in
2283           *=* | --config-cache | -C | -disable-* | --disable-* \
2284           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2285           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2286           | -with-* | --with-* | -without-* | --without-* | --x)
2287             case "$ac_configure_args0 " in
2288               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2289             esac
2290             ;;
2291           -* ) ac_must_keep_next=true ;;
2292         esac
2293       fi
2294       as_fn_append ac_configure_args " '$ac_arg'"
2295       ;;
2296     esac
2297   done
2298 done
2299 { ac_configure_args0=; unset ac_configure_args0;}
2300 { ac_configure_args1=; unset ac_configure_args1;}
2301
2302 # When interrupted or exit'd, cleanup temporary files, and complete
2303 # config.log.  We remove comments because anyway the quotes in there
2304 # would cause problems or look ugly.
2305 # WARNING: Use '\'' to represent an apostrophe within the trap.
2306 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2307 trap 'exit_status=$?
2308   # Save into config.log some information that might help in debugging.
2309   {
2310     echo
2311
2312     $as_echo "## ---------------- ##
2313 ## Cache variables. ##
2314 ## ---------------- ##"
2315     echo
2316     # The following way of writing the cache mishandles newlines in values,
2317 (
2318   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2319     eval ac_val=\$$ac_var
2320     case $ac_val in #(
2321     *${as_nl}*)
2322       case $ac_var in #(
2323       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2324 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2325       esac
2326       case $ac_var in #(
2327       _ | IFS | as_nl) ;; #(
2328       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2329       *) { eval $ac_var=; unset $ac_var;} ;;
2330       esac ;;
2331     esac
2332   done
2333   (set) 2>&1 |
2334     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2335     *${as_nl}ac_space=\ *)
2336       sed -n \
2337         "s/'\''/'\''\\\\'\'''\''/g;
2338           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2339       ;; #(
2340     *)
2341       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2342       ;;
2343     esac |
2344     sort
2345 )
2346     echo
2347
2348     $as_echo "## ----------------- ##
2349 ## Output variables. ##
2350 ## ----------------- ##"
2351     echo
2352     for ac_var in $ac_subst_vars
2353     do
2354       eval ac_val=\$$ac_var
2355       case $ac_val in
2356       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2357       esac
2358       $as_echo "$ac_var='\''$ac_val'\''"
2359     done | sort
2360     echo
2361
2362     if test -n "$ac_subst_files"; then
2363       $as_echo "## ------------------- ##
2364 ## File substitutions. ##
2365 ## ------------------- ##"
2366       echo
2367       for ac_var in $ac_subst_files
2368       do
2369         eval ac_val=\$$ac_var
2370         case $ac_val in
2371         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2372         esac
2373         $as_echo "$ac_var='\''$ac_val'\''"
2374       done | sort
2375       echo
2376     fi
2377
2378     if test -s confdefs.h; then
2379       $as_echo "## ----------- ##
2380 ## confdefs.h. ##
2381 ## ----------- ##"
2382       echo
2383       cat confdefs.h
2384       echo
2385     fi
2386     test "$ac_signal" != 0 &&
2387       $as_echo "$as_me: caught signal $ac_signal"
2388     $as_echo "$as_me: exit $exit_status"
2389   } >&5
2390   rm -f core *.core core.conftest.* &&
2391     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2392     exit $exit_status
2393 ' 0
2394 for ac_signal in 1 2 13 15; do
2395   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2396 done
2397 ac_signal=0
2398
2399 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2400 rm -f -r conftest* confdefs.h
2401
2402 $as_echo "/* confdefs.h */" > confdefs.h
2403
2404 # Predefined preprocessor variables.
2405
2406 cat >>confdefs.h <<_ACEOF
2407 #define PACKAGE_NAME "$PACKAGE_NAME"
2408 _ACEOF
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_STRING "$PACKAGE_STRING"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_URL "$PACKAGE_URL"
2428 _ACEOF
2429
2430
2431 # Let the site file select an alternate cache file if it wants to.
2432 # Prefer an explicitly selected file to automatically selected ones.
2433 ac_site_file1=NONE
2434 ac_site_file2=NONE
2435 if test -n "$CONFIG_SITE"; then
2436   # We do not want a PATH search for config.site.
2437   case $CONFIG_SITE in #((
2438     -*)  ac_site_file1=./$CONFIG_SITE;;
2439     */*) ac_site_file1=$CONFIG_SITE;;
2440     *)   ac_site_file1=./$CONFIG_SITE;;
2441   esac
2442 elif test "x$prefix" != xNONE; then
2443   ac_site_file1=$prefix/share/config.site
2444   ac_site_file2=$prefix/etc/config.site
2445 else
2446   ac_site_file1=$ac_default_prefix/share/config.site
2447   ac_site_file2=$ac_default_prefix/etc/config.site
2448 fi
2449 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2450 do
2451   test "x$ac_site_file" = xNONE && continue
2452   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2453     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2454 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2455     sed 's/^/| /' "$ac_site_file" >&5
2456     . "$ac_site_file" \
2457       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2459 as_fn_error $? "failed to load site script $ac_site_file
2460 See \`config.log' for more details" "$LINENO" 5; }
2461   fi
2462 done
2463
2464 if test -r "$cache_file"; then
2465   # Some versions of bash will fail to source /dev/null (special files
2466   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2467   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2468     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2469 $as_echo "$as_me: loading cache $cache_file" >&6;}
2470     case $cache_file in
2471       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2472       *)                      . "./$cache_file";;
2473     esac
2474   fi
2475 else
2476   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2477 $as_echo "$as_me: creating cache $cache_file" >&6;}
2478   >$cache_file
2479 fi
2480
2481 # Check that the precious variables saved in the cache have kept the same
2482 # value.
2483 ac_cache_corrupted=false
2484 for ac_var in $ac_precious_vars; do
2485   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2486   eval ac_new_set=\$ac_env_${ac_var}_set
2487   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2488   eval ac_new_val=\$ac_env_${ac_var}_value
2489   case $ac_old_set,$ac_new_set in
2490     set,)
2491       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2492 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2493       ac_cache_corrupted=: ;;
2494     ,set)
2495       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2497       ac_cache_corrupted=: ;;
2498     ,);;
2499     *)
2500       if test "x$ac_old_val" != "x$ac_new_val"; then
2501         # differences in whitespace do not lead to failure.
2502         ac_old_val_w=`echo x $ac_old_val`
2503         ac_new_val_w=`echo x $ac_new_val`
2504         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2505           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2506 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2507           ac_cache_corrupted=:
2508         else
2509           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2510 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2511           eval $ac_var=\$ac_old_val
2512         fi
2513         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2514 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2515         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2516 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2517       fi;;
2518   esac
2519   # Pass precious variables to config.status.
2520   if test "$ac_new_set" = set; then
2521     case $ac_new_val in
2522     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2523     *) ac_arg=$ac_var=$ac_new_val ;;
2524     esac
2525     case " $ac_configure_args " in
2526       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2527       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2528     esac
2529   fi
2530 done
2531 if $ac_cache_corrupted; then
2532   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2535 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2536   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2537 fi
2538 ## -------------------- ##
2539 ## Main body of script. ##
2540 ## -------------------- ##
2541
2542 ac_ext=c
2543 ac_cpp='$CPP $CPPFLAGS'
2544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2547
2548
2549 ac_config_headers="$ac_config_headers fficonfig.h"
2550
2551
2552 ac_aux_dir=
2553 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2554   if test -f "$ac_dir/install-sh"; then
2555     ac_aux_dir=$ac_dir
2556     ac_install_sh="$ac_aux_dir/install-sh -c"
2557     break
2558   elif test -f "$ac_dir/install.sh"; then
2559     ac_aux_dir=$ac_dir
2560     ac_install_sh="$ac_aux_dir/install.sh -c"
2561     break
2562   elif test -f "$ac_dir/shtool"; then
2563     ac_aux_dir=$ac_dir
2564     ac_install_sh="$ac_aux_dir/shtool install -c"
2565     break
2566   fi
2567 done
2568 if test -z "$ac_aux_dir"; then
2569   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2570 fi
2571
2572 # These three variables are undocumented and unsupported,
2573 # and are intended to be withdrawn in a future Autoconf release.
2574 # They can cause serious problems if a builder's source tree is in a directory
2575 # whose full name contains unusual characters.
2576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2578 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2579
2580
2581 # Make sure we can run config.sub.
2582 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2583   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2584
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2586 $as_echo_n "checking build system type... " >&6; }
2587 if ${ac_cv_build+:} false; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   ac_build_alias=$build_alias
2591 test "x$ac_build_alias" = x &&
2592   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2593 test "x$ac_build_alias" = x &&
2594   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2595 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2596   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2597
2598 fi
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2600 $as_echo "$ac_cv_build" >&6; }
2601 case $ac_cv_build in
2602 *-*-*) ;;
2603 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2604 esac
2605 build=$ac_cv_build
2606 ac_save_IFS=$IFS; IFS='-'
2607 set x $ac_cv_build
2608 shift
2609 build_cpu=$1
2610 build_vendor=$2
2611 shift; shift
2612 # Remember, the first character of IFS is used to create $*,
2613 # except with old shells:
2614 build_os=$*
2615 IFS=$ac_save_IFS
2616 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2617
2618
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2620 $as_echo_n "checking host system type... " >&6; }
2621 if ${ac_cv_host+:} false; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test "x$host_alias" = x; then
2625   ac_cv_host=$ac_cv_build
2626 else
2627   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2628     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2629 fi
2630
2631 fi
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2633 $as_echo "$ac_cv_host" >&6; }
2634 case $ac_cv_host in
2635 *-*-*) ;;
2636 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2637 esac
2638 host=$ac_cv_host
2639 ac_save_IFS=$IFS; IFS='-'
2640 set x $ac_cv_host
2641 shift
2642 host_cpu=$1
2643 host_vendor=$2
2644 shift; shift
2645 # Remember, the first character of IFS is used to create $*,
2646 # except with old shells:
2647 host_os=$*
2648 IFS=$ac_save_IFS
2649 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2650
2651
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2653 $as_echo_n "checking target system type... " >&6; }
2654 if ${ac_cv_target+:} false; then :
2655   $as_echo_n "(cached) " >&6
2656 else
2657   if test "x$target_alias" = x; then
2658   ac_cv_target=$ac_cv_host
2659 else
2660   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2661     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2662 fi
2663
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2666 $as_echo "$ac_cv_target" >&6; }
2667 case $ac_cv_target in
2668 *-*-*) ;;
2669 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2670 esac
2671 target=$ac_cv_target
2672 ac_save_IFS=$IFS; IFS='-'
2673 set x $ac_cv_target
2674 shift
2675 target_cpu=$1
2676 target_vendor=$2
2677 shift; shift
2678 # Remember, the first character of IFS is used to create $*,
2679 # except with old shells:
2680 target_os=$*
2681 IFS=$ac_save_IFS
2682 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2683
2684
2685 # The aliases save the names the user supplied, while $host etc.
2686 # will get canonicalized.
2687 test -n "$target_alias" &&
2688   test "$program_prefix$program_suffix$program_transform_name" = \
2689     NONENONEs,x,x, &&
2690   program_prefix=${target_alias}-
2691
2692 target_alias=${target_alias-$host_alias}
2693
2694 . ${srcdir}/configure.host
2695
2696
2697    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2698    if test "${ac_configure_args+set}" != "set" ; then
2699       ac_configure_args=
2700       for ac_arg in ${1+"$@"}; do
2701          ac_configure_args="$ac_configure_args '$ac_arg'"
2702       done
2703    fi
2704
2705 # expand $ac_aux_dir to an absolute path
2706 am_aux_dir=`cd $ac_aux_dir && pwd`
2707
2708
2709 ax_enable_builddir="."
2710 # Check whether --enable-builddir was given.
2711 if test "${enable_builddir+set}" = set; then :
2712   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2713 else
2714   ax_enable_builddir="auto"
2715 fi
2716
2717 if test ".$ac_srcdir_defaulted" != ".no" ; then
2718 if test ".$srcdir" = ".." ; then
2719   if test -f config.status ; then
2720     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2721 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2722   else
2723     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2724     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2725     test ".$TARGET" = "." && TARGET="$target"
2726     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2727     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2728       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2729       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2730       cd $ax_enable_builddir
2731       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2732         rm conftest.tmp
2733         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2734 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2735       else
2736         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2737       fi
2738       srcdir=`echo "$ax_enable_builddir" |
2739               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2740       # going to restart from subdirectory location
2741       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2742       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2743       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2744       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2745       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2746 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2747       case "$0" in # restart
2748        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2749        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2750       esac ; exit $?
2751     fi
2752   fi
2753 fi fi
2754 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2755 # Extract the first word of "gsed sed", so it can be a program name with args.
2756 set dummy gsed sed; ac_word=$2
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2758 $as_echo_n "checking for $ac_word... " >&6; }
2759 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2760   $as_echo_n "(cached) " >&6
2761 else
2762   case $ax_enable_builddir_sed in
2763   [\\/]* | ?:[\\/]*)
2764   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2765   ;;
2766   *)
2767   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770   IFS=$as_save_IFS
2771   test -z "$as_dir" && as_dir=.
2772     for ac_exec_ext in '' $ac_executable_extensions; do
2773   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2774     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776     break 2
2777   fi
2778 done
2779   done
2780 IFS=$as_save_IFS
2781
2782   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2783   ;;
2784 esac
2785 fi
2786 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2787 if test -n "$ax_enable_builddir_sed"; then
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2789 $as_echo "$ax_enable_builddir_sed" >&6; }
2790 else
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2793 fi
2794
2795
2796 ax_enable_builddir_auxdir="$am_aux_dir"
2797 ac_config_commands="$ac_config_commands buildir"
2798
2799
2800 am__api_version='1.12'
2801
2802 # Find a good install program.  We prefer a C program (faster),
2803 # so one script is as good as another.  But avoid the broken or
2804 # incompatible versions:
2805 # SysV /etc/install, /usr/sbin/install
2806 # SunOS /usr/etc/install
2807 # IRIX /sbin/install
2808 # AIX /bin/install
2809 # AmigaOS /C/install, which installs bootblocks on floppy discs
2810 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2811 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2812 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2813 # OS/2's system install, which has a completely different semantic
2814 # ./install, which can be erroneously created by make from ./install.sh.
2815 # Reject install programs that cannot install multiple files.
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2817 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2818 if test -z "$INSTALL"; then
2819 if ${ac_cv_path_install+:} false; then :
2820   $as_echo_n "(cached) " >&6
2821 else
2822   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     # Account for people who put trailing slashes in PATH elements.
2828 case $as_dir/ in #((
2829   ./ | .// | /[cC]/* | \
2830   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2831   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832   /usr/ucb/* ) ;;
2833   *)
2834     # OSF1 and SCO ODT 3.0 have their own names for install.
2835     # Don't use installbsd from OSF since it installs stuff as root
2836     # by default.
2837     for ac_prog in ginstall scoinst install; do
2838       for ac_exec_ext in '' $ac_executable_extensions; do
2839         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2840           if test $ac_prog = install &&
2841             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2842             # AIX install.  It has an incompatible calling convention.
2843             :
2844           elif test $ac_prog = install &&
2845             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2846             # program-specific install script used by HP pwplus--don't use.
2847             :
2848           else
2849             rm -rf conftest.one conftest.two conftest.dir
2850             echo one > conftest.one
2851             echo two > conftest.two
2852             mkdir conftest.dir
2853             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2854               test -s conftest.one && test -s conftest.two &&
2855               test -s conftest.dir/conftest.one &&
2856               test -s conftest.dir/conftest.two
2857             then
2858               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2859               break 3
2860             fi
2861           fi
2862         fi
2863       done
2864     done
2865     ;;
2866 esac
2867
2868   done
2869 IFS=$as_save_IFS
2870
2871 rm -rf conftest.one conftest.two conftest.dir
2872
2873 fi
2874   if test "${ac_cv_path_install+set}" = set; then
2875     INSTALL=$ac_cv_path_install
2876   else
2877     # As a last resort, use the slow shell script.  Don't cache a
2878     # value for INSTALL within a source directory, because that will
2879     # break other packages using the cache if that directory is
2880     # removed, or if the value is a relative name.
2881     INSTALL=$ac_install_sh
2882   fi
2883 fi
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2885 $as_echo "$INSTALL" >&6; }
2886
2887 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2888 # It thinks the first close brace ends the variable substitution.
2889 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2890
2891 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2892
2893 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2896 $as_echo_n "checking whether build environment is sane... " >&6; }
2897 # Reject unsafe characters in $srcdir or the absolute working directory
2898 # name.  Accept space and tab only in the latter.
2899 am_lf='
2900 '
2901 case `pwd` in
2902   *[\\\"\#\$\&\'\`$am_lf]*)
2903     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2904 esac
2905 case $srcdir in
2906   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2907     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2908 esac
2909
2910 # Do 'set' in a subshell so we don't clobber the current shell's
2911 # arguments.  Must try -L first in case configure is actually a
2912 # symlink; some systems play weird games with the mod time of symlinks
2913 # (eg FreeBSD returns the mod time of the symlink's containing
2914 # directory).
2915 if (
2916    am_has_slept=no
2917    for am_try in 1 2; do
2918      echo "timestamp, slept: $am_has_slept" > conftest.file
2919      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2920      if test "$*" = "X"; then
2921         # -L didn't work.
2922         set X `ls -t "$srcdir/configure" conftest.file`
2923      fi
2924      if test "$*" != "X $srcdir/configure conftest.file" \
2925         && test "$*" != "X conftest.file $srcdir/configure"; then
2926
2927         # If neither matched, then we have a broken ls.  This can happen
2928         # if, for instance, CONFIG_SHELL is bash and it inherits a
2929         # broken ls alias from the environment.  This has actually
2930         # happened.  Such a system could not be considered "sane".
2931         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2932   alias in your environment" "$LINENO" 5
2933      fi
2934      if test "$2" = conftest.file || test $am_try -eq 2; then
2935        break
2936      fi
2937      # Just in case.
2938      sleep 1
2939      am_has_slept=yes
2940    done
2941    test "$2" = conftest.file
2942    )
2943 then
2944    # Ok.
2945    :
2946 else
2947    as_fn_error $? "newly created file is older than distributed files!
2948 Check your system clock" "$LINENO" 5
2949 fi
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951 $as_echo "yes" >&6; }
2952 # If we didn't sleep, we still need to ensure time stamps of config.status and
2953 # generated files are strictly newer.
2954 am_sleep_pid=
2955 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2956   ( sleep 1 ) &
2957   am_sleep_pid=$!
2958 fi
2959
2960 rm -f conftest.file
2961
2962 test "$program_prefix" != NONE &&
2963   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2964 # Use a double $ so make ignores it.
2965 test "$program_suffix" != NONE &&
2966   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2967 # Double any \ or $.
2968 # By default was `s,x,x', remove it if useless.
2969 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2970 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2971
2972 if test x"${MISSING+set}" != xset; then
2973   case $am_aux_dir in
2974   *\ * | *\     *)
2975     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2976   *)
2977     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2978   esac
2979 fi
2980 # Use eval to expand $SHELL
2981 if eval "$MISSING --run true"; then
2982   am_missing_run="$MISSING --run "
2983 else
2984   am_missing_run=
2985   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2986 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2987 fi
2988
2989 if test x"${install_sh}" != xset; then
2990   case $am_aux_dir in
2991   *\ * | *\     *)
2992     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2993   *)
2994     install_sh="\${SHELL} $am_aux_dir/install-sh"
2995   esac
2996 fi
2997
2998 # Installed binaries are usually stripped using 'strip' when the user
2999 # run "make install-strip".  However 'strip' might not be the right
3000 # tool to use in cross-compilation environments, therefore Automake
3001 # will honor the 'STRIP' environment variable to overrule this program.
3002 if test "$cross_compiling" != no; then
3003   if test -n "$ac_tool_prefix"; then
3004   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3005 set dummy ${ac_tool_prefix}strip; ac_word=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if ${ac_cv_prog_STRIP+:} false; then :
3009   $as_echo_n "(cached) " >&6
3010 else
3011   if test -n "$STRIP"; then
3012   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3013 else
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017   IFS=$as_save_IFS
3018   test -z "$as_dir" && as_dir=.
3019     for ac_exec_ext in '' $ac_executable_extensions; do
3020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3021     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3023     break 2
3024   fi
3025 done
3026   done
3027 IFS=$as_save_IFS
3028
3029 fi
3030 fi
3031 STRIP=$ac_cv_prog_STRIP
3032 if test -n "$STRIP"; then
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3034 $as_echo "$STRIP" >&6; }
3035 else
3036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3038 fi
3039
3040
3041 fi
3042 if test -z "$ac_cv_prog_STRIP"; then
3043   ac_ct_STRIP=$STRIP
3044   # Extract the first word of "strip", so it can be a program name with args.
3045 set dummy strip; ac_word=$2
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047 $as_echo_n "checking for $ac_word... " >&6; }
3048 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3049   $as_echo_n "(cached) " >&6
3050 else
3051   if test -n "$ac_ct_STRIP"; then
3052   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
3057   IFS=$as_save_IFS
3058   test -z "$as_dir" && as_dir=.
3059     for ac_exec_ext in '' $ac_executable_extensions; do
3060   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061     ac_cv_prog_ac_ct_STRIP="strip"
3062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063     break 2
3064   fi
3065 done
3066   done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3072 if test -n "$ac_ct_STRIP"; then
3073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3074 $as_echo "$ac_ct_STRIP" >&6; }
3075 else
3076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080   if test "x$ac_ct_STRIP" = x; then
3081     STRIP=":"
3082   else
3083     case $cross_compiling:$ac_tool_warned in
3084 yes:)
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3087 ac_tool_warned=yes ;;
3088 esac
3089     STRIP=$ac_ct_STRIP
3090   fi
3091 else
3092   STRIP="$ac_cv_prog_STRIP"
3093 fi
3094
3095 fi
3096 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3097
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3099 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3100 if test -z "$MKDIR_P"; then
3101   if ${ac_cv_path_mkdir+:} false; then :
3102   $as_echo_n "(cached) " >&6
3103 else
3104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109     for ac_prog in mkdir gmkdir; do
3110          for ac_exec_ext in '' $ac_executable_extensions; do
3111            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3112            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3113              'mkdir (GNU coreutils) '* | \
3114              'mkdir (coreutils) '* | \
3115              'mkdir (fileutils) '4.1*)
3116                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3117                break 3;;
3118            esac
3119          done
3120        done
3121   done
3122 IFS=$as_save_IFS
3123
3124 fi
3125
3126   test -d ./--version && rmdir ./--version
3127   if test "${ac_cv_path_mkdir+set}" = set; then
3128     MKDIR_P="$ac_cv_path_mkdir -p"
3129   else
3130     # As a last resort, use the slow shell script.  Don't cache a
3131     # value for MKDIR_P within a source directory, because that will
3132     # break other packages using the cache if that directory is
3133     # removed, or if the value is a relative name.
3134     MKDIR_P="$ac_install_sh -d"
3135   fi
3136 fi
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3138 $as_echo "$MKDIR_P" >&6; }
3139
3140 for ac_prog in gawk mawk nawk awk
3141 do
3142   # Extract the first word of "$ac_prog", so it can be a program name with args.
3143 set dummy $ac_prog; ac_word=$2
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; }
3146 if ${ac_cv_prog_AWK+:} false; then :
3147   $as_echo_n "(cached) " >&6
3148 else
3149   if test -n "$AWK"; then
3150   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3151 else
3152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 for as_dir in $PATH
3154 do
3155   IFS=$as_save_IFS
3156   test -z "$as_dir" && as_dir=.
3157     for ac_exec_ext in '' $ac_executable_extensions; do
3158   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159     ac_cv_prog_AWK="$ac_prog"
3160     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3161     break 2
3162   fi
3163 done
3164   done
3165 IFS=$as_save_IFS
3166
3167 fi
3168 fi
3169 AWK=$ac_cv_prog_AWK
3170 if test -n "$AWK"; then
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3172 $as_echo "$AWK" >&6; }
3173 else
3174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3176 fi
3177
3178
3179   test -n "$AWK" && break
3180 done
3181
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3183 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3184 set x ${MAKE-make}
3185 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3186 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   cat >conftest.make <<\_ACEOF
3190 SHELL = /bin/sh
3191 all:
3192         @echo '@@@%%%=$(MAKE)=@@@%%%'
3193 _ACEOF
3194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3195 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3196   *@@@%%%=?*=@@@%%%*)
3197     eval ac_cv_prog_make_${ac_make}_set=yes;;
3198   *)
3199     eval ac_cv_prog_make_${ac_make}_set=no;;
3200 esac
3201 rm -f conftest.make
3202 fi
3203 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3205 $as_echo "yes" >&6; }
3206   SET_MAKE=
3207 else
3208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3210   SET_MAKE="MAKE=${MAKE-make}"
3211 fi
3212
3213 rm -rf .tst 2>/dev/null
3214 mkdir .tst 2>/dev/null
3215 if test -d .tst; then
3216   am__leading_dot=.
3217 else
3218   am__leading_dot=_
3219 fi
3220 rmdir .tst 2>/dev/null
3221
3222 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3223   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3224   # is not polluted with repeated "-I."
3225   am__isrc=' -I$(srcdir)'
3226   # test to see if srcdir already configured
3227   if test -f $srcdir/config.status; then
3228     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3229   fi
3230 fi
3231
3232 # test whether we have cygpath
3233 if test -z "$CYGPATH_W"; then
3234   if (cygpath --version) >/dev/null 2>/dev/null; then
3235     CYGPATH_W='cygpath -w'
3236   else
3237     CYGPATH_W=echo
3238   fi
3239 fi
3240
3241
3242 # Define the identity of the package.
3243  PACKAGE='libffi'
3244  VERSION='3.0.12-rc0'
3245
3246
3247 cat >>confdefs.h <<_ACEOF
3248 #define PACKAGE "$PACKAGE"
3249 _ACEOF
3250
3251
3252 cat >>confdefs.h <<_ACEOF
3253 #define VERSION "$VERSION"
3254 _ACEOF
3255
3256 # Some tools Automake needs.
3257
3258 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3259
3260
3261 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3262
3263
3264 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3265
3266
3267 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3268
3269
3270 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3271
3272 # For better backward compatibility.  To be removed once Automake 1.9.x
3273 # dies out for good.  For more background, see:
3274 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3275 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3276 mkdir_p='$(MKDIR_P)'
3277
3278 # We need awk for the "check" target.  The system "awk" is bad on
3279 # some platforms.
3280 # Always define AMTAR for backward compatibility.  Yes, it's still used
3281 # in the wild :-(  We should find a proper way to deprecate it ...
3282 AMTAR='$${TAR-tar}'
3283
3284 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3285
3286
3287
3288
3289
3290
3291 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3292 # We must force CC to /not/ be precious variables; otherwise
3293 # the wrong, non-multilib-adjusted value will be used in multilibs.
3294 # As a side effect, we have to subst CFLAGS ourselves.
3295 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3296 # defaults of its own if none are provided.
3297
3298
3299
3300 save_CFLAGS=$CFLAGS
3301 ac_ext=c
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3306 if test -n "$ac_tool_prefix"; then
3307   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3308 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3310 $as_echo_n "checking for $ac_word... " >&6; }
3311 if ${ac_cv_prog_CC+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   if test -n "$CC"; then
3315   ac_cv_prog_CC="$CC" # Let the user override the test.
3316 else
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3318 for as_dir in $PATH
3319 do
3320   IFS=$as_save_IFS
3321   test -z "$as_dir" && as_dir=.
3322     for ac_exec_ext in '' $ac_executable_extensions; do
3323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326     break 2
3327   fi
3328 done
3329   done
3330 IFS=$as_save_IFS
3331
3332 fi
3333 fi
3334 CC=$ac_cv_prog_CC
3335 if test -n "$CC"; then
3336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3337 $as_echo "$CC" >&6; }
3338 else
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3340 $as_echo "no" >&6; }
3341 fi
3342
3343
3344 fi
3345 if test -z "$ac_cv_prog_CC"; then
3346   ac_ct_CC=$CC
3347   # Extract the first word of "gcc", so it can be a program name with args.
3348 set dummy gcc; ac_word=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3352   $as_echo_n "(cached) " >&6
3353 else
3354   if test -n "$ac_ct_CC"; then
3355   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360   IFS=$as_save_IFS
3361   test -z "$as_dir" && as_dir=.
3362     for ac_exec_ext in '' $ac_executable_extensions; do
3363   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364     ac_cv_prog_ac_ct_CC="gcc"
3365     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366     break 2
3367   fi
3368 done
3369   done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3375 if test -n "$ac_ct_CC"; then
3376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3377 $as_echo "$ac_ct_CC" >&6; }
3378 else
3379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 fi
3382
3383   if test "x$ac_ct_CC" = x; then
3384     CC=""
3385   else
3386     case $cross_compiling:$ac_tool_warned in
3387 yes:)
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3390 ac_tool_warned=yes ;;
3391 esac
3392     CC=$ac_ct_CC
3393   fi
3394 else
3395   CC="$ac_cv_prog_CC"
3396 fi
3397
3398 if test -z "$CC"; then
3399           if test -n "$ac_tool_prefix"; then
3400     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}cc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_CC+:} false; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   if test -n "$CC"; then
3408   ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415     for ac_exec_ext in '' $ac_executable_extensions; do
3416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417     ac_cv_prog_CC="${ac_tool_prefix}cc"
3418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419     break 2
3420   fi
3421 done
3422   done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3431 else
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 fi
3435
3436
3437   fi
3438 fi
3439 if test -z "$CC"; then
3440   # Extract the first word of "cc", so it can be a program name with args.
3441 set dummy cc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_CC+:} false; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   if test -n "$CC"; then
3448   ac_cv_prog_CC="$CC" # Let the user override the test.
3449 else
3450   ac_prog_rejected=no
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 for as_dir in $PATH
3453 do
3454   IFS=$as_save_IFS
3455   test -z "$as_dir" && as_dir=.
3456     for ac_exec_ext in '' $ac_executable_extensions; do
3457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3458     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3459        ac_prog_rejected=yes
3460        continue
3461      fi
3462     ac_cv_prog_CC="cc"
3463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3464     break 2
3465   fi
3466 done
3467   done
3468 IFS=$as_save_IFS
3469
3470 if test $ac_prog_rejected = yes; then
3471   # We found a bogon in the path, so make sure we never use it.
3472   set dummy $ac_cv_prog_CC
3473   shift
3474   if test $# != 0; then
3475     # We chose a different compiler from the bogus one.
3476     # However, it has the same basename, so the bogon will be chosen
3477     # first if we set CC to just the basename; use the full file name.
3478     shift
3479     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3480   fi
3481 fi
3482 fi
3483 fi
3484 CC=$ac_cv_prog_CC
3485 if test -n "$CC"; then
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3487 $as_echo "$CC" >&6; }
3488 else
3489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 fi
3492
3493
3494 fi
3495 if test -z "$CC"; then
3496   if test -n "$ac_tool_prefix"; then
3497   for ac_prog in cl.exe
3498   do
3499     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3500 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502 $as_echo_n "checking for $ac_word... " >&6; }
3503 if ${ac_cv_prog_CC+:} false; then :
3504   $as_echo_n "(cached) " >&6
3505 else
3506   if test -n "$CC"; then
3507   ac_cv_prog_CC="$CC" # Let the user override the test.
3508 else
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 for as_dir in $PATH
3511 do
3512   IFS=$as_save_IFS
3513   test -z "$as_dir" && as_dir=.
3514     for ac_exec_ext in '' $ac_executable_extensions; do
3515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3516     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518     break 2
3519   fi
3520 done
3521   done
3522 IFS=$as_save_IFS
3523
3524 fi
3525 fi
3526 CC=$ac_cv_prog_CC
3527 if test -n "$CC"; then
3528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529 $as_echo "$CC" >&6; }
3530 else
3531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532 $as_echo "no" >&6; }
3533 fi
3534
3535
3536     test -n "$CC" && break
3537   done
3538 fi
3539 if test -z "$CC"; then
3540   ac_ct_CC=$CC
3541   for ac_prog in cl.exe
3542 do
3543   # Extract the first word of "$ac_prog", so it can be a program name with args.
3544 set dummy $ac_prog; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3548   $as_echo_n "(cached) " >&6
3549 else
3550   if test -n "$ac_ct_CC"; then
3551   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3555 do
3556   IFS=$as_save_IFS
3557   test -z "$as_dir" && as_dir=.
3558     for ac_exec_ext in '' $ac_executable_extensions; do
3559   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560     ac_cv_prog_ac_ct_CC="$ac_prog"
3561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562     break 2
3563   fi
3564 done
3565   done
3566 IFS=$as_save_IFS
3567
3568 fi
3569 fi
3570 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3571 if test -n "$ac_ct_CC"; then
3572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3573 $as_echo "$ac_ct_CC" >&6; }
3574 else
3575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579
3580   test -n "$ac_ct_CC" && break
3581 done
3582
3583   if test "x$ac_ct_CC" = x; then
3584     CC=""
3585   else
3586     case $cross_compiling:$ac_tool_warned in
3587 yes:)
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3591 esac
3592     CC=$ac_ct_CC
3593   fi
3594 fi
3595
3596 fi
3597
3598
3599 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $? "no acceptable C compiler found in \$PATH
3602 See \`config.log' for more details" "$LINENO" 5; }
3603
3604 # Provide some information about the compiler.
3605 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3606 set X $ac_compile
3607 ac_compiler=$2
3608 for ac_option in --version -v -V -qversion; do
3609   { { ac_try="$ac_compiler $ac_option >&5"
3610 case "(($ac_try" in
3611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612   *) ac_try_echo=$ac_try;;
3613 esac
3614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3617   ac_status=$?
3618   if test -s conftest.err; then
3619     sed '10a\
3620 ... rest of stderr output deleted ...
3621          10q' conftest.err >conftest.er1
3622     cat conftest.er1 >&5
3623   fi
3624   rm -f conftest.er1 conftest.err
3625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3626   test $ac_status = 0; }
3627 done
3628
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h.  */
3631
3632 int
3633 main ()
3634 {
3635
3636   ;
3637   return 0;
3638 }
3639 _ACEOF
3640 ac_clean_files_save=$ac_clean_files
3641 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3642 # Try to create an executable without -o first, disregard a.out.
3643 # It will help us diagnose broken compilers, and finding out an intuition
3644 # of exeext.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3646 $as_echo_n "checking whether the C compiler works... " >&6; }
3647 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3648
3649 # The possible output files:
3650 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3651
3652 ac_rmfiles=
3653 for ac_file in $ac_files
3654 do
3655   case $ac_file in
3656     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3657     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3658   esac
3659 done
3660 rm -f $ac_rmfiles
3661
3662 if { { ac_try="$ac_link_default"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669   (eval "$ac_link_default") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672   test $ac_status = 0; }; then :
3673   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3674 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3675 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3676 # so that the user can short-circuit this test for compilers unknown to
3677 # Autoconf.
3678 for ac_file in $ac_files ''
3679 do
3680   test -f "$ac_file" || continue
3681   case $ac_file in
3682     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3683         ;;
3684     [ab].out )
3685         # We found the default executable, but exeext='' is most
3686         # certainly right.
3687         break;;
3688     *.* )
3689         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3690         then :; else
3691            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692         fi
3693         # We set ac_cv_exeext here because the later test for it is not
3694         # safe: cross compilers may not add the suffix if given an `-o'
3695         # argument, so we may need to know it at that point already.
3696         # Even if this section looks crufty: it has the advantage of
3697         # actually working.
3698         break;;
3699     * )
3700         break;;
3701   esac
3702 done
3703 test "$ac_cv_exeext" = no && ac_cv_exeext=
3704
3705 else
3706   ac_file=''
3707 fi
3708 if test -z "$ac_file"; then :
3709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 $as_echo "$as_me: failed program was:" >&5
3712 sed 's/^/| /' conftest.$ac_ext >&5
3713
3714 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error 77 "C compiler cannot create executables
3717 See \`config.log' for more details" "$LINENO" 5; }
3718 else
3719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3720 $as_echo "yes" >&6; }
3721 fi
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3723 $as_echo_n "checking for C compiler default output file name... " >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3725 $as_echo "$ac_file" >&6; }
3726 ac_exeext=$ac_cv_exeext
3727
3728 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3731 $as_echo_n "checking for suffix of executables... " >&6; }
3732 if { { ac_try="$ac_link"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739   (eval "$ac_link") 2>&5
3740   ac_status=$?
3741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742   test $ac_status = 0; }; then :
3743   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3744 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 # `rm'.
3747 for ac_file in conftest.exe conftest conftest.*; do
3748   test -f "$ac_file" || continue
3749   case $ac_file in
3750     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3751     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3752           break;;
3753     * ) break;;
3754   esac
3755 done
3756 else
3757   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details" "$LINENO" 5; }
3761 fi
3762 rm -f conftest conftest$ac_cv_exeext
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3764 $as_echo "$ac_cv_exeext" >&6; }
3765
3766 rm -f conftest.$ac_ext
3767 EXEEXT=$ac_cv_exeext
3768 ac_exeext=$EXEEXT
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h.  */
3771 #include <stdio.h>
3772 int
3773 main ()
3774 {
3775 FILE *f = fopen ("conftest.out", "w");
3776  return ferror (f) || fclose (f) != 0;
3777
3778   ;
3779   return 0;
3780 }
3781 _ACEOF
3782 ac_clean_files="$ac_clean_files conftest.out"
3783 # Check that the compiler produces executables we can run.  If not, either
3784 # the compiler is broken, or we cross compile.
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3786 $as_echo_n "checking whether we are cross compiling... " >&6; }
3787 if test "$cross_compiling" != yes; then
3788   { { ac_try="$ac_link"
3789 case "(($ac_try" in
3790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3791   *) ac_try_echo=$ac_try;;
3792 esac
3793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3794 $as_echo "$ac_try_echo"; } >&5
3795   (eval "$ac_link") 2>&5
3796   ac_status=$?
3797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3798   test $ac_status = 0; }
3799   if { ac_try='./conftest$ac_cv_exeext'
3800   { { case "(($ac_try" in
3801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3802   *) ac_try_echo=$ac_try;;
3803 esac
3804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3805 $as_echo "$ac_try_echo"; } >&5
3806   (eval "$ac_try") 2>&5
3807   ac_status=$?
3808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3809   test $ac_status = 0; }; }; then
3810     cross_compiling=no
3811   else
3812     if test "$cross_compiling" = maybe; then
3813         cross_compiling=yes
3814     else
3815         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot run C compiled programs.
3818 If you meant to cross compile, use \`--host'.
3819 See \`config.log' for more details" "$LINENO" 5; }
3820     fi
3821   fi
3822 fi
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3824 $as_echo "$cross_compiling" >&6; }
3825
3826 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3827 ac_clean_files=$ac_clean_files_save
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3829 $as_echo_n "checking for suffix of object files... " >&6; }
3830 if ${ac_cv_objext+:} false; then :
3831   $as_echo_n "(cached) " >&6
3832 else
3833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h.  */
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.o conftest.obj
3845 if { { ac_try="$ac_compile"
3846 case "(($ac_try" in
3847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848   *) ac_try_echo=$ac_try;;
3849 esac
3850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3851 $as_echo "$ac_try_echo"; } >&5
3852   (eval "$ac_compile") 2>&5
3853   ac_status=$?
3854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3855   test $ac_status = 0; }; then :
3856   for ac_file in conftest.o conftest.obj conftest.*; do
3857   test -f "$ac_file" || continue;
3858   case $ac_file in
3859     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3860     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3861        break;;
3862   esac
3863 done
3864 else
3865   $as_echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error $? "cannot compute suffix of object files: cannot compile
3871 See \`config.log' for more details" "$LINENO" 5; }
3872 fi
3873 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3874 fi
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3876 $as_echo "$ac_cv_objext" >&6; }
3877 OBJEXT=$ac_cv_objext
3878 ac_objext=$OBJEXT
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3880 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3881 if ${ac_cv_c_compiler_gnu+:} false; then :
3882   $as_echo_n "(cached) " >&6
3883 else
3884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3885 /* end confdefs.h.  */
3886
3887 int
3888 main ()
3889 {
3890 #ifndef __GNUC__
3891        choke me
3892 #endif
3893
3894   ;
3895   return 0;
3896 }
3897 _ACEOF
3898 if ac_fn_c_try_compile "$LINENO"; then :
3899   ac_compiler_gnu=yes
3900 else
3901   ac_compiler_gnu=no
3902 fi
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3905
3906 fi
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3908 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3909 if test $ac_compiler_gnu = yes; then
3910   GCC=yes
3911 else
3912   GCC=
3913 fi
3914 ac_test_CFLAGS=${CFLAGS+set}
3915 ac_save_CFLAGS=$CFLAGS
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3917 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3918 if ${ac_cv_prog_cc_g+:} false; then :
3919   $as_echo_n "(cached) " >&6
3920 else
3921   ac_save_c_werror_flag=$ac_c_werror_flag
3922    ac_c_werror_flag=yes
3923    ac_cv_prog_cc_g=no
3924    CFLAGS="-g"
3925    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927
3928 int
3929 main ()
3930 {
3931
3932   ;
3933   return 0;
3934 }
3935 _ACEOF
3936 if ac_fn_c_try_compile "$LINENO"; then :
3937   ac_cv_prog_cc_g=yes
3938 else
3939   CFLAGS=""
3940       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h.  */
3942
3943 int
3944 main ()
3945 {
3946
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952
3953 else
3954   ac_c_werror_flag=$ac_save_c_werror_flag
3955          CFLAGS="-g"
3956          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h.  */
3958
3959 int
3960 main ()
3961 {
3962
3963   ;
3964   return 0;
3965 }
3966 _ACEOF
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968   ac_cv_prog_cc_g=yes
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 fi
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975    ac_c_werror_flag=$ac_save_c_werror_flag
3976 fi
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3978 $as_echo "$ac_cv_prog_cc_g" >&6; }
3979 if test "$ac_test_CFLAGS" = set; then
3980   CFLAGS=$ac_save_CFLAGS
3981 elif test $ac_cv_prog_cc_g = yes; then
3982   if test "$GCC" = yes; then
3983     CFLAGS="-g -O2"
3984   else
3985     CFLAGS="-g"
3986   fi
3987 else
3988   if test "$GCC" = yes; then
3989     CFLAGS="-O2"
3990   else
3991     CFLAGS=
3992   fi
3993 fi
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3995 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3996 if ${ac_cv_prog_cc_c89+:} false; then :
3997   $as_echo_n "(cached) " >&6
3998 else
3999   ac_cv_prog_cc_c89=no
4000 ac_save_CC=$CC
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003 #include <stdarg.h>
4004 #include <stdio.h>
4005 struct stat;
4006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4007 struct buf { int x; };
4008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 static char *e (p, i)
4010      char **p;
4011      int i;
4012 {
4013   return p[i];
4014 }
4015 static char *f (char * (*g) (char **, int), char **p, ...)
4016 {
4017   char *s;
4018   va_list v;
4019   va_start (v,p);
4020   s = g (p, va_arg (v,int));
4021   va_end (v);
4022   return s;
4023 }
4024
4025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4026    function prototypes and stuff, but not '\xHH' hex character constants.
4027    These don't provoke an error unfortunately, instead are silently treated
4028    as 'x'.  The following induces an error, until -std is added to get
4029    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4030    array size at least.  It's necessary to write '\x00'==0 to get something
4031    that's true only with -std.  */
4032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4033
4034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4035    inside strings and character constants.  */
4036 #define FOO(x) 'x'
4037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4038
4039 int test (int i, double x);
4040 struct s1 {int (*f) (int a);};
4041 struct s2 {int (*f) (double a);};
4042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4043 int argc;
4044 char **argv;
4045 int
4046 main ()
4047 {
4048 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4049   ;
4050   return 0;
4051 }
4052 _ACEOF
4053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4054         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4055 do
4056   CC="$ac_save_CC $ac_arg"
4057   if ac_fn_c_try_compile "$LINENO"; then :
4058   ac_cv_prog_cc_c89=$ac_arg
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext
4061   test "x$ac_cv_prog_cc_c89" != "xno" && break
4062 done
4063 rm -f conftest.$ac_ext
4064 CC=$ac_save_CC
4065
4066 fi
4067 # AC_CACHE_VAL
4068 case "x$ac_cv_prog_cc_c89" in
4069   x)
4070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4071 $as_echo "none needed" >&6; } ;;
4072   xno)
4073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4074 $as_echo "unsupported" >&6; } ;;
4075   *)
4076     CC="$CC $ac_cv_prog_cc_c89"
4077     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4078 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4079 esac
4080 if test "x$ac_cv_prog_cc_c89" != xno; then :
4081
4082 fi
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089 DEPDIR="${am__leading_dot}deps"
4090
4091 ac_config_commands="$ac_config_commands depfiles"
4092
4093
4094 am_make=${MAKE-make}
4095 cat > confinc << 'END'
4096 am__doit:
4097         @echo this is the am__doit target
4098 .PHONY: am__doit
4099 END
4100 # If we don't find an include directive, just comment out the code.
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4102 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4103 am__include="#"
4104 am__quote=
4105 _am_result=none
4106 # First try GNU make style include.
4107 echo "include confinc" > confmf
4108 # Ignore all kinds of additional output from 'make'.
4109 case `$am_make -s -f confmf 2> /dev/null` in #(
4110 *the\ am__doit\ target*)
4111   am__include=include
4112   am__quote=
4113   _am_result=GNU
4114   ;;
4115 esac
4116 # Now try BSD make style include.
4117 if test "$am__include" = "#"; then
4118    echo '.include "confinc"' > confmf
4119    case `$am_make -s -f confmf 2> /dev/null` in #(
4120    *the\ am__doit\ target*)
4121      am__include=.include
4122      am__quote="\""
4123      _am_result=BSD
4124      ;;
4125    esac
4126 fi
4127
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4130 $as_echo "$_am_result" >&6; }
4131 rm -f confinc confmf
4132
4133 # Check whether --enable-dependency-tracking was given.
4134 if test "${enable_dependency_tracking+set}" = set; then :
4135   enableval=$enable_dependency_tracking;
4136 fi
4137
4138 if test "x$enable_dependency_tracking" != xno; then
4139   am_depcomp="$ac_aux_dir/depcomp"
4140   AMDEPBACKSLASH='\'
4141   am__nodep='_no'
4142 fi
4143  if test "x$enable_dependency_tracking" != xno; then
4144   AMDEP_TRUE=
4145   AMDEP_FALSE='#'
4146 else
4147   AMDEP_TRUE='#'
4148   AMDEP_FALSE=
4149 fi
4150
4151
4152
4153 depcc="$CC"   am_compiler_list=
4154
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4156 $as_echo_n "checking dependency style of $depcc... " >&6; }
4157 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4158   $as_echo_n "(cached) " >&6
4159 else
4160   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4161   # We make a subdir and do the tests there.  Otherwise we can end up
4162   # making bogus files that we don't know about and never remove.  For
4163   # instance it was reported that on HP-UX the gcc test will end up
4164   # making a dummy file named 'D' -- because '-MD' means "put the output
4165   # in D".
4166   rm -rf conftest.dir
4167   mkdir conftest.dir
4168   # Copy depcomp to subdir because otherwise we won't find it if we're
4169   # using a relative directory.
4170   cp "$am_depcomp" conftest.dir
4171   cd conftest.dir
4172   # We will build objects and dependencies in a subdirectory because
4173   # it helps to detect inapplicable dependency modes.  For instance
4174   # both Tru64's cc and ICC support -MD to output dependencies as a
4175   # side effect of compilation, but ICC will put the dependencies in
4176   # the current directory while Tru64 will put them in the object
4177   # directory.
4178   mkdir sub
4179
4180   am_cv_CC_dependencies_compiler_type=none
4181   if test "$am_compiler_list" = ""; then
4182      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4183   fi
4184   am__universal=false
4185   case " $depcc " in #(
4186      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4187      esac
4188
4189   for depmode in $am_compiler_list; do
4190     # Setup a source with many dependencies, because some compilers
4191     # like to wrap large dependency lists on column 80 (with \), and
4192     # we should not choose a depcomp mode which is confused by this.
4193     #
4194     # We need to recreate these files for each test, as the compiler may
4195     # overwrite some of them when testing with obscure command lines.
4196     # This happens at least with the AIX C compiler.
4197     : > sub/conftest.c
4198     for i in 1 2 3 4 5 6; do
4199       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4200       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4201       # Solaris 10 /bin/sh.
4202       echo '/* dummy */' > sub/conftst$i.h
4203     done
4204     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4205
4206     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4207     # mode.  It turns out that the SunPro C++ compiler does not properly
4208     # handle '-M -o', and we need to detect this.  Also, some Intel
4209     # versions had trouble with output in subdirs.
4210     am__obj=sub/conftest.${OBJEXT-o}
4211     am__minus_obj="-o $am__obj"
4212     case $depmode in
4213     gcc)
4214       # This depmode causes a compiler race in universal mode.
4215       test "$am__universal" = false || continue
4216       ;;
4217     nosideeffect)
4218       # After this tag, mechanisms are not by side-effect, so they'll
4219       # only be used when explicitly requested.
4220       if test "x$enable_dependency_tracking" = xyes; then
4221         continue
4222       else
4223         break
4224       fi
4225       ;;
4226     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4227       # This compiler won't grok '-c -o', but also, the minuso test has
4228       # not run yet.  These depmodes are late enough in the game, and
4229       # so weak that their functioning should not be impacted.
4230       am__obj=conftest.${OBJEXT-o}
4231       am__minus_obj=
4232       ;;
4233     none) break ;;
4234     esac
4235     if depmode=$depmode \
4236        source=sub/conftest.c object=$am__obj \
4237        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4238        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4239          >/dev/null 2>conftest.err &&
4240        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4241        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4242        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4243        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4244       # icc doesn't choke on unknown options, it will just issue warnings
4245       # or remarks (even with -Werror).  So we grep stderr for any message
4246       # that says an option was ignored or not supported.
4247       # When given -MP, icc 7.0 and 7.1 complain thusly:
4248       #   icc: Command line warning: ignoring option '-M'; no argument required
4249       # The diagnosis changed in icc 8.0:
4250       #   icc: Command line remark: option '-MP' not supported
4251       if (grep 'ignoring option' conftest.err ||
4252           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4253         am_cv_CC_dependencies_compiler_type=$depmode
4254         break
4255       fi
4256     fi
4257   done
4258
4259   cd ..
4260   rm -rf conftest.dir
4261 else
4262   am_cv_CC_dependencies_compiler_type=none
4263 fi
4264
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4267 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4268 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4269
4270  if
4271   test "x$enable_dependency_tracking" != xno \
4272   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4273   am__fastdepCC_TRUE=
4274   am__fastdepCC_FALSE='#'
4275 else
4276   am__fastdepCC_TRUE='#'
4277   am__fastdepCC_FALSE=
4278 fi
4279
4280
4281 CFLAGS=$save_CFLAGS
4282
4283
4284
4285
4286
4287 # By default we simply use the C compiler to build assembly code.
4288
4289 test "${CCAS+set}" = set || CCAS=$CC
4290 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4291
4292
4293
4294 depcc="$CCAS"   am_compiler_list=
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4297 $as_echo_n "checking dependency style of $depcc... " >&6; }
4298 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4302   # We make a subdir and do the tests there.  Otherwise we can end up
4303   # making bogus files that we don't know about and never remove.  For
4304   # instance it was reported that on HP-UX the gcc test will end up
4305   # making a dummy file named 'D' -- because '-MD' means "put the output
4306   # in D".
4307   rm -rf conftest.dir
4308   mkdir conftest.dir
4309   # Copy depcomp to subdir because otherwise we won't find it if we're
4310   # using a relative directory.
4311   cp "$am_depcomp" conftest.dir
4312   cd conftest.dir
4313   # We will build objects and dependencies in a subdirectory because
4314   # it helps to detect inapplicable dependency modes.  For instance
4315   # both Tru64's cc and ICC support -MD to output dependencies as a
4316   # side effect of compilation, but ICC will put the dependencies in
4317   # the current directory while Tru64 will put them in the object
4318   # directory.
4319   mkdir sub
4320
4321   am_cv_CCAS_dependencies_compiler_type=none
4322   if test "$am_compiler_list" = ""; then
4323      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4324   fi
4325   am__universal=false
4326
4327
4328   for depmode in $am_compiler_list; do
4329     # Setup a source with many dependencies, because some compilers
4330     # like to wrap large dependency lists on column 80 (with \), and
4331     # we should not choose a depcomp mode which is confused by this.
4332     #
4333     # We need to recreate these files for each test, as the compiler may
4334     # overwrite some of them when testing with obscure command lines.
4335     # This happens at least with the AIX C compiler.
4336     : > sub/conftest.c
4337     for i in 1 2 3 4 5 6; do
4338       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4339       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4340       # Solaris 10 /bin/sh.
4341       echo '/* dummy */' > sub/conftst$i.h
4342     done
4343     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4344
4345     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4346     # mode.  It turns out that the SunPro C++ compiler does not properly
4347     # handle '-M -o', and we need to detect this.  Also, some Intel
4348     # versions had trouble with output in subdirs.
4349     am__obj=sub/conftest.${OBJEXT-o}
4350     am__minus_obj="-o $am__obj"
4351     case $depmode in
4352     gcc)
4353       # This depmode causes a compiler race in universal mode.
4354       test "$am__universal" = false || continue
4355       ;;
4356     nosideeffect)
4357       # After this tag, mechanisms are not by side-effect, so they'll
4358       # only be used when explicitly requested.
4359       if test "x$enable_dependency_tracking" = xyes; then
4360         continue
4361       else
4362         break
4363       fi
4364       ;;
4365     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4366       # This compiler won't grok '-c -o', but also, the minuso test has
4367       # not run yet.  These depmodes are late enough in the game, and
4368       # so weak that their functioning should not be impacted.
4369       am__obj=conftest.${OBJEXT-o}
4370       am__minus_obj=
4371       ;;
4372     none) break ;;
4373     esac
4374     if depmode=$depmode \
4375        source=sub/conftest.c object=$am__obj \
4376        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4377        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4378          >/dev/null 2>conftest.err &&
4379        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4380        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4381        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4382        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4383       # icc doesn't choke on unknown options, it will just issue warnings
4384       # or remarks (even with -Werror).  So we grep stderr for any message
4385       # that says an option was ignored or not supported.
4386       # When given -MP, icc 7.0 and 7.1 complain thusly:
4387       #   icc: Command line warning: ignoring option '-M'; no argument required
4388       # The diagnosis changed in icc 8.0:
4389       #   icc: Command line remark: option '-MP' not supported
4390       if (grep 'ignoring option' conftest.err ||
4391           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4392         am_cv_CCAS_dependencies_compiler_type=$depmode
4393         break
4394       fi
4395     fi
4396   done
4397
4398   cd ..
4399   rm -rf conftest.dir
4400 else
4401   am_cv_CCAS_dependencies_compiler_type=none
4402 fi
4403
4404 fi
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4406 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4407 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4408
4409  if
4410   test "x$enable_dependency_tracking" != xno \
4411   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4412   am__fastdepCCAS_TRUE=
4413   am__fastdepCCAS_FALSE='#'
4414 else
4415   am__fastdepCCAS_TRUE='#'
4416   am__fastdepCCAS_FALSE=
4417 fi
4418
4419
4420 if test "x$CC" != xcc; then
4421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4422 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4423 else
4424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4425 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4426 fi
4427 set dummy $CC; ac_cc=`$as_echo "$2" |
4428                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4429 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4430   $as_echo_n "(cached) " >&6
4431 else
4432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h.  */
4434
4435 int
4436 main ()
4437 {
4438
4439   ;
4440   return 0;
4441 }
4442 _ACEOF
4443 # Make sure it works both with $CC and with simple cc.
4444 # We do the test twice because some compilers refuse to overwrite an
4445 # existing .o file with -o, though they will create one.
4446 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4447 rm -f conftest2.*
4448 if { { case "(($ac_try" in
4449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450   *) ac_try_echo=$ac_try;;
4451 esac
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454   (eval "$ac_try") 2>&5
4455   ac_status=$?
4456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457   test $ac_status = 0; } &&
4458    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460   *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4463 $as_echo "$ac_try_echo"; } >&5
4464   (eval "$ac_try") 2>&5
4465   ac_status=$?
4466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4467   test $ac_status = 0; };
4468 then
4469   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4470   if test "x$CC" != xcc; then
4471     # Test first that cc exists at all.
4472     if { ac_try='cc -c conftest.$ac_ext >&5'
4473   { { case "(($ac_try" in
4474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475   *) ac_try_echo=$ac_try;;
4476 esac
4477 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4478 $as_echo "$ac_try_echo"; } >&5
4479   (eval "$ac_try") 2>&5
4480   ac_status=$?
4481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4482   test $ac_status = 0; }; }; then
4483       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4484       rm -f conftest2.*
4485       if { { case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4490 $as_echo "$ac_try_echo"; } >&5
4491   (eval "$ac_try") 2>&5
4492   ac_status=$?
4493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4494   test $ac_status = 0; } &&
4495          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497   *) ac_try_echo=$ac_try;;
4498 esac
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501   (eval "$ac_try") 2>&5
4502   ac_status=$?
4503   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504   test $ac_status = 0; };
4505       then
4506         # cc works too.
4507         :
4508       else
4509         # cc exists but doesn't like -o.
4510         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4511       fi
4512     fi
4513   fi
4514 else
4515   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4516 fi
4517 rm -f core conftest*
4518
4519 fi
4520 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4522 $as_echo "yes" >&6; }
4523 else
4524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4525 $as_echo "no" >&6; }
4526
4527 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4528
4529 fi
4530
4531 # FIXME: we rely on the cache variable name because
4532 # there is no other way.
4533 set dummy $CC
4534 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4535 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4536 if test "$am_t" != yes; then
4537    # Losing compiler, so override with the script.
4538    # FIXME: It is wrong to rewrite CC.
4539    # But if we don't then we get into trouble of one sort or another.
4540    # A longer-term fix would be to have automake use am__CC in this case,
4541    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4542    CC="$am_aux_dir/compile $CC"
4543 fi
4544
4545
4546 case `pwd` in
4547   *\ * | *\     *)
4548     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4549 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4550 esac
4551
4552
4553
4554 macro_version='2.4.2'
4555 macro_revision='1.3337'
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569 ltmain="$ac_aux_dir/ltmain.sh"
4570
4571 # Backslashify metacharacters that are still active within
4572 # double-quoted strings.
4573 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4574
4575 # Same as above, but do not quote variable references.
4576 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4577
4578 # Sed substitution to delay expansion of an escaped shell variable in a
4579 # double_quote_subst'ed string.
4580 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4581
4582 # Sed substitution to delay expansion of an escaped single quote.
4583 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4584
4585 # Sed substitution to avoid accidental globbing in evaled expressions
4586 no_glob_subst='s/\*/\\\*/g'
4587
4588 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4589 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4590 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4593 $as_echo_n "checking how to print strings... " >&6; }
4594 # Test print first, because it will be a builtin if present.
4595 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4596    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4597   ECHO='print -r --'
4598 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4599   ECHO='printf %s\n'
4600 else
4601   # Use this function as a fallback that always works.
4602   func_fallback_echo ()
4603   {
4604     eval 'cat <<_LTECHO_EOF
4605 $1
4606 _LTECHO_EOF'
4607   }
4608   ECHO='func_fallback_echo'
4609 fi
4610
4611 # func_echo_all arg...
4612 # Invoke $ECHO with all args, space-separated.
4613 func_echo_all ()
4614 {
4615     $ECHO ""
4616 }
4617
4618 case "$ECHO" in
4619   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4620 $as_echo "printf" >&6; } ;;
4621   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4622 $as_echo "print -r" >&6; } ;;
4623   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4624 $as_echo "cat" >&6; } ;;
4625 esac
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4641 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4642 if ${ac_cv_path_SED+:} false; then :
4643   $as_echo_n "(cached) " >&6
4644 else
4645             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4646      for ac_i in 1 2 3 4 5 6 7; do
4647        ac_script="$ac_script$as_nl$ac_script"
4648      done
4649      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4650      { ac_script=; unset ac_script;}
4651      if test -z "$SED"; then
4652   ac_path_SED_found=false
4653   # Loop through the user's path and test for each of PROGNAME-LIST
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659     for ac_prog in sed gsed; do
4660     for ac_exec_ext in '' $ac_executable_extensions; do
4661       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4662       as_fn_executable_p "$ac_path_SED" || continue
4663 # Check for GNU ac_path_SED and select it if it is found.
4664   # Check for GNU $ac_path_SED
4665 case `"$ac_path_SED" --version 2>&1` in
4666 *GNU*)
4667   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4668 *)
4669   ac_count=0
4670   $as_echo_n 0123456789 >"conftest.in"
4671   while :
4672   do
4673     cat "conftest.in" "conftest.in" >"conftest.tmp"
4674     mv "conftest.tmp" "conftest.in"
4675     cp "conftest.in" "conftest.nl"
4676     $as_echo '' >> "conftest.nl"
4677     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4679     as_fn_arith $ac_count + 1 && ac_count=$as_val
4680     if test $ac_count -gt ${ac_path_SED_max-0}; then
4681       # Best one so far, save it but keep looking for a better one
4682       ac_cv_path_SED="$ac_path_SED"
4683       ac_path_SED_max=$ac_count
4684     fi
4685     # 10*(2^10) chars as input seems more than enough
4686     test $ac_count -gt 10 && break
4687   done
4688   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4689 esac
4690
4691       $ac_path_SED_found && break 3
4692     done
4693   done
4694   done
4695 IFS=$as_save_IFS
4696   if test -z "$ac_cv_path_SED"; then
4697     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4698   fi
4699 else
4700   ac_cv_path_SED=$SED
4701 fi
4702
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4705 $as_echo "$ac_cv_path_SED" >&6; }
4706  SED="$ac_cv_path_SED"
4707   rm -f conftest.sed
4708
4709 test -z "$SED" && SED=sed
4710 Xsed="$SED -e 1s/^X//"
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4723 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4724 if ${ac_cv_path_GREP+:} false; then :
4725   $as_echo_n "(cached) " >&6
4726 else
4727   if test -z "$GREP"; then
4728   ac_path_GREP_found=false
4729   # Loop through the user's path and test for each of PROGNAME-LIST
4730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4731 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4732 do
4733   IFS=$as_save_IFS
4734   test -z "$as_dir" && as_dir=.
4735     for ac_prog in grep ggrep; do
4736     for ac_exec_ext in '' $ac_executable_extensions; do
4737       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4738       as_fn_executable_p "$ac_path_GREP" || continue
4739 # Check for GNU ac_path_GREP and select it if it is found.
4740   # Check for GNU $ac_path_GREP
4741 case `"$ac_path_GREP" --version 2>&1` in
4742 *GNU*)
4743   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4744 *)
4745   ac_count=0
4746   $as_echo_n 0123456789 >"conftest.in"
4747   while :
4748   do
4749     cat "conftest.in" "conftest.in" >"conftest.tmp"
4750     mv "conftest.tmp" "conftest.in"
4751     cp "conftest.in" "conftest.nl"
4752     $as_echo 'GREP' >> "conftest.nl"
4753     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4754     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4755     as_fn_arith $ac_count + 1 && ac_count=$as_val
4756     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4757       # Best one so far, save it but keep looking for a better one
4758       ac_cv_path_GREP="$ac_path_GREP"
4759       ac_path_GREP_max=$ac_count
4760     fi
4761     # 10*(2^10) chars as input seems more than enough
4762     test $ac_count -gt 10 && break
4763   done
4764   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4765 esac
4766
4767       $ac_path_GREP_found && break 3
4768     done
4769   done
4770   done
4771 IFS=$as_save_IFS
4772   if test -z "$ac_cv_path_GREP"; then
4773     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4774   fi
4775 else
4776   ac_cv_path_GREP=$GREP
4777 fi
4778
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4781 $as_echo "$ac_cv_path_GREP" >&6; }
4782  GREP="$ac_cv_path_GREP"
4783
4784
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4786 $as_echo_n "checking for egrep... " >&6; }
4787 if ${ac_cv_path_EGREP+:} false; then :
4788   $as_echo_n "(cached) " >&6
4789 else
4790   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4791    then ac_cv_path_EGREP="$GREP -E"
4792    else
4793      if test -z "$EGREP"; then
4794   ac_path_EGREP_found=false
4795   # Loop through the user's path and test for each of PROGNAME-LIST
4796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4797 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4798 do
4799   IFS=$as_save_IFS
4800   test -z "$as_dir" && as_dir=.
4801     for ac_prog in egrep; do
4802     for ac_exec_ext in '' $ac_executable_extensions; do
4803       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4804       as_fn_executable_p "$ac_path_EGREP" || continue
4805 # Check for GNU ac_path_EGREP and select it if it is found.
4806   # Check for GNU $ac_path_EGREP
4807 case `"$ac_path_EGREP" --version 2>&1` in
4808 *GNU*)
4809   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4810 *)
4811   ac_count=0
4812   $as_echo_n 0123456789 >"conftest.in"
4813   while :
4814   do
4815     cat "conftest.in" "conftest.in" >"conftest.tmp"
4816     mv "conftest.tmp" "conftest.in"
4817     cp "conftest.in" "conftest.nl"
4818     $as_echo 'EGREP' >> "conftest.nl"
4819     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4820     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4821     as_fn_arith $ac_count + 1 && ac_count=$as_val
4822     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4823       # Best one so far, save it but keep looking for a better one
4824       ac_cv_path_EGREP="$ac_path_EGREP"
4825       ac_path_EGREP_max=$ac_count
4826     fi
4827     # 10*(2^10) chars as input seems more than enough
4828     test $ac_count -gt 10 && break
4829   done
4830   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4831 esac
4832
4833       $ac_path_EGREP_found && break 3
4834     done
4835   done
4836   done
4837 IFS=$as_save_IFS
4838   if test -z "$ac_cv_path_EGREP"; then
4839     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4840   fi
4841 else
4842   ac_cv_path_EGREP=$EGREP
4843 fi
4844
4845    fi
4846 fi
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4848 $as_echo "$ac_cv_path_EGREP" >&6; }
4849  EGREP="$ac_cv_path_EGREP"
4850
4851
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4853 $as_echo_n "checking for fgrep... " >&6; }
4854 if ${ac_cv_path_FGREP+:} false; then :
4855   $as_echo_n "(cached) " >&6
4856 else
4857   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4858    then ac_cv_path_FGREP="$GREP -F"
4859    else
4860      if test -z "$FGREP"; then
4861   ac_path_FGREP_found=false
4862   # Loop through the user's path and test for each of PROGNAME-LIST
4863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4864 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4865 do
4866   IFS=$as_save_IFS
4867   test -z "$as_dir" && as_dir=.
4868     for ac_prog in fgrep; do
4869     for ac_exec_ext in '' $ac_executable_extensions; do
4870       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4871       as_fn_executable_p "$ac_path_FGREP" || continue
4872 # Check for GNU ac_path_FGREP and select it if it is found.
4873   # Check for GNU $ac_path_FGREP
4874 case `"$ac_path_FGREP" --version 2>&1` in
4875 *GNU*)
4876   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4877 *)
4878   ac_count=0
4879   $as_echo_n 0123456789 >"conftest.in"
4880   while :
4881   do
4882     cat "conftest.in" "conftest.in" >"conftest.tmp"
4883     mv "conftest.tmp" "conftest.in"
4884     cp "conftest.in" "conftest.nl"
4885     $as_echo 'FGREP' >> "conftest.nl"
4886     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4887     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4888     as_fn_arith $ac_count + 1 && ac_count=$as_val
4889     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4890       # Best one so far, save it but keep looking for a better one
4891       ac_cv_path_FGREP="$ac_path_FGREP"
4892       ac_path_FGREP_max=$ac_count
4893     fi
4894     # 10*(2^10) chars as input seems more than enough
4895     test $ac_count -gt 10 && break
4896   done
4897   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4898 esac
4899
4900       $ac_path_FGREP_found && break 3
4901     done
4902   done
4903   done
4904 IFS=$as_save_IFS
4905   if test -z "$ac_cv_path_FGREP"; then
4906     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4907   fi
4908 else
4909   ac_cv_path_FGREP=$FGREP
4910 fi
4911
4912    fi
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4915 $as_echo "$ac_cv_path_FGREP" >&6; }
4916  FGREP="$ac_cv_path_FGREP"
4917
4918
4919 test -z "$GREP" && GREP=grep
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939 # Check whether --with-gnu-ld was given.
4940 if test "${with_gnu_ld+set}" = set; then :
4941   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4942 else
4943   with_gnu_ld=no
4944 fi
4945
4946 ac_prog=ld
4947 if test "$GCC" = yes; then
4948   # Check if gcc -print-prog-name=ld gives a path.
4949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4950 $as_echo_n "checking for ld used by $CC... " >&6; }
4951   case $host in
4952   *-*-mingw*)
4953     # gcc leaves a trailing carriage return which upsets mingw
4954     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4955   *)
4956     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4957   esac
4958   case $ac_prog in
4959     # Accept absolute paths.
4960     [\\/]* | ?:[\\/]*)
4961       re_direlt='/[^/][^/]*/\.\./'
4962       # Canonicalize the pathname of ld
4963       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4964       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4965         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4966       done
4967       test -z "$LD" && LD="$ac_prog"
4968       ;;
4969   "")
4970     # If it fails, then pretend we aren't using GCC.
4971     ac_prog=ld
4972     ;;
4973   *)
4974     # If it is relative, then search for the first ld in PATH.
4975     with_gnu_ld=unknown
4976     ;;
4977   esac
4978 elif test "$with_gnu_ld" = yes; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4980 $as_echo_n "checking for GNU ld... " >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4983 $as_echo_n "checking for non-GNU ld... " >&6; }
4984 fi
4985 if ${lt_cv_path_LD+:} false; then :
4986   $as_echo_n "(cached) " >&6
4987 else
4988   if test -z "$LD"; then
4989   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4990   for ac_dir in $PATH; do
4991     IFS="$lt_save_ifs"
4992     test -z "$ac_dir" && ac_dir=.
4993     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4994       lt_cv_path_LD="$ac_dir/$ac_prog"
4995       # Check to see if the program is GNU ld.  I'd rather use --version,
4996       # but apparently some variants of GNU ld only accept -v.
4997       # Break only if it was the GNU/non-GNU ld that we prefer.
4998       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4999       *GNU* | *'with BFD'*)
5000         test "$with_gnu_ld" != no && break
5001         ;;
5002       *)
5003         test "$with_gnu_ld" != yes && break
5004         ;;
5005       esac
5006     fi
5007   done
5008   IFS="$lt_save_ifs"
5009 else
5010   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5011 fi
5012 fi
5013
5014 LD="$lt_cv_path_LD"
5015 if test -n "$LD"; then
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5017 $as_echo "$LD" >&6; }
5018 else
5019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5021 fi
5022 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5024 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5025 if ${lt_cv_prog_gnu_ld+:} false; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5029 case `$LD -v 2>&1 </dev/null` in
5030 *GNU* | *'with BFD'*)
5031   lt_cv_prog_gnu_ld=yes
5032   ;;
5033 *)
5034   lt_cv_prog_gnu_ld=no
5035   ;;
5036 esac
5037 fi
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5039 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5040 with_gnu_ld=$lt_cv_prog_gnu_ld
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5051 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5052 if ${lt_cv_path_NM+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   if test -n "$NM"; then
5056   # Let the user override the test.
5057   lt_cv_path_NM="$NM"
5058 else
5059   lt_nm_to_check="${ac_tool_prefix}nm"
5060   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5061     lt_nm_to_check="$lt_nm_to_check nm"
5062   fi
5063   for lt_tmp_nm in $lt_nm_to_check; do
5064     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5065     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5066       IFS="$lt_save_ifs"
5067       test -z "$ac_dir" && ac_dir=.
5068       tmp_nm="$ac_dir/$lt_tmp_nm"
5069       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5070         # Check to see if the nm accepts a BSD-compat flag.
5071         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5072         #   nm: unknown option "B" ignored
5073         # Tru64's nm complains that /dev/null is an invalid object file
5074         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5075         */dev/null* | *'Invalid file or object type'*)
5076           lt_cv_path_NM="$tmp_nm -B"
5077           break
5078           ;;
5079         *)
5080           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5081           */dev/null*)
5082             lt_cv_path_NM="$tmp_nm -p"
5083             break
5084             ;;
5085           *)
5086             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5087             continue # so that we can try to find one that supports BSD flags
5088             ;;
5089           esac
5090           ;;
5091         esac
5092       fi
5093     done
5094     IFS="$lt_save_ifs"
5095   done
5096   : ${lt_cv_path_NM=no}
5097 fi
5098 fi
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5100 $as_echo "$lt_cv_path_NM" >&6; }
5101 if test "$lt_cv_path_NM" != "no"; then
5102   NM="$lt_cv_path_NM"
5103 else
5104   # Didn't find any BSD compatible name lister, look for dumpbin.
5105   if test -n "$DUMPBIN"; then :
5106     # Let the user override the test.
5107   else
5108     if test -n "$ac_tool_prefix"; then
5109   for ac_prog in dumpbin "link -dump"
5110   do
5111     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_prog_DUMPBIN+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   if test -n "$DUMPBIN"; then
5119   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5120 else
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in $PATH
5123 do
5124   IFS=$as_save_IFS
5125   test -z "$as_dir" && as_dir=.
5126     for ac_exec_ext in '' $ac_executable_extensions; do
5127   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5128     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5129     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130     break 2
5131   fi
5132 done
5133   done
5134 IFS=$as_save_IFS
5135
5136 fi
5137 fi
5138 DUMPBIN=$ac_cv_prog_DUMPBIN
5139 if test -n "$DUMPBIN"; then
5140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5141 $as_echo "$DUMPBIN" >&6; }
5142 else
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5144 $as_echo "no" >&6; }
5145 fi
5146
5147
5148     test -n "$DUMPBIN" && break
5149   done
5150 fi
5151 if test -z "$DUMPBIN"; then
5152   ac_ct_DUMPBIN=$DUMPBIN
5153   for ac_prog in dumpbin "link -dump"
5154 do
5155   # Extract the first word of "$ac_prog", so it can be a program name with args.
5156 set dummy $ac_prog; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   if test -n "$ac_ct_DUMPBIN"; then
5163   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5164 else
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177   done
5178 IFS=$as_save_IFS
5179
5180 fi
5181 fi
5182 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5183 if test -n "$ac_ct_DUMPBIN"; then
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5185 $as_echo "$ac_ct_DUMPBIN" >&6; }
5186 else
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192   test -n "$ac_ct_DUMPBIN" && break
5193 done
5194
5195   if test "x$ac_ct_DUMPBIN" = x; then
5196     DUMPBIN=":"
5197   else
5198     case $cross_compiling:$ac_tool_warned in
5199 yes:)
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5202 ac_tool_warned=yes ;;
5203 esac
5204     DUMPBIN=$ac_ct_DUMPBIN
5205   fi
5206 fi
5207
5208     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5209     *COFF*)
5210       DUMPBIN="$DUMPBIN -symbols"
5211       ;;
5212     *)
5213       DUMPBIN=:
5214       ;;
5215     esac
5216   fi
5217
5218   if test "$DUMPBIN" != ":"; then
5219     NM="$DUMPBIN"
5220   fi
5221 fi
5222 test -z "$NM" && NM=nm
5223
5224
5225
5226
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5230 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5231 if ${lt_cv_nm_interface+:} false; then :
5232   $as_echo_n "(cached) " >&6
5233 else
5234   lt_cv_nm_interface="BSD nm"
5235   echo "int some_variable = 0;" > conftest.$ac_ext
5236   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5237   (eval "$ac_compile" 2>conftest.err)
5238   cat conftest.err >&5
5239   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5240   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5241   cat conftest.err >&5
5242   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5243   cat conftest.out >&5
5244   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5245     lt_cv_nm_interface="MS dumpbin"
5246   fi
5247   rm -f conftest*
5248 fi
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5250 $as_echo "$lt_cv_nm_interface" >&6; }
5251
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5253 $as_echo_n "checking whether ln -s works... " >&6; }
5254 LN_S=$as_ln_s
5255 if test "$LN_S" = "ln -s"; then
5256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5257 $as_echo "yes" >&6; }
5258 else
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5260 $as_echo "no, using $LN_S" >&6; }
5261 fi
5262
5263 # find the maximum length of command line arguments
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5265 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5266 if ${lt_cv_sys_max_cmd_len+:} false; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269     i=0
5270   teststring="ABCD"
5271
5272   case $build_os in
5273   msdosdjgpp*)
5274     # On DJGPP, this test can blow up pretty badly due to problems in libc
5275     # (any single argument exceeding 2000 bytes causes a buffer overrun
5276     # during glob expansion).  Even if it were fixed, the result of this
5277     # check would be larger than it should be.
5278     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5279     ;;
5280
5281   gnu*)
5282     # Under GNU Hurd, this test is not required because there is
5283     # no limit to the length of command line arguments.
5284     # Libtool will interpret -1 as no limit whatsoever
5285     lt_cv_sys_max_cmd_len=-1;
5286     ;;
5287
5288   cygwin* | mingw* | cegcc*)
5289     # On Win9x/ME, this test blows up -- it succeeds, but takes
5290     # about 5 minutes as the teststring grows exponentially.
5291     # Worse, since 9x/ME are not pre-emptively multitasking,
5292     # you end up with a "frozen" computer, even though with patience
5293     # the test eventually succeeds (with a max line length of 256k).
5294     # Instead, let's just punt: use the minimum linelength reported by
5295     # all of the supported platforms: 8192 (on NT/2K/XP).
5296     lt_cv_sys_max_cmd_len=8192;
5297     ;;
5298
5299   mint*)
5300     # On MiNT this can take a long time and run out of memory.
5301     lt_cv_sys_max_cmd_len=8192;
5302     ;;
5303
5304   amigaos*)
5305     # On AmigaOS with pdksh, this test takes hours, literally.
5306     # So we just punt and use a minimum line length of 8192.
5307     lt_cv_sys_max_cmd_len=8192;
5308     ;;
5309
5310   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5311     # This has been around since 386BSD, at least.  Likely further.
5312     if test -x /sbin/sysctl; then
5313       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5314     elif test -x /usr/sbin/sysctl; then
5315       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5316     else
5317       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5318     fi
5319     # And add a safety zone
5320     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5321     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5322     ;;
5323
5324   interix*)
5325     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5326     lt_cv_sys_max_cmd_len=196608
5327     ;;
5328
5329   os2*)
5330     # The test takes a long time on OS/2.
5331     lt_cv_sys_max_cmd_len=8192
5332     ;;
5333
5334   osf*)
5335     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5336     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5337     # nice to cause kernel panics so lets avoid the loop below.
5338     # First set a reasonable default.
5339     lt_cv_sys_max_cmd_len=16384
5340     #
5341     if test -x /sbin/sysconfig; then
5342       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5343         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5344       esac
5345     fi
5346     ;;
5347   sco3.2v5*)
5348     lt_cv_sys_max_cmd_len=102400
5349     ;;
5350   sysv5* | sco5v6* | sysv4.2uw2*)
5351     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5352     if test -n "$kargmax"; then
5353       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5354     else
5355       lt_cv_sys_max_cmd_len=32768
5356     fi
5357     ;;
5358   *)
5359     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5360     if test -n "$lt_cv_sys_max_cmd_len"; then
5361       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5362       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5363     else
5364       # Make teststring a little bigger before we do anything with it.
5365       # a 1K string should be a reasonable start.
5366       for i in 1 2 3 4 5 6 7 8 ; do
5367         teststring=$teststring$teststring
5368       done
5369       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5370       # If test is not a shell built-in, we'll probably end up computing a
5371       # maximum length that is only half of the actual maximum length, but
5372       # we can't tell.
5373       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5374                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5375               test $i != 17 # 1/2 MB should be enough
5376       do
5377         i=`expr $i + 1`
5378         teststring=$teststring$teststring
5379       done
5380       # Only check the string length outside the loop.
5381       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5382       teststring=
5383       # Add a significant safety factor because C++ compilers can tack on
5384       # massive amounts of additional arguments before passing them to the
5385       # linker.  It appears as though 1/2 is a usable value.
5386       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5387     fi
5388     ;;
5389   esac
5390
5391 fi
5392
5393 if test -n $lt_cv_sys_max_cmd_len ; then
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5395 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5396 else
5397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5398 $as_echo "none" >&6; }
5399 fi
5400 max_cmd_len=$lt_cv_sys_max_cmd_len
5401
5402
5403
5404
5405
5406
5407 : ${CP="cp -f"}
5408 : ${MV="mv -f"}
5409 : ${RM="rm -f"}
5410
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5412 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5413 # Try some XSI features
5414 xsi_shell=no
5415 ( _lt_dummy="a/b/c"
5416   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5417       = c,a/b,b/c, \
5418     && eval 'test $(( 1 + 1 )) -eq 2 \
5419     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5420   && xsi_shell=yes
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5422 $as_echo "$xsi_shell" >&6; }
5423
5424
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5426 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5427 lt_shell_append=no
5428 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5429     >/dev/null 2>&1 \
5430   && lt_shell_append=yes
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5432 $as_echo "$lt_shell_append" >&6; }
5433
5434
5435 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5436   lt_unset=unset
5437 else
5438   lt_unset=false
5439 fi
5440
5441
5442
5443
5444
5445 # test EBCDIC or ASCII
5446 case `echo X|tr X '\101'` in
5447  A) # ASCII based system
5448     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5449   lt_SP2NL='tr \040 \012'
5450   lt_NL2SP='tr \015\012 \040\040'
5451   ;;
5452  *) # EBCDIC based system
5453   lt_SP2NL='tr \100 \n'
5454   lt_NL2SP='tr \r\n \100\100'
5455   ;;
5456 esac
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5467 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5468 if ${lt_cv_to_host_file_cmd+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   case $host in
5472   *-*-mingw* )
5473     case $build in
5474       *-*-mingw* ) # actually msys
5475         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5476         ;;
5477       *-*-cygwin* )
5478         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5479         ;;
5480       * ) # otherwise, assume *nix
5481         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5482         ;;
5483     esac
5484     ;;
5485   *-*-cygwin* )
5486     case $build in
5487       *-*-mingw* ) # actually msys
5488         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5489         ;;
5490       *-*-cygwin* )
5491         lt_cv_to_host_file_cmd=func_convert_file_noop
5492         ;;
5493       * ) # otherwise, assume *nix
5494         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5495         ;;
5496     esac
5497     ;;
5498   * ) # unhandled hosts (and "normal" native builds)
5499     lt_cv_to_host_file_cmd=func_convert_file_noop
5500     ;;
5501 esac
5502
5503 fi
5504
5505 to_host_file_cmd=$lt_cv_to_host_file_cmd
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5507 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5508
5509
5510
5511
5512
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5514 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5515 if ${lt_cv_to_tool_file_cmd+:} false; then :
5516   $as_echo_n "(cached) " >&6
5517 else
5518   #assume ordinary cross tools, or native build.
5519 lt_cv_to_tool_file_cmd=func_convert_file_noop
5520 case $host in
5521   *-*-mingw* )
5522     case $build in
5523       *-*-mingw* ) # actually msys
5524         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5525         ;;
5526     esac
5527     ;;
5528 esac
5529
5530 fi
5531
5532 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5534 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5535
5536
5537
5538
5539
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5541 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5542 if ${lt_cv_ld_reload_flag+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   lt_cv_ld_reload_flag='-r'
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5548 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5549 reload_flag=$lt_cv_ld_reload_flag
5550 case $reload_flag in
5551 "" | " "*) ;;
5552 *) reload_flag=" $reload_flag" ;;
5553 esac
5554 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5555 case $host_os in
5556   cygwin* | mingw* | pw32* | cegcc*)
5557     if test "$GCC" != yes; then
5558       reload_cmds=false
5559     fi
5560     ;;
5561   darwin*)
5562     if test "$GCC" = yes; then
5563       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5564     else
5565       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5566     fi
5567     ;;
5568 esac
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578 if test -n "$ac_tool_prefix"; then
5579   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5580 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_OBJDUMP+:} false; then :
5584   $as_echo_n "(cached) " >&6
5585 else
5586   if test -n "$OBJDUMP"; then
5587   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5588 else
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590 for as_dir in $PATH
5591 do
5592   IFS=$as_save_IFS
5593   test -z "$as_dir" && as_dir=.
5594     for ac_exec_ext in '' $ac_executable_extensions; do
5595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598     break 2
5599   fi
5600 done
5601   done
5602 IFS=$as_save_IFS
5603
5604 fi
5605 fi
5606 OBJDUMP=$ac_cv_prog_OBJDUMP
5607 if test -n "$OBJDUMP"; then
5608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5609 $as_echo "$OBJDUMP" >&6; }
5610 else
5611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5613 fi
5614
5615
5616 fi
5617 if test -z "$ac_cv_prog_OBJDUMP"; then
5618   ac_ct_OBJDUMP=$OBJDUMP
5619   # Extract the first word of "objdump", so it can be a program name with args.
5620 set dummy objdump; ac_word=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5624   $as_echo_n "(cached) " >&6
5625 else
5626   if test -n "$ac_ct_OBJDUMP"; then
5627   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5628 else
5629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5630 for as_dir in $PATH
5631 do
5632   IFS=$as_save_IFS
5633   test -z "$as_dir" && as_dir=.
5634     for ac_exec_ext in '' $ac_executable_extensions; do
5635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5636     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638     break 2
5639   fi
5640 done
5641   done
5642 IFS=$as_save_IFS
5643
5644 fi
5645 fi
5646 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5647 if test -n "$ac_ct_OBJDUMP"; then
5648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5649 $as_echo "$ac_ct_OBJDUMP" >&6; }
5650 else
5651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5653 fi
5654
5655   if test "x$ac_ct_OBJDUMP" = x; then
5656     OBJDUMP="false"
5657   else
5658     case $cross_compiling:$ac_tool_warned in
5659 yes:)
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned=yes ;;
5663 esac
5664     OBJDUMP=$ac_ct_OBJDUMP
5665   fi
5666 else
5667   OBJDUMP="$ac_cv_prog_OBJDUMP"
5668 fi
5669
5670 test -z "$OBJDUMP" && OBJDUMP=objdump
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5681 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5682 if ${lt_cv_deplibs_check_method+:} false; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   lt_cv_file_magic_cmd='$MAGIC_CMD'
5686 lt_cv_file_magic_test_file=
5687 lt_cv_deplibs_check_method='unknown'
5688 # Need to set the preceding variable on all platforms that support
5689 # interlibrary dependencies.
5690 # 'none' -- dependencies not supported.
5691 # `unknown' -- same as none, but documents that we really don't know.
5692 # 'pass_all' -- all dependencies passed with no checks.
5693 # 'test_compile' -- check by making test program.
5694 # 'file_magic [[regex]]' -- check by looking for files in library path
5695 # which responds to the $file_magic_cmd with a given extended regex.
5696 # If you have `file' or equivalent on your system and you're not sure
5697 # whether `pass_all' will *always* work, you probably want this one.
5698
5699 case $host_os in
5700 aix[4-9]*)
5701   lt_cv_deplibs_check_method=pass_all
5702   ;;
5703
5704 beos*)
5705   lt_cv_deplibs_check_method=pass_all
5706   ;;
5707
5708 bsdi[45]*)
5709   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5710   lt_cv_file_magic_cmd='/usr/bin/file -L'
5711   lt_cv_file_magic_test_file=/shlib/libc.so
5712   ;;
5713
5714 cygwin*)
5715   # func_win32_libid is a shell function defined in ltmain.sh
5716   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5717   lt_cv_file_magic_cmd='func_win32_libid'
5718   ;;
5719
5720 mingw* | pw32*)
5721   # Base MSYS/MinGW do not provide the 'file' command needed by
5722   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5723   # unless we find 'file', for example because we are cross-compiling.
5724   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5725   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5726     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5727     lt_cv_file_magic_cmd='func_win32_libid'
5728   else
5729     # Keep this pattern in sync with the one in func_win32_libid.
5730     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5731     lt_cv_file_magic_cmd='$OBJDUMP -f'
5732   fi
5733   ;;
5734
5735 cegcc*)
5736   # use the weaker test based on 'objdump'. See mingw*.
5737   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5738   lt_cv_file_magic_cmd='$OBJDUMP -f'
5739   ;;
5740
5741 darwin* | rhapsody*)
5742   lt_cv_deplibs_check_method=pass_all
5743   ;;
5744
5745 freebsd* | dragonfly*)
5746   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5747     case $host_cpu in
5748     i*86 )
5749       # Not sure whether the presence of OpenBSD here was a mistake.
5750       # Let's accept both of them until this is cleared up.
5751       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5752       lt_cv_file_magic_cmd=/usr/bin/file
5753       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5754       ;;
5755     esac
5756   else
5757     lt_cv_deplibs_check_method=pass_all
5758   fi
5759   ;;
5760
5761 gnu*)
5762   lt_cv_deplibs_check_method=pass_all
5763   ;;
5764
5765 haiku*)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768
5769 hpux10.20* | hpux11*)
5770   lt_cv_file_magic_cmd=/usr/bin/file
5771   case $host_cpu in
5772   ia64*)
5773     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5774     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5775     ;;
5776   hppa*64*)
5777     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]'
5778     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5779     ;;
5780   *)
5781     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5782     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5783     ;;
5784   esac
5785   ;;
5786
5787 interix[3-9]*)
5788   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5789   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5790   ;;
5791
5792 irix5* | irix6* | nonstopux*)
5793   case $LD in
5794   *-32|*"-32 ") libmagic=32-bit;;
5795   *-n32|*"-n32 ") libmagic=N32;;
5796   *-64|*"-64 ") libmagic=64-bit;;
5797   *) libmagic=never-match;;
5798   esac
5799   lt_cv_deplibs_check_method=pass_all
5800   ;;
5801
5802 # This must be glibc/ELF.
5803 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 netbsd*)
5808   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5809     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5810   else
5811     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5812   fi
5813   ;;
5814
5815 newos6*)
5816   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5817   lt_cv_file_magic_cmd=/usr/bin/file
5818   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5819   ;;
5820
5821 *nto* | *qnx*)
5822   lt_cv_deplibs_check_method=pass_all
5823   ;;
5824
5825 openbsd*)
5826   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5827     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5828   else
5829     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5830   fi
5831   ;;
5832
5833 osf3* | osf4* | osf5*)
5834   lt_cv_deplibs_check_method=pass_all
5835   ;;
5836
5837 rdos*)
5838   lt_cv_deplibs_check_method=pass_all
5839   ;;
5840
5841 solaris*)
5842   lt_cv_deplibs_check_method=pass_all
5843   ;;
5844
5845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5846   lt_cv_deplibs_check_method=pass_all
5847   ;;
5848
5849 sysv4 | sysv4.3*)
5850   case $host_vendor in
5851   motorola)
5852     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]'
5853     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5854     ;;
5855   ncr)
5856     lt_cv_deplibs_check_method=pass_all
5857     ;;
5858   sequent)
5859     lt_cv_file_magic_cmd='/bin/file'
5860     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5861     ;;
5862   sni)
5863     lt_cv_file_magic_cmd='/bin/file'
5864     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5865     lt_cv_file_magic_test_file=/lib/libc.so
5866     ;;
5867   siemens)
5868     lt_cv_deplibs_check_method=pass_all
5869     ;;
5870   pc)
5871     lt_cv_deplibs_check_method=pass_all
5872     ;;
5873   esac
5874   ;;
5875
5876 tpf*)
5877   lt_cv_deplibs_check_method=pass_all
5878   ;;
5879 esac
5880
5881 fi
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5883 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5884
5885 file_magic_glob=
5886 want_nocaseglob=no
5887 if test "$build" = "$host"; then
5888   case $host_os in
5889   mingw* | pw32*)
5890     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5891       want_nocaseglob=yes
5892     else
5893       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5894     fi
5895     ;;
5896   esac
5897 fi
5898
5899 file_magic_cmd=$lt_cv_file_magic_cmd
5900 deplibs_check_method=$lt_cv_deplibs_check_method
5901 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924 if test -n "$ac_tool_prefix"; then
5925   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5926 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928 $as_echo_n "checking for $ac_word... " >&6; }
5929 if ${ac_cv_prog_DLLTOOL+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test -n "$DLLTOOL"; then
5933   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5934 else
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 for as_dir in $PATH
5937 do
5938   IFS=$as_save_IFS
5939   test -z "$as_dir" && as_dir=.
5940     for ac_exec_ext in '' $ac_executable_extensions; do
5941   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944     break 2
5945   fi
5946 done
5947   done
5948 IFS=$as_save_IFS
5949
5950 fi
5951 fi
5952 DLLTOOL=$ac_cv_prog_DLLTOOL
5953 if test -n "$DLLTOOL"; then
5954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5955 $as_echo "$DLLTOOL" >&6; }
5956 else
5957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5958 $as_echo "no" >&6; }
5959 fi
5960
5961
5962 fi
5963 if test -z "$ac_cv_prog_DLLTOOL"; then
5964   ac_ct_DLLTOOL=$DLLTOOL
5965   # Extract the first word of "dlltool", so it can be a program name with args.
5966 set dummy dlltool; ac_word=$2
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968 $as_echo_n "checking for $ac_word... " >&6; }
5969 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$ac_ct_DLLTOOL"; then
5973   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5974 else
5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976 for as_dir in $PATH
5977 do
5978   IFS=$as_save_IFS
5979   test -z "$as_dir" && as_dir=.
5980     for ac_exec_ext in '' $ac_executable_extensions; do
5981   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5982     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5984     break 2
5985   fi
5986 done
5987   done
5988 IFS=$as_save_IFS
5989
5990 fi
5991 fi
5992 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5993 if test -n "$ac_ct_DLLTOOL"; then
5994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5995 $as_echo "$ac_ct_DLLTOOL" >&6; }
5996 else
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998 $as_echo "no" >&6; }
5999 fi
6000
6001   if test "x$ac_ct_DLLTOOL" = x; then
6002     DLLTOOL="false"
6003   else
6004     case $cross_compiling:$ac_tool_warned in
6005 yes:)
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6008 ac_tool_warned=yes ;;
6009 esac
6010     DLLTOOL=$ac_ct_DLLTOOL
6011   fi
6012 else
6013   DLLTOOL="$ac_cv_prog_DLLTOOL"
6014 fi
6015
6016 test -z "$DLLTOOL" && DLLTOOL=dlltool
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6028 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6029 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   lt_cv_sharedlib_from_linklib_cmd='unknown'
6033
6034 case $host_os in
6035 cygwin* | mingw* | pw32* | cegcc*)
6036   # two different shell functions defined in ltmain.sh
6037   # decide which to use based on capabilities of $DLLTOOL
6038   case `$DLLTOOL --help 2>&1` in
6039   *--identify-strict*)
6040     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6041     ;;
6042   *)
6043     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6044     ;;
6045   esac
6046   ;;
6047 *)
6048   # fallback: assume linklib IS sharedlib
6049   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6050   ;;
6051 esac
6052
6053 fi
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6055 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6056 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6057 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6058
6059
6060
6061
6062
6063
6064
6065
6066 if test -n "$ac_tool_prefix"; then
6067   for ac_prog in ar
6068   do
6069     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_AR+:} false; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$AR"; then
6077   ac_cv_prog_AR="$AR" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6086     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 AR=$ac_cv_prog_AR
6097 if test -n "$AR"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6099 $as_echo "$AR" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105
6106     test -n "$AR" && break
6107   done
6108 fi
6109 if test -z "$AR"; then
6110   ac_ct_AR=$AR
6111   for ac_prog in ar
6112 do
6113   # Extract the first word of "$ac_prog", so it can be a program name with args.
6114 set dummy $ac_prog; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6116 $as_echo_n "checking for $ac_word... " >&6; }
6117 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6118   $as_echo_n "(cached) " >&6
6119 else
6120   if test -n "$ac_ct_AR"; then
6121   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6122 else
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 for as_dir in $PATH
6125 do
6126   IFS=$as_save_IFS
6127   test -z "$as_dir" && as_dir=.
6128     for ac_exec_ext in '' $ac_executable_extensions; do
6129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130     ac_cv_prog_ac_ct_AR="$ac_prog"
6131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6132     break 2
6133   fi
6134 done
6135   done
6136 IFS=$as_save_IFS
6137
6138 fi
6139 fi
6140 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6141 if test -n "$ac_ct_AR"; then
6142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6143 $as_echo "$ac_ct_AR" >&6; }
6144 else
6145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6147 fi
6148
6149
6150   test -n "$ac_ct_AR" && break
6151 done
6152
6153   if test "x$ac_ct_AR" = x; then
6154     AR="false"
6155   else
6156     case $cross_compiling:$ac_tool_warned in
6157 yes:)
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6160 ac_tool_warned=yes ;;
6161 esac
6162     AR=$ac_ct_AR
6163   fi
6164 fi
6165
6166 : ${AR=ar}
6167 : ${AR_FLAGS=cru}
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6180 $as_echo_n "checking for archiver @FILE support... " >&6; }
6181 if ${lt_cv_ar_at_file+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   lt_cv_ar_at_file=no
6185    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6186 /* end confdefs.h.  */
6187
6188 int
6189 main ()
6190 {
6191
6192   ;
6193   return 0;
6194 }
6195 _ACEOF
6196 if ac_fn_c_try_compile "$LINENO"; then :
6197   echo conftest.$ac_objext > conftest.lst
6198       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6199       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6200   (eval $lt_ar_try) 2>&5
6201   ac_status=$?
6202   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6203   test $ac_status = 0; }
6204       if test "$ac_status" -eq 0; then
6205         # Ensure the archiver fails upon bogus file names.
6206         rm -f conftest.$ac_objext libconftest.a
6207         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6208   (eval $lt_ar_try) 2>&5
6209   ac_status=$?
6210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6211   test $ac_status = 0; }
6212         if test "$ac_status" -ne 0; then
6213           lt_cv_ar_at_file=@
6214         fi
6215       fi
6216       rm -f conftest.* libconftest.a
6217
6218 fi
6219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6220
6221 fi
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6223 $as_echo "$lt_cv_ar_at_file" >&6; }
6224
6225 if test "x$lt_cv_ar_at_file" = xno; then
6226   archiver_list_spec=
6227 else
6228   archiver_list_spec=$lt_cv_ar_at_file
6229 fi
6230
6231
6232
6233
6234
6235
6236
6237 if test -n "$ac_tool_prefix"; then
6238   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6239 set dummy ${ac_tool_prefix}strip; ac_word=$2
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6241 $as_echo_n "checking for $ac_word... " >&6; }
6242 if ${ac_cv_prog_STRIP+:} false; then :
6243   $as_echo_n "(cached) " >&6
6244 else
6245   if test -n "$STRIP"; then
6246   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6247 else
6248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 for as_dir in $PATH
6250 do
6251   IFS=$as_save_IFS
6252   test -z "$as_dir" && as_dir=.
6253     for ac_exec_ext in '' $ac_executable_extensions; do
6254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6255     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6257     break 2
6258   fi
6259 done
6260   done
6261 IFS=$as_save_IFS
6262
6263 fi
6264 fi
6265 STRIP=$ac_cv_prog_STRIP
6266 if test -n "$STRIP"; then
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6268 $as_echo "$STRIP" >&6; }
6269 else
6270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6271 $as_echo "no" >&6; }
6272 fi
6273
6274
6275 fi
6276 if test -z "$ac_cv_prog_STRIP"; then
6277   ac_ct_STRIP=$STRIP
6278   # Extract the first word of "strip", so it can be a program name with args.
6279 set dummy strip; ac_word=$2
6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6281 $as_echo_n "checking for $ac_word... " >&6; }
6282 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6283   $as_echo_n "(cached) " >&6
6284 else
6285   if test -n "$ac_ct_STRIP"; then
6286   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291   IFS=$as_save_IFS
6292   test -z "$as_dir" && as_dir=.
6293     for ac_exec_ext in '' $ac_executable_extensions; do
6294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295     ac_cv_prog_ac_ct_STRIP="strip"
6296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297     break 2
6298   fi
6299 done
6300   done
6301 IFS=$as_save_IFS
6302
6303 fi
6304 fi
6305 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6306 if test -n "$ac_ct_STRIP"; then
6307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6308 $as_echo "$ac_ct_STRIP" >&6; }
6309 else
6310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6311 $as_echo "no" >&6; }
6312 fi
6313
6314   if test "x$ac_ct_STRIP" = x; then
6315     STRIP=":"
6316   else
6317     case $cross_compiling:$ac_tool_warned in
6318 yes:)
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6321 ac_tool_warned=yes ;;
6322 esac
6323     STRIP=$ac_ct_STRIP
6324   fi
6325 else
6326   STRIP="$ac_cv_prog_STRIP"
6327 fi
6328
6329 test -z "$STRIP" && STRIP=:
6330
6331
6332
6333
6334
6335
6336 if test -n "$ac_tool_prefix"; then
6337   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6338 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_RANLIB+:} false; then :
6342   $as_echo_n "(cached) " >&6
6343 else
6344   if test -n "$RANLIB"; then
6345   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350   IFS=$as_save_IFS
6351   test -z "$as_dir" && as_dir=.
6352     for ac_exec_ext in '' $ac_executable_extensions; do
6353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356     break 2
6357   fi
6358 done
6359   done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 RANLIB=$ac_cv_prog_RANLIB
6365 if test -n "$RANLIB"; then
6366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6367 $as_echo "$RANLIB" >&6; }
6368 else
6369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373
6374 fi
6375 if test -z "$ac_cv_prog_RANLIB"; then
6376   ac_ct_RANLIB=$RANLIB
6377   # Extract the first word of "ranlib", so it can be a program name with args.
6378 set dummy ranlib; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -n "$ac_ct_RANLIB"; then
6385   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_prog_ac_ct_RANLIB="ranlib"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6405 if test -n "$ac_ct_RANLIB"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6407 $as_echo "$ac_ct_RANLIB" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413   if test "x$ac_ct_RANLIB" = x; then
6414     RANLIB=":"
6415   else
6416     case $cross_compiling:$ac_tool_warned in
6417 yes:)
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6420 ac_tool_warned=yes ;;
6421 esac
6422     RANLIB=$ac_ct_RANLIB
6423   fi
6424 else
6425   RANLIB="$ac_cv_prog_RANLIB"
6426 fi
6427
6428 test -z "$RANLIB" && RANLIB=:
6429
6430
6431
6432
6433
6434
6435 # Determine commands to create old-style static archives.
6436 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6437 old_postinstall_cmds='chmod 644 $oldlib'
6438 old_postuninstall_cmds=
6439
6440 if test -n "$RANLIB"; then
6441   case $host_os in
6442   openbsd*)
6443     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6444     ;;
6445   *)
6446     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6447     ;;
6448   esac
6449   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6450 fi
6451
6452 case $host_os in
6453   darwin*)
6454     lock_old_archive_extraction=yes ;;
6455   *)
6456     lock_old_archive_extraction=no ;;
6457 esac
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497 # If no C compiler was specified, use CC.
6498 LTCC=${LTCC-"$CC"}
6499
6500 # If no C compiler flags were specified, use CFLAGS.
6501 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6502
6503 # Allow CC to be a program name with arguments.
6504 compiler=$CC
6505
6506
6507 # Check for command to grab the raw symbol name followed by C symbol from nm.
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6509 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6510 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6511   $as_echo_n "(cached) " >&6
6512 else
6513
6514 # These are sane defaults that work on at least a few old systems.
6515 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6516
6517 # Character class describing NM global symbol codes.
6518 symcode='[BCDEGRST]'
6519
6520 # Regexp to match symbols that can be accessed directly from C.
6521 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6522
6523 # Define system-specific variables.
6524 case $host_os in
6525 aix*)
6526   symcode='[BCDT]'
6527   ;;
6528 cygwin* | mingw* | pw32* | cegcc*)
6529   symcode='[ABCDGISTW]'
6530   ;;
6531 hpux*)
6532   if test "$host_cpu" = ia64; then
6533     symcode='[ABCDEGRST]'
6534   fi
6535   ;;
6536 irix* | nonstopux*)
6537   symcode='[BCDEGRST]'
6538   ;;
6539 osf*)
6540   symcode='[BCDEGQRST]'
6541   ;;
6542 solaris*)
6543   symcode='[BDRT]'
6544   ;;
6545 sco3.2v5*)
6546   symcode='[DT]'
6547   ;;
6548 sysv4.2uw2*)
6549   symcode='[DT]'
6550   ;;
6551 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6552   symcode='[ABDT]'
6553   ;;
6554 sysv4)
6555   symcode='[DFNSTU]'
6556   ;;
6557 esac
6558
6559 # If we're using GNU nm, then use its standard symbol codes.
6560 case `$NM -V 2>&1` in
6561 *GNU* | *'with BFD'*)
6562   symcode='[ABCDGIRSTW]' ;;
6563 esac
6564
6565 # Transform an extracted symbol line into a proper C declaration.
6566 # Some systems (esp. on ia64) link data and code symbols differently,
6567 # so use this general approach.
6568 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6569
6570 # Transform an extracted symbol line into symbol name and symbol address
6571 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6572 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'"
6573
6574 # Handle CRLF in mingw tool chain
6575 opt_cr=
6576 case $build_os in
6577 mingw*)
6578   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6579   ;;
6580 esac
6581
6582 # Try without a prefix underscore, then with it.
6583 for ac_symprfx in "" "_"; do
6584
6585   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6586   symxfrm="\\1 $ac_symprfx\\2 \\2"
6587
6588   # Write the raw and C identifiers.
6589   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6590     # Fake it for dumpbin and say T for any non-static function
6591     # and D for any global variable.
6592     # Also find C++ and __fastcall symbols from MSVC++,
6593     # which start with @ or ?.
6594     lt_cv_sys_global_symbol_pipe="$AWK '"\
6595 "     {last_section=section; section=\$ 3};"\
6596 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6597 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6598 "     \$ 0!~/External *\|/{next};"\
6599 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6600 "     {if(hide[section]) next};"\
6601 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6602 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6603 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6604 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6605 "     ' prfx=^$ac_symprfx"
6606   else
6607     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6608   fi
6609   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6610
6611   # Check to see that the pipe works correctly.
6612   pipe_works=no
6613
6614   rm -f conftest*
6615   cat > conftest.$ac_ext <<_LT_EOF
6616 #ifdef __cplusplus
6617 extern "C" {
6618 #endif
6619 char nm_test_var;
6620 void nm_test_func(void);
6621 void nm_test_func(void){}
6622 #ifdef __cplusplus
6623 }
6624 #endif
6625 int main(){nm_test_var='a';nm_test_func();return(0);}
6626 _LT_EOF
6627
6628   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6629   (eval $ac_compile) 2>&5
6630   ac_status=$?
6631   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6632   test $ac_status = 0; }; then
6633     # Now try to grab the symbols.
6634     nlist=conftest.nm
6635     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6636   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6637   ac_status=$?
6638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6639   test $ac_status = 0; } && test -s "$nlist"; then
6640       # Try sorting and uniquifying the output.
6641       if sort "$nlist" | uniq > "$nlist"T; then
6642         mv -f "$nlist"T "$nlist"
6643       else
6644         rm -f "$nlist"T
6645       fi
6646
6647       # Make sure that we snagged all the symbols we need.
6648       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6649         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6650           cat <<_LT_EOF > conftest.$ac_ext
6651 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6652 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6653 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6654    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6655 # define LT_DLSYM_CONST
6656 #elif defined(__osf__)
6657 /* This system does not cope well with relocations in const data.  */
6658 # define LT_DLSYM_CONST
6659 #else
6660 # define LT_DLSYM_CONST const
6661 #endif
6662
6663 #ifdef __cplusplus
6664 extern "C" {
6665 #endif
6666
6667 _LT_EOF
6668           # Now generate the symbol file.
6669           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6670
6671           cat <<_LT_EOF >> conftest.$ac_ext
6672
6673 /* The mapping between symbol names and symbols.  */
6674 LT_DLSYM_CONST struct {
6675   const char *name;
6676   void       *address;
6677 }
6678 lt__PROGRAM__LTX_preloaded_symbols[] =
6679 {
6680   { "@PROGRAM@", (void *) 0 },
6681 _LT_EOF
6682           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6683           cat <<\_LT_EOF >> conftest.$ac_ext
6684   {0, (void *) 0}
6685 };
6686
6687 /* This works around a problem in FreeBSD linker */
6688 #ifdef FREEBSD_WORKAROUND
6689 static const void *lt_preloaded_setup() {
6690   return lt__PROGRAM__LTX_preloaded_symbols;
6691 }
6692 #endif
6693
6694 #ifdef __cplusplus
6695 }
6696 #endif
6697 _LT_EOF
6698           # Now try linking the two files.
6699           mv conftest.$ac_objext conftstm.$ac_objext
6700           lt_globsym_save_LIBS=$LIBS
6701           lt_globsym_save_CFLAGS=$CFLAGS
6702           LIBS="conftstm.$ac_objext"
6703           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6704           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6705   (eval $ac_link) 2>&5
6706   ac_status=$?
6707   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6709             pipe_works=yes
6710           fi
6711           LIBS=$lt_globsym_save_LIBS
6712           CFLAGS=$lt_globsym_save_CFLAGS
6713         else
6714           echo "cannot find nm_test_func in $nlist" >&5
6715         fi
6716       else
6717         echo "cannot find nm_test_var in $nlist" >&5
6718       fi
6719     else
6720       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6721     fi
6722   else
6723     echo "$progname: failed program was:" >&5
6724     cat conftest.$ac_ext >&5
6725   fi
6726   rm -rf conftest* conftst*
6727
6728   # Do not use the global_symbol_pipe unless it works.
6729   if test "$pipe_works" = yes; then
6730     break
6731   else
6732     lt_cv_sys_global_symbol_pipe=
6733   fi
6734 done
6735
6736 fi
6737
6738 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6739   lt_cv_sys_global_symbol_to_cdecl=
6740 fi
6741 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6743 $as_echo "failed" >&6; }
6744 else
6745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6746 $as_echo "ok" >&6; }
6747 fi
6748
6749 # Response file support.
6750 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6751   nm_file_list_spec='@'
6752 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6753   nm_file_list_spec='@'
6754 fi
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6783 $as_echo_n "checking for sysroot... " >&6; }
6784
6785 # Check whether --with-sysroot was given.
6786 if test "${with_sysroot+set}" = set; then :
6787   withval=$with_sysroot;
6788 else
6789   with_sysroot=no
6790 fi
6791
6792
6793 lt_sysroot=
6794 case ${with_sysroot} in #(
6795  yes)
6796    if test "$GCC" = yes; then
6797      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6798    fi
6799    ;; #(
6800  /*)
6801    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6802    ;; #(
6803  no|'')
6804    ;; #(
6805  *)
6806    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6807 $as_echo "${with_sysroot}" >&6; }
6808    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6809    ;;
6810 esac
6811
6812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6813 $as_echo "${lt_sysroot:-no}" >&6; }
6814
6815
6816
6817
6818
6819 # Check whether --enable-libtool-lock was given.
6820 if test "${enable_libtool_lock+set}" = set; then :
6821   enableval=$enable_libtool_lock;
6822 fi
6823
6824 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6825
6826 # Some flags need to be propagated to the compiler or linker for good
6827 # libtool support.
6828 case $host in
6829 ia64-*-hpux*)
6830   # Find out which ABI we are using.
6831   echo 'int i;' > conftest.$ac_ext
6832   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6833   (eval $ac_compile) 2>&5
6834   ac_status=$?
6835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6836   test $ac_status = 0; }; then
6837     case `/usr/bin/file conftest.$ac_objext` in
6838       *ELF-32*)
6839         HPUX_IA64_MODE="32"
6840         ;;
6841       *ELF-64*)
6842         HPUX_IA64_MODE="64"
6843         ;;
6844     esac
6845   fi
6846   rm -rf conftest*
6847   ;;
6848 *-*-irix6*)
6849   # Find out which ABI we are using.
6850   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6852   (eval $ac_compile) 2>&5
6853   ac_status=$?
6854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6855   test $ac_status = 0; }; then
6856     if test "$lt_cv_prog_gnu_ld" = yes; then
6857       case `/usr/bin/file conftest.$ac_objext` in
6858         *32-bit*)
6859           LD="${LD-ld} -melf32bsmip"
6860           ;;
6861         *N32*)
6862           LD="${LD-ld} -melf32bmipn32"
6863           ;;
6864         *64-bit*)
6865           LD="${LD-ld} -melf64bmip"
6866         ;;
6867       esac
6868     else
6869       case `/usr/bin/file conftest.$ac_objext` in
6870         *32-bit*)
6871           LD="${LD-ld} -32"
6872           ;;
6873         *N32*)
6874           LD="${LD-ld} -n32"
6875           ;;
6876         *64-bit*)
6877           LD="${LD-ld} -64"
6878           ;;
6879       esac
6880     fi
6881   fi
6882   rm -rf conftest*
6883   ;;
6884
6885 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6886 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6887   # Find out which ABI we are using.
6888   echo 'int i;' > conftest.$ac_ext
6889   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890   (eval $ac_compile) 2>&5
6891   ac_status=$?
6892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6893   test $ac_status = 0; }; then
6894     case `/usr/bin/file conftest.o` in
6895       *32-bit*)
6896         case $host in
6897           x86_64-*kfreebsd*-gnu)
6898             LD="${LD-ld} -m elf_i386_fbsd"
6899             ;;
6900           x86_64-*linux*)
6901             LD="${LD-ld} -m elf_i386"
6902             ;;
6903           ppc64-*linux*|powerpc64-*linux*)
6904             LD="${LD-ld} -m elf32ppclinux"
6905             ;;
6906           s390x-*linux*)
6907             LD="${LD-ld} -m elf_s390"
6908             ;;
6909           sparc64-*linux*)
6910             LD="${LD-ld} -m elf32_sparc"
6911             ;;
6912         esac
6913         ;;
6914       *64-bit*)
6915         case $host in
6916           x86_64-*kfreebsd*-gnu)
6917             LD="${LD-ld} -m elf_x86_64_fbsd"
6918             ;;
6919           x86_64-*linux*)
6920             LD="${LD-ld} -m elf_x86_64"
6921             ;;
6922           ppc*-*linux*|powerpc*-*linux*)
6923             LD="${LD-ld} -m elf64ppc"
6924             ;;
6925           s390*-*linux*|s390*-*tpf*)
6926             LD="${LD-ld} -m elf64_s390"
6927             ;;
6928           sparc*-*linux*)
6929             LD="${LD-ld} -m elf64_sparc"
6930             ;;
6931         esac
6932         ;;
6933     esac
6934   fi
6935   rm -rf conftest*
6936   ;;
6937
6938 *-*-sco3.2v5*)
6939   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6940   SAVE_CFLAGS="$CFLAGS"
6941   CFLAGS="$CFLAGS -belf"
6942   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6943 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6944 if ${lt_cv_cc_needs_belf+:} false; then :
6945   $as_echo_n "(cached) " >&6
6946 else
6947   ac_ext=c
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952
6953      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6954 /* end confdefs.h.  */
6955
6956 int
6957 main ()
6958 {
6959
6960   ;
6961   return 0;
6962 }
6963 _ACEOF
6964 if ac_fn_c_try_link "$LINENO"; then :
6965   lt_cv_cc_needs_belf=yes
6966 else
6967   lt_cv_cc_needs_belf=no
6968 fi
6969 rm -f core conftest.err conftest.$ac_objext \
6970     conftest$ac_exeext conftest.$ac_ext
6971      ac_ext=c
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6976
6977 fi
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6979 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6980   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6981     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6982     CFLAGS="$SAVE_CFLAGS"
6983   fi
6984   ;;
6985 *-*solaris*)
6986   # Find out which ABI we are using.
6987   echo 'int i;' > conftest.$ac_ext
6988   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6989   (eval $ac_compile) 2>&5
6990   ac_status=$?
6991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6992   test $ac_status = 0; }; then
6993     case `/usr/bin/file conftest.o` in
6994     *64-bit*)
6995       case $lt_cv_prog_gnu_ld in
6996       yes*)
6997         case $host in
6998         i?86-*-solaris*)
6999           LD="${LD-ld} -m elf_x86_64"
7000           ;;
7001         sparc*-*-solaris*)
7002           LD="${LD-ld} -m elf64_sparc"
7003           ;;
7004         esac
7005         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7006         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7007           LD="${LD-ld}_sol2"
7008         fi
7009         ;;
7010       *)
7011         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7012           LD="${LD-ld} -64"
7013         fi
7014         ;;
7015       esac
7016       ;;
7017     esac
7018   fi
7019   rm -rf conftest*
7020   ;;
7021 esac
7022
7023 need_locks="$enable_libtool_lock"
7024
7025 if test -n "$ac_tool_prefix"; then
7026   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}mt; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7031   $as_echo_n "(cached) " >&6
7032 else
7033   if test -n "$MANIFEST_TOOL"; then
7034   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039   IFS=$as_save_IFS
7040   test -z "$as_dir" && as_dir=.
7041     for ac_exec_ext in '' $ac_executable_extensions; do
7042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045     break 2
7046   fi
7047 done
7048   done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7054 if test -n "$MANIFEST_TOOL"; then
7055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7056 $as_echo "$MANIFEST_TOOL" >&6; }
7057 else
7058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062
7063 fi
7064 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7065   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7066   # Extract the first word of "mt", so it can be a program name with args.
7067 set dummy mt; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   if test -n "$ac_ct_MANIFEST_TOOL"; then
7074   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081     for ac_exec_ext in '' $ac_executable_extensions; do
7082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088   done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7094 if test -n "$ac_ct_MANIFEST_TOOL"; then
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7096 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7097 else
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7103     MANIFEST_TOOL=":"
7104   else
7105     case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7112   fi
7113 else
7114   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7115 fi
7116
7117 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7119 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7120 if ${lt_cv_path_mainfest_tool+:} false; then :
7121   $as_echo_n "(cached) " >&6
7122 else
7123   lt_cv_path_mainfest_tool=no
7124   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7125   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7126   cat conftest.err >&5
7127   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7128     lt_cv_path_mainfest_tool=yes
7129   fi
7130   rm -f conftest*
7131 fi
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7133 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7134 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7135   MANIFEST_TOOL=:
7136 fi
7137
7138
7139
7140
7141
7142
7143   case $host_os in
7144     rhapsody* | darwin*)
7145     if test -n "$ac_tool_prefix"; then
7146   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7147 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7149 $as_echo_n "checking for $ac_word... " >&6; }
7150 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153   if test -n "$DSYMUTIL"; then
7154   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7155 else
7156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 for as_dir in $PATH
7158 do
7159   IFS=$as_save_IFS
7160   test -z "$as_dir" && as_dir=.
7161     for ac_exec_ext in '' $ac_executable_extensions; do
7162   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7163     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7165     break 2
7166   fi
7167 done
7168   done
7169 IFS=$as_save_IFS
7170
7171 fi
7172 fi
7173 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7174 if test -n "$DSYMUTIL"; then
7175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7176 $as_echo "$DSYMUTIL" >&6; }
7177 else
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7179 $as_echo "no" >&6; }
7180 fi
7181
7182
7183 fi
7184 if test -z "$ac_cv_prog_DSYMUTIL"; then
7185   ac_ct_DSYMUTIL=$DSYMUTIL
7186   # Extract the first word of "dsymutil", so it can be a program name with args.
7187 set dummy dsymutil; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7191   $as_echo_n "(cached) " >&6
7192 else
7193   if test -n "$ac_ct_DSYMUTIL"; then
7194   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7198 do
7199   IFS=$as_save_IFS
7200   test -z "$as_dir" && as_dir=.
7201     for ac_exec_ext in '' $ac_executable_extensions; do
7202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205     break 2
7206   fi
7207 done
7208   done
7209 IFS=$as_save_IFS
7210
7211 fi
7212 fi
7213 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7214 if test -n "$ac_ct_DSYMUTIL"; then
7215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7216 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7217 else
7218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7220 fi
7221
7222   if test "x$ac_ct_DSYMUTIL" = x; then
7223     DSYMUTIL=":"
7224   else
7225     case $cross_compiling:$ac_tool_warned in
7226 yes:)
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7228 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7229 ac_tool_warned=yes ;;
7230 esac
7231     DSYMUTIL=$ac_ct_DSYMUTIL
7232   fi
7233 else
7234   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7235 fi
7236
7237     if test -n "$ac_tool_prefix"; then
7238   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7239 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7241 $as_echo_n "checking for $ac_word... " >&6; }
7242 if ${ac_cv_prog_NMEDIT+:} false; then :
7243   $as_echo_n "(cached) " >&6
7244 else
7245   if test -n "$NMEDIT"; then
7246   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7247 else
7248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253     for ac_exec_ext in '' $ac_executable_extensions; do
7254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7255     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260   done
7261 IFS=$as_save_IFS
7262
7263 fi
7264 fi
7265 NMEDIT=$ac_cv_prog_NMEDIT
7266 if test -n "$NMEDIT"; then
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7268 $as_echo "$NMEDIT" >&6; }
7269 else
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7271 $as_echo "no" >&6; }
7272 fi
7273
7274
7275 fi
7276 if test -z "$ac_cv_prog_NMEDIT"; then
7277   ac_ct_NMEDIT=$NMEDIT
7278   # Extract the first word of "nmedit", so it can be a program name with args.
7279 set dummy nmedit; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7283   $as_echo_n "(cached) " >&6
7284 else
7285   if test -n "$ac_ct_NMEDIT"; then
7286   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7290 do
7291   IFS=$as_save_IFS
7292   test -z "$as_dir" && as_dir=.
7293     for ac_exec_ext in '' $ac_executable_extensions; do
7294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297     break 2
7298   fi
7299 done
7300   done
7301 IFS=$as_save_IFS
7302
7303 fi
7304 fi
7305 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7306 if test -n "$ac_ct_NMEDIT"; then
7307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7308 $as_echo "$ac_ct_NMEDIT" >&6; }
7309 else
7310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7312 fi
7313
7314   if test "x$ac_ct_NMEDIT" = x; then
7315     NMEDIT=":"
7316   else
7317     case $cross_compiling:$ac_tool_warned in
7318 yes:)
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7321 ac_tool_warned=yes ;;
7322 esac
7323     NMEDIT=$ac_ct_NMEDIT
7324   fi
7325 else
7326   NMEDIT="$ac_cv_prog_NMEDIT"
7327 fi
7328
7329     if test -n "$ac_tool_prefix"; then
7330   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7331 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_LIPO+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$LIPO"; then
7338   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 LIPO=$ac_cv_prog_LIPO
7358 if test -n "$LIPO"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7360 $as_echo "$LIPO" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367 fi
7368 if test -z "$ac_cv_prog_LIPO"; then
7369   ac_ct_LIPO=$LIPO
7370   # Extract the first word of "lipo", so it can be a program name with args.
7371 set dummy lipo; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7375   $as_echo_n "(cached) " >&6
7376 else
7377   if test -n "$ac_ct_LIPO"; then
7378   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7382 do
7383   IFS=$as_save_IFS
7384   test -z "$as_dir" && as_dir=.
7385     for ac_exec_ext in '' $ac_executable_extensions; do
7386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7387     ac_cv_prog_ac_ct_LIPO="lipo"
7388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389     break 2
7390   fi
7391 done
7392   done
7393 IFS=$as_save_IFS
7394
7395 fi
7396 fi
7397 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7398 if test -n "$ac_ct_LIPO"; then
7399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7400 $as_echo "$ac_ct_LIPO" >&6; }
7401 else
7402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7404 fi
7405
7406   if test "x$ac_ct_LIPO" = x; then
7407     LIPO=":"
7408   else
7409     case $cross_compiling:$ac_tool_warned in
7410 yes:)
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7412 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7413 ac_tool_warned=yes ;;
7414 esac
7415     LIPO=$ac_ct_LIPO
7416   fi
7417 else
7418   LIPO="$ac_cv_prog_LIPO"
7419 fi
7420
7421     if test -n "$ac_tool_prefix"; then
7422   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7423 set dummy ${ac_tool_prefix}otool; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_OTOOL+:} false; then :
7427   $as_echo_n "(cached) " >&6
7428 else
7429   if test -n "$OTOOL"; then
7430   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437     for ac_exec_ext in '' $ac_executable_extensions; do
7438   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7439     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444   done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 OTOOL=$ac_cv_prog_OTOOL
7450 if test -n "$OTOOL"; then
7451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7452 $as_echo "$OTOOL" >&6; }
7453 else
7454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7456 fi
7457
7458
7459 fi
7460 if test -z "$ac_cv_prog_OTOOL"; then
7461   ac_ct_OTOOL=$OTOOL
7462   # Extract the first word of "otool", so it can be a program name with args.
7463 set dummy otool; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7467   $as_echo_n "(cached) " >&6
7468 else
7469   if test -n "$ac_ct_OTOOL"; then
7470   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7471 else
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 for as_dir in $PATH
7474 do
7475   IFS=$as_save_IFS
7476   test -z "$as_dir" && as_dir=.
7477     for ac_exec_ext in '' $ac_executable_extensions; do
7478   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7479     ac_cv_prog_ac_ct_OTOOL="otool"
7480     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7481     break 2
7482   fi
7483 done
7484   done
7485 IFS=$as_save_IFS
7486
7487 fi
7488 fi
7489 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7490 if test -n "$ac_ct_OTOOL"; then
7491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7492 $as_echo "$ac_ct_OTOOL" >&6; }
7493 else
7494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7496 fi
7497
7498   if test "x$ac_ct_OTOOL" = x; then
7499     OTOOL=":"
7500   else
7501     case $cross_compiling:$ac_tool_warned in
7502 yes:)
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7505 ac_tool_warned=yes ;;
7506 esac
7507     OTOOL=$ac_ct_OTOOL
7508   fi
7509 else
7510   OTOOL="$ac_cv_prog_OTOOL"
7511 fi
7512
7513     if test -n "$ac_tool_prefix"; then
7514   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7515 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_OTOOL64+:} false; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$OTOOL64"; then
7522   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 OTOOL64=$ac_cv_prog_OTOOL64
7542 if test -n "$OTOOL64"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7544 $as_echo "$OTOOL64" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550
7551 fi
7552 if test -z "$ac_cv_prog_OTOOL64"; then
7553   ac_ct_OTOOL64=$OTOOL64
7554   # Extract the first word of "otool64", so it can be a program name with args.
7555 set dummy otool64; ac_word=$2
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7557 $as_echo_n "checking for $ac_word... " >&6; }
7558 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7559   $as_echo_n "(cached) " >&6
7560 else
7561   if test -n "$ac_ct_OTOOL64"; then
7562   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7563 else
7564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569     for ac_exec_ext in '' $ac_executable_extensions; do
7570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7571     ac_cv_prog_ac_ct_OTOOL64="otool64"
7572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576   done
7577 IFS=$as_save_IFS
7578
7579 fi
7580 fi
7581 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7582 if test -n "$ac_ct_OTOOL64"; then
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7584 $as_echo "$ac_ct_OTOOL64" >&6; }
7585 else
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7587 $as_echo "no" >&6; }
7588 fi
7589
7590   if test "x$ac_ct_OTOOL64" = x; then
7591     OTOOL64=":"
7592   else
7593     case $cross_compiling:$ac_tool_warned in
7594 yes:)
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7597 ac_tool_warned=yes ;;
7598 esac
7599     OTOOL64=$ac_ct_OTOOL64
7600   fi
7601 else
7602   OTOOL64="$ac_cv_prog_OTOOL64"
7603 fi
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7632 $as_echo_n "checking for -single_module linker flag... " >&6; }
7633 if ${lt_cv_apple_cc_single_mod+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   lt_cv_apple_cc_single_mod=no
7637       if test -z "${LT_MULTI_MODULE}"; then
7638         # By default we will add the -single_module flag. You can override
7639         # by either setting the environment variable LT_MULTI_MODULE
7640         # non-empty at configure time, or by adding -multi_module to the
7641         # link flags.
7642         rm -rf libconftest.dylib*
7643         echo "int foo(void){return 1;}" > conftest.c
7644         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7645 -dynamiclib -Wl,-single_module conftest.c" >&5
7646         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7647           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7648         _lt_result=$?
7649         # If there is a non-empty error log, and "single_module"
7650         # appears in it, assume the flag caused a linker warning
7651         if test -s conftest.err && $GREP single_module conftest.err; then
7652           cat conftest.err >&5
7653         # Otherwise, if the output was created with a 0 exit code from
7654         # the compiler, it worked.
7655         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7656           lt_cv_apple_cc_single_mod=yes
7657         else
7658           cat conftest.err >&5
7659         fi
7660         rm -rf libconftest.dylib*
7661         rm -f conftest.*
7662       fi
7663 fi
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7665 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7666
7667     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7668 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7669 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7670   $as_echo_n "(cached) " >&6
7671 else
7672   lt_cv_ld_exported_symbols_list=no
7673       save_LDFLAGS=$LDFLAGS
7674       echo "_main" > conftest.sym
7675       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7676       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7677 /* end confdefs.h.  */
7678
7679 int
7680 main ()
7681 {
7682
7683   ;
7684   return 0;
7685 }
7686 _ACEOF
7687 if ac_fn_c_try_link "$LINENO"; then :
7688   lt_cv_ld_exported_symbols_list=yes
7689 else
7690   lt_cv_ld_exported_symbols_list=no
7691 fi
7692 rm -f core conftest.err conftest.$ac_objext \
7693     conftest$ac_exeext conftest.$ac_ext
7694         LDFLAGS="$save_LDFLAGS"
7695
7696 fi
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7698 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7699
7700     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7701 $as_echo_n "checking for -force_load linker flag... " >&6; }
7702 if ${lt_cv_ld_force_load+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   lt_cv_ld_force_load=no
7706       cat > conftest.c << _LT_EOF
7707 int forced_loaded() { return 2;}
7708 _LT_EOF
7709       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7710       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7711       echo "$AR cru libconftest.a conftest.o" >&5
7712       $AR cru libconftest.a conftest.o 2>&5
7713       echo "$RANLIB libconftest.a" >&5
7714       $RANLIB libconftest.a 2>&5
7715       cat > conftest.c << _LT_EOF
7716 int main() { return 0;}
7717 _LT_EOF
7718       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7719       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7720       _lt_result=$?
7721       if test -s conftest.err && $GREP force_load conftest.err; then
7722         cat conftest.err >&5
7723       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7724         lt_cv_ld_force_load=yes
7725       else
7726         cat conftest.err >&5
7727       fi
7728         rm -f conftest.err libconftest.a conftest conftest.c
7729         rm -rf conftest.dSYM
7730
7731 fi
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7733 $as_echo "$lt_cv_ld_force_load" >&6; }
7734     case $host_os in
7735     rhapsody* | darwin1.[012])
7736       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7737     darwin1.*)
7738       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7739     darwin*) # darwin 5.x on
7740       # if running on 10.5 or later, the deployment target defaults
7741       # to the OS version, if on x86, and 10.4, the deployment
7742       # target defaults to 10.4. Don't you love it?
7743       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7744         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7745           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7746         10.[012]*)
7747           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7748         10.*)
7749           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7750       esac
7751     ;;
7752   esac
7753     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7754       _lt_dar_single_mod='$single_module'
7755     fi
7756     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7757       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7758     else
7759       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7760     fi
7761     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7762       _lt_dsymutil='~$DSYMUTIL $lib || :'
7763     else
7764       _lt_dsymutil=
7765     fi
7766     ;;
7767   esac
7768
7769 ac_ext=c
7770 ac_cpp='$CPP $CPPFLAGS'
7771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7775 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7776 # On Suns, sometimes $CPP names a directory.
7777 if test -n "$CPP" && test -d "$CPP"; then
7778   CPP=
7779 fi
7780 if test -z "$CPP"; then
7781   if ${ac_cv_prog_CPP+:} false; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784       # Double quotes because CPP needs to be expanded
7785     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7786     do
7787       ac_preproc_ok=false
7788 for ac_c_preproc_warn_flag in '' yes
7789 do
7790   # Use a header file that comes with gcc, so configuring glibc
7791   # with a fresh cross-compiler works.
7792   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7793   # <limits.h> exists even on freestanding compilers.
7794   # On the NeXT, cc -E runs the code through the compiler's parser,
7795   # not just through cpp. "Syntax error" is here to catch this case.
7796   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h.  */
7798 #ifdef __STDC__
7799 # include <limits.h>
7800 #else
7801 # include <assert.h>
7802 #endif
7803                      Syntax error
7804 _ACEOF
7805 if ac_fn_c_try_cpp "$LINENO"; then :
7806
7807 else
7808   # Broken: fails on valid input.
7809 continue
7810 fi
7811 rm -f conftest.err conftest.i conftest.$ac_ext
7812
7813   # OK, works on sane cases.  Now check whether nonexistent headers
7814   # can be detected and how.
7815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h.  */
7817 #include <ac_nonexistent.h>
7818 _ACEOF
7819 if ac_fn_c_try_cpp "$LINENO"; then :
7820   # Broken: success on invalid input.
7821 continue
7822 else
7823   # Passes both tests.
7824 ac_preproc_ok=:
7825 break
7826 fi
7827 rm -f conftest.err conftest.i conftest.$ac_ext
7828
7829 done
7830 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7831 rm -f conftest.i conftest.err conftest.$ac_ext
7832 if $ac_preproc_ok; then :
7833   break
7834 fi
7835
7836     done
7837     ac_cv_prog_CPP=$CPP
7838
7839 fi
7840   CPP=$ac_cv_prog_CPP
7841 else
7842   ac_cv_prog_CPP=$CPP
7843 fi
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7845 $as_echo "$CPP" >&6; }
7846 ac_preproc_ok=false
7847 for ac_c_preproc_warn_flag in '' yes
7848 do
7849   # Use a header file that comes with gcc, so configuring glibc
7850   # with a fresh cross-compiler works.
7851   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7852   # <limits.h> exists even on freestanding compilers.
7853   # On the NeXT, cc -E runs the code through the compiler's parser,
7854   # not just through cpp. "Syntax error" is here to catch this case.
7855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h.  */
7857 #ifdef __STDC__
7858 # include <limits.h>
7859 #else
7860 # include <assert.h>
7861 #endif
7862                      Syntax error
7863 _ACEOF
7864 if ac_fn_c_try_cpp "$LINENO"; then :
7865
7866 else
7867   # Broken: fails on valid input.
7868 continue
7869 fi
7870 rm -f conftest.err conftest.i conftest.$ac_ext
7871
7872   # OK, works on sane cases.  Now check whether nonexistent headers
7873   # can be detected and how.
7874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h.  */
7876 #include <ac_nonexistent.h>
7877 _ACEOF
7878 if ac_fn_c_try_cpp "$LINENO"; then :
7879   # Broken: success on invalid input.
7880 continue
7881 else
7882   # Passes both tests.
7883 ac_preproc_ok=:
7884 break
7885 fi
7886 rm -f conftest.err conftest.i conftest.$ac_ext
7887
7888 done
7889 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7890 rm -f conftest.i conftest.err conftest.$ac_ext
7891 if $ac_preproc_ok; then :
7892
7893 else
7894   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7895 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7896 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7897 See \`config.log' for more details" "$LINENO" 5; }
7898 fi
7899
7900 ac_ext=c
7901 ac_cpp='$CPP $CPPFLAGS'
7902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7905
7906
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7908 $as_echo_n "checking for ANSI C header files... " >&6; }
7909 if ${ac_cv_header_stdc+:} false; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h.  */
7914 #include <stdlib.h>
7915 #include <stdarg.h>
7916 #include <string.h>
7917 #include <float.h>
7918
7919 int
7920 main ()
7921 {
7922
7923   ;
7924   return 0;
7925 }
7926 _ACEOF
7927 if ac_fn_c_try_compile "$LINENO"; then :
7928   ac_cv_header_stdc=yes
7929 else
7930   ac_cv_header_stdc=no
7931 fi
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933
7934 if test $ac_cv_header_stdc = yes; then
7935   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7937 /* end confdefs.h.  */
7938 #include <string.h>
7939
7940 _ACEOF
7941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7942   $EGREP "memchr" >/dev/null 2>&1; then :
7943
7944 else
7945   ac_cv_header_stdc=no
7946 fi
7947 rm -f conftest*
7948
7949 fi
7950
7951 if test $ac_cv_header_stdc = yes; then
7952   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954 /* end confdefs.h.  */
7955 #include <stdlib.h>
7956
7957 _ACEOF
7958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7959   $EGREP "free" >/dev/null 2>&1; then :
7960
7961 else
7962   ac_cv_header_stdc=no
7963 fi
7964 rm -f conftest*
7965
7966 fi
7967
7968 if test $ac_cv_header_stdc = yes; then
7969   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7970   if test "$cross_compiling" = yes; then :
7971   :
7972 else
7973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h.  */
7975 #include <ctype.h>
7976 #include <stdlib.h>
7977 #if ((' ' & 0x0FF) == 0x020)
7978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7980 #else
7981 # define ISLOWER(c) \
7982                    (('a' <= (c) && (c) <= 'i') \
7983                      || ('j' <= (c) && (c) <= 'r') \
7984                      || ('s' <= (c) && (c) <= 'z'))
7985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7986 #endif
7987
7988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7989 int
7990 main ()
7991 {
7992   int i;
7993   for (i = 0; i < 256; i++)
7994     if (XOR (islower (i), ISLOWER (i))
7995         || toupper (i) != TOUPPER (i))
7996       return 2;
7997   return 0;
7998 }
7999 _ACEOF
8000 if ac_fn_c_try_run "$LINENO"; then :
8001
8002 else
8003   ac_cv_header_stdc=no
8004 fi
8005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8006   conftest.$ac_objext conftest.beam conftest.$ac_ext
8007 fi
8008
8009 fi
8010 fi
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8012 $as_echo "$ac_cv_header_stdc" >&6; }
8013 if test $ac_cv_header_stdc = yes; then
8014
8015 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8016
8017 fi
8018
8019 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8021                   inttypes.h stdint.h unistd.h
8022 do :
8023   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8024 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8025 "
8026 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8027   cat >>confdefs.h <<_ACEOF
8028 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8029 _ACEOF
8030
8031 fi
8032
8033 done
8034
8035
8036 for ac_header in dlfcn.h
8037 do :
8038   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8039 "
8040 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8041   cat >>confdefs.h <<_ACEOF
8042 #define HAVE_DLFCN_H 1
8043 _ACEOF
8044
8045 fi
8046
8047 done
8048
8049
8050
8051
8052
8053 # Set options
8054
8055
8056
8057         enable_dlopen=no
8058
8059
8060   enable_win32_dll=no
8061
8062
8063             # Check whether --enable-shared was given.
8064 if test "${enable_shared+set}" = set; then :
8065   enableval=$enable_shared; p=${PACKAGE-default}
8066     case $enableval in
8067     yes) enable_shared=yes ;;
8068     no) enable_shared=no ;;
8069     *)
8070       enable_shared=no
8071       # Look at the argument we got.  We use all the common list separators.
8072       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8073       for pkg in $enableval; do
8074         IFS="$lt_save_ifs"
8075         if test "X$pkg" = "X$p"; then
8076           enable_shared=yes
8077         fi
8078       done
8079       IFS="$lt_save_ifs"
8080       ;;
8081     esac
8082 else
8083   enable_shared=yes
8084 fi
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094   # Check whether --enable-static was given.
8095 if test "${enable_static+set}" = set; then :
8096   enableval=$enable_static; p=${PACKAGE-default}
8097     case $enableval in
8098     yes) enable_static=yes ;;
8099     no) enable_static=no ;;
8100     *)
8101      enable_static=no
8102       # Look at the argument we got.  We use all the common list separators.
8103       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8104       for pkg in $enableval; do
8105         IFS="$lt_save_ifs"
8106         if test "X$pkg" = "X$p"; then
8107           enable_static=yes
8108         fi
8109       done
8110       IFS="$lt_save_ifs"
8111       ;;
8112     esac
8113 else
8114   enable_static=yes
8115 fi
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 # Check whether --with-pic was given.
8127 if test "${with_pic+set}" = set; then :
8128   withval=$with_pic; lt_p=${PACKAGE-default}
8129     case $withval in
8130     yes|no) pic_mode=$withval ;;
8131     *)
8132       pic_mode=default
8133       # Look at the argument we got.  We use all the common list separators.
8134       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8135       for lt_pkg in $withval; do
8136         IFS="$lt_save_ifs"
8137         if test "X$lt_pkg" = "X$lt_p"; then
8138           pic_mode=yes
8139         fi
8140       done
8141       IFS="$lt_save_ifs"
8142       ;;
8143     esac
8144 else
8145   pic_mode=default
8146 fi
8147
8148
8149 test -z "$pic_mode" && pic_mode=default
8150
8151
8152
8153
8154
8155
8156
8157   # Check whether --enable-fast-install was given.
8158 if test "${enable_fast_install+set}" = set; then :
8159   enableval=$enable_fast_install; p=${PACKAGE-default}
8160     case $enableval in
8161     yes) enable_fast_install=yes ;;
8162     no) enable_fast_install=no ;;
8163     *)
8164       enable_fast_install=no
8165       # Look at the argument we got.  We use all the common list separators.
8166       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8167       for pkg in $enableval; do
8168         IFS="$lt_save_ifs"
8169         if test "X$pkg" = "X$p"; then
8170           enable_fast_install=yes
8171         fi
8172       done
8173       IFS="$lt_save_ifs"
8174       ;;
8175     esac
8176 else
8177   enable_fast_install=yes
8178 fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190 # This can be used to rebuild libtool when needed
8191 LIBTOOL_DEPS="$ltmain"
8192
8193 # Always use our own libtool.
8194 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 test -z "$LN_S" && LN_S="ln -s"
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240 if test -n "${ZSH_VERSION+set}" ; then
8241    setopt NO_GLOB_SUBST
8242 fi
8243
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8245 $as_echo_n "checking for objdir... " >&6; }
8246 if ${lt_cv_objdir+:} false; then :
8247   $as_echo_n "(cached) " >&6
8248 else
8249   rm -f .libs 2>/dev/null
8250 mkdir .libs 2>/dev/null
8251 if test -d .libs; then
8252   lt_cv_objdir=.libs
8253 else
8254   # MS-DOS does not allow filenames that begin with a dot.
8255   lt_cv_objdir=_libs
8256 fi
8257 rmdir .libs 2>/dev/null
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8260 $as_echo "$lt_cv_objdir" >&6; }
8261 objdir=$lt_cv_objdir
8262
8263
8264
8265
8266
8267 cat >>confdefs.h <<_ACEOF
8268 #define LT_OBJDIR "$lt_cv_objdir/"
8269 _ACEOF
8270
8271
8272
8273
8274 case $host_os in
8275 aix3*)
8276   # AIX sometimes has problems with the GCC collect2 program.  For some
8277   # reason, if we set the COLLECT_NAMES environment variable, the problems
8278   # vanish in a puff of smoke.
8279   if test "X${COLLECT_NAMES+set}" != Xset; then
8280     COLLECT_NAMES=
8281     export COLLECT_NAMES
8282   fi
8283   ;;
8284 esac
8285
8286 # Global variables:
8287 ofile=libtool
8288 can_build_shared=yes
8289
8290 # All known linkers require a `.a' archive for static linking (except MSVC,
8291 # which needs '.lib').
8292 libext=a
8293
8294 with_gnu_ld="$lt_cv_prog_gnu_ld"
8295
8296 old_CC="$CC"
8297 old_CFLAGS="$CFLAGS"
8298
8299 # Set sane defaults for various variables
8300 test -z "$CC" && CC=cc
8301 test -z "$LTCC" && LTCC=$CC
8302 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8303 test -z "$LD" && LD=ld
8304 test -z "$ac_objext" && ac_objext=o
8305
8306 for cc_temp in $compiler""; do
8307   case $cc_temp in
8308     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8309     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8310     \-*) ;;
8311     *) break;;
8312   esac
8313 done
8314 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8315
8316
8317 # Only perform the check for file, if the check method requires it
8318 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8319 case $deplibs_check_method in
8320 file_magic*)
8321   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8323 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8324 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8325   $as_echo_n "(cached) " >&6
8326 else
8327   case $MAGIC_CMD in
8328 [\\/*] |  ?:[\\/]*)
8329   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8330   ;;
8331 *)
8332   lt_save_MAGIC_CMD="$MAGIC_CMD"
8333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8334   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8335   for ac_dir in $ac_dummy; do
8336     IFS="$lt_save_ifs"
8337     test -z "$ac_dir" && ac_dir=.
8338     if test -f $ac_dir/${ac_tool_prefix}file; then
8339       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8340       if test -n "$file_magic_test_file"; then
8341         case $deplibs_check_method in
8342         "file_magic "*)
8343           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8344           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8345           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8346             $EGREP "$file_magic_regex" > /dev/null; then
8347             :
8348           else
8349             cat <<_LT_EOF 1>&2
8350
8351 *** Warning: the command libtool uses to detect shared libraries,
8352 *** $file_magic_cmd, produces output that libtool cannot recognize.
8353 *** The result is that libtool may fail to recognize shared libraries
8354 *** as such.  This will affect the creation of libtool libraries that
8355 *** depend on shared libraries, but programs linked with such libtool
8356 *** libraries will work regardless of this problem.  Nevertheless, you
8357 *** may want to report the problem to your system manager and/or to
8358 *** bug-libtool@gnu.org
8359
8360 _LT_EOF
8361           fi ;;
8362         esac
8363       fi
8364       break
8365     fi
8366   done
8367   IFS="$lt_save_ifs"
8368   MAGIC_CMD="$lt_save_MAGIC_CMD"
8369   ;;
8370 esac
8371 fi
8372
8373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8374 if test -n "$MAGIC_CMD"; then
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8376 $as_echo "$MAGIC_CMD" >&6; }
8377 else
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383
8384
8385
8386 if test -z "$lt_cv_path_MAGIC_CMD"; then
8387   if test -n "$ac_tool_prefix"; then
8388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8389 $as_echo_n "checking for file... " >&6; }
8390 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   case $MAGIC_CMD in
8394 [\\/*] |  ?:[\\/]*)
8395   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8396   ;;
8397 *)
8398   lt_save_MAGIC_CMD="$MAGIC_CMD"
8399   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8400   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8401   for ac_dir in $ac_dummy; do
8402     IFS="$lt_save_ifs"
8403     test -z "$ac_dir" && ac_dir=.
8404     if test -f $ac_dir/file; then
8405       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8406       if test -n "$file_magic_test_file"; then
8407         case $deplibs_check_method in
8408         "file_magic "*)
8409           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8410           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8412             $EGREP "$file_magic_regex" > /dev/null; then
8413             :
8414           else
8415             cat <<_LT_EOF 1>&2
8416
8417 *** Warning: the command libtool uses to detect shared libraries,
8418 *** $file_magic_cmd, produces output that libtool cannot recognize.
8419 *** The result is that libtool may fail to recognize shared libraries
8420 *** as such.  This will affect the creation of libtool libraries that
8421 *** depend on shared libraries, but programs linked with such libtool
8422 *** libraries will work regardless of this problem.  Nevertheless, you
8423 *** may want to report the problem to your system manager and/or to
8424 *** bug-libtool@gnu.org
8425
8426 _LT_EOF
8427           fi ;;
8428         esac
8429       fi
8430       break
8431     fi
8432   done
8433   IFS="$lt_save_ifs"
8434   MAGIC_CMD="$lt_save_MAGIC_CMD"
8435   ;;
8436 esac
8437 fi
8438
8439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8440 if test -n "$MAGIC_CMD"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8442 $as_echo "$MAGIC_CMD" >&6; }
8443 else
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448
8449   else
8450     MAGIC_CMD=:
8451   fi
8452 fi
8453
8454   fi
8455   ;;
8456 esac
8457
8458 # Use C for the default configuration in the libtool script
8459
8460 lt_save_CC="$CC"
8461 ac_ext=c
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
8467
8468 # Source file extension for C test sources.
8469 ac_ext=c
8470
8471 # Object file extension for compiled C test sources.
8472 objext=o
8473 objext=$objext
8474
8475 # Code to be used in simple compile tests
8476 lt_simple_compile_test_code="int some_variable = 0;"
8477
8478 # Code to be used in simple link tests
8479 lt_simple_link_test_code='int main(){return(0);}'
8480
8481
8482
8483
8484
8485
8486
8487 # If no C compiler was specified, use CC.
8488 LTCC=${LTCC-"$CC"}
8489
8490 # If no C compiler flags were specified, use CFLAGS.
8491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8492
8493 # Allow CC to be a program name with arguments.
8494 compiler=$CC
8495
8496 # Save the default compiler, since it gets overwritten when the other
8497 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8498 compiler_DEFAULT=$CC
8499
8500 # save warnings/boilerplate of simple test code
8501 ac_outfile=conftest.$ac_objext
8502 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8504 _lt_compiler_boilerplate=`cat conftest.err`
8505 $RM conftest*
8506
8507 ac_outfile=conftest.$ac_objext
8508 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8510 _lt_linker_boilerplate=`cat conftest.err`
8511 $RM -r conftest*
8512
8513
8514 if test -n "$compiler"; then
8515
8516 lt_prog_compiler_no_builtin_flag=
8517
8518 if test "$GCC" = yes; then
8519   case $cc_basename in
8520   nvcc*)
8521     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8522   *)
8523     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8524   esac
8525
8526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8527 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8528 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8529   $as_echo_n "(cached) " >&6
8530 else
8531   lt_cv_prog_compiler_rtti_exceptions=no
8532    ac_outfile=conftest.$ac_objext
8533    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8534    lt_compiler_flag="-fno-rtti -fno-exceptions"
8535    # Insert the option either (1) after the last *FLAGS variable, or
8536    # (2) before a word containing "conftest.", or (3) at the end.
8537    # Note that $ac_compile itself does not contain backslashes and begins
8538    # with a dollar sign (not a hyphen), so the echo should work correctly.
8539    # The option is referenced via a variable to avoid confusing sed.
8540    lt_compile=`echo "$ac_compile" | $SED \
8541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543    -e 's:$: $lt_compiler_flag:'`
8544    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8545    (eval "$lt_compile" 2>conftest.err)
8546    ac_status=$?
8547    cat conftest.err >&5
8548    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549    if (exit $ac_status) && test -s "$ac_outfile"; then
8550      # The compiler can only warn and ignore the option if not recognized
8551      # So say no if there are warnings other than the usual output.
8552      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8553      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8554      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8555        lt_cv_prog_compiler_rtti_exceptions=yes
8556      fi
8557    fi
8558    $RM conftest*
8559
8560 fi
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8562 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8563
8564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8565     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8566 else
8567     :
8568 fi
8569
8570 fi
8571
8572
8573
8574
8575
8576
8577   lt_prog_compiler_wl=
8578 lt_prog_compiler_pic=
8579 lt_prog_compiler_static=
8580
8581
8582   if test "$GCC" = yes; then
8583     lt_prog_compiler_wl='-Wl,'
8584     lt_prog_compiler_static='-static'
8585
8586     case $host_os in
8587       aix*)
8588       # All AIX code is PIC.
8589       if test "$host_cpu" = ia64; then
8590         # AIX 5 now supports IA64 processor
8591         lt_prog_compiler_static='-Bstatic'
8592       fi
8593       ;;
8594
8595     amigaos*)
8596       case $host_cpu in
8597       powerpc)
8598             # see comment about AmigaOS4 .so support
8599             lt_prog_compiler_pic='-fPIC'
8600         ;;
8601       m68k)
8602             # FIXME: we need at least 68020 code to build shared libraries, but
8603             # adding the `-m68020' flag to GCC prevents building anything better,
8604             # like `-m68040'.
8605             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8606         ;;
8607       esac
8608       ;;
8609
8610     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8611       # PIC is the default for these OSes.
8612       ;;
8613
8614     mingw* | cygwin* | pw32* | os2* | cegcc*)
8615       # This hack is so that the source file can tell whether it is being
8616       # built for inclusion in a dll (and should export symbols for example).
8617       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8618       # (--disable-auto-import) libraries
8619       lt_prog_compiler_pic='-DDLL_EXPORT'
8620       ;;
8621
8622     darwin* | rhapsody*)
8623       # PIC is the default on this platform
8624       # Common symbols not allowed in MH_DYLIB files
8625       lt_prog_compiler_pic='-fno-common'
8626       ;;
8627
8628     haiku*)
8629       # PIC is the default for Haiku.
8630       # The "-static" flag exists, but is broken.
8631       lt_prog_compiler_static=
8632       ;;
8633
8634     hpux*)
8635       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8636       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8637       # sets the default TLS model and affects inlining.
8638       case $host_cpu in
8639       hppa*64*)
8640         # +Z the default
8641         ;;
8642       *)
8643         lt_prog_compiler_pic='-fPIC'
8644         ;;
8645       esac
8646       ;;
8647
8648     interix[3-9]*)
8649       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8650       # Instead, we relocate shared libraries at runtime.
8651       ;;
8652
8653     msdosdjgpp*)
8654       # Just because we use GCC doesn't mean we suddenly get shared libraries
8655       # on systems that don't support them.
8656       lt_prog_compiler_can_build_shared=no
8657       enable_shared=no
8658       ;;
8659
8660     *nto* | *qnx*)
8661       # QNX uses GNU C++, but need to define -shared option too, otherwise
8662       # it will coredump.
8663       lt_prog_compiler_pic='-fPIC -shared'
8664       ;;
8665
8666     sysv4*MP*)
8667       if test -d /usr/nec; then
8668         lt_prog_compiler_pic=-Kconform_pic
8669       fi
8670       ;;
8671
8672     *)
8673       lt_prog_compiler_pic='-fPIC'
8674       ;;
8675     esac
8676
8677     case $cc_basename in
8678     nvcc*) # Cuda Compiler Driver 2.2
8679       lt_prog_compiler_wl='-Xlinker '
8680       if test -n "$lt_prog_compiler_pic"; then
8681         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8682       fi
8683       ;;
8684     esac
8685   else
8686     # PORTME Check for flag to pass linker flags through the system compiler.
8687     case $host_os in
8688     aix*)
8689       lt_prog_compiler_wl='-Wl,'
8690       if test "$host_cpu" = ia64; then
8691         # AIX 5 now supports IA64 processor
8692         lt_prog_compiler_static='-Bstatic'
8693       else
8694         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8695       fi
8696       ;;
8697
8698     mingw* | cygwin* | pw32* | os2* | cegcc*)
8699       # This hack is so that the source file can tell whether it is being
8700       # built for inclusion in a dll (and should export symbols for example).
8701       lt_prog_compiler_pic='-DDLL_EXPORT'
8702       ;;
8703
8704     hpux9* | hpux10* | hpux11*)
8705       lt_prog_compiler_wl='-Wl,'
8706       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8707       # not for PA HP-UX.
8708       case $host_cpu in
8709       hppa*64*|ia64*)
8710         # +Z the default
8711         ;;
8712       *)
8713         lt_prog_compiler_pic='+Z'
8714         ;;
8715       esac
8716       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8717       lt_prog_compiler_static='${wl}-a ${wl}archive'
8718       ;;
8719
8720     irix5* | irix6* | nonstopux*)
8721       lt_prog_compiler_wl='-Wl,'
8722       # PIC (with -KPIC) is the default.
8723       lt_prog_compiler_static='-non_shared'
8724       ;;
8725
8726     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8727       case $cc_basename in
8728       # old Intel for x86_64 which still supported -KPIC.
8729       ecc*)
8730         lt_prog_compiler_wl='-Wl,'
8731         lt_prog_compiler_pic='-KPIC'
8732         lt_prog_compiler_static='-static'
8733         ;;
8734       # icc used to be incompatible with GCC.
8735       # ICC 10 doesn't accept -KPIC any more.
8736       icc* | ifort*)
8737         lt_prog_compiler_wl='-Wl,'
8738         lt_prog_compiler_pic='-fPIC'
8739         lt_prog_compiler_static='-static'
8740         ;;
8741       # Lahey Fortran 8.1.
8742       lf95*)
8743         lt_prog_compiler_wl='-Wl,'
8744         lt_prog_compiler_pic='--shared'
8745         lt_prog_compiler_static='--static'
8746         ;;
8747       nagfor*)
8748         # NAG Fortran compiler
8749         lt_prog_compiler_wl='-Wl,-Wl,,'
8750         lt_prog_compiler_pic='-PIC'
8751         lt_prog_compiler_static='-Bstatic'
8752         ;;
8753       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8754         # Portland Group compilers (*not* the Pentium gcc compiler,
8755         # which looks to be a dead project)
8756         lt_prog_compiler_wl='-Wl,'
8757         lt_prog_compiler_pic='-fpic'
8758         lt_prog_compiler_static='-Bstatic'
8759         ;;
8760       ccc*)
8761         lt_prog_compiler_wl='-Wl,'
8762         # All Alpha code is PIC.
8763         lt_prog_compiler_static='-non_shared'
8764         ;;
8765       xl* | bgxl* | bgf* | mpixl*)
8766         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8767         lt_prog_compiler_wl='-Wl,'
8768         lt_prog_compiler_pic='-qpic'
8769         lt_prog_compiler_static='-qstaticlink'
8770         ;;
8771       *)
8772         case `$CC -V 2>&1 | sed 5q` in
8773         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8774           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8775           lt_prog_compiler_pic='-KPIC'
8776           lt_prog_compiler_static='-Bstatic'
8777           lt_prog_compiler_wl=''
8778           ;;
8779         *Sun\ F* | *Sun*Fortran*)
8780           lt_prog_compiler_pic='-KPIC'
8781           lt_prog_compiler_static='-Bstatic'
8782           lt_prog_compiler_wl='-Qoption ld '
8783           ;;
8784         *Sun\ C*)
8785           # Sun C 5.9
8786           lt_prog_compiler_pic='-KPIC'
8787           lt_prog_compiler_static='-Bstatic'
8788           lt_prog_compiler_wl='-Wl,'
8789           ;;
8790         *Intel*\ [CF]*Compiler*)
8791           lt_prog_compiler_wl='-Wl,'
8792           lt_prog_compiler_pic='-fPIC'
8793           lt_prog_compiler_static='-static'
8794           ;;
8795         *Portland\ Group*)
8796           lt_prog_compiler_wl='-Wl,'
8797           lt_prog_compiler_pic='-fpic'
8798           lt_prog_compiler_static='-Bstatic'
8799           ;;
8800         esac
8801         ;;
8802       esac
8803       ;;
8804
8805     newsos6)
8806       lt_prog_compiler_pic='-KPIC'
8807       lt_prog_compiler_static='-Bstatic'
8808       ;;
8809
8810     *nto* | *qnx*)
8811       # QNX uses GNU C++, but need to define -shared option too, otherwise
8812       # it will coredump.
8813       lt_prog_compiler_pic='-fPIC -shared'
8814       ;;
8815
8816     osf3* | osf4* | osf5*)
8817       lt_prog_compiler_wl='-Wl,'
8818       # All OSF/1 code is PIC.
8819       lt_prog_compiler_static='-non_shared'
8820       ;;
8821
8822     rdos*)
8823       lt_prog_compiler_static='-non_shared'
8824       ;;
8825
8826     solaris*)
8827       lt_prog_compiler_pic='-KPIC'
8828       lt_prog_compiler_static='-Bstatic'
8829       case $cc_basename in
8830       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8831         lt_prog_compiler_wl='-Qoption ld ';;
8832       *)
8833         lt_prog_compiler_wl='-Wl,';;
8834       esac
8835       ;;
8836
8837     sunos4*)
8838       lt_prog_compiler_wl='-Qoption ld '
8839       lt_prog_compiler_pic='-PIC'
8840       lt_prog_compiler_static='-Bstatic'
8841       ;;
8842
8843     sysv4 | sysv4.2uw2* | sysv4.3*)
8844       lt_prog_compiler_wl='-Wl,'
8845       lt_prog_compiler_pic='-KPIC'
8846       lt_prog_compiler_static='-Bstatic'
8847       ;;
8848
8849     sysv4*MP*)
8850       if test -d /usr/nec ;then
8851         lt_prog_compiler_pic='-Kconform_pic'
8852         lt_prog_compiler_static='-Bstatic'
8853       fi
8854       ;;
8855
8856     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8857       lt_prog_compiler_wl='-Wl,'
8858       lt_prog_compiler_pic='-KPIC'
8859       lt_prog_compiler_static='-Bstatic'
8860       ;;
8861
8862     unicos*)
8863       lt_prog_compiler_wl='-Wl,'
8864       lt_prog_compiler_can_build_shared=no
8865       ;;
8866
8867     uts4*)
8868       lt_prog_compiler_pic='-pic'
8869       lt_prog_compiler_static='-Bstatic'
8870       ;;
8871
8872     *)
8873       lt_prog_compiler_can_build_shared=no
8874       ;;
8875     esac
8876   fi
8877
8878 case $host_os in
8879   # For platforms which do not support PIC, -DPIC is meaningless:
8880   *djgpp*)
8881     lt_prog_compiler_pic=
8882     ;;
8883   *)
8884     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8885     ;;
8886 esac
8887
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8889 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8890 if ${lt_cv_prog_compiler_pic+:} false; then :
8891   $as_echo_n "(cached) " >&6
8892 else
8893   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8894 fi
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8896 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8897 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8898
8899 #
8900 # Check to make sure the PIC flag actually works.
8901 #
8902 if test -n "$lt_prog_compiler_pic"; then
8903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8904 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8905 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8906   $as_echo_n "(cached) " >&6
8907 else
8908   lt_cv_prog_compiler_pic_works=no
8909    ac_outfile=conftest.$ac_objext
8910    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8911    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8912    # Insert the option either (1) after the last *FLAGS variable, or
8913    # (2) before a word containing "conftest.", or (3) at the end.
8914    # Note that $ac_compile itself does not contain backslashes and begins
8915    # with a dollar sign (not a hyphen), so the echo should work correctly.
8916    # The option is referenced via a variable to avoid confusing sed.
8917    lt_compile=`echo "$ac_compile" | $SED \
8918    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8919    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8920    -e 's:$: $lt_compiler_flag:'`
8921    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8922    (eval "$lt_compile" 2>conftest.err)
8923    ac_status=$?
8924    cat conftest.err >&5
8925    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926    if (exit $ac_status) && test -s "$ac_outfile"; then
8927      # The compiler can only warn and ignore the option if not recognized
8928      # So say no if there are warnings other than the usual output.
8929      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8930      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8931      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8932        lt_cv_prog_compiler_pic_works=yes
8933      fi
8934    fi
8935    $RM conftest*
8936
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8939 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8940
8941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8942     case $lt_prog_compiler_pic in
8943      "" | " "*) ;;
8944      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8945      esac
8946 else
8947     lt_prog_compiler_pic=
8948      lt_prog_compiler_can_build_shared=no
8949 fi
8950
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 #
8964 # Check to make sure the static flag actually works.
8965 #
8966 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8968 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8969 if ${lt_cv_prog_compiler_static_works+:} false; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   lt_cv_prog_compiler_static_works=no
8973    save_LDFLAGS="$LDFLAGS"
8974    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8975    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8976    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8977      # The linker can only warn and ignore the option if not recognized
8978      # So say no if there are warnings
8979      if test -s conftest.err; then
8980        # Append any errors to the config.log.
8981        cat conftest.err 1>&5
8982        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8983        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8984        if diff conftest.exp conftest.er2 >/dev/null; then
8985          lt_cv_prog_compiler_static_works=yes
8986        fi
8987      else
8988        lt_cv_prog_compiler_static_works=yes
8989      fi
8990    fi
8991    $RM -r conftest*
8992    LDFLAGS="$save_LDFLAGS"
8993
8994 fi
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8996 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8997
8998 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8999     :
9000 else
9001     lt_prog_compiler_static=
9002 fi
9003
9004
9005
9006
9007
9008
9009
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9011 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9012 if ${lt_cv_prog_compiler_c_o+:} false; then :
9013   $as_echo_n "(cached) " >&6
9014 else
9015   lt_cv_prog_compiler_c_o=no
9016    $RM -r conftest 2>/dev/null
9017    mkdir conftest
9018    cd conftest
9019    mkdir out
9020    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9021
9022    lt_compiler_flag="-o out/conftest2.$ac_objext"
9023    # Insert the option either (1) after the last *FLAGS variable, or
9024    # (2) before a word containing "conftest.", or (3) at the end.
9025    # Note that $ac_compile itself does not contain backslashes and begins
9026    # with a dollar sign (not a hyphen), so the echo should work correctly.
9027    lt_compile=`echo "$ac_compile" | $SED \
9028    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9029    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9030    -e 's:$: $lt_compiler_flag:'`
9031    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9032    (eval "$lt_compile" 2>out/conftest.err)
9033    ac_status=$?
9034    cat out/conftest.err >&5
9035    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9036    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9037    then
9038      # The compiler can only warn and ignore the option if not recognized
9039      # So say no if there are warnings
9040      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9041      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9042      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9043        lt_cv_prog_compiler_c_o=yes
9044      fi
9045    fi
9046    chmod u+w . 2>&5
9047    $RM conftest*
9048    # SGI C++ compiler will create directory out/ii_files/ for
9049    # template instantiation
9050    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9051    $RM out/* && rmdir out
9052    cd ..
9053    $RM -r conftest
9054    $RM conftest*
9055
9056 fi
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9058 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9059
9060
9061
9062
9063
9064
9065   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9067 if ${lt_cv_prog_compiler_c_o+:} false; then :
9068   $as_echo_n "(cached) " >&6
9069 else
9070   lt_cv_prog_compiler_c_o=no
9071    $RM -r conftest 2>/dev/null
9072    mkdir conftest
9073    cd conftest
9074    mkdir out
9075    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9076
9077    lt_compiler_flag="-o out/conftest2.$ac_objext"
9078    # Insert the option either (1) after the last *FLAGS variable, or
9079    # (2) before a word containing "conftest.", or (3) at the end.
9080    # Note that $ac_compile itself does not contain backslashes and begins
9081    # with a dollar sign (not a hyphen), so the echo should work correctly.
9082    lt_compile=`echo "$ac_compile" | $SED \
9083    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9084    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9085    -e 's:$: $lt_compiler_flag:'`
9086    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9087    (eval "$lt_compile" 2>out/conftest.err)
9088    ac_status=$?
9089    cat out/conftest.err >&5
9090    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9091    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9092    then
9093      # The compiler can only warn and ignore the option if not recognized
9094      # So say no if there are warnings
9095      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9096      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9097      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9098        lt_cv_prog_compiler_c_o=yes
9099      fi
9100    fi
9101    chmod u+w . 2>&5
9102    $RM conftest*
9103    # SGI C++ compiler will create directory out/ii_files/ for
9104    # template instantiation
9105    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9106    $RM out/* && rmdir out
9107    cd ..
9108    $RM -r conftest
9109    $RM conftest*
9110
9111 fi
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9114
9115
9116
9117
9118 hard_links="nottested"
9119 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9120   # do not overwrite the value of need_locks provided by the user
9121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9122 $as_echo_n "checking if we can lock with hard links... " >&6; }
9123   hard_links=yes
9124   $RM conftest*
9125   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9126   touch conftest.a
9127   ln conftest.a conftest.b 2>&5 || hard_links=no
9128   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9130 $as_echo "$hard_links" >&6; }
9131   if test "$hard_links" = no; then
9132     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9133 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9134     need_locks=warn
9135   fi
9136 else
9137   need_locks=no
9138 fi
9139
9140
9141
9142
9143
9144
9145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9147
9148   runpath_var=
9149   allow_undefined_flag=
9150   always_export_symbols=no
9151   archive_cmds=
9152   archive_expsym_cmds=
9153   compiler_needs_object=no
9154   enable_shared_with_static_runtimes=no
9155   export_dynamic_flag_spec=
9156   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9157   hardcode_automatic=no
9158   hardcode_direct=no
9159   hardcode_direct_absolute=no
9160   hardcode_libdir_flag_spec=
9161   hardcode_libdir_separator=
9162   hardcode_minus_L=no
9163   hardcode_shlibpath_var=unsupported
9164   inherit_rpath=no
9165   link_all_deplibs=unknown
9166   module_cmds=
9167   module_expsym_cmds=
9168   old_archive_from_new_cmds=
9169   old_archive_from_expsyms_cmds=
9170   thread_safe_flag_spec=
9171   whole_archive_flag_spec=
9172   # include_expsyms should be a list of space-separated symbols to be *always*
9173   # included in the symbol list
9174   include_expsyms=
9175   # exclude_expsyms can be an extended regexp of symbols to exclude
9176   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9177   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9178   # as well as any symbol that contains `d'.
9179   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9180   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9181   # platforms (ab)use it in PIC code, but their linkers get confused if
9182   # the symbol is explicitly referenced.  Since portable code cannot
9183   # rely on this symbol name, it's probably fine to never include it in
9184   # preloaded symbol tables.
9185   # Exclude shared library initialization/finalization symbols.
9186   extract_expsyms_cmds=
9187
9188   case $host_os in
9189   cygwin* | mingw* | pw32* | cegcc*)
9190     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9191     # When not using gcc, we currently assume that we are using
9192     # Microsoft Visual C++.
9193     if test "$GCC" != yes; then
9194       with_gnu_ld=no
9195     fi
9196     ;;
9197   interix*)
9198     # we just hope/assume this is gcc and not c89 (= MSVC++)
9199     with_gnu_ld=yes
9200     ;;
9201   openbsd*)
9202     with_gnu_ld=no
9203     ;;
9204   esac
9205
9206   ld_shlibs=yes
9207
9208   # On some targets, GNU ld is compatible enough with the native linker
9209   # that we're better off using the native interface for both.
9210   lt_use_gnu_ld_interface=no
9211   if test "$with_gnu_ld" = yes; then
9212     case $host_os in
9213       aix*)
9214         # The AIX port of GNU ld has always aspired to compatibility
9215         # with the native linker.  However, as the warning in the GNU ld
9216         # block says, versions before 2.19.5* couldn't really create working
9217         # shared libraries, regardless of the interface used.
9218         case `$LD -v 2>&1` in
9219           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9220           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9221           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9222           *)
9223             lt_use_gnu_ld_interface=yes
9224             ;;
9225         esac
9226         ;;
9227       *)
9228         lt_use_gnu_ld_interface=yes
9229         ;;
9230     esac
9231   fi
9232
9233   if test "$lt_use_gnu_ld_interface" = yes; then
9234     # If archive_cmds runs LD, not CC, wlarc should be empty
9235     wlarc='${wl}'
9236
9237     # Set some defaults for GNU ld with shared library support. These
9238     # are reset later if shared libraries are not supported. Putting them
9239     # here allows them to be overridden if necessary.
9240     runpath_var=LD_RUN_PATH
9241     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242     export_dynamic_flag_spec='${wl}--export-dynamic'
9243     # ancient GNU ld didn't support --whole-archive et. al.
9244     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9245       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9246     else
9247       whole_archive_flag_spec=
9248     fi
9249     supports_anon_versioning=no
9250     case `$LD -v 2>&1` in
9251       *GNU\ gold*) supports_anon_versioning=yes ;;
9252       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9253       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9254       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9255       *\ 2.11.*) ;; # other 2.11 versions
9256       *) supports_anon_versioning=yes ;;
9257     esac
9258
9259     # See if GNU ld supports shared libraries.
9260     case $host_os in
9261     aix[3-9]*)
9262       # On AIX/PPC, the GNU linker is very broken
9263       if test "$host_cpu" != ia64; then
9264         ld_shlibs=no
9265         cat <<_LT_EOF 1>&2
9266
9267 *** Warning: the GNU linker, at least up to release 2.19, is reported
9268 *** to be unable to reliably create shared libraries on AIX.
9269 *** Therefore, libtool is disabling shared libraries support.  If you
9270 *** really care for shared libraries, you may want to install binutils
9271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9272 *** You will then need to restart the configuration process.
9273
9274 _LT_EOF
9275       fi
9276       ;;
9277
9278     amigaos*)
9279       case $host_cpu in
9280       powerpc)
9281             # see comment about AmigaOS4 .so support
9282             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9283             archive_expsym_cmds=''
9284         ;;
9285       m68k)
9286             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)'
9287             hardcode_libdir_flag_spec='-L$libdir'
9288             hardcode_minus_L=yes
9289         ;;
9290       esac
9291       ;;
9292
9293     beos*)
9294       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295         allow_undefined_flag=unsupported
9296         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9297         # support --undefined.  This deserves some investigation.  FIXME
9298         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9299       else
9300         ld_shlibs=no
9301       fi
9302       ;;
9303
9304     cygwin* | mingw* | pw32* | cegcc*)
9305       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9306       # as there is no search path for DLLs.
9307       hardcode_libdir_flag_spec='-L$libdir'
9308       export_dynamic_flag_spec='${wl}--export-all-symbols'
9309       allow_undefined_flag=unsupported
9310       always_export_symbols=no
9311       enable_shared_with_static_runtimes=yes
9312       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'
9313       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9314
9315       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9316         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9317         # If the export-symbols file already is a .def file (1st line
9318         # is EXPORTS), use it as is; otherwise, prepend...
9319         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9320           cp $export_symbols $output_objdir/$soname.def;
9321         else
9322           echo EXPORTS > $output_objdir/$soname.def;
9323           cat $export_symbols >> $output_objdir/$soname.def;
9324         fi~
9325         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9326       else
9327         ld_shlibs=no
9328       fi
9329       ;;
9330
9331     haiku*)
9332       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333       link_all_deplibs=yes
9334       ;;
9335
9336     interix[3-9]*)
9337       hardcode_direct=no
9338       hardcode_shlibpath_var=no
9339       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9340       export_dynamic_flag_spec='${wl}-E'
9341       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9342       # Instead, shared libraries are loaded at an image base (0x10000000 by
9343       # default) and relocated if they conflict, which is a slow very memory
9344       # consuming and fragmenting process.  To avoid this, we pick a random,
9345       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9346       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9347       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9348       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'
9349       ;;
9350
9351     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9352       tmp_diet=no
9353       if test "$host_os" = linux-dietlibc; then
9354         case $cc_basename in
9355           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9356         esac
9357       fi
9358       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9359          && test "$tmp_diet" = no
9360       then
9361         tmp_addflag=' $pic_flag'
9362         tmp_sharedflag='-shared'
9363         case $cc_basename,$host_cpu in
9364         pgcc*)                          # Portland Group C compiler
9365           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'
9366           tmp_addflag=' $pic_flag'
9367           ;;
9368         pgf77* | pgf90* | pgf95* | pgfortran*)
9369                                         # Portland Group f77 and f90 compilers
9370           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'
9371           tmp_addflag=' $pic_flag -Mnomain' ;;
9372         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9373           tmp_addflag=' -i_dynamic' ;;
9374         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9375           tmp_addflag=' -i_dynamic -nofor_main' ;;
9376         ifc* | ifort*)                  # Intel Fortran compiler
9377           tmp_addflag=' -nofor_main' ;;
9378         lf95*)                          # Lahey Fortran 8.1
9379           whole_archive_flag_spec=
9380           tmp_sharedflag='--shared' ;;
9381         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9382           tmp_sharedflag='-qmkshrobj'
9383           tmp_addflag= ;;
9384         nvcc*)  # Cuda Compiler Driver 2.2
9385           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9386           compiler_needs_object=yes
9387           ;;
9388         esac
9389         case `$CC -V 2>&1 | sed 5q` in
9390         *Sun\ C*)                       # Sun C 5.9
9391           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'
9392           compiler_needs_object=yes
9393           tmp_sharedflag='-G' ;;
9394         *Sun\ F*)                       # Sun Fortran 8.3
9395           tmp_sharedflag='-G' ;;
9396         esac
9397         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9398
9399         if test "x$supports_anon_versioning" = xyes; then
9400           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9401             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9402             echo "local: *; };" >> $output_objdir/$libname.ver~
9403             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9404         fi
9405
9406         case $cc_basename in
9407         xlf* | bgf* | bgxlf* | mpixlf*)
9408           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9409           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9410           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9411           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9412           if test "x$supports_anon_versioning" = xyes; then
9413             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9414               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9415               echo "local: *; };" >> $output_objdir/$libname.ver~
9416               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9417           fi
9418           ;;
9419         esac
9420       else
9421         ld_shlibs=no
9422       fi
9423       ;;
9424
9425     netbsd*)
9426       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9427         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9428         wlarc=
9429       else
9430         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9431         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9432       fi
9433       ;;
9434
9435     solaris*)
9436       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9437         ld_shlibs=no
9438         cat <<_LT_EOF 1>&2
9439
9440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9441 *** create shared libraries on Solaris systems.  Therefore, libtool
9442 *** is disabling shared libraries support.  We urge you to upgrade GNU
9443 *** binutils to release 2.9.1 or newer.  Another option is to modify
9444 *** your PATH or compiler configuration so that the native linker is
9445 *** used, and then restart.
9446
9447 _LT_EOF
9448       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9449         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9450         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9451       else
9452         ld_shlibs=no
9453       fi
9454       ;;
9455
9456     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9457       case `$LD -v 2>&1` in
9458         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9459         ld_shlibs=no
9460         cat <<_LT_EOF 1>&2
9461
9462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9463 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9464 *** is disabling shared libraries support.  We urge you to upgrade GNU
9465 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9466 *** your PATH or compiler configuration so that the native linker is
9467 *** used, and then restart.
9468
9469 _LT_EOF
9470         ;;
9471         *)
9472           # For security reasons, it is highly recommended that you always
9473           # use absolute paths for naming shared libraries, and exclude the
9474           # DT_RUNPATH tag from executables and libraries.  But doing so
9475           # requires that you compile everything twice, which is a pain.
9476           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9477             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9479             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9480           else
9481             ld_shlibs=no
9482           fi
9483         ;;
9484       esac
9485       ;;
9486
9487     sunos4*)
9488       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9489       wlarc=
9490       hardcode_direct=yes
9491       hardcode_shlibpath_var=no
9492       ;;
9493
9494     *)
9495       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9496         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9497         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9498       else
9499         ld_shlibs=no
9500       fi
9501       ;;
9502     esac
9503
9504     if test "$ld_shlibs" = no; then
9505       runpath_var=
9506       hardcode_libdir_flag_spec=
9507       export_dynamic_flag_spec=
9508       whole_archive_flag_spec=
9509     fi
9510   else
9511     # PORTME fill in a description of your system's linker (not GNU ld)
9512     case $host_os in
9513     aix3*)
9514       allow_undefined_flag=unsupported
9515       always_export_symbols=yes
9516       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'
9517       # Note: this linker hardcodes the directories in LIBPATH if there
9518       # are no directories specified by -L.
9519       hardcode_minus_L=yes
9520       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9521         # Neither direct hardcoding nor static linking is supported with a
9522         # broken collect2.
9523         hardcode_direct=unsupported
9524       fi
9525       ;;
9526
9527     aix[4-9]*)
9528       if test "$host_cpu" = ia64; then
9529         # On IA64, the linker does run time linking by default, so we don't
9530         # have to do anything special.
9531         aix_use_runtimelinking=no
9532         exp_sym_flag='-Bexport'
9533         no_entry_flag=""
9534       else
9535         # If we're using GNU nm, then we don't want the "-C" option.
9536         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9537         # Also, AIX nm treats weak defined symbols like other global
9538         # defined symbols, whereas GNU nm marks them as "W".
9539         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9540           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'
9541         else
9542           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'
9543         fi
9544         aix_use_runtimelinking=no
9545
9546         # Test if we are trying to use run time linking or normal
9547         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9548         # need to do runtime linking.
9549         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9550           for ld_flag in $LDFLAGS; do
9551           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9552             aix_use_runtimelinking=yes
9553             break
9554           fi
9555           done
9556           ;;
9557         esac
9558
9559         exp_sym_flag='-bexport'
9560         no_entry_flag='-bnoentry'
9561       fi
9562
9563       # When large executables or shared objects are built, AIX ld can
9564       # have problems creating the table of contents.  If linking a library
9565       # or program results in "error TOC overflow" add -mminimal-toc to
9566       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9567       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9568
9569       archive_cmds=''
9570       hardcode_direct=yes
9571       hardcode_direct_absolute=yes
9572       hardcode_libdir_separator=':'
9573       link_all_deplibs=yes
9574       file_list_spec='${wl}-f,'
9575
9576       if test "$GCC" = yes; then
9577         case $host_os in aix4.[012]|aix4.[012].*)
9578         # We only want to do this on AIX 4.2 and lower, the check
9579         # below for broken collect2 doesn't work under 4.3+
9580           collect2name=`${CC} -print-prog-name=collect2`
9581           if test -f "$collect2name" &&
9582            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9583           then
9584           # We have reworked collect2
9585           :
9586           else
9587           # We have old collect2
9588           hardcode_direct=unsupported
9589           # It fails to find uninstalled libraries when the uninstalled
9590           # path is not listed in the libpath.  Setting hardcode_minus_L
9591           # to unsupported forces relinking
9592           hardcode_minus_L=yes
9593           hardcode_libdir_flag_spec='-L$libdir'
9594           hardcode_libdir_separator=
9595           fi
9596           ;;
9597         esac
9598         shared_flag='-shared'
9599         if test "$aix_use_runtimelinking" = yes; then
9600           shared_flag="$shared_flag "'${wl}-G'
9601         fi
9602       else
9603         # not using gcc
9604         if test "$host_cpu" = ia64; then
9605         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9606         # chokes on -Wl,-G. The following line is correct:
9607           shared_flag='-G'
9608         else
9609           if test "$aix_use_runtimelinking" = yes; then
9610             shared_flag='${wl}-G'
9611           else
9612             shared_flag='${wl}-bM:SRE'
9613           fi
9614         fi
9615       fi
9616
9617       export_dynamic_flag_spec='${wl}-bexpall'
9618       # It seems that -bexpall does not export symbols beginning with
9619       # underscore (_), so it is better to generate a list of symbols to export.
9620       always_export_symbols=yes
9621       if test "$aix_use_runtimelinking" = yes; then
9622         # Warning - without using the other runtime loading flags (-brtl),
9623         # -berok will link without error, but may produce a broken library.
9624         allow_undefined_flag='-berok'
9625         # Determine the default libpath from the value encoded in an
9626         # empty executable.
9627         if test "${lt_cv_aix_libpath+set}" = set; then
9628   aix_libpath=$lt_cv_aix_libpath
9629 else
9630   if ${lt_cv_aix_libpath_+:} false; then :
9631   $as_echo_n "(cached) " >&6
9632 else
9633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9634 /* end confdefs.h.  */
9635
9636 int
9637 main ()
9638 {
9639
9640   ;
9641   return 0;
9642 }
9643 _ACEOF
9644 if ac_fn_c_try_link "$LINENO"; then :
9645
9646   lt_aix_libpath_sed='
9647       /Import File Strings/,/^$/ {
9648           /^0/ {
9649               s/^0  *\([^ ]*\) *$/\1/
9650               p
9651           }
9652       }'
9653   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9654   # Check for a 64-bit object if we didn't find anything.
9655   if test -z "$lt_cv_aix_libpath_"; then
9656     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9657   fi
9658 fi
9659 rm -f core conftest.err conftest.$ac_objext \
9660     conftest$ac_exeext conftest.$ac_ext
9661   if test -z "$lt_cv_aix_libpath_"; then
9662     lt_cv_aix_libpath_="/usr/lib:/lib"
9663   fi
9664
9665 fi
9666
9667   aix_libpath=$lt_cv_aix_libpath_
9668 fi
9669
9670         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9671         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"
9672       else
9673         if test "$host_cpu" = ia64; then
9674           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9675           allow_undefined_flag="-z nodefs"
9676           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"
9677         else
9678          # Determine the default libpath from the value encoded in an
9679          # empty executable.
9680          if test "${lt_cv_aix_libpath+set}" = set; then
9681   aix_libpath=$lt_cv_aix_libpath
9682 else
9683   if ${lt_cv_aix_libpath_+:} false; then :
9684   $as_echo_n "(cached) " >&6
9685 else
9686   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h.  */
9688
9689 int
9690 main ()
9691 {
9692
9693   ;
9694   return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698
9699   lt_aix_libpath_sed='
9700       /Import File Strings/,/^$/ {
9701           /^0/ {
9702               s/^0  *\([^ ]*\) *$/\1/
9703               p
9704           }
9705       }'
9706   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707   # Check for a 64-bit object if we didn't find anything.
9708   if test -z "$lt_cv_aix_libpath_"; then
9709     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9710   fi
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713     conftest$ac_exeext conftest.$ac_ext
9714   if test -z "$lt_cv_aix_libpath_"; then
9715     lt_cv_aix_libpath_="/usr/lib:/lib"
9716   fi
9717
9718 fi
9719
9720   aix_libpath=$lt_cv_aix_libpath_
9721 fi
9722
9723          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9724           # Warning - without using the other run time loading flags,
9725           # -berok will link without error, but may produce a broken library.
9726           no_undefined_flag=' ${wl}-bernotok'
9727           allow_undefined_flag=' ${wl}-berok'
9728           if test "$with_gnu_ld" = yes; then
9729             # We only use this code for GNU lds that support --whole-archive.
9730             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9731           else
9732             # Exported symbols can be pulled into shared objects from archives
9733             whole_archive_flag_spec='$convenience'
9734           fi
9735           archive_cmds_need_lc=yes
9736           # This is similar to how AIX traditionally builds its shared libraries.
9737           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'
9738         fi
9739       fi
9740       ;;
9741
9742     amigaos*)
9743       case $host_cpu in
9744       powerpc)
9745             # see comment about AmigaOS4 .so support
9746             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9747             archive_expsym_cmds=''
9748         ;;
9749       m68k)
9750             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)'
9751             hardcode_libdir_flag_spec='-L$libdir'
9752             hardcode_minus_L=yes
9753         ;;
9754       esac
9755       ;;
9756
9757     bsdi[45]*)
9758       export_dynamic_flag_spec=-rdynamic
9759       ;;
9760
9761     cygwin* | mingw* | pw32* | cegcc*)
9762       # When not using gcc, we currently assume that we are using
9763       # Microsoft Visual C++.
9764       # hardcode_libdir_flag_spec is actually meaningless, as there is
9765       # no search path for DLLs.
9766       case $cc_basename in
9767       cl*)
9768         # Native MSVC
9769         hardcode_libdir_flag_spec=' '
9770         allow_undefined_flag=unsupported
9771         always_export_symbols=yes
9772         file_list_spec='@'
9773         # Tell ltmain to make .lib files, not .a files.
9774         libext=lib
9775         # Tell ltmain to make .dll files, not .so files.
9776         shrext_cmds=".dll"
9777         # FIXME: Setting linknames here is a bad hack.
9778         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9779         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9780             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9781           else
9782             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9783           fi~
9784           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9785           linknames='
9786         # The linker will not automatically build a static lib if we build a DLL.
9787         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9788         enable_shared_with_static_runtimes=yes
9789         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9790         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9791         # Don't use ranlib
9792         old_postinstall_cmds='chmod 644 $oldlib'
9793         postlink_cmds='lt_outputfile="@OUTPUT@"~
9794           lt_tool_outputfile="@TOOL_OUTPUT@"~
9795           case $lt_outputfile in
9796             *.exe|*.EXE) ;;
9797             *)
9798               lt_outputfile="$lt_outputfile.exe"
9799               lt_tool_outputfile="$lt_tool_outputfile.exe"
9800               ;;
9801           esac~
9802           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9803             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9804             $RM "$lt_outputfile.manifest";
9805           fi'
9806         ;;
9807       *)
9808         # Assume MSVC wrapper
9809         hardcode_libdir_flag_spec=' '
9810         allow_undefined_flag=unsupported
9811         # Tell ltmain to make .lib files, not .a files.
9812         libext=lib
9813         # Tell ltmain to make .dll files, not .so files.
9814         shrext_cmds=".dll"
9815         # FIXME: Setting linknames here is a bad hack.
9816         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9817         # The linker will automatically build a .lib file if we build a DLL.
9818         old_archive_from_new_cmds='true'
9819         # FIXME: Should let the user specify the lib program.
9820         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9821         enable_shared_with_static_runtimes=yes
9822         ;;
9823       esac
9824       ;;
9825
9826     darwin* | rhapsody*)
9827
9828
9829   archive_cmds_need_lc=no
9830   hardcode_direct=no
9831   hardcode_automatic=yes
9832   hardcode_shlibpath_var=unsupported
9833   if test "$lt_cv_ld_force_load" = "yes"; then
9834     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\"`'
9835
9836   else
9837     whole_archive_flag_spec=''
9838   fi
9839   link_all_deplibs=yes
9840   allow_undefined_flag="$_lt_dar_allow_undefined"
9841   case $cc_basename in
9842      ifort*) _lt_dar_can_shared=yes ;;
9843      *) _lt_dar_can_shared=$GCC ;;
9844   esac
9845   if test "$_lt_dar_can_shared" = "yes"; then
9846     output_verbose_link_cmd=func_echo_all
9847     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9848     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9849     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}"
9850     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}"
9851
9852   else
9853   ld_shlibs=no
9854   fi
9855
9856       ;;
9857
9858     dgux*)
9859       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9860       hardcode_libdir_flag_spec='-L$libdir'
9861       hardcode_shlibpath_var=no
9862       ;;
9863
9864     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9865     # support.  Future versions do this automatically, but an explicit c++rt0.o
9866     # does not break anything, and helps significantly (at the cost of a little
9867     # extra space).
9868     freebsd2.2*)
9869       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9870       hardcode_libdir_flag_spec='-R$libdir'
9871       hardcode_direct=yes
9872       hardcode_shlibpath_var=no
9873       ;;
9874
9875     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9876     freebsd2.*)
9877       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9878       hardcode_direct=yes
9879       hardcode_minus_L=yes
9880       hardcode_shlibpath_var=no
9881       ;;
9882
9883     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9884     freebsd* | dragonfly*)
9885       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9886       hardcode_libdir_flag_spec='-R$libdir'
9887       hardcode_direct=yes
9888       hardcode_shlibpath_var=no
9889       ;;
9890
9891     hpux9*)
9892       if test "$GCC" = yes; then
9893         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'
9894       else
9895         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'
9896       fi
9897       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9898       hardcode_libdir_separator=:
9899       hardcode_direct=yes
9900
9901       # hardcode_minus_L: Not really in the search PATH,
9902       # but as the default location of the library.
9903       hardcode_minus_L=yes
9904       export_dynamic_flag_spec='${wl}-E'
9905       ;;
9906
9907     hpux10*)
9908       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9909         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9910       else
9911         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9912       fi
9913       if test "$with_gnu_ld" = no; then
9914         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9915         hardcode_libdir_separator=:
9916         hardcode_direct=yes
9917         hardcode_direct_absolute=yes
9918         export_dynamic_flag_spec='${wl}-E'
9919         # hardcode_minus_L: Not really in the search PATH,
9920         # but as the default location of the library.
9921         hardcode_minus_L=yes
9922       fi
9923       ;;
9924
9925     hpux11*)
9926       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9927         case $host_cpu in
9928         hppa*64*)
9929           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9930           ;;
9931         ia64*)
9932           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9933           ;;
9934         *)
9935           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9936           ;;
9937         esac
9938       else
9939         case $host_cpu in
9940         hppa*64*)
9941           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9942           ;;
9943         ia64*)
9944           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9945           ;;
9946         *)
9947
9948           # Older versions of the 11.00 compiler do not understand -b yet
9949           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9950           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9951 $as_echo_n "checking if $CC understands -b... " >&6; }
9952 if ${lt_cv_prog_compiler__b+:} false; then :
9953   $as_echo_n "(cached) " >&6
9954 else
9955   lt_cv_prog_compiler__b=no
9956    save_LDFLAGS="$LDFLAGS"
9957    LDFLAGS="$LDFLAGS -b"
9958    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9959    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9960      # The linker can only warn and ignore the option if not recognized
9961      # So say no if there are warnings
9962      if test -s conftest.err; then
9963        # Append any errors to the config.log.
9964        cat conftest.err 1>&5
9965        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9966        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9967        if diff conftest.exp conftest.er2 >/dev/null; then
9968          lt_cv_prog_compiler__b=yes
9969        fi
9970      else
9971        lt_cv_prog_compiler__b=yes
9972      fi
9973    fi
9974    $RM -r conftest*
9975    LDFLAGS="$save_LDFLAGS"
9976
9977 fi
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9979 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9980
9981 if test x"$lt_cv_prog_compiler__b" = xyes; then
9982     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9983 else
9984     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9985 fi
9986
9987           ;;
9988         esac
9989       fi
9990       if test "$with_gnu_ld" = no; then
9991         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992         hardcode_libdir_separator=:
9993
9994         case $host_cpu in
9995         hppa*64*|ia64*)
9996           hardcode_direct=no
9997           hardcode_shlibpath_var=no
9998           ;;
9999         *)
10000           hardcode_direct=yes
10001           hardcode_direct_absolute=yes
10002           export_dynamic_flag_spec='${wl}-E'
10003
10004           # hardcode_minus_L: Not really in the search PATH,
10005           # but as the default location of the library.
10006           hardcode_minus_L=yes
10007           ;;
10008         esac
10009       fi
10010       ;;
10011
10012     irix5* | irix6* | nonstopux*)
10013       if test "$GCC" = yes; then
10014         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'
10015         # Try to use the -exported_symbol ld option, if it does not
10016         # work, assume that -exports_file does not work either and
10017         # implicitly export all symbols.
10018         # This should be the same for all languages, so no per-tag cache variable.
10019         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10020 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10021 if ${lt_cv_irix_exported_symbol+:} false; then :
10022   $as_echo_n "(cached) " >&6
10023 else
10024   save_LDFLAGS="$LDFLAGS"
10025            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10026            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10027 /* end confdefs.h.  */
10028 int foo (void) { return 0; }
10029 _ACEOF
10030 if ac_fn_c_try_link "$LINENO"; then :
10031   lt_cv_irix_exported_symbol=yes
10032 else
10033   lt_cv_irix_exported_symbol=no
10034 fi
10035 rm -f core conftest.err conftest.$ac_objext \
10036     conftest$ac_exeext conftest.$ac_ext
10037            LDFLAGS="$save_LDFLAGS"
10038 fi
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10040 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10041         if test "$lt_cv_irix_exported_symbol" = yes; then
10042           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'
10043         fi
10044       else
10045         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'
10046         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'
10047       fi
10048       archive_cmds_need_lc='no'
10049       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10050       hardcode_libdir_separator=:
10051       inherit_rpath=yes
10052       link_all_deplibs=yes
10053       ;;
10054
10055     netbsd*)
10056       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10057         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10058       else
10059         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10060       fi
10061       hardcode_libdir_flag_spec='-R$libdir'
10062       hardcode_direct=yes
10063       hardcode_shlibpath_var=no
10064       ;;
10065
10066     newsos6)
10067       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10068       hardcode_direct=yes
10069       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10070       hardcode_libdir_separator=:
10071       hardcode_shlibpath_var=no
10072       ;;
10073
10074     *nto* | *qnx*)
10075       ;;
10076
10077     openbsd*)
10078       if test -f /usr/libexec/ld.so; then
10079         hardcode_direct=yes
10080         hardcode_shlibpath_var=no
10081         hardcode_direct_absolute=yes
10082         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10083           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10084           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10085           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10086           export_dynamic_flag_spec='${wl}-E'
10087         else
10088           case $host_os in
10089            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10090              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10091              hardcode_libdir_flag_spec='-R$libdir'
10092              ;;
10093            *)
10094              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10095              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10096              ;;
10097           esac
10098         fi
10099       else
10100         ld_shlibs=no
10101       fi
10102       ;;
10103
10104     os2*)
10105       hardcode_libdir_flag_spec='-L$libdir'
10106       hardcode_minus_L=yes
10107       allow_undefined_flag=unsupported
10108       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'
10109       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10110       ;;
10111
10112     osf3*)
10113       if test "$GCC" = yes; then
10114         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10115         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'
10116       else
10117         allow_undefined_flag=' -expect_unresolved \*'
10118         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'
10119       fi
10120       archive_cmds_need_lc='no'
10121       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10122       hardcode_libdir_separator=:
10123       ;;
10124
10125     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10126       if test "$GCC" = yes; then
10127         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10128         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'
10129         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10130       else
10131         allow_undefined_flag=' -expect_unresolved \*'
10132         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'
10133         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~
10134         $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'
10135
10136         # Both c and cxx compiler support -rpath directly
10137         hardcode_libdir_flag_spec='-rpath $libdir'
10138       fi
10139       archive_cmds_need_lc='no'
10140       hardcode_libdir_separator=:
10141       ;;
10142
10143     solaris*)
10144       no_undefined_flag=' -z defs'
10145       if test "$GCC" = yes; then
10146         wlarc='${wl}'
10147         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10148         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10149           $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'
10150       else
10151         case `$CC -V 2>&1` in
10152         *"Compilers 5.0"*)
10153           wlarc=''
10154           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10155           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10156           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10157           ;;
10158         *)
10159           wlarc='${wl}'
10160           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10161           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10162           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10163           ;;
10164         esac
10165       fi
10166       hardcode_libdir_flag_spec='-R$libdir'
10167       hardcode_shlibpath_var=no
10168       case $host_os in
10169       solaris2.[0-5] | solaris2.[0-5].*) ;;
10170       *)
10171         # The compiler driver will combine and reorder linker options,
10172         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10173         # but is careful enough not to reorder.
10174         # Supported since Solaris 2.6 (maybe 2.5.1?)
10175         if test "$GCC" = yes; then
10176           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10177         else
10178           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10179         fi
10180         ;;
10181       esac
10182       link_all_deplibs=yes
10183       ;;
10184
10185     sunos4*)
10186       if test "x$host_vendor" = xsequent; then
10187         # Use $CC to link under sequent, because it throws in some extra .o
10188         # files that make .init and .fini sections work.
10189         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10190       else
10191         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10192       fi
10193       hardcode_libdir_flag_spec='-L$libdir'
10194       hardcode_direct=yes
10195       hardcode_minus_L=yes
10196       hardcode_shlibpath_var=no
10197       ;;
10198
10199     sysv4)
10200       case $host_vendor in
10201         sni)
10202           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10203           hardcode_direct=yes # is this really true???
10204         ;;
10205         siemens)
10206           ## LD is ld it makes a PLAMLIB
10207           ## CC just makes a GrossModule.
10208           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10209           reload_cmds='$CC -r -o $output$reload_objs'
10210           hardcode_direct=no
10211         ;;
10212         motorola)
10213           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10215         ;;
10216       esac
10217       runpath_var='LD_RUN_PATH'
10218       hardcode_shlibpath_var=no
10219       ;;
10220
10221     sysv4.3*)
10222       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10223       hardcode_shlibpath_var=no
10224       export_dynamic_flag_spec='-Bexport'
10225       ;;
10226
10227     sysv4*MP*)
10228       if test -d /usr/nec; then
10229         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10230         hardcode_shlibpath_var=no
10231         runpath_var=LD_RUN_PATH
10232         hardcode_runpath_var=yes
10233         ld_shlibs=yes
10234       fi
10235       ;;
10236
10237     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10238       no_undefined_flag='${wl}-z,text'
10239       archive_cmds_need_lc=no
10240       hardcode_shlibpath_var=no
10241       runpath_var='LD_RUN_PATH'
10242
10243       if test "$GCC" = yes; then
10244         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10245         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10246       else
10247         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10248         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10249       fi
10250       ;;
10251
10252     sysv5* | sco3.2v5* | sco5v6*)
10253       # Note: We can NOT use -z defs as we might desire, because we do not
10254       # link with -lc, and that would cause any symbols used from libc to
10255       # always be unresolved, which means just about no library would
10256       # ever link correctly.  If we're not using GNU ld we use -z text
10257       # though, which does catch some bad symbols but isn't as heavy-handed
10258       # as -z defs.
10259       no_undefined_flag='${wl}-z,text'
10260       allow_undefined_flag='${wl}-z,nodefs'
10261       archive_cmds_need_lc=no
10262       hardcode_shlibpath_var=no
10263       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10264       hardcode_libdir_separator=':'
10265       link_all_deplibs=yes
10266       export_dynamic_flag_spec='${wl}-Bexport'
10267       runpath_var='LD_RUN_PATH'
10268
10269       if test "$GCC" = yes; then
10270         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10271         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10272       else
10273         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10274         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10275       fi
10276       ;;
10277
10278     uts4*)
10279       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280       hardcode_libdir_flag_spec='-L$libdir'
10281       hardcode_shlibpath_var=no
10282       ;;
10283
10284     *)
10285       ld_shlibs=no
10286       ;;
10287     esac
10288
10289     if test x$host_vendor = xsni; then
10290       case $host in
10291       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10292         export_dynamic_flag_spec='${wl}-Blargedynsym'
10293         ;;
10294       esac
10295     fi
10296   fi
10297
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10299 $as_echo "$ld_shlibs" >&6; }
10300 test "$ld_shlibs" = no && can_build_shared=no
10301
10302 with_gnu_ld=$with_gnu_ld
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 #
10319 # Do we need to explicitly link libc?
10320 #
10321 case "x$archive_cmds_need_lc" in
10322 x|xyes)
10323   # Assume -lc should be added
10324   archive_cmds_need_lc=yes
10325
10326   if test "$enable_shared" = yes && test "$GCC" = yes; then
10327     case $archive_cmds in
10328     *'~'*)
10329       # FIXME: we may have to deal with multi-command sequences.
10330       ;;
10331     '$CC '*)
10332       # Test whether the compiler implicitly links with -lc since on some
10333       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10334       # to ld, don't add -lc before -lgcc.
10335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10336 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10337 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10338   $as_echo_n "(cached) " >&6
10339 else
10340   $RM conftest*
10341         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10342
10343         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10344   (eval $ac_compile) 2>&5
10345   ac_status=$?
10346   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10347   test $ac_status = 0; } 2>conftest.err; then
10348           soname=conftest
10349           lib=conftest
10350           libobjs=conftest.$ac_objext
10351           deplibs=
10352           wl=$lt_prog_compiler_wl
10353           pic_flag=$lt_prog_compiler_pic
10354           compiler_flags=-v
10355           linker_flags=-v
10356           verstring=
10357           output_objdir=.
10358           libname=conftest
10359           lt_save_allow_undefined_flag=$allow_undefined_flag
10360           allow_undefined_flag=
10361           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10362   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10363   ac_status=$?
10364   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365   test $ac_status = 0; }
10366           then
10367             lt_cv_archive_cmds_need_lc=no
10368           else
10369             lt_cv_archive_cmds_need_lc=yes
10370           fi
10371           allow_undefined_flag=$lt_save_allow_undefined_flag
10372         else
10373           cat conftest.err 1>&5
10374         fi
10375         $RM conftest*
10376
10377 fi
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10379 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10380       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10381       ;;
10382     esac
10383   fi
10384   ;;
10385 esac
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10539 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10540
10541 if test "$GCC" = yes; then
10542   case $host_os in
10543     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10544     *) lt_awk_arg="/^libraries:/" ;;
10545   esac
10546   case $host_os in
10547     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10548     *) lt_sed_strip_eq="s,=/,/,g" ;;
10549   esac
10550   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10551   case $lt_search_path_spec in
10552   *\;*)
10553     # if the path contains ";" then we assume it to be the separator
10554     # otherwise default to the standard path separator (i.e. ":") - it is
10555     # assumed that no part of a normal pathname contains ";" but that should
10556     # okay in the real world where ";" in dirpaths is itself problematic.
10557     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10558     ;;
10559   *)
10560     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10561     ;;
10562   esac
10563   # Ok, now we have the path, separated by spaces, we can step through it
10564   # and add multilib dir if necessary.
10565   lt_tmp_lt_search_path_spec=
10566   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10567   for lt_sys_path in $lt_search_path_spec; do
10568     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10569       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10570     else
10571       test -d "$lt_sys_path" && \
10572         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10573     fi
10574   done
10575   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10576 BEGIN {RS=" "; FS="/|\n";} {
10577   lt_foo="";
10578   lt_count=0;
10579   for (lt_i = NF; lt_i > 0; lt_i--) {
10580     if ($lt_i != "" && $lt_i != ".") {
10581       if ($lt_i == "..") {
10582         lt_count++;
10583       } else {
10584         if (lt_count == 0) {
10585           lt_foo="/" $lt_i lt_foo;
10586         } else {
10587           lt_count--;
10588         }
10589       }
10590     }
10591   }
10592   if (lt_foo != "") { lt_freq[lt_foo]++; }
10593   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10594 }'`
10595   # AWK program above erroneously prepends '/' to C:/dos/paths
10596   # for these hosts.
10597   case $host_os in
10598     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10599       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10600   esac
10601   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10602 else
10603   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10604 fi
10605 library_names_spec=
10606 libname_spec='lib$name'
10607 soname_spec=
10608 shrext_cmds=".so"
10609 postinstall_cmds=
10610 postuninstall_cmds=
10611 finish_cmds=
10612 finish_eval=
10613 shlibpath_var=
10614 shlibpath_overrides_runpath=unknown
10615 version_type=none
10616 dynamic_linker="$host_os ld.so"
10617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10618 need_lib_prefix=unknown
10619 hardcode_into_libs=no
10620
10621 # when you set need_version to no, make sure it does not cause -set_version
10622 # flags to be left without arguments
10623 need_version=unknown
10624
10625 case $host_os in
10626 aix3*)
10627   version_type=linux # correct to gnu/linux during the next big refactor
10628   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10629   shlibpath_var=LIBPATH
10630
10631   # AIX 3 has no versioning support, so we append a major version to the name.
10632   soname_spec='${libname}${release}${shared_ext}$major'
10633   ;;
10634
10635 aix[4-9]*)
10636   version_type=linux # correct to gnu/linux during the next big refactor
10637   need_lib_prefix=no
10638   need_version=no
10639   hardcode_into_libs=yes
10640   if test "$host_cpu" = ia64; then
10641     # AIX 5 supports IA64
10642     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10643     shlibpath_var=LD_LIBRARY_PATH
10644   else
10645     # With GCC up to 2.95.x, collect2 would create an import file
10646     # for dependence libraries.  The import file would start with
10647     # the line `#! .'.  This would cause the generated library to
10648     # depend on `.', always an invalid library.  This was fixed in
10649     # development snapshots of GCC prior to 3.0.
10650     case $host_os in
10651       aix4 | aix4.[01] | aix4.[01].*)
10652       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10653            echo ' yes '
10654            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10655         :
10656       else
10657         can_build_shared=no
10658       fi
10659       ;;
10660     esac
10661     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10662     # soname into executable. Probably we can add versioning support to
10663     # collect2, so additional links can be useful in future.
10664     if test "$aix_use_runtimelinking" = yes; then
10665       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10666       # instead of lib<name>.a to let people know that these are not
10667       # typical AIX shared libraries.
10668       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669     else
10670       # We preserve .a as extension for shared libraries through AIX4.2
10671       # and later when we are not doing run time linking.
10672       library_names_spec='${libname}${release}.a $libname.a'
10673       soname_spec='${libname}${release}${shared_ext}$major'
10674     fi
10675     shlibpath_var=LIBPATH
10676   fi
10677   ;;
10678
10679 amigaos*)
10680   case $host_cpu in
10681   powerpc)
10682     # Since July 2007 AmigaOS4 officially supports .so libraries.
10683     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10685     ;;
10686   m68k)
10687     library_names_spec='$libname.ixlibrary $libname.a'
10688     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10689     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'
10690     ;;
10691   esac
10692   ;;
10693
10694 beos*)
10695   library_names_spec='${libname}${shared_ext}'
10696   dynamic_linker="$host_os ld.so"
10697   shlibpath_var=LIBRARY_PATH
10698   ;;
10699
10700 bsdi[45]*)
10701   version_type=linux # correct to gnu/linux during the next big refactor
10702   need_version=no
10703   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704   soname_spec='${libname}${release}${shared_ext}$major'
10705   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10706   shlibpath_var=LD_LIBRARY_PATH
10707   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10708   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10709   # the default ld.so.conf also contains /usr/contrib/lib and
10710   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10711   # libtool to hard-code these into programs
10712   ;;
10713
10714 cygwin* | mingw* | pw32* | cegcc*)
10715   version_type=windows
10716   shrext_cmds=".dll"
10717   need_version=no
10718   need_lib_prefix=no
10719
10720   case $GCC,$cc_basename in
10721   yes,*)
10722     # gcc
10723     library_names_spec='$libname.dll.a'
10724     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10725     postinstall_cmds='base_file=`basename \${file}`~
10726       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10727       dldir=$destdir/`dirname \$dlpath`~
10728       test -d \$dldir || mkdir -p \$dldir~
10729       $install_prog $dir/$dlname \$dldir/$dlname~
10730       chmod a+x \$dldir/$dlname~
10731       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10732         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10733       fi'
10734     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10735       dlpath=$dir/\$dldll~
10736        $RM \$dlpath'
10737     shlibpath_overrides_runpath=yes
10738
10739     case $host_os in
10740     cygwin*)
10741       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10742       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10743
10744       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10745       ;;
10746     mingw* | cegcc*)
10747       # MinGW DLLs use traditional 'lib' prefix
10748       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10749       ;;
10750     pw32*)
10751       # pw32 DLLs use 'pw' prefix rather than 'lib'
10752       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10753       ;;
10754     esac
10755     dynamic_linker='Win32 ld.exe'
10756     ;;
10757
10758   *,cl*)
10759     # Native MSVC
10760     libname_spec='$name'
10761     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10762     library_names_spec='${libname}.dll.lib'
10763
10764     case $build_os in
10765     mingw*)
10766       sys_lib_search_path_spec=
10767       lt_save_ifs=$IFS
10768       IFS=';'
10769       for lt_path in $LIB
10770       do
10771         IFS=$lt_save_ifs
10772         # Let DOS variable expansion print the short 8.3 style file name.
10773         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10774         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10775       done
10776       IFS=$lt_save_ifs
10777       # Convert to MSYS style.
10778       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10779       ;;
10780     cygwin*)
10781       # Convert to unix form, then to dos form, then back to unix form
10782       # but this time dos style (no spaces!) so that the unix form looks
10783       # like /cygdrive/c/PROGRA~1:/cygdr...
10784       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10785       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10786       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10787       ;;
10788     *)
10789       sys_lib_search_path_spec="$LIB"
10790       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10791         # It is most probably a Windows format PATH.
10792         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10793       else
10794         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10795       fi
10796       # FIXME: find the short name or the path components, as spaces are
10797       # common. (e.g. "Program Files" -> "PROGRA~1")
10798       ;;
10799     esac
10800
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     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10808       dlpath=$dir/\$dldll~
10809        $RM \$dlpath'
10810     shlibpath_overrides_runpath=yes
10811     dynamic_linker='Win32 link.exe'
10812     ;;
10813
10814   *)
10815     # Assume MSVC wrapper
10816     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10817     dynamic_linker='Win32 ld.exe'
10818     ;;
10819   esac
10820   # FIXME: first we should search . and the directory the executable is in
10821   shlibpath_var=PATH
10822   ;;
10823
10824 darwin* | rhapsody*)
10825   dynamic_linker="$host_os dyld"
10826   version_type=darwin
10827   need_lib_prefix=no
10828   need_version=no
10829   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10830   soname_spec='${libname}${release}${major}$shared_ext'
10831   shlibpath_overrides_runpath=yes
10832   shlibpath_var=DYLD_LIBRARY_PATH
10833   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10834
10835   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10836   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10837   ;;
10838
10839 dgux*)
10840   version_type=linux # correct to gnu/linux during the next big refactor
10841   need_lib_prefix=no
10842   need_version=no
10843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10844   soname_spec='${libname}${release}${shared_ext}$major'
10845   shlibpath_var=LD_LIBRARY_PATH
10846   ;;
10847
10848 freebsd* | dragonfly*)
10849   # DragonFly does not have aout.  When/if they implement a new
10850   # versioning mechanism, adjust this.
10851   if test -x /usr/bin/objformat; then
10852     objformat=`/usr/bin/objformat`
10853   else
10854     case $host_os in
10855     freebsd[23].*) objformat=aout ;;
10856     *) objformat=elf ;;
10857     esac
10858   fi
10859   version_type=freebsd-$objformat
10860   case $version_type in
10861     freebsd-elf*)
10862       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10863       need_version=no
10864       need_lib_prefix=no
10865       ;;
10866     freebsd-*)
10867       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10868       need_version=yes
10869       ;;
10870   esac
10871   shlibpath_var=LD_LIBRARY_PATH
10872   case $host_os in
10873   freebsd2.*)
10874     shlibpath_overrides_runpath=yes
10875     ;;
10876   freebsd3.[01]* | freebsdelf3.[01]*)
10877     shlibpath_overrides_runpath=yes
10878     hardcode_into_libs=yes
10879     ;;
10880   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10881   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10882     shlibpath_overrides_runpath=no
10883     hardcode_into_libs=yes
10884     ;;
10885   *) # from 4.6 on, and DragonFly
10886     shlibpath_overrides_runpath=yes
10887     hardcode_into_libs=yes
10888     ;;
10889   esac
10890   ;;
10891
10892 gnu*)
10893   version_type=linux # correct to gnu/linux during the next big refactor
10894   need_lib_prefix=no
10895   need_version=no
10896   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10897   soname_spec='${libname}${release}${shared_ext}$major'
10898   shlibpath_var=LD_LIBRARY_PATH
10899   shlibpath_overrides_runpath=no
10900   hardcode_into_libs=yes
10901   ;;
10902
10903 haiku*)
10904   version_type=linux # correct to gnu/linux during the next big refactor
10905   need_lib_prefix=no
10906   need_version=no
10907   dynamic_linker="$host_os runtime_loader"
10908   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10909   soname_spec='${libname}${release}${shared_ext}$major'
10910   shlibpath_var=LIBRARY_PATH
10911   shlibpath_overrides_runpath=yes
10912   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10913   hardcode_into_libs=yes
10914   ;;
10915
10916 hpux9* | hpux10* | hpux11*)
10917   # Give a soname corresponding to the major version so that dld.sl refuses to
10918   # link against other versions.
10919   version_type=sunos
10920   need_lib_prefix=no
10921   need_version=no
10922   case $host_cpu in
10923   ia64*)
10924     shrext_cmds='.so'
10925     hardcode_into_libs=yes
10926     dynamic_linker="$host_os dld.so"
10927     shlibpath_var=LD_LIBRARY_PATH
10928     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930     soname_spec='${libname}${release}${shared_ext}$major'
10931     if test "X$HPUX_IA64_MODE" = X32; then
10932       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10933     else
10934       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10935     fi
10936     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10937     ;;
10938   hppa*64*)
10939     shrext_cmds='.sl'
10940     hardcode_into_libs=yes
10941     dynamic_linker="$host_os dld.sl"
10942     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10945     soname_spec='${libname}${release}${shared_ext}$major'
10946     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10948     ;;
10949   *)
10950     shrext_cmds='.sl'
10951     dynamic_linker="$host_os dld.sl"
10952     shlibpath_var=SHLIB_PATH
10953     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10954     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10955     soname_spec='${libname}${release}${shared_ext}$major'
10956     ;;
10957   esac
10958   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10959   postinstall_cmds='chmod 555 $lib'
10960   # or fails outright, so override atomically:
10961   install_override_mode=555
10962   ;;
10963
10964 interix[3-9]*)
10965   version_type=linux # correct to gnu/linux during the next big refactor
10966   need_lib_prefix=no
10967   need_version=no
10968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10971   shlibpath_var=LD_LIBRARY_PATH
10972   shlibpath_overrides_runpath=no
10973   hardcode_into_libs=yes
10974   ;;
10975
10976 irix5* | irix6* | nonstopux*)
10977   case $host_os in
10978     nonstopux*) version_type=nonstopux ;;
10979     *)
10980         if test "$lt_cv_prog_gnu_ld" = yes; then
10981                 version_type=linux # correct to gnu/linux during the next big refactor
10982         else
10983                 version_type=irix
10984         fi ;;
10985   esac
10986   need_lib_prefix=no
10987   need_version=no
10988   soname_spec='${libname}${release}${shared_ext}$major'
10989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10990   case $host_os in
10991   irix5* | nonstopux*)
10992     libsuff= shlibsuff=
10993     ;;
10994   *)
10995     case $LD in # libtool.m4 will add one of these switches to LD
10996     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10997       libsuff= shlibsuff= libmagic=32-bit;;
10998     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10999       libsuff=32 shlibsuff=N32 libmagic=N32;;
11000     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11001       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11002     *) libsuff= shlibsuff= libmagic=never-match;;
11003     esac
11004     ;;
11005   esac
11006   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11007   shlibpath_overrides_runpath=no
11008   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11009   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11010   hardcode_into_libs=yes
11011   ;;
11012
11013 # No shared lib support for Linux oldld, aout, or coff.
11014 linux*oldld* | linux*aout* | linux*coff*)
11015   dynamic_linker=no
11016   ;;
11017
11018 # This must be glibc/ELF.
11019 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11020   version_type=linux # correct to gnu/linux during the next big refactor
11021   need_lib_prefix=no
11022   need_version=no
11023   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11024   soname_spec='${libname}${release}${shared_ext}$major'
11025   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11026   shlibpath_var=LD_LIBRARY_PATH
11027   shlibpath_overrides_runpath=no
11028
11029   # Some binutils ld are patched to set DT_RUNPATH
11030   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11031   $as_echo_n "(cached) " >&6
11032 else
11033   lt_cv_shlibpath_overrides_runpath=no
11034     save_LDFLAGS=$LDFLAGS
11035     save_libdir=$libdir
11036     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11037          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11039 /* end confdefs.h.  */
11040
11041 int
11042 main ()
11043 {
11044
11045   ;
11046   return 0;
11047 }
11048 _ACEOF
11049 if ac_fn_c_try_link "$LINENO"; then :
11050   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11051   lt_cv_shlibpath_overrides_runpath=yes
11052 fi
11053 fi
11054 rm -f core conftest.err conftest.$ac_objext \
11055     conftest$ac_exeext conftest.$ac_ext
11056     LDFLAGS=$save_LDFLAGS
11057     libdir=$save_libdir
11058
11059 fi
11060
11061   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11062
11063   # This implies no fast_install, which is unacceptable.
11064   # Some rework will be needed to allow for fast_install
11065   # before this can be enabled.
11066   hardcode_into_libs=yes
11067
11068   # Add ABI-specific directories to the system library path.
11069   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11070
11071   # Append ld.so.conf contents to the search path
11072   if test -f /etc/ld.so.conf; then
11073     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' ' '`
11074     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11075
11076   fi
11077
11078   # We used to test for /lib/ld.so.1 and disable shared libraries on
11079   # powerpc, because MkLinux only supported shared libraries with the
11080   # GNU dynamic linker.  Since this was broken with cross compilers,
11081   # most powerpc-linux boxes support dynamic linking these days and
11082   # people can always --disable-shared, the test was removed, and we
11083   # assume the GNU/Linux dynamic linker is in use.
11084   dynamic_linker='GNU/Linux ld.so'
11085   ;;
11086
11087 netbsd*)
11088   version_type=sunos
11089   need_lib_prefix=no
11090   need_version=no
11091   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11092     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11093     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11094     dynamic_linker='NetBSD (a.out) ld.so'
11095   else
11096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11097     soname_spec='${libname}${release}${shared_ext}$major'
11098     dynamic_linker='NetBSD ld.elf_so'
11099   fi
11100   shlibpath_var=LD_LIBRARY_PATH
11101   shlibpath_overrides_runpath=yes
11102   hardcode_into_libs=yes
11103   ;;
11104
11105 newsos6)
11106   version_type=linux # correct to gnu/linux during the next big refactor
11107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11108   shlibpath_var=LD_LIBRARY_PATH
11109   shlibpath_overrides_runpath=yes
11110   ;;
11111
11112 *nto* | *qnx*)
11113   version_type=qnx
11114   need_lib_prefix=no
11115   need_version=no
11116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11117   soname_spec='${libname}${release}${shared_ext}$major'
11118   shlibpath_var=LD_LIBRARY_PATH
11119   shlibpath_overrides_runpath=no
11120   hardcode_into_libs=yes
11121   dynamic_linker='ldqnx.so'
11122   ;;
11123
11124 openbsd*)
11125   version_type=sunos
11126   sys_lib_dlsearch_path_spec="/usr/lib"
11127   need_lib_prefix=no
11128   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11129   case $host_os in
11130     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11131     *)                          need_version=no  ;;
11132   esac
11133   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11134   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11135   shlibpath_var=LD_LIBRARY_PATH
11136   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11137     case $host_os in
11138       openbsd2.[89] | openbsd2.[89].*)
11139         shlibpath_overrides_runpath=no
11140         ;;
11141       *)
11142         shlibpath_overrides_runpath=yes
11143         ;;
11144       esac
11145   else
11146     shlibpath_overrides_runpath=yes
11147   fi
11148   ;;
11149
11150 os2*)
11151   libname_spec='$name'
11152   shrext_cmds=".dll"
11153   need_lib_prefix=no
11154   library_names_spec='$libname${shared_ext} $libname.a'
11155   dynamic_linker='OS/2 ld.exe'
11156   shlibpath_var=LIBPATH
11157   ;;
11158
11159 osf3* | osf4* | osf5*)
11160   version_type=osf
11161   need_lib_prefix=no
11162   need_version=no
11163   soname_spec='${libname}${release}${shared_ext}$major'
11164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11167   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11168   ;;
11169
11170 rdos*)
11171   dynamic_linker=no
11172   ;;
11173
11174 solaris*)
11175   version_type=linux # correct to gnu/linux during the next big refactor
11176   need_lib_prefix=no
11177   need_version=no
11178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11179   soname_spec='${libname}${release}${shared_ext}$major'
11180   shlibpath_var=LD_LIBRARY_PATH
11181   shlibpath_overrides_runpath=yes
11182   hardcode_into_libs=yes
11183   # ldd complains unless libraries are executable
11184   postinstall_cmds='chmod +x $lib'
11185   ;;
11186
11187 sunos4*)
11188   version_type=sunos
11189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11190   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11191   shlibpath_var=LD_LIBRARY_PATH
11192   shlibpath_overrides_runpath=yes
11193   if test "$with_gnu_ld" = yes; then
11194     need_lib_prefix=no
11195   fi
11196   need_version=yes
11197   ;;
11198
11199 sysv4 | sysv4.3*)
11200   version_type=linux # correct to gnu/linux during the next big refactor
11201   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11202   soname_spec='${libname}${release}${shared_ext}$major'
11203   shlibpath_var=LD_LIBRARY_PATH
11204   case $host_vendor in
11205     sni)
11206       shlibpath_overrides_runpath=no
11207       need_lib_prefix=no
11208       runpath_var=LD_RUN_PATH
11209       ;;
11210     siemens)
11211       need_lib_prefix=no
11212       ;;
11213     motorola)
11214       need_lib_prefix=no
11215       need_version=no
11216       shlibpath_overrides_runpath=no
11217       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11218       ;;
11219   esac
11220   ;;
11221
11222 sysv4*MP*)
11223   if test -d /usr/nec ;then
11224     version_type=linux # correct to gnu/linux during the next big refactor
11225     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11226     soname_spec='$libname${shared_ext}.$major'
11227     shlibpath_var=LD_LIBRARY_PATH
11228   fi
11229   ;;
11230
11231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11232   version_type=freebsd-elf
11233   need_lib_prefix=no
11234   need_version=no
11235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11236   soname_spec='${libname}${release}${shared_ext}$major'
11237   shlibpath_var=LD_LIBRARY_PATH
11238   shlibpath_overrides_runpath=yes
11239   hardcode_into_libs=yes
11240   if test "$with_gnu_ld" = yes; then
11241     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11242   else
11243     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11244     case $host_os in
11245       sco3.2v5*)
11246         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11247         ;;
11248     esac
11249   fi
11250   sys_lib_dlsearch_path_spec='/usr/lib'
11251   ;;
11252
11253 tpf*)
11254   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11255   version_type=linux # correct to gnu/linux during the next big refactor
11256   need_lib_prefix=no
11257   need_version=no
11258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11259   shlibpath_var=LD_LIBRARY_PATH
11260   shlibpath_overrides_runpath=no
11261   hardcode_into_libs=yes
11262   ;;
11263
11264 uts4*)
11265   version_type=linux # correct to gnu/linux during the next big refactor
11266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11267   soname_spec='${libname}${release}${shared_ext}$major'
11268   shlibpath_var=LD_LIBRARY_PATH
11269   ;;
11270
11271 *)
11272   dynamic_linker=no
11273   ;;
11274 esac
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11276 $as_echo "$dynamic_linker" >&6; }
11277 test "$dynamic_linker" = no && can_build_shared=no
11278
11279 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11280 if test "$GCC" = yes; then
11281   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11282 fi
11283
11284 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11285   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11286 fi
11287 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11288   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11289 fi
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11383 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11384 hardcode_action=
11385 if test -n "$hardcode_libdir_flag_spec" ||
11386    test -n "$runpath_var" ||
11387    test "X$hardcode_automatic" = "Xyes" ; then
11388
11389   # We can hardcode non-existent directories.
11390   if test "$hardcode_direct" != no &&
11391      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11392      # have to relink, otherwise we might link with an installed library
11393      # when we should be linking with a yet-to-be-installed one
11394      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11395      test "$hardcode_minus_L" != no; then
11396     # Linking always hardcodes the temporary library directory.
11397     hardcode_action=relink
11398   else
11399     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11400     hardcode_action=immediate
11401   fi
11402 else
11403   # We cannot hardcode anything, or else we can only hardcode existing
11404   # directories.
11405   hardcode_action=unsupported
11406 fi
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11408 $as_echo "$hardcode_action" >&6; }
11409
11410 if test "$hardcode_action" = relink ||
11411    test "$inherit_rpath" = yes; then
11412   # Fast installation is not supported
11413   enable_fast_install=no
11414 elif test "$shlibpath_overrides_runpath" = yes ||
11415      test "$enable_shared" = no; then
11416   # Fast installation is not necessary
11417   enable_fast_install=needless
11418 fi
11419
11420
11421
11422
11423
11424
11425   if test "x$enable_dlopen" != xyes; then
11426   enable_dlopen=unknown
11427   enable_dlopen_self=unknown
11428   enable_dlopen_self_static=unknown
11429 else
11430   lt_cv_dlopen=no
11431   lt_cv_dlopen_libs=
11432
11433   case $host_os in
11434   beos*)
11435     lt_cv_dlopen="load_add_on"
11436     lt_cv_dlopen_libs=
11437     lt_cv_dlopen_self=yes
11438     ;;
11439
11440   mingw* | pw32* | cegcc*)
11441     lt_cv_dlopen="LoadLibrary"
11442     lt_cv_dlopen_libs=
11443     ;;
11444
11445   cygwin*)
11446     lt_cv_dlopen="dlopen"
11447     lt_cv_dlopen_libs=
11448     ;;
11449
11450   darwin*)
11451   # if libdl is installed we need to link against it
11452     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11453 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11454 if ${ac_cv_lib_dl_dlopen+:} false; then :
11455   $as_echo_n "(cached) " >&6
11456 else
11457   ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-ldl  $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h.  */
11461
11462 /* Override any GCC internal prototype to avoid an error.
11463    Use char because int might match the return type of a GCC
11464    builtin and then its argument prototype would still apply.  */
11465 #ifdef __cplusplus
11466 extern "C"
11467 #endif
11468 char dlopen ();
11469 int
11470 main ()
11471 {
11472 return dlopen ();
11473   ;
11474   return 0;
11475 }
11476 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then :
11478   ac_cv_lib_dl_dlopen=yes
11479 else
11480   ac_cv_lib_dl_dlopen=no
11481 fi
11482 rm -f core conftest.err conftest.$ac_objext \
11483     conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS
11485 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11487 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11488 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11489   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11490 else
11491
11492     lt_cv_dlopen="dyld"
11493     lt_cv_dlopen_libs=
11494     lt_cv_dlopen_self=yes
11495
11496 fi
11497
11498     ;;
11499
11500   *)
11501     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11502 if test "x$ac_cv_func_shl_load" = xyes; then :
11503   lt_cv_dlopen="shl_load"
11504 else
11505   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11506 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11507 if ${ac_cv_lib_dld_shl_load+:} false; then :
11508   $as_echo_n "(cached) " >&6
11509 else
11510   ac_check_lib_save_LIBS=$LIBS
11511 LIBS="-ldld  $LIBS"
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h.  */
11514
11515 /* Override any GCC internal prototype to avoid an error.
11516    Use char because int might match the return type of a GCC
11517    builtin and then its argument prototype would still apply.  */
11518 #ifdef __cplusplus
11519 extern "C"
11520 #endif
11521 char shl_load ();
11522 int
11523 main ()
11524 {
11525 return shl_load ();
11526   ;
11527   return 0;
11528 }
11529 _ACEOF
11530 if ac_fn_c_try_link "$LINENO"; then :
11531   ac_cv_lib_dld_shl_load=yes
11532 else
11533   ac_cv_lib_dld_shl_load=no
11534 fi
11535 rm -f core conftest.err conftest.$ac_objext \
11536     conftest$ac_exeext conftest.$ac_ext
11537 LIBS=$ac_check_lib_save_LIBS
11538 fi
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11540 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11541 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11542   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11543 else
11544   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11545 if test "x$ac_cv_func_dlopen" = xyes; then :
11546   lt_cv_dlopen="dlopen"
11547 else
11548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11549 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11550 if ${ac_cv_lib_dl_dlopen+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   ac_check_lib_save_LIBS=$LIBS
11554 LIBS="-ldl  $LIBS"
11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11556 /* end confdefs.h.  */
11557
11558 /* Override any GCC internal prototype to avoid an error.
11559    Use char because int might match the return type of a GCC
11560    builtin and then its argument prototype would still apply.  */
11561 #ifdef __cplusplus
11562 extern "C"
11563 #endif
11564 char dlopen ();
11565 int
11566 main ()
11567 {
11568 return dlopen ();
11569   ;
11570   return 0;
11571 }
11572 _ACEOF
11573 if ac_fn_c_try_link "$LINENO"; then :
11574   ac_cv_lib_dl_dlopen=yes
11575 else
11576   ac_cv_lib_dl_dlopen=no
11577 fi
11578 rm -f core conftest.err conftest.$ac_objext \
11579     conftest$ac_exeext conftest.$ac_ext
11580 LIBS=$ac_check_lib_save_LIBS
11581 fi
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11583 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11584 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11585   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11586 else
11587   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11588 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11589 if ${ac_cv_lib_svld_dlopen+:} false; then :
11590   $as_echo_n "(cached) " >&6
11591 else
11592   ac_check_lib_save_LIBS=$LIBS
11593 LIBS="-lsvld  $LIBS"
11594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595 /* end confdefs.h.  */
11596
11597 /* Override any GCC internal prototype to avoid an error.
11598    Use char because int might match the return type of a GCC
11599    builtin and then its argument prototype would still apply.  */
11600 #ifdef __cplusplus
11601 extern "C"
11602 #endif
11603 char dlopen ();
11604 int
11605 main ()
11606 {
11607 return dlopen ();
11608   ;
11609   return 0;
11610 }
11611 _ACEOF
11612 if ac_fn_c_try_link "$LINENO"; then :
11613   ac_cv_lib_svld_dlopen=yes
11614 else
11615   ac_cv_lib_svld_dlopen=no
11616 fi
11617 rm -f core conftest.err conftest.$ac_objext \
11618     conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11620 fi
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11622 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11623 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11624   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11625 else
11626   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11627 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11628 if ${ac_cv_lib_dld_dld_link+:} false; then :
11629   $as_echo_n "(cached) " >&6
11630 else
11631   ac_check_lib_save_LIBS=$LIBS
11632 LIBS="-ldld  $LIBS"
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h.  */
11635
11636 /* Override any GCC internal prototype to avoid an error.
11637    Use char because int might match the return type of a GCC
11638    builtin and then its argument prototype would still apply.  */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char dld_link ();
11643 int
11644 main ()
11645 {
11646 return dld_link ();
11647   ;
11648   return 0;
11649 }
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652   ac_cv_lib_dld_dld_link=yes
11653 else
11654   ac_cv_lib_dld_dld_link=no
11655 fi
11656 rm -f core conftest.err conftest.$ac_objext \
11657     conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11659 fi
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11661 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11662 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11663   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11664 fi
11665
11666
11667 fi
11668
11669
11670 fi
11671
11672
11673 fi
11674
11675
11676 fi
11677
11678
11679 fi
11680
11681     ;;
11682   esac
11683
11684   if test "x$lt_cv_dlopen" != xno; then
11685     enable_dlopen=yes
11686   else
11687     enable_dlopen=no
11688   fi
11689
11690   case $lt_cv_dlopen in
11691   dlopen)
11692     save_CPPFLAGS="$CPPFLAGS"
11693     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11694
11695     save_LDFLAGS="$LDFLAGS"
11696     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11697
11698     save_LIBS="$LIBS"
11699     LIBS="$lt_cv_dlopen_libs $LIBS"
11700
11701     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11702 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11703 if ${lt_cv_dlopen_self+:} false; then :
11704   $as_echo_n "(cached) " >&6
11705 else
11706           if test "$cross_compiling" = yes; then :
11707   lt_cv_dlopen_self=cross
11708 else
11709   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11710   lt_status=$lt_dlunknown
11711   cat > conftest.$ac_ext <<_LT_EOF
11712 #line $LINENO "configure"
11713 #include "confdefs.h"
11714
11715 #if HAVE_DLFCN_H
11716 #include <dlfcn.h>
11717 #endif
11718
11719 #include <stdio.h>
11720
11721 #ifdef RTLD_GLOBAL
11722 #  define LT_DLGLOBAL           RTLD_GLOBAL
11723 #else
11724 #  ifdef DL_GLOBAL
11725 #    define LT_DLGLOBAL         DL_GLOBAL
11726 #  else
11727 #    define LT_DLGLOBAL         0
11728 #  endif
11729 #endif
11730
11731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11732    find out it does not work in some platform. */
11733 #ifndef LT_DLLAZY_OR_NOW
11734 #  ifdef RTLD_LAZY
11735 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11736 #  else
11737 #    ifdef DL_LAZY
11738 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11739 #    else
11740 #      ifdef RTLD_NOW
11741 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11742 #      else
11743 #        ifdef DL_NOW
11744 #          define LT_DLLAZY_OR_NOW      DL_NOW
11745 #        else
11746 #          define LT_DLLAZY_OR_NOW      0
11747 #        endif
11748 #      endif
11749 #    endif
11750 #  endif
11751 #endif
11752
11753 /* When -fvisbility=hidden is used, assume the code has been annotated
11754    correspondingly for the symbols needed.  */
11755 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11756 int fnord () __attribute__((visibility("default")));
11757 #endif
11758
11759 int fnord () { return 42; }
11760 int main ()
11761 {
11762   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11763   int status = $lt_dlunknown;
11764
11765   if (self)
11766     {
11767       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11768       else
11769         {
11770           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11771           else puts (dlerror ());
11772         }
11773       /* dlclose (self); */
11774     }
11775   else
11776     puts (dlerror ());
11777
11778   return status;
11779 }
11780 _LT_EOF
11781   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11782   (eval $ac_link) 2>&5
11783   ac_status=$?
11784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11785   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11786     (./conftest; exit; ) >&5 2>/dev/null
11787     lt_status=$?
11788     case x$lt_status in
11789       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11790       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11791       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11792     esac
11793   else :
11794     # compilation failed
11795     lt_cv_dlopen_self=no
11796   fi
11797 fi
11798 rm -fr conftest*
11799
11800
11801 fi
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11803 $as_echo "$lt_cv_dlopen_self" >&6; }
11804
11805     if test "x$lt_cv_dlopen_self" = xyes; then
11806       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11807       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11808 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11809 if ${lt_cv_dlopen_self_static+:} false; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812           if test "$cross_compiling" = yes; then :
11813   lt_cv_dlopen_self_static=cross
11814 else
11815   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11816   lt_status=$lt_dlunknown
11817   cat > conftest.$ac_ext <<_LT_EOF
11818 #line $LINENO "configure"
11819 #include "confdefs.h"
11820
11821 #if HAVE_DLFCN_H
11822 #include <dlfcn.h>
11823 #endif
11824
11825 #include <stdio.h>
11826
11827 #ifdef RTLD_GLOBAL
11828 #  define LT_DLGLOBAL           RTLD_GLOBAL
11829 #else
11830 #  ifdef DL_GLOBAL
11831 #    define LT_DLGLOBAL         DL_GLOBAL
11832 #  else
11833 #    define LT_DLGLOBAL         0
11834 #  endif
11835 #endif
11836
11837 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11838    find out it does not work in some platform. */
11839 #ifndef LT_DLLAZY_OR_NOW
11840 #  ifdef RTLD_LAZY
11841 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11842 #  else
11843 #    ifdef DL_LAZY
11844 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11845 #    else
11846 #      ifdef RTLD_NOW
11847 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11848 #      else
11849 #        ifdef DL_NOW
11850 #          define LT_DLLAZY_OR_NOW      DL_NOW
11851 #        else
11852 #          define LT_DLLAZY_OR_NOW      0
11853 #        endif
11854 #      endif
11855 #    endif
11856 #  endif
11857 #endif
11858
11859 /* When -fvisbility=hidden is used, assume the code has been annotated
11860    correspondingly for the symbols needed.  */
11861 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11862 int fnord () __attribute__((visibility("default")));
11863 #endif
11864
11865 int fnord () { return 42; }
11866 int main ()
11867 {
11868   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11869   int status = $lt_dlunknown;
11870
11871   if (self)
11872     {
11873       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11874       else
11875         {
11876           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11877           else puts (dlerror ());
11878         }
11879       /* dlclose (self); */
11880     }
11881   else
11882     puts (dlerror ());
11883
11884   return status;
11885 }
11886 _LT_EOF
11887   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11888   (eval $ac_link) 2>&5
11889   ac_status=$?
11890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11891   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11892     (./conftest; exit; ) >&5 2>/dev/null
11893     lt_status=$?
11894     case x$lt_status in
11895       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11896       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11897       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11898     esac
11899   else :
11900     # compilation failed
11901     lt_cv_dlopen_self_static=no
11902   fi
11903 fi
11904 rm -fr conftest*
11905
11906
11907 fi
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11909 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11910     fi
11911
11912     CPPFLAGS="$save_CPPFLAGS"
11913     LDFLAGS="$save_LDFLAGS"
11914     LIBS="$save_LIBS"
11915     ;;
11916   esac
11917
11918   case $lt_cv_dlopen_self in
11919   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11920   *) enable_dlopen_self=unknown ;;
11921   esac
11922
11923   case $lt_cv_dlopen_self_static in
11924   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11925   *) enable_dlopen_self_static=unknown ;;
11926   esac
11927 fi
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945 striplib=
11946 old_striplib=
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11948 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11949 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11950   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11951   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11953 $as_echo "yes" >&6; }
11954 else
11955 # FIXME - insert some real tests, host_os isn't really good enough
11956   case $host_os in
11957   darwin*)
11958     if test -n "$STRIP" ; then
11959       striplib="$STRIP -x"
11960       old_striplib="$STRIP -S"
11961       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11962 $as_echo "yes" >&6; }
11963     else
11964       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11965 $as_echo "no" >&6; }
11966     fi
11967     ;;
11968   *)
11969     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970 $as_echo "no" >&6; }
11971     ;;
11972   esac
11973 fi
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986   # Report which library types will actually be built
11987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11988 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11990 $as_echo "$can_build_shared" >&6; }
11991
11992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11993 $as_echo_n "checking whether to build shared libraries... " >&6; }
11994   test "$can_build_shared" = "no" && enable_shared=no
11995
11996   # On AIX, shared libraries and static libraries use the same namespace, and
11997   # are all built from PIC.
11998   case $host_os in
11999   aix3*)
12000     test "$enable_shared" = yes && enable_static=no
12001     if test -n "$RANLIB"; then
12002       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12003       postinstall_cmds='$RANLIB $lib'
12004     fi
12005     ;;
12006
12007   aix[4-9]*)
12008     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12009       test "$enable_shared" = yes && enable_static=no
12010     fi
12011     ;;
12012   esac
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12014 $as_echo "$enable_shared" >&6; }
12015
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12017 $as_echo_n "checking whether to build static libraries... " >&6; }
12018   # Make sure either enable_shared or enable_static is yes.
12019   test "$enable_shared" = yes || enable_static=yes
12020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12021 $as_echo "$enable_static" >&6; }
12022
12023
12024
12025
12026 fi
12027 ac_ext=c
12028 ac_cpp='$CPP $CPPFLAGS'
12029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12032
12033 CC="$lt_save_CC"
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049         ac_config_commands="$ac_config_commands libtool"
12050
12051
12052
12053
12054 # Only expand once:
12055
12056
12057
12058
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12060 $as_echo_n "checking for C compiler vendor... " >&6; }
12061 if ${ax_cv_c_compiler_vendor+:} false; then :
12062   $as_echo_n "(cached) " >&6
12063 else
12064   # note: don't check for gcc first since some other compilers define __GNUC__
12065   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12066            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12067            pathscale: __PATHCC__,__PATHSCALE__
12068            clang:     __clang__
12069            gnu:       __GNUC__
12070            sun:       __SUNPRO_C,__SUNPRO_CC
12071            hp:        __HP_cc,__HP_aCC
12072            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12073            borland:   __BORLANDC__,__TURBOC__
12074            comeau:    __COMO__
12075            cray:      _CRAYC
12076            kai:       __KCC
12077            lcc:       __LCC__
12078            sgi:       __sgi,sgi
12079            microsoft: _MSC_VER
12080            metrowerks: __MWERKS__
12081            watcom:    __WATCOMC__
12082            portland:  __PGI
12083            unknown:   UNKNOWN"
12084   for ventest in $vendors; do
12085     case $ventest in
12086       *:) vendor=$ventest; continue ;;
12087       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12088     esac
12089     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12090 /* end confdefs.h.  */
12091
12092 int
12093 main ()
12094 {
12095
12096       #if !($vencpp)
12097         thisisanerror;
12098       #endif
12099
12100   ;
12101   return 0;
12102 }
12103 _ACEOF
12104 if ac_fn_c_try_compile "$LINENO"; then :
12105   break
12106 fi
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108   done
12109   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12110
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12113 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12114
12115
12116
12117
12118
12119
12120 # Check whether --enable-portable-binary was given.
12121 if test "${enable_portable_binary+set}" = set; then :
12122   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12123 else
12124   acx_maxopt_portable=no
12125 fi
12126
12127
12128 # Try to determine "good" native compiler flags if none specified via CFLAGS
12129 if test "$ac_test_CFLAGS" != "set"; then
12130   CFLAGS=""
12131   case $ax_cv_c_compiler_vendor in
12132     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12133          if test "x$acx_maxopt_portable" = xno; then
12134            CFLAGS="$CFLAGS -arch host"
12135          fi;;
12136
12137     sun) CFLAGS="-native -fast -xO5 -dalign"
12138          if test "x$acx_maxopt_portable" = xyes; then
12139            CFLAGS="$CFLAGS -xarch=generic"
12140          fi;;
12141
12142     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12143          if test "x$acx_maxopt_portable" = xyes; then
12144            CFLAGS="$CFLAGS +DAportable"
12145          fi;;
12146
12147     ibm) if test "x$acx_maxopt_portable" = xno; then
12148            xlc_opt="-qarch=auto -qtune=auto"
12149          else
12150            xlc_opt="-qtune=auto"
12151          fi
12152          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12154 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12155 if eval \${$as_CACHEVAR+:} false; then :
12156   $as_echo_n "(cached) " >&6
12157 else
12158
12159   ax_check_save_flags=$CFLAGS
12160   CFLAGS="$CFLAGS  $xlc_opt"
12161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12162 /* end confdefs.h.  */
12163
12164 int
12165 main ()
12166 {
12167
12168   ;
12169   return 0;
12170 }
12171 _ACEOF
12172 if ac_fn_c_try_compile "$LINENO"; then :
12173   eval "$as_CACHEVAR=yes"
12174 else
12175   eval "$as_CACHEVAR=no"
12176 fi
12177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178   CFLAGS=$ax_check_save_flags
12179 fi
12180 eval ac_res=\$$as_CACHEVAR
12181                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12182 $as_echo "$ac_res" >&6; }
12183 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12184   CFLAGS="-O3 -qansialias -w $xlc_opt"
12185 else
12186   CFLAGS="-O3 -qansialias -w"
12187                 echo "******************************************************"
12188                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12189                 echo "*  recommended for best performance that you use:    *"
12190                 echo "*                                                    *"
12191                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12192                 echo "*                      ^^^        ^^^                *"
12193                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12194                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12195                 echo "*  and re-run configure.)  For more info, man cc.    *"
12196                 echo "******************************************************"
12197 fi
12198
12199          ;;
12200
12201     intel) CFLAGS="-O3 -ansi_alias"
12202         if test "x$acx_maxopt_portable" = xno; then
12203           icc_archflag=unknown
12204           icc_flags=""
12205           case $host_cpu in
12206             i686*|x86_64*)
12207               # icc accepts gcc assembly syntax, so these should work:
12208
12209 ac_ext=c
12210 ac_cpp='$CPP $CPPFLAGS'
12211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12214
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12216 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12217 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12218   $as_echo_n "(cached) " >&6
12219 else
12220   if test "$cross_compiling" = yes; then :
12221   ax_cv_gcc_x86_cpuid_0=unknown
12222 else
12223   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12224 /* end confdefs.h.  */
12225 #include <stdio.h>
12226 int
12227 main ()
12228 {
12229
12230      int op = 0, eax, ebx, ecx, edx;
12231      FILE *f;
12232       __asm__("cpuid"
12233         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12234         : "a" (op));
12235      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12236      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12237      fclose(f);
12238      return 0;
12239
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 if ac_fn_c_try_run "$LINENO"; then :
12245   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12246 else
12247   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12248 fi
12249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12250   conftest.$ac_objext conftest.beam conftest.$ac_ext
12251 fi
12252
12253 fi
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12255 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12256 ac_ext=c
12257 ac_cpp='$CPP $CPPFLAGS'
12258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12261
12262
12263
12264 ac_ext=c
12265 ac_cpp='$CPP $CPPFLAGS'
12266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12269
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12271 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12272 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12273   $as_echo_n "(cached) " >&6
12274 else
12275   if test "$cross_compiling" = yes; then :
12276   ax_cv_gcc_x86_cpuid_1=unknown
12277 else
12278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279 /* end confdefs.h.  */
12280 #include <stdio.h>
12281 int
12282 main ()
12283 {
12284
12285      int op = 1, eax, ebx, ecx, edx;
12286      FILE *f;
12287       __asm__("cpuid"
12288         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12289         : "a" (op));
12290      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12291      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12292      fclose(f);
12293      return 0;
12294
12295   ;
12296   return 0;
12297 }
12298 _ACEOF
12299 if ac_fn_c_try_run "$LINENO"; then :
12300   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12301 else
12302   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12303 fi
12304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12305   conftest.$ac_objext conftest.beam conftest.$ac_ext
12306 fi
12307
12308 fi
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12310 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12311 ac_ext=c
12312 ac_cpp='$CPP $CPPFLAGS'
12313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12316
12317
12318               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12319                 *:756e6547:*:*) # Intel
12320                   case $ax_cv_gcc_x86_cpuid_1 in
12321                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12322                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12323                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12324                   esac ;;
12325               esac ;;
12326           esac
12327           if test "x$icc_flags" != x; then
12328             for flag in $icc_flags; do
12329               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12331 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12332 if eval \${$as_CACHEVAR+:} false; then :
12333   $as_echo_n "(cached) " >&6
12334 else
12335
12336   ax_check_save_flags=$CFLAGS
12337   CFLAGS="$CFLAGS  $flag"
12338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340
12341 int
12342 main ()
12343 {
12344
12345   ;
12346   return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_compile "$LINENO"; then :
12350   eval "$as_CACHEVAR=yes"
12351 else
12352   eval "$as_CACHEVAR=no"
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12355   CFLAGS=$ax_check_save_flags
12356 fi
12357 eval ac_res=\$$as_CACHEVAR
12358                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12359 $as_echo "$ac_res" >&6; }
12360 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12361   icc_archflag=$flag; break
12362 else
12363   :
12364 fi
12365
12366             done
12367           fi
12368           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12369 $as_echo_n "checking for icc architecture flag... " >&6; }
12370           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12371 $as_echo "$icc_archflag" >&6; }
12372           if test "x$icc_archflag" != xunknown; then
12373             CFLAGS="$CFLAGS $icc_archflag"
12374           fi
12375         fi
12376         ;;
12377
12378     gnu)
12379      # default optimization flags for gcc on all systems
12380      CFLAGS="-O3 -fomit-frame-pointer"
12381
12382      # -malign-double for x86 systems
12383      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
12384 $as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
12385 if ${ax_cv_check_cflags___malign_double+:} false; then :
12386   $as_echo_n "(cached) " >&6
12387 else
12388
12389   ax_check_save_flags=$CFLAGS
12390   CFLAGS="$CFLAGS  -malign-double"
12391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h.  */
12393
12394 int
12395 main ()
12396 {
12397
12398   ;
12399   return 0;
12400 }
12401 _ACEOF
12402 if ac_fn_c_try_compile "$LINENO"; then :
12403   ax_cv_check_cflags___malign_double=yes
12404 else
12405   ax_cv_check_cflags___malign_double=no
12406 fi
12407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12408   CFLAGS=$ax_check_save_flags
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___malign_double" >&5
12411 $as_echo "$ax_cv_check_cflags___malign_double" >&6; }
12412 if test x"$ax_cv_check_cflags___malign_double" = xyes; then :
12413   CFLAGS="$CFLAGS -malign-double"
12414 else
12415   :
12416 fi
12417
12418
12419      #  -fstrict-aliasing for gcc-2.95+
12420      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12421 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12422 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12423   $as_echo_n "(cached) " >&6
12424 else
12425
12426   ax_check_save_flags=$CFLAGS
12427   CFLAGS="$CFLAGS  -fstrict-aliasing"
12428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12429 /* end confdefs.h.  */
12430
12431 int
12432 main ()
12433 {
12434
12435   ;
12436   return 0;
12437 }
12438 _ACEOF
12439 if ac_fn_c_try_compile "$LINENO"; then :
12440   ax_cv_check_cflags___fstrict_aliasing=yes
12441 else
12442   ax_cv_check_cflags___fstrict_aliasing=no
12443 fi
12444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12445   CFLAGS=$ax_check_save_flags
12446 fi
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12448 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12449 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12450   CFLAGS="$CFLAGS -fstrict-aliasing"
12451 else
12452   :
12453 fi
12454
12455
12456      # note that we enable "unsafe" fp optimization with other compilers, too
12457      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12458 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12459 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12460   $as_echo_n "(cached) " >&6
12461 else
12462
12463   ax_check_save_flags=$CFLAGS
12464   CFLAGS="$CFLAGS  -ffast-math"
12465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467
12468 int
12469 main ()
12470 {
12471
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 if ac_fn_c_try_compile "$LINENO"; then :
12477   ax_cv_check_cflags___ffast_math=yes
12478 else
12479   ax_cv_check_cflags___ffast_math=no
12480 fi
12481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482   CFLAGS=$ax_check_save_flags
12483 fi
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12485 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12486 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12487   CFLAGS="$CFLAGS -ffast-math"
12488 else
12489   :
12490 fi
12491
12492
12493
12494
12495
12496
12497 # Check whether --with-gcc-arch was given.
12498 if test "${with_gcc_arch+set}" = set; then :
12499   withval=$with_gcc_arch; ax_gcc_arch=$withval
12500 else
12501   ax_gcc_arch=yes
12502 fi
12503
12504
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12506 $as_echo_n "checking for gcc architecture flag... " >&6; }
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12508 $as_echo "" >&6; }
12509 if ${ax_cv_gcc_archflag+:} false; then :
12510   $as_echo_n "(cached) " >&6
12511 else
12512
12513 ax_cv_gcc_archflag="unknown"
12514
12515 if test "$GCC" = yes; then
12516
12517 if test "x$ax_gcc_arch" = xyes; then
12518 ax_gcc_arch=""
12519 if test "$cross_compiling" = no; then
12520 case $host_cpu in
12521   i[3456]86*|x86_64*) # use cpuid codes
12522
12523 ac_ext=c
12524 ac_cpp='$CPP $CPPFLAGS'
12525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12528
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12530 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12531 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12532   $as_echo_n "(cached) " >&6
12533 else
12534   if test "$cross_compiling" = yes; then :
12535   ax_cv_gcc_x86_cpuid_0=unknown
12536 else
12537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12538 /* end confdefs.h.  */
12539 #include <stdio.h>
12540 int
12541 main ()
12542 {
12543
12544      int op = 0, eax, ebx, ecx, edx;
12545      FILE *f;
12546       __asm__("cpuid"
12547         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12548         : "a" (op));
12549      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12550      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12551      fclose(f);
12552      return 0;
12553
12554   ;
12555   return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_run "$LINENO"; then :
12559   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12560 else
12561   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12562 fi
12563 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12564   conftest.$ac_objext conftest.beam conftest.$ac_ext
12565 fi
12566
12567 fi
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12569 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12570 ac_ext=c
12571 ac_cpp='$CPP $CPPFLAGS'
12572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12575
12576
12577
12578 ac_ext=c
12579 ac_cpp='$CPP $CPPFLAGS'
12580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12583
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12585 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12586 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12587   $as_echo_n "(cached) " >&6
12588 else
12589   if test "$cross_compiling" = yes; then :
12590   ax_cv_gcc_x86_cpuid_1=unknown
12591 else
12592   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12593 /* end confdefs.h.  */
12594 #include <stdio.h>
12595 int
12596 main ()
12597 {
12598
12599      int op = 1, eax, ebx, ecx, edx;
12600      FILE *f;
12601       __asm__("cpuid"
12602         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12603         : "a" (op));
12604      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12605      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12606      fclose(f);
12607      return 0;
12608
12609   ;
12610   return 0;
12611 }
12612 _ACEOF
12613 if ac_fn_c_try_run "$LINENO"; then :
12614   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12615 else
12616   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12617 fi
12618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12619   conftest.$ac_objext conftest.beam conftest.$ac_ext
12620 fi
12621
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12624 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12625 ac_ext=c
12626 ac_cpp='$CPP $CPPFLAGS'
12627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12630
12631
12632      case $ax_cv_gcc_x86_cpuid_0 in
12633        *:756e6547:*:*) # Intel
12634           case $ax_cv_gcc_x86_cpuid_1 in
12635             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12636             *5??:*:*:*) ax_gcc_arch=pentium ;;
12637             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12638             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12639             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12640             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12641             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12642             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12643             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12644             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12645             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12646             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12647             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12648             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12649             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12650                 case $host_cpu in
12651                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12652                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12653                 esac ;;
12654             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12655           esac ;;
12656        *:68747541:*:*) # AMD
12657           case $ax_cv_gcc_x86_cpuid_1 in
12658             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12659             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12660             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12661             *60?:*:*:*) ax_gcc_arch=k7 ;;
12662             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12663             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12664             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12665             *6[68a]?:*:*:*)
12666
12667 ac_ext=c
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12672
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12674 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12675 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   if test "$cross_compiling" = yes; then :
12679   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12680 else
12681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683 #include <stdio.h>
12684 int
12685 main ()
12686 {
12687
12688      int op = 0x80000006, eax, ebx, ecx, edx;
12689      FILE *f;
12690       __asm__("cpuid"
12691         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12692         : "a" (op));
12693      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12694      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12695      fclose(f);
12696      return 0;
12697
12698   ;
12699   return 0;
12700 }
12701 _ACEOF
12702 if ac_fn_c_try_run "$LINENO"; then :
12703   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12704 else
12705   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12706 fi
12707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12708   conftest.$ac_objext conftest.beam conftest.$ac_ext
12709 fi
12710
12711 fi
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12713 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12714 ac_ext=c
12715 ac_cpp='$CPP $CPPFLAGS'
12716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12719
12720  # L2 cache size
12721                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12722                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12723                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12724                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12725                esac ;;
12726             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12727             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12728             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12729             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12730             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12731             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12732             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12733           esac ;;
12734         *:746e6543:*:*) # IDT
12735            case $ax_cv_gcc_x86_cpuid_1 in
12736              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12737              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12738              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12739              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12740            esac ;;
12741      esac
12742      if test x"$ax_gcc_arch" = x; then # fallback
12743         case $host_cpu in
12744           i586*) ax_gcc_arch=pentium ;;
12745           i686*) ax_gcc_arch=pentiumpro ;;
12746         esac
12747      fi
12748      ;;
12749
12750   sparc*)
12751      # Extract the first word of "prtdiag", so it can be a program name with args.
12752 set dummy prtdiag; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12754 $as_echo_n "checking for $ac_word... " >&6; }
12755 if ${ac_cv_path_PRTDIAG+:} false; then :
12756   $as_echo_n "(cached) " >&6
12757 else
12758   case $PRTDIAG in
12759   [\\/]* | ?:[\\/]*)
12760   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12761   ;;
12762   *)
12763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12765 for as_dir in $as_dummy
12766 do
12767   IFS=$as_save_IFS
12768   test -z "$as_dir" && as_dir=.
12769     for ac_exec_ext in '' $ac_executable_extensions; do
12770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12773     break 2
12774   fi
12775 done
12776   done
12777 IFS=$as_save_IFS
12778
12779   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12780   ;;
12781 esac
12782 fi
12783 PRTDIAG=$ac_cv_path_PRTDIAG
12784 if test -n "$PRTDIAG"; then
12785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12786 $as_echo "$PRTDIAG" >&6; }
12787 else
12788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12789 $as_echo "no" >&6; }
12790 fi
12791
12792
12793      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`
12794      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12795      case $cputype in
12796          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12797          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12798          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12799          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12800          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12801          *cypress*) ax_gcc_arch=cypress ;;
12802      esac ;;
12803
12804   alphaev5) ax_gcc_arch=ev5 ;;
12805   alphaev56) ax_gcc_arch=ev56 ;;
12806   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12807   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12808   alphaev6) ax_gcc_arch=ev6 ;;
12809   alphaev67) ax_gcc_arch=ev67 ;;
12810   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12811   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12812   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12813   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12814
12815   powerpc*)
12816      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`
12817      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12818      case $cputype in
12819        *750*) ax_gcc_arch="750 G3" ;;
12820        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12821        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12822        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12823        *970*) ax_gcc_arch="970 G5 power4";;
12824        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12825        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12826        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12827        *) ax_gcc_arch=$cputype ;;
12828      esac
12829      ax_gcc_arch="$ax_gcc_arch powerpc"
12830      ;;
12831 esac
12832 fi # not cross-compiling
12833 fi # guess arch
12834
12835 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12836 for arch in $ax_gcc_arch; do
12837   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12838     flags="-mtune=$arch"
12839     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12840     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12841     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12842   else
12843     flags="-march=$arch -mcpu=$arch -m$arch"
12844   fi
12845   for flag in $flags; do
12846     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12848 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12849 if eval \${$as_CACHEVAR+:} false; then :
12850   $as_echo_n "(cached) " >&6
12851 else
12852
12853   ax_check_save_flags=$CFLAGS
12854   CFLAGS="$CFLAGS  $flag"
12855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12856 /* end confdefs.h.  */
12857
12858 int
12859 main ()
12860 {
12861
12862   ;
12863   return 0;
12864 }
12865 _ACEOF
12866 if ac_fn_c_try_compile "$LINENO"; then :
12867   eval "$as_CACHEVAR=yes"
12868 else
12869   eval "$as_CACHEVAR=no"
12870 fi
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872   CFLAGS=$ax_check_save_flags
12873 fi
12874 eval ac_res=\$$as_CACHEVAR
12875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12876 $as_echo "$ac_res" >&6; }
12877 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12878   ax_cv_gcc_archflag=$flag; break
12879 else
12880   :
12881 fi
12882
12883   done
12884   test "x$ax_cv_gcc_archflag" = xunknown || break
12885 done
12886 fi
12887
12888 fi # $GCC=yes
12889
12890 fi
12891
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12893 $as_echo_n "checking for gcc architecture flag... " >&6; }
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12895 $as_echo "$ax_cv_gcc_archflag" >&6; }
12896 if test "x$ax_cv_gcc_archflag" = xunknown; then
12897   :
12898 else
12899   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12900 fi
12901
12902      ;;
12903   esac
12904
12905   if test -z "$CFLAGS"; then
12906         echo ""
12907         echo "********************************************************"
12908         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12909         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12910         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12911         echo "********************************************************"
12912         echo ""
12913         CFLAGS="-O3"
12914   fi
12915
12916   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12918 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12919 if eval \${$as_CACHEVAR+:} false; then :
12920   $as_echo_n "(cached) " >&6
12921 else
12922
12923   ax_check_save_flags=$CFLAGS
12924   CFLAGS="$CFLAGS  $CFLAGS"
12925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h.  */
12927
12928 int
12929 main ()
12930 {
12931
12932   ;
12933   return 0;
12934 }
12935 _ACEOF
12936 if ac_fn_c_try_compile "$LINENO"; then :
12937   eval "$as_CACHEVAR=yes"
12938 else
12939   eval "$as_CACHEVAR=no"
12940 fi
12941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12942   CFLAGS=$ax_check_save_flags
12943 fi
12944 eval ac_res=\$$as_CACHEVAR
12945                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12946 $as_echo "$ac_res" >&6; }
12947 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12948   :
12949 else
12950
12951         echo ""
12952         echo "********************************************************"
12953         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12954         echo "* your compiler.                                       *"
12955         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12956         echo "********************************************************"
12957         echo ""
12958         CFLAGS=""
12959
12960 fi
12961
12962
12963 fi
12964
12965 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12966 # compiler.
12967 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12968   if ${CFLAGS+:} false; then :
12969   case " $CFLAGS " in
12970     *"  "*)
12971       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12972   (: CFLAGS already contains ) 2>&5
12973   ac_status=$?
12974   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975   test $ac_status = 0; }
12976       ;;
12977     *)
12978       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12979   (: CFLAGS="$CFLAGS ") 2>&5
12980   ac_status=$?
12981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982   test $ac_status = 0; }
12983       CFLAGS="$CFLAGS "
12984       ;;
12985    esac
12986 else
12987   CFLAGS=""
12988 fi
12989
12990 ac_ext=c
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
12997 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
12998 if ${ac_cv_cflags_warn_all+:} false; then :
12999   $as_echo_n "(cached) " >&6
13000 else
13001   ac_cv_cflags_warn_all="no, unknown"
13002 ac_save_CFLAGS="$CFLAGS"
13003 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"    #
13004 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13005    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13006 /* end confdefs.h.  */
13007
13008 int
13009 main ()
13010 {
13011
13012   ;
13013   return 0;
13014 }
13015 _ACEOF
13016 if ac_fn_c_try_compile "$LINENO"; then :
13017   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13018 fi
13019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13020 done
13021 CFLAGS="$ac_save_CFLAGS"
13022
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13025 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13026
13027 case ".$ac_cv_cflags_warn_all" in
13028      .ok|.ok,*)  ;;
13029    .|.no|.no,*)  ;;
13030    *) if ${CFLAGS+:} false; then :
13031   case " $CFLAGS " in
13032     *" $ac_cv_cflags_warn_all "*)
13033       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13034   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13035   ac_status=$?
13036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13037   test $ac_status = 0; }
13038       ;;
13039     *)
13040       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13041   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13042   ac_status=$?
13043   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13044   test $ac_status = 0; }
13045       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13046       ;;
13047    esac
13048 else
13049   CFLAGS="$ac_cv_cflags_warn_all"
13050 fi
13051  ;;
13052 esac
13053
13054 ac_ext=c
13055 ac_cpp='$CPP $CPPFLAGS'
13056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13059
13060
13061 fi
13062
13063 if test "x$GCC" = "xyes"; then
13064   CFLAGS="$CFLAGS -fexceptions"
13065   touch local.exp
13066 else
13067   cat > local.exp <<EOF
13068 set CC_FOR_TARGET "$CC"
13069 EOF
13070 fi
13071
13072
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13074 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13075     # Check whether --enable-maintainer-mode was given.
13076 if test "${enable_maintainer_mode+set}" = set; then :
13077   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13078 else
13079   USE_MAINTAINER_MODE=no
13080 fi
13081
13082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13083 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13084    if test $USE_MAINTAINER_MODE = yes; then
13085   MAINTAINER_MODE_TRUE=
13086   MAINTAINER_MODE_FALSE='#'
13087 else
13088   MAINTAINER_MODE_TRUE='#'
13089   MAINTAINER_MODE_FALSE=
13090 fi
13091
13092   MAINT=$MAINTAINER_MODE_TRUE
13093
13094
13095
13096 for ac_header in sys/mman.h
13097 do :
13098   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13099 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13100   cat >>confdefs.h <<_ACEOF
13101 #define HAVE_SYS_MMAN_H 1
13102 _ACEOF
13103
13104 fi
13105
13106 done
13107
13108 for ac_func in mmap
13109 do :
13110   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13111 if test "x$ac_cv_func_mmap" = xyes; then :
13112   cat >>confdefs.h <<_ACEOF
13113 #define HAVE_MMAP 1
13114 _ACEOF
13115
13116 fi
13117 done
13118
13119
13120 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13121 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13122   libffi_header_sys_mman_h=yes
13123 else
13124   libffi_header_sys_mman_h=no
13125 fi
13126
13127
13128 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13129 if test "x$ac_cv_func_mmap" = xyes; then :
13130   libffi_func_mmap=yes
13131 else
13132   libffi_func_mmap=no
13133 fi
13134
13135 if test "$libffi_header_sys_mman_h" != yes \
13136  || test "$libffi_func_mmap" != yes; then
13137    ac_cv_func_mmap_file=no
13138    ac_cv_func_mmap_dev_zero=no
13139    ac_cv_func_mmap_anon=no
13140 else
13141    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13142 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13143 if ${ac_cv_func_mmap_file+:} false; then :
13144   $as_echo_n "(cached) " >&6
13145 else
13146   # Add a system to this blacklist if
13147    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13148    # memory area containing the same data that you'd get if you applied
13149    # read() to the same fd.  The only system known to have a problem here
13150    # is VMS, where text files have record structure.
13151    case "$host_os" in
13152      vms* | ultrix*)
13153         ac_cv_func_mmap_file=no ;;
13154      *)
13155         ac_cv_func_mmap_file=yes;;
13156    esac
13157 fi
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13159 $as_echo "$ac_cv_func_mmap_file" >&6; }
13160    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13161 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13162 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13163   $as_echo_n "(cached) " >&6
13164 else
13165   # Add a system to this blacklist if it has mmap() but /dev/zero
13166    # does not exist, or if mmapping /dev/zero does not give anonymous
13167    # zeroed pages with both the following properties:
13168    # 1. If you map N consecutive pages in with one call, and then
13169    #    unmap any subset of those pages, the pages that were not
13170    #    explicitly unmapped remain accessible.
13171    # 2. If you map two adjacent blocks of memory and then unmap them
13172    #    both at once, they must both go away.
13173    # Systems known to be in this category are Windows (all variants),
13174    # VMS, and Darwin.
13175    case "$host_os" in
13176      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13177         ac_cv_func_mmap_dev_zero=no ;;
13178      *)
13179         ac_cv_func_mmap_dev_zero=yes;;
13180    esac
13181 fi
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13183 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13184
13185    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13187 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13188 if ${ac_cv_decl_map_anon+:} false; then :
13189   $as_echo_n "(cached) " >&6
13190 else
13191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13192 /* end confdefs.h.  */
13193 #include <sys/types.h>
13194 #include <sys/mman.h>
13195 #include <unistd.h>
13196
13197 #ifndef MAP_ANONYMOUS
13198 #define MAP_ANONYMOUS MAP_ANON
13199 #endif
13200
13201 int
13202 main ()
13203 {
13204 int n = MAP_ANONYMOUS;
13205   ;
13206   return 0;
13207 }
13208 _ACEOF
13209 if ac_fn_c_try_compile "$LINENO"; then :
13210   ac_cv_decl_map_anon=yes
13211 else
13212   ac_cv_decl_map_anon=no
13213 fi
13214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13217 $as_echo "$ac_cv_decl_map_anon" >&6; }
13218
13219    if test $ac_cv_decl_map_anon = no; then
13220      ac_cv_func_mmap_anon=no
13221    else
13222      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13223 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13224 if ${ac_cv_func_mmap_anon+:} false; then :
13225   $as_echo_n "(cached) " >&6
13226 else
13227   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13228    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13229    # doesn't give anonymous zeroed pages with the same properties listed
13230    # above for use of /dev/zero.
13231    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13232    case "$host_os" in
13233      vms* | cygwin* | pe | mingw* | sco* | udk* )
13234         ac_cv_func_mmap_anon=no ;;
13235      *)
13236         ac_cv_func_mmap_anon=yes;;
13237    esac
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13240 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13241    fi
13242 fi
13243
13244 if test $ac_cv_func_mmap_file = yes; then
13245
13246 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13247
13248 fi
13249 if test $ac_cv_func_mmap_dev_zero = yes; then
13250
13251 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13252
13253 fi
13254 if test $ac_cv_func_mmap_anon = yes; then
13255
13256 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13257
13258 fi
13259
13260
13261  if test -d $srcdir/testsuite; then
13262   TESTSUBDIR_TRUE=
13263   TESTSUBDIR_FALSE='#'
13264 else
13265   TESTSUBDIR_TRUE='#'
13266   TESTSUBDIR_FALSE=
13267 fi
13268
13269
13270 TARGETDIR="unknown"
13271 case "$host" in
13272   aarch64*-*-*)
13273         TARGET=AARCH64; TARGETDIR=aarch64
13274         ;;
13275
13276   alpha*-*-*)
13277         TARGET=ALPHA; TARGETDIR=alpha;
13278         # Support 128-bit long double, changeable via command-line switch.
13279         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13280         ;;
13281
13282   arm*-*-*)
13283         TARGET=ARM; TARGETDIR=arm
13284         ;;
13285
13286   amd64-*-freebsd* | amd64-*-openbsd*)
13287         TARGET=X86_64; TARGETDIR=x86
13288         ;;
13289
13290   amd64-*-freebsd*)
13291         TARGET=X86_64; TARGETDIR=x86
13292         ;;
13293
13294   amd64-*-freebsd*)
13295         TARGET=X86_64; TARGETDIR=x86
13296         ;;
13297
13298   avr32*-*-*)
13299         TARGET=AVR32; TARGETDIR=avr32
13300         ;;
13301
13302   bfin*)
13303         TARGET=BFIN; TARGETDIR=bfin
13304         ;;
13305
13306   cris-*-*)
13307         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13308         ;;
13309
13310   frv-*-*)
13311         TARGET=FRV; TARGETDIR=frv
13312         ;;
13313
13314   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13315         TARGET=PA_LINUX; TARGETDIR=pa
13316         ;;
13317   hppa*64-*-hpux*)
13318         TARGET=PA64_HPUX; TARGETDIR=pa
13319         ;;
13320   hppa*-*-hpux*)
13321         TARGET=PA_HPUX; TARGETDIR=pa
13322         ;;
13323
13324   i?86-*-freebsd* | i?86-*-openbsd*)
13325         TARGET=X86_FREEBSD; TARGETDIR=x86
13326         ;;
13327   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13328         TARGET=X86_WIN32; TARGETDIR=x86
13329         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13330         # We must also check with_cross_host to decide if this is a native
13331         # or cross-build and select where to install dlls appropriately.
13332         if test -n "$with_cross_host" &&
13333            test x"$with_cross_host" != x"no"; then
13334           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13335         else
13336           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13337         fi
13338         ;;
13339   i?86-*-darwin*)
13340         TARGET=X86_DARWIN; TARGETDIR=x86
13341         ;;
13342   i?86-*-solaris2.1[0-9]*)
13343         TARGET=X86; TARGETDIR=x86
13344         ;;
13345   i?86-*-*)
13346         TARGET=X86_64; TARGETDIR=x86
13347         ;;
13348
13349   ia64*-*-*)
13350         TARGET=IA64; TARGETDIR=ia64
13351         ;;
13352
13353   m32r*-*-*)
13354         TARGET=M32R; TARGETDIR=m32r
13355         ;;
13356
13357   m68k-*-*)
13358         TARGET=M68K; TARGETDIR=m68k
13359         ;;
13360
13361   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13362         TARGET=MIPS; TARGETDIR=mips
13363         ;;
13364   mips*-*-linux* | mips*-*-openbsd*)
13365         # Support 128-bit long double for NewABI.
13366         HAVE_LONG_DOUBLE='defined(__mips64)'
13367         TARGET=MIPS; TARGETDIR=mips
13368         ;;
13369
13370   powerpc*-*-linux* | powerpc-*-sysv*)
13371         TARGET=POWERPC; TARGETDIR=powerpc
13372         ;;
13373   powerpc-*-amigaos*)
13374         TARGET=POWERPC; TARGETDIR=powerpc
13375         ;;
13376   powerpc-*-beos*)
13377         TARGET=POWERPC; TARGETDIR=powerpc
13378         ;;
13379   powerpc-*-darwin* | powerpc64-*-darwin*)
13380         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13381         ;;
13382   powerpc-*-aix* | rs6000-*-aix*)
13383         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13384         ;;
13385   powerpc-*-freebsd* | powerpc-*-openbsd*)
13386         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13387         ;;
13388   powerpc64-*-freebsd*)
13389         TARGET=POWERPC; TARGETDIR=powerpc
13390         ;;
13391   powerpc*-*-rtems*)
13392         TARGET=POWERPC; TARGETDIR=powerpc
13393         ;;
13394
13395   s390-*-* | s390x-*-*)
13396         TARGET=S390; TARGETDIR=s390
13397         ;;
13398
13399   sh-*-* | sh[34]*-*-*)
13400         TARGET=SH; TARGETDIR=sh
13401         ;;
13402   sh64-*-* | sh5*-*-*)
13403         TARGET=SH64; TARGETDIR=sh64
13404         ;;
13405
13406   sparc*-*-*)
13407         TARGET=SPARC; TARGETDIR=sparc
13408         ;;
13409
13410   tile*-*)
13411         TARGET=TILE; TARGETDIR=tile
13412         ;;
13413
13414   x86_64-*-darwin*)
13415         TARGET=X86_DARWIN; TARGETDIR=x86
13416         ;;
13417
13418   x86_64-*-cygwin* | x86_64-*-mingw*)
13419         TARGET=X86_WIN64; TARGETDIR=x86
13420         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13421         # We must also check with_cross_host to decide if this is a native
13422         # or cross-build and select where to install dlls appropriately.
13423         if test -n "$with_cross_host" &&
13424            test x"$with_cross_host" != x"no"; then
13425           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13426         else
13427           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13428         fi
13429         ;;
13430
13431   x86_64-*-*)
13432         TARGET=X86_64; TARGETDIR=x86
13433         ;;
13434 esac
13435
13436
13437
13438
13439 if test $TARGETDIR = unknown; then
13440   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13441 fi
13442
13443  if test x$TARGET = xMIPS; then
13444   MIPS_TRUE=
13445   MIPS_FALSE='#'
13446 else
13447   MIPS_TRUE='#'
13448   MIPS_FALSE=
13449 fi
13450
13451  if test x$TARGET = xBFIN; then
13452   BFIN_TRUE=
13453   BFIN_FALSE='#'
13454 else
13455   BFIN_TRUE='#'
13456   BFIN_FALSE=
13457 fi
13458
13459  if test x$TARGET = xSPARC; then
13460   SPARC_TRUE=
13461   SPARC_FALSE='#'
13462 else
13463   SPARC_TRUE='#'
13464   SPARC_FALSE=
13465 fi
13466
13467  if test x$TARGET = xX86; then
13468   X86_TRUE=
13469   X86_FALSE='#'
13470 else
13471   X86_TRUE='#'
13472   X86_FALSE=
13473 fi
13474
13475  if test x$TARGET = xX86_FREEBSD; then
13476   X86_FREEBSD_TRUE=
13477   X86_FREEBSD_FALSE='#'
13478 else
13479   X86_FREEBSD_TRUE='#'
13480   X86_FREEBSD_FALSE=
13481 fi
13482
13483  if test x$TARGET = xX86_WIN32; then
13484   X86_WIN32_TRUE=
13485   X86_WIN32_FALSE='#'
13486 else
13487   X86_WIN32_TRUE='#'
13488   X86_WIN32_FALSE=
13489 fi
13490
13491  if test x$TARGET = xX86_WIN64; then
13492   X86_WIN64_TRUE=
13493   X86_WIN64_FALSE='#'
13494 else
13495   X86_WIN64_TRUE='#'
13496   X86_WIN64_FALSE=
13497 fi
13498
13499  if test x$TARGET = xX86_DARWIN; then
13500   X86_DARWIN_TRUE=
13501   X86_DARWIN_FALSE='#'
13502 else
13503   X86_DARWIN_TRUE='#'
13504   X86_DARWIN_FALSE=
13505 fi
13506
13507  if test x$TARGET = xALPHA; then
13508   ALPHA_TRUE=
13509   ALPHA_FALSE='#'
13510 else
13511   ALPHA_TRUE='#'
13512   ALPHA_FALSE=
13513 fi
13514
13515  if test x$TARGET = xIA64; then
13516   IA64_TRUE=
13517   IA64_FALSE='#'
13518 else
13519   IA64_TRUE='#'
13520   IA64_FALSE=
13521 fi
13522
13523  if test x$TARGET = xM32R; then
13524   M32R_TRUE=
13525   M32R_FALSE='#'
13526 else
13527   M32R_TRUE='#'
13528   M32R_FALSE=
13529 fi
13530
13531  if test x$TARGET = xM68K; then
13532   M68K_TRUE=
13533   M68K_FALSE='#'
13534 else
13535   M68K_TRUE='#'
13536   M68K_FALSE=
13537 fi
13538
13539  if test x$TARGET = xMOXIE; then
13540   MOXIE_TRUE=
13541   MOXIE_FALSE='#'
13542 else
13543   MOXIE_TRUE='#'
13544   MOXIE_FALSE=
13545 fi
13546
13547  if test x$TARGET = xPOWERPC; then
13548   POWERPC_TRUE=
13549   POWERPC_FALSE='#'
13550 else
13551   POWERPC_TRUE='#'
13552   POWERPC_FALSE=
13553 fi
13554
13555  if test x$TARGET = xPOWERPC_AIX; then
13556   POWERPC_AIX_TRUE=
13557   POWERPC_AIX_FALSE='#'
13558 else
13559   POWERPC_AIX_TRUE='#'
13560   POWERPC_AIX_FALSE=
13561 fi
13562
13563  if test x$TARGET = xPOWERPC_DARWIN; then
13564   POWERPC_DARWIN_TRUE=
13565   POWERPC_DARWIN_FALSE='#'
13566 else
13567   POWERPC_DARWIN_TRUE='#'
13568   POWERPC_DARWIN_FALSE=
13569 fi
13570
13571  if test x$TARGET = xPOWERPC_FREEBSD; then
13572   POWERPC_FREEBSD_TRUE=
13573   POWERPC_FREEBSD_FALSE='#'
13574 else
13575   POWERPC_FREEBSD_TRUE='#'
13576   POWERPC_FREEBSD_FALSE=
13577 fi
13578
13579  if test x$TARGET = xAARCH64; then
13580   AARCH64_TRUE=
13581   AARCH64_FALSE='#'
13582 else
13583   AARCH64_TRUE='#'
13584   AARCH64_FALSE=
13585 fi
13586
13587  if test x$TARGET = xARM; then
13588   ARM_TRUE=
13589   ARM_FALSE='#'
13590 else
13591   ARM_TRUE='#'
13592   ARM_FALSE=
13593 fi
13594
13595  if test x$TARGET = xAVR32; then
13596   AVR32_TRUE=
13597   AVR32_FALSE='#'
13598 else
13599   AVR32_TRUE='#'
13600   AVR32_FALSE=
13601 fi
13602
13603  if test x$TARGET = xLIBFFI_CRIS; then
13604   LIBFFI_CRIS_TRUE=
13605   LIBFFI_CRIS_FALSE='#'
13606 else
13607   LIBFFI_CRIS_TRUE='#'
13608   LIBFFI_CRIS_FALSE=
13609 fi
13610
13611  if test x$TARGET = xFRV; then
13612   FRV_TRUE=
13613   FRV_FALSE='#'
13614 else
13615   FRV_TRUE='#'
13616   FRV_FALSE=
13617 fi
13618
13619  if test x$TARGET = xS390; then
13620   S390_TRUE=
13621   S390_FALSE='#'
13622 else
13623   S390_TRUE='#'
13624   S390_FALSE=
13625 fi
13626
13627  if test x$TARGET = xX86_64; then
13628   X86_64_TRUE=
13629   X86_64_FALSE='#'
13630 else
13631   X86_64_TRUE='#'
13632   X86_64_FALSE=
13633 fi
13634
13635  if test x$TARGET = xSH; then
13636   SH_TRUE=
13637   SH_FALSE='#'
13638 else
13639   SH_TRUE='#'
13640   SH_FALSE=
13641 fi
13642
13643  if test x$TARGET = xSH64; then
13644   SH64_TRUE=
13645   SH64_FALSE='#'
13646 else
13647   SH64_TRUE='#'
13648   SH64_FALSE=
13649 fi
13650
13651  if test x$TARGET = xPA_LINUX; then
13652   PA_LINUX_TRUE=
13653   PA_LINUX_FALSE='#'
13654 else
13655   PA_LINUX_TRUE='#'
13656   PA_LINUX_FALSE=
13657 fi
13658
13659  if test x$TARGET = xPA_HPUX; then
13660   PA_HPUX_TRUE=
13661   PA_HPUX_FALSE='#'
13662 else
13663   PA_HPUX_TRUE='#'
13664   PA_HPUX_FALSE=
13665 fi
13666
13667  if test x$TARGET = xPA64_HPUX; then
13668   PA64_HPUX_TRUE=
13669   PA64_HPUX_FALSE='#'
13670 else
13671   PA64_HPUX_TRUE='#'
13672   PA64_HPUX_FALSE=
13673 fi
13674
13675  if test x$TARGET = xTILE; then
13676   TILE_TRUE=
13677   TILE_FALSE='#'
13678 else
13679   TILE_TRUE='#'
13680   TILE_FALSE=
13681 fi
13682
13683
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13685 $as_echo_n "checking for ANSI C header files... " >&6; }
13686 if ${ac_cv_header_stdc+:} false; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h.  */
13691 #include <stdlib.h>
13692 #include <stdarg.h>
13693 #include <string.h>
13694 #include <float.h>
13695
13696 int
13697 main ()
13698 {
13699
13700   ;
13701   return 0;
13702 }
13703 _ACEOF
13704 if ac_fn_c_try_compile "$LINENO"; then :
13705   ac_cv_header_stdc=yes
13706 else
13707   ac_cv_header_stdc=no
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13710
13711 if test $ac_cv_header_stdc = yes; then
13712   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h.  */
13715 #include <string.h>
13716
13717 _ACEOF
13718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13719   $EGREP "memchr" >/dev/null 2>&1; then :
13720
13721 else
13722   ac_cv_header_stdc=no
13723 fi
13724 rm -f conftest*
13725
13726 fi
13727
13728 if test $ac_cv_header_stdc = yes; then
13729   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h.  */
13732 #include <stdlib.h>
13733
13734 _ACEOF
13735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13736   $EGREP "free" >/dev/null 2>&1; then :
13737
13738 else
13739   ac_cv_header_stdc=no
13740 fi
13741 rm -f conftest*
13742
13743 fi
13744
13745 if test $ac_cv_header_stdc = yes; then
13746   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13747   if test "$cross_compiling" = yes; then :
13748   :
13749 else
13750   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13751 /* end confdefs.h.  */
13752 #include <ctype.h>
13753 #include <stdlib.h>
13754 #if ((' ' & 0x0FF) == 0x020)
13755 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13756 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13757 #else
13758 # define ISLOWER(c) \
13759                    (('a' <= (c) && (c) <= 'i') \
13760                      || ('j' <= (c) && (c) <= 'r') \
13761                      || ('s' <= (c) && (c) <= 'z'))
13762 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13763 #endif
13764
13765 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13766 int
13767 main ()
13768 {
13769   int i;
13770   for (i = 0; i < 256; i++)
13771     if (XOR (islower (i), ISLOWER (i))
13772         || toupper (i) != TOUPPER (i))
13773       return 2;
13774   return 0;
13775 }
13776 _ACEOF
13777 if ac_fn_c_try_run "$LINENO"; then :
13778
13779 else
13780   ac_cv_header_stdc=no
13781 fi
13782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13783   conftest.$ac_objext conftest.beam conftest.$ac_ext
13784 fi
13785
13786 fi
13787 fi
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13789 $as_echo "$ac_cv_header_stdc" >&6; }
13790 if test $ac_cv_header_stdc = yes; then
13791
13792 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13793
13794 fi
13795
13796 for ac_func in memcpy
13797 do :
13798   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13799 if test "x$ac_cv_func_memcpy" = xyes; then :
13800   cat >>confdefs.h <<_ACEOF
13801 #define HAVE_MEMCPY 1
13802 _ACEOF
13803
13804 fi
13805 done
13806
13807 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13808 if test "x$ac_cv_type_size_t" = xyes; then :
13809
13810 else
13811
13812 cat >>confdefs.h <<_ACEOF
13813 #define size_t unsigned int
13814 _ACEOF
13815
13816 fi
13817
13818 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13819 # for constant arguments.  Useless!
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13821 $as_echo_n "checking for working alloca.h... " >&6; }
13822 if ${ac_cv_working_alloca_h+:} false; then :
13823   $as_echo_n "(cached) " >&6
13824 else
13825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h.  */
13827 #include <alloca.h>
13828 int
13829 main ()
13830 {
13831 char *p = (char *) alloca (2 * sizeof (int));
13832                           if (p) return 0;
13833   ;
13834   return 0;
13835 }
13836 _ACEOF
13837 if ac_fn_c_try_link "$LINENO"; then :
13838   ac_cv_working_alloca_h=yes
13839 else
13840   ac_cv_working_alloca_h=no
13841 fi
13842 rm -f core conftest.err conftest.$ac_objext \
13843     conftest$ac_exeext conftest.$ac_ext
13844 fi
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13846 $as_echo "$ac_cv_working_alloca_h" >&6; }
13847 if test $ac_cv_working_alloca_h = yes; then
13848
13849 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13850
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13854 $as_echo_n "checking for alloca... " >&6; }
13855 if ${ac_cv_func_alloca_works+:} false; then :
13856   $as_echo_n "(cached) " >&6
13857 else
13858   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h.  */
13860 #ifdef __GNUC__
13861 # define alloca __builtin_alloca
13862 #else
13863 # ifdef _MSC_VER
13864 #  include <malloc.h>
13865 #  define alloca _alloca
13866 # else
13867 #  ifdef HAVE_ALLOCA_H
13868 #   include <alloca.h>
13869 #  else
13870 #   ifdef _AIX
13871  #pragma alloca
13872 #   else
13873 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13874 void *alloca (size_t);
13875 #    endif
13876 #   endif
13877 #  endif
13878 # endif
13879 #endif
13880
13881 int
13882 main ()
13883 {
13884 char *p = (char *) alloca (1);
13885                                     if (p) return 0;
13886   ;
13887   return 0;
13888 }
13889 _ACEOF
13890 if ac_fn_c_try_link "$LINENO"; then :
13891   ac_cv_func_alloca_works=yes
13892 else
13893   ac_cv_func_alloca_works=no
13894 fi
13895 rm -f core conftest.err conftest.$ac_objext \
13896     conftest$ac_exeext conftest.$ac_ext
13897 fi
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13899 $as_echo "$ac_cv_func_alloca_works" >&6; }
13900
13901 if test $ac_cv_func_alloca_works = yes; then
13902
13903 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13904
13905 else
13906   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13907 # that cause trouble.  Some versions do not even contain alloca or
13908 # contain a buggy version.  If you still want to use their alloca,
13909 # use ar to extract alloca.o from them instead of compiling alloca.c.
13910
13911 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13912
13913 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13914
13915
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13917 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13918 if ${ac_cv_os_cray+:} false; then :
13919   $as_echo_n "(cached) " >&6
13920 else
13921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h.  */
13923 #if defined CRAY && ! defined CRAY2
13924 webecray
13925 #else
13926 wenotbecray
13927 #endif
13928
13929 _ACEOF
13930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13931   $EGREP "webecray" >/dev/null 2>&1; then :
13932   ac_cv_os_cray=yes
13933 else
13934   ac_cv_os_cray=no
13935 fi
13936 rm -f conftest*
13937
13938 fi
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13940 $as_echo "$ac_cv_os_cray" >&6; }
13941 if test $ac_cv_os_cray = yes; then
13942   for ac_func in _getb67 GETB67 getb67; do
13943     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13944 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13945 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13946
13947 cat >>confdefs.h <<_ACEOF
13948 #define CRAY_STACKSEG_END $ac_func
13949 _ACEOF
13950
13951     break
13952 fi
13953
13954   done
13955 fi
13956
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13958 $as_echo_n "checking stack direction for C alloca... " >&6; }
13959 if ${ac_cv_c_stack_direction+:} false; then :
13960   $as_echo_n "(cached) " >&6
13961 else
13962   if test "$cross_compiling" = yes; then :
13963   ac_cv_c_stack_direction=0
13964 else
13965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13966 /* end confdefs.h.  */
13967 $ac_includes_default
13968 int
13969 find_stack_direction (int *addr, int depth)
13970 {
13971   int dir, dummy = 0;
13972   if (! addr)
13973     addr = &dummy;
13974   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13975   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13976   return dir + dummy;
13977 }
13978
13979 int
13980 main (int argc, char **argv)
13981 {
13982   return find_stack_direction (0, argc + !argv + 20) < 0;
13983 }
13984 _ACEOF
13985 if ac_fn_c_try_run "$LINENO"; then :
13986   ac_cv_c_stack_direction=1
13987 else
13988   ac_cv_c_stack_direction=-1
13989 fi
13990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13991   conftest.$ac_objext conftest.beam conftest.$ac_ext
13992 fi
13993
13994 fi
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13996 $as_echo "$ac_cv_c_stack_direction" >&6; }
13997 cat >>confdefs.h <<_ACEOF
13998 #define STACK_DIRECTION $ac_cv_c_stack_direction
13999 _ACEOF
14000
14001
14002 fi
14003
14004
14005 # The cast to long int works around a bug in the HP C Compiler
14006 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14007 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14008 # This bug is HP SR number 8606223364.
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14010 $as_echo_n "checking size of double... " >&6; }
14011 if ${ac_cv_sizeof_double+:} false; then :
14012   $as_echo_n "(cached) " >&6
14013 else
14014   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14015
14016 else
14017   if test "$ac_cv_type_double" = yes; then
14018      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14019 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14020 as_fn_error 77 "cannot compute sizeof (double)
14021 See \`config.log' for more details" "$LINENO" 5; }
14022    else
14023      ac_cv_sizeof_double=0
14024    fi
14025 fi
14026
14027 fi
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14029 $as_echo "$ac_cv_sizeof_double" >&6; }
14030
14031
14032
14033 cat >>confdefs.h <<_ACEOF
14034 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14035 _ACEOF
14036
14037
14038 # The cast to long int works around a bug in the HP C Compiler
14039 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14040 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14041 # This bug is HP SR number 8606223364.
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14043 $as_echo_n "checking size of long double... " >&6; }
14044 if ${ac_cv_sizeof_long_double+:} false; then :
14045   $as_echo_n "(cached) " >&6
14046 else
14047   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14048
14049 else
14050   if test "$ac_cv_type_long_double" = yes; then
14051      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14053 as_fn_error 77 "cannot compute sizeof (long double)
14054 See \`config.log' for more details" "$LINENO" 5; }
14055    else
14056      ac_cv_sizeof_long_double=0
14057    fi
14058 fi
14059
14060 fi
14061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14062 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14063
14064
14065
14066 cat >>confdefs.h <<_ACEOF
14067 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14068 _ACEOF
14069
14070
14071
14072 # Also AC_SUBST this variable for ffi.h.
14073 if test -z "$HAVE_LONG_DOUBLE"; then
14074   HAVE_LONG_DOUBLE=0
14075   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14076     if test $ac_cv_sizeof_long_double != 0; then
14077       HAVE_LONG_DOUBLE=1
14078
14079 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14080
14081     fi
14082   fi
14083 fi
14084
14085
14086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14087 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14088 if ${ac_cv_c_bigendian+:} false; then :
14089   $as_echo_n "(cached) " >&6
14090 else
14091   ac_cv_c_bigendian=unknown
14092     # See if we're dealing with a universal compiler.
14093     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h.  */
14095 #ifndef __APPLE_CC__
14096                not a universal capable compiler
14097              #endif
14098              typedef int dummy;
14099
14100 _ACEOF
14101 if ac_fn_c_try_compile "$LINENO"; then :
14102
14103         # Check for potential -arch flags.  It is not universal unless
14104         # there are at least two -arch flags with different values.
14105         ac_arch=
14106         ac_prev=
14107         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14108          if test -n "$ac_prev"; then
14109            case $ac_word in
14110              i?86 | x86_64 | ppc | ppc64)
14111                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14112                  ac_arch=$ac_word
14113                else
14114                  ac_cv_c_bigendian=universal
14115                  break
14116                fi
14117                ;;
14118            esac
14119            ac_prev=
14120          elif test "x$ac_word" = "x-arch"; then
14121            ac_prev=arch
14122          fi
14123        done
14124 fi
14125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14126     if test $ac_cv_c_bigendian = unknown; then
14127       # See if sys/param.h defines the BYTE_ORDER macro.
14128       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h.  */
14130 #include <sys/types.h>
14131              #include <sys/param.h>
14132
14133 int
14134 main ()
14135 {
14136 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14137                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14138                      && LITTLE_ENDIAN)
14139               bogus endian macros
14140              #endif
14141
14142   ;
14143   return 0;
14144 }
14145 _ACEOF
14146 if ac_fn_c_try_compile "$LINENO"; then :
14147   # It does; now see whether it defined to BIG_ENDIAN or not.
14148          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14149 /* end confdefs.h.  */
14150 #include <sys/types.h>
14151                 #include <sys/param.h>
14152
14153 int
14154 main ()
14155 {
14156 #if BYTE_ORDER != BIG_ENDIAN
14157                  not big endian
14158                 #endif
14159
14160   ;
14161   return 0;
14162 }
14163 _ACEOF
14164 if ac_fn_c_try_compile "$LINENO"; then :
14165   ac_cv_c_bigendian=yes
14166 else
14167   ac_cv_c_bigendian=no
14168 fi
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 fi
14171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14172     fi
14173     if test $ac_cv_c_bigendian = unknown; then
14174       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14175       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h.  */
14177 #include <limits.h>
14178
14179 int
14180 main ()
14181 {
14182 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14183               bogus endian macros
14184              #endif
14185
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191   # It does; now see whether it defined to _BIG_ENDIAN or not.
14192          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14193 /* end confdefs.h.  */
14194 #include <limits.h>
14195
14196 int
14197 main ()
14198 {
14199 #ifndef _BIG_ENDIAN
14200                  not big endian
14201                 #endif
14202
14203   ;
14204   return 0;
14205 }
14206 _ACEOF
14207 if ac_fn_c_try_compile "$LINENO"; then :
14208   ac_cv_c_bigendian=yes
14209 else
14210   ac_cv_c_bigendian=no
14211 fi
14212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14213 fi
14214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14215     fi
14216     if test $ac_cv_c_bigendian = unknown; then
14217       # Compile a test program.
14218       if test "$cross_compiling" = yes; then :
14219   # Try to guess by grepping values from an object file.
14220          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h.  */
14222 short int ascii_mm[] =
14223                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14224                 short int ascii_ii[] =
14225                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14226                 int use_ascii (int i) {
14227                   return ascii_mm[i] + ascii_ii[i];
14228                 }
14229                 short int ebcdic_ii[] =
14230                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14231                 short int ebcdic_mm[] =
14232                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14233                 int use_ebcdic (int i) {
14234                   return ebcdic_mm[i] + ebcdic_ii[i];
14235                 }
14236                 extern int foo;
14237
14238 int
14239 main ()
14240 {
14241 return use_ascii (foo) == use_ebcdic (foo);
14242   ;
14243   return 0;
14244 }
14245 _ACEOF
14246 if ac_fn_c_try_compile "$LINENO"; then :
14247   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14248               ac_cv_c_bigendian=yes
14249             fi
14250             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14251               if test "$ac_cv_c_bigendian" = unknown; then
14252                 ac_cv_c_bigendian=no
14253               else
14254                 # finding both strings is unlikely to happen, but who knows?
14255                 ac_cv_c_bigendian=unknown
14256               fi
14257             fi
14258 fi
14259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14260 else
14261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h.  */
14263 $ac_includes_default
14264 int
14265 main ()
14266 {
14267
14268              /* Are we little or big endian?  From Harbison&Steele.  */
14269              union
14270              {
14271                long int l;
14272                char c[sizeof (long int)];
14273              } u;
14274              u.l = 1;
14275              return u.c[sizeof (long int) - 1] == 1;
14276
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 if ac_fn_c_try_run "$LINENO"; then :
14282   ac_cv_c_bigendian=no
14283 else
14284   ac_cv_c_bigendian=yes
14285 fi
14286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14287   conftest.$ac_objext conftest.beam conftest.$ac_ext
14288 fi
14289
14290     fi
14291 fi
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14293 $as_echo "$ac_cv_c_bigendian" >&6; }
14294  case $ac_cv_c_bigendian in #(
14295    yes)
14296      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14297 ;; #(
14298    no)
14299       ;; #(
14300    universal)
14301
14302 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14303
14304      ;; #(
14305    *)
14306      as_fn_error $? "unknown endianness
14307  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14308  esac
14309
14310
14311 GCC_AS_CFI_PSEUDO_OP
14312
14313 if test x$TARGET = xSPARC; then
14314     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14315 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14316 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14317   $as_echo_n "(cached) " >&6
14318 else
14319
14320         save_CFLAGS="$CFLAGS"
14321         save_LDFLAGS="$LDFLAGS"
14322         CFLAGS="$CFLAGS -fpic"
14323         LDFLAGS="$LDFLAGS -shared"
14324         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14325 /* end confdefs.h.  */
14326 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14327 int
14328 main ()
14329 {
14330
14331   ;
14332   return 0;
14333 }
14334 _ACEOF
14335 if ac_fn_c_try_link "$LINENO"; then :
14336   libffi_cv_as_sparc_ua_pcrel=yes
14337 else
14338   libffi_cv_as_sparc_ua_pcrel=no
14339 fi
14340 rm -f core conftest.err conftest.$ac_objext \
14341     conftest$ac_exeext conftest.$ac_ext
14342         CFLAGS="$save_CFLAGS"
14343         LDFLAGS="$save_LDFLAGS"
14344 fi
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14346 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14347     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14348
14349 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14350
14351     fi
14352
14353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14354 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14355 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14356   $as_echo_n "(cached) " >&6
14357 else
14358
14359        libffi_cv_as_register_pseudo_op=unknown
14360        # Check if we have .register
14361        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363 asm (".register %g2, #scratch");
14364 int
14365 main ()
14366 {
14367
14368   ;
14369   return 0;
14370 }
14371 _ACEOF
14372 if ac_fn_c_try_compile "$LINENO"; then :
14373   libffi_cv_as_register_pseudo_op=yes
14374 else
14375   libffi_cv_as_register_pseudo_op=no
14376 fi
14377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14378
14379 fi
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14381 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14382     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14383
14384 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14385
14386     fi
14387 fi
14388
14389 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14391 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14392 if ${libffi_cv_as_x86_pcrel+:} false; then :
14393   $as_echo_n "(cached) " >&6
14394 else
14395
14396         libffi_cv_as_x86_pcrel=yes
14397         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14398         if $CC $CFLAGS -c conftest.s 2>&1 | $EGREP -i 'illegal|warning' > /dev/null; then
14399             libffi_cv_as_x86_pcrel=no
14400         fi
14401
14402 fi
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14404 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14405     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14406
14407 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14408
14409     fi
14410
14411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14412 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14413 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14414   $as_echo_n "(cached) " >&6
14415 else
14416
14417        libffi_cv_as_ascii_pseudo_op=unknown
14418        # Check if we have .ascii
14419        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14420 /* end confdefs.h.  */
14421 asm (".ascii \\"string\\"");
14422 int
14423 main ()
14424 {
14425
14426   ;
14427   return 0;
14428 }
14429 _ACEOF
14430 if ac_fn_c_try_compile "$LINENO"; then :
14431   libffi_cv_as_ascii_pseudo_op=yes
14432 else
14433   libffi_cv_as_ascii_pseudo_op=no
14434 fi
14435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14436
14437 fi
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14439 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14440     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14441
14442 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14443
14444     fi
14445
14446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14447 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14448 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14449   $as_echo_n "(cached) " >&6
14450 else
14451
14452        libffi_cv_as_string_pseudo_op=unknown
14453        # Check if we have .string
14454        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h.  */
14456 asm (".string \\"string\\"");
14457 int
14458 main ()
14459 {
14460
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466   libffi_cv_as_string_pseudo_op=yes
14467 else
14468   libffi_cv_as_string_pseudo_op=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471
14472 fi
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14474 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14475     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14476
14477 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14478
14479     fi
14480 fi
14481
14482 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14483 # Check whether --enable-pax_emutramp was given.
14484 if test "${enable_pax_emutramp+set}" = set; then :
14485   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14486
14487 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14488
14489   fi
14490 fi
14491
14492
14493 if test x$TARGET = xX86_WIN64; then
14494     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14495 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14496 if ${lt_cv_sys_symbol_underscore+:} false; then :
14497   $as_echo_n "(cached) " >&6
14498 else
14499   lt_cv_sys_symbol_underscore=no
14500   cat > conftest.$ac_ext <<_LT_EOF
14501 void nm_test_func(){}
14502 int main(){nm_test_func;return 0;}
14503 _LT_EOF
14504   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14505   (eval $ac_compile) 2>&5
14506   ac_status=$?
14507   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14508   test $ac_status = 0; }; then
14509     # Now try to grab the symbols.
14510     ac_nlist=conftest.nm
14511     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14512   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14513   ac_status=$?
14514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515   test $ac_status = 0; } && test -s "$ac_nlist"; then
14516       # See whether the symbols have a leading underscore.
14517       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14518         lt_cv_sys_symbol_underscore=yes
14519       else
14520         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14521           :
14522         else
14523           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14524         fi
14525       fi
14526     else
14527       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14528     fi
14529   else
14530     echo "configure: failed program was:" >&5
14531     cat conftest.c >&5
14532   fi
14533   rm -rf conftest*
14534
14535 fi
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14537 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14538   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14539
14540
14541     if test "x$sys_symbol_underscore" = xyes; then
14542
14543 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14544
14545     fi
14546 fi
14547
14548 FFI_EXEC_TRAMPOLINE_TABLE=0
14549 case "$target" in
14550      *arm*-apple-darwin*)
14551        FFI_EXEC_TRAMPOLINE_TABLE=1
14552
14553 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14554
14555      ;;
14556      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14557
14558 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14559
14560      ;;
14561 esac
14562  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14563   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14564   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14565 else
14566   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14567   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14568 fi
14569
14570
14571
14572 if test x$TARGET = xX86_64; then
14573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14574 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14575 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14576   $as_echo_n "(cached) " >&6
14577 else
14578
14579         libffi_cv_as_x86_64_unwind_section_type=yes
14580         echo '.section .eh_frame,"a",@unwind' > conftest.s
14581         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14582             libffi_cv_as_x86_64_unwind_section_type=no
14583         fi
14584
14585 fi
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14587 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14588     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14589
14590 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14591
14592     fi
14593 fi
14594
14595 if test "x$GCC" = "xyes"; then
14596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14597 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14598 if ${libffi_cv_ro_eh_frame+:} false; then :
14599   $as_echo_n "(cached) " >&6
14600 else
14601
14602         libffi_cv_ro_eh_frame=no
14603         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14604         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14605             objdump -h conftest.o > conftest.dump 2>&1
14606             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14607             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14608             sed -n $libffi_test_line conftest.dump > conftest.line
14609             if grep READONLY conftest.line > /dev/null; then
14610                 libffi_cv_ro_eh_frame=yes
14611             fi
14612         fi
14613         rm -f conftest.*
14614
14615 fi
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14617 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14618   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14619
14620 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14621
14622
14623 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14624
14625   else
14626
14627 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14628
14629   fi
14630
14631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14632 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14633 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14634   $as_echo_n "(cached) " >&6
14635 else
14636
14637         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14638         libffi_cv_hidden_visibility_attribute=no
14639         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14640   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14641   (eval $ac_try) 2>&5
14642   ac_status=$?
14643   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14644   test $ac_status = 0; }; }; then
14645             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14646                 libffi_cv_hidden_visibility_attribute=yes
14647             fi
14648         fi
14649         rm -f conftest.*
14650
14651 fi
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14653 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14654   if test $libffi_cv_hidden_visibility_attribute = yes; then
14655
14656 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14657
14658   fi
14659 fi
14660
14661
14662
14663
14664
14665
14666
14667
14668 # Check whether --enable-debug was given.
14669 if test "${enable_debug+set}" = set; then :
14670   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14671
14672 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14673
14674   fi
14675 fi
14676
14677  if test "$enable_debug" = "yes"; then
14678   FFI_DEBUG_TRUE=
14679   FFI_DEBUG_FALSE='#'
14680 else
14681   FFI_DEBUG_TRUE='#'
14682   FFI_DEBUG_FALSE=
14683 fi
14684
14685
14686 # Check whether --enable-structs was given.
14687 if test "${enable_structs+set}" = set; then :
14688   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14689
14690 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14691
14692   fi
14693 fi
14694
14695  if test "$enable_debug" = "yes"; then
14696   FFI_DEBUG_TRUE=
14697   FFI_DEBUG_FALSE='#'
14698 else
14699   FFI_DEBUG_TRUE='#'
14700   FFI_DEBUG_FALSE=
14701 fi
14702
14703
14704 # Check whether --enable-raw-api was given.
14705 if test "${enable_raw_api+set}" = set; then :
14706   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14707
14708 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14709
14710   fi
14711 fi
14712
14713
14714 # Check whether --enable-purify-safety was given.
14715 if test "${enable_purify_safety+set}" = set; then :
14716   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14717
14718 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14719
14720   fi
14721 fi
14722
14723
14724 # These variables are only ever used when we cross-build to X86_WIN32.
14725 # And we only support this with GCC, so...
14726 if test x"$GCC" != x"no"; then
14727   if test -n "$with_cross_host" &&
14728      test x"$with_cross_host" != x"no"; then
14729     toolexecdir='$(exec_prefix)/$(target_alias)'
14730     toolexeclibdir='$(toolexecdir)/lib'
14731   else
14732     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14733     toolexeclibdir='$(libdir)'
14734   fi
14735   multi_os_directory=`$CC -print-multi-os-directory`
14736   case $multi_os_directory in
14737     .) ;; # Avoid trailing /.
14738     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14739   esac
14740
14741
14742 fi
14743
14744 ac_config_commands="$ac_config_commands include"
14745
14746 ac_config_commands="$ac_config_commands src"
14747
14748
14749 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14750
14751
14752 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14753
14754
14755 cat >confcache <<\_ACEOF
14756 # This file is a shell script that caches the results of configure
14757 # tests run on this system so they can be shared between configure
14758 # scripts and configure runs, see configure's option --config-cache.
14759 # It is not useful on other systems.  If it contains results you don't
14760 # want to keep, you may remove or edit it.
14761 #
14762 # config.status only pays attention to the cache file if you give it
14763 # the --recheck option to rerun configure.
14764 #
14765 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14766 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14767 # following values.
14768
14769 _ACEOF
14770
14771 # The following way of writing the cache mishandles newlines in values,
14772 # but we know of no workaround that is simple, portable, and efficient.
14773 # So, we kill variables containing newlines.
14774 # Ultrix sh set writes to stderr and can't be redirected directly,
14775 # and sets the high bit in the cache file unless we assign to the vars.
14776 (
14777   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14778     eval ac_val=\$$ac_var
14779     case $ac_val in #(
14780     *${as_nl}*)
14781       case $ac_var in #(
14782       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14783 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14784       esac
14785       case $ac_var in #(
14786       _ | IFS | as_nl) ;; #(
14787       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14788       *) { eval $ac_var=; unset $ac_var;} ;;
14789       esac ;;
14790     esac
14791   done
14792
14793   (set) 2>&1 |
14794     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14795     *${as_nl}ac_space=\ *)
14796       # `set' does not quote correctly, so add quotes: double-quote
14797       # substitution turns \\\\ into \\, and sed turns \\ into \.
14798       sed -n \
14799         "s/'/'\\\\''/g;
14800           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14801       ;; #(
14802     *)
14803       # `set' quotes correctly as required by POSIX, so do not add quotes.
14804       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14805       ;;
14806     esac |
14807     sort
14808 ) |
14809   sed '
14810      /^ac_cv_env_/b end
14811      t clear
14812      :clear
14813      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14814      t end
14815      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14816      :end' >>confcache
14817 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14818   if test -w "$cache_file"; then
14819     if test "x$cache_file" != "x/dev/null"; then
14820       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14821 $as_echo "$as_me: updating cache $cache_file" >&6;}
14822       if test ! -f "$cache_file" || test -h "$cache_file"; then
14823         cat confcache >"$cache_file"
14824       else
14825         case $cache_file in #(
14826         */* | ?:*)
14827           mv -f confcache "$cache_file"$$ &&
14828           mv -f "$cache_file"$$ "$cache_file" ;; #(
14829         *)
14830           mv -f confcache "$cache_file" ;;
14831         esac
14832       fi
14833     fi
14834   else
14835     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14836 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14837   fi
14838 fi
14839 rm -f confcache
14840
14841 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14842 # Let make expand exec_prefix.
14843 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14844
14845 DEFS=-DHAVE_CONFIG_H
14846
14847 ac_libobjs=
14848 ac_ltlibobjs=
14849 U=
14850 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14851   # 1. Remove the extension, and $U if already installed.
14852   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14853   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14854   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14855   #    will be set to the directory where LIBOBJS objects are built.
14856   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14857   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14858 done
14859 LIBOBJS=$ac_libobjs
14860
14861 LTLIBOBJS=$ac_ltlibobjs
14862
14863
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14865 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14866    if test -n "$am_sleep_pid"; then
14867      # Hide warnings about reused PIDs.
14868      wait $am_sleep_pid 2>/dev/null
14869    fi
14870    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14871 $as_echo "done" >&6; }
14872  if test -n "$EXEEXT"; then
14873   am__EXEEXT_TRUE=
14874   am__EXEEXT_FALSE='#'
14875 else
14876   am__EXEEXT_TRUE='#'
14877   am__EXEEXT_FALSE=
14878 fi
14879
14880 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14881   as_fn_error $? "conditional \"AMDEP\" was never defined.
14882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14883 fi
14884 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14885   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14887 fi
14888 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14889   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14891 fi
14892 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14893   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14895 fi
14896 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14897   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14899 fi
14900 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14901   as_fn_error $? "conditional \"MIPS\" was never defined.
14902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14903 fi
14904 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14905   as_fn_error $? "conditional \"BFIN\" was never defined.
14906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14907 fi
14908 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14909   as_fn_error $? "conditional \"SPARC\" was never defined.
14910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14911 fi
14912 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14913   as_fn_error $? "conditional \"X86\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14915 fi
14916 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14917   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14919 fi
14920 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14921   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14923 fi
14924 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14925   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14927 fi
14928 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14929   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14931 fi
14932 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
14933   as_fn_error $? "conditional \"ALPHA\" was never defined.
14934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14935 fi
14936 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
14937   as_fn_error $? "conditional \"IA64\" was never defined.
14938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14939 fi
14940 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
14941   as_fn_error $? "conditional \"M32R\" was never defined.
14942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14943 fi
14944 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
14945   as_fn_error $? "conditional \"M68K\" was never defined.
14946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14947 fi
14948 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
14949   as_fn_error $? "conditional \"MOXIE\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951 fi
14952 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
14953   as_fn_error $? "conditional \"POWERPC\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955 fi
14956 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
14957   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 fi
14960 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
14961   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 fi
14964 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
14965   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 fi
14968 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
14969   as_fn_error $? "conditional \"AARCH64\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
14973   as_fn_error $? "conditional \"ARM\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 fi
14976 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
14977   as_fn_error $? "conditional \"AVR32\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
14981   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 fi
14984 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
14985   as_fn_error $? "conditional \"FRV\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 fi
14988 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
14989   as_fn_error $? "conditional \"S390\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 fi
14992 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
14993   as_fn_error $? "conditional \"X86_64\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 fi
14996 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
14997   as_fn_error $? "conditional \"SH\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 fi
15000 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15001   as_fn_error $? "conditional \"SH64\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 fi
15004 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15005   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 fi
15008 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15009   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 fi
15012 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15013   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 fi
15016 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15017   as_fn_error $? "conditional \"TILE\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 fi
15020
15021 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15022   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15024 fi
15025 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15026   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15028 fi
15029 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15030   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15032 fi
15033
15034 : "${CONFIG_STATUS=./config.status}"
15035 ac_write_fail=0
15036 ac_clean_files_save=$ac_clean_files
15037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15039 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15040 as_write_fail=0
15041 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15042 #! $SHELL
15043 # Generated by $as_me.
15044 # Run this file to recreate the current configuration.
15045 # Compiler output produced by configure, useful for debugging
15046 # configure, is in config.log if it exists.
15047
15048 debug=false
15049 ac_cs_recheck=false
15050 ac_cs_silent=false
15051
15052 SHELL=\${CONFIG_SHELL-$SHELL}
15053 export SHELL
15054 _ASEOF
15055 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15056 ## -------------------- ##
15057 ## M4sh Initialization. ##
15058 ## -------------------- ##
15059
15060 # Be more Bourne compatible
15061 DUALCASE=1; export DUALCASE # for MKS sh
15062 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15063   emulate sh
15064   NULLCMD=:
15065   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15066   # is contrary to our usage.  Disable this feature.
15067   alias -g '${1+"$@"}'='"$@"'
15068   setopt NO_GLOB_SUBST
15069 else
15070   case `(set -o) 2>/dev/null` in #(
15071   *posix*) :
15072     set -o posix ;; #(
15073   *) :
15074      ;;
15075 esac
15076 fi
15077
15078
15079 as_nl='
15080 '
15081 export as_nl
15082 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15083 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15084 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15086 # Prefer a ksh shell builtin over an external printf program on Solaris,
15087 # but without wasting forks for bash or zsh.
15088 if test -z "$BASH_VERSION$ZSH_VERSION" \
15089     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15090   as_echo='print -r --'
15091   as_echo_n='print -rn --'
15092 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15093   as_echo='printf %s\n'
15094   as_echo_n='printf %s'
15095 else
15096   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15097     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15098     as_echo_n='/usr/ucb/echo -n'
15099   else
15100     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15101     as_echo_n_body='eval
15102       arg=$1;
15103       case $arg in #(
15104       *"$as_nl"*)
15105         expr "X$arg" : "X\\(.*\\)$as_nl";
15106         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15107       esac;
15108       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15109     '
15110     export as_echo_n_body
15111     as_echo_n='sh -c $as_echo_n_body as_echo'
15112   fi
15113   export as_echo_body
15114   as_echo='sh -c $as_echo_body as_echo'
15115 fi
15116
15117 # The user is always right.
15118 if test "${PATH_SEPARATOR+set}" != set; then
15119   PATH_SEPARATOR=:
15120   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15121     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15122       PATH_SEPARATOR=';'
15123   }
15124 fi
15125
15126
15127 # IFS
15128 # We need space, tab and new line, in precisely that order.  Quoting is
15129 # there to prevent editors from complaining about space-tab.
15130 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15131 # splitting by setting IFS to empty value.)
15132 IFS=" ""        $as_nl"
15133
15134 # Find who we are.  Look in the path if we contain no directory separator.
15135 as_myself=
15136 case $0 in #((
15137   *[\\/]* ) as_myself=$0 ;;
15138   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15139 for as_dir in $PATH
15140 do
15141   IFS=$as_save_IFS
15142   test -z "$as_dir" && as_dir=.
15143     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15144   done
15145 IFS=$as_save_IFS
15146
15147      ;;
15148 esac
15149 # We did not find ourselves, most probably we were run as `sh COMMAND'
15150 # in which case we are not to be found in the path.
15151 if test "x$as_myself" = x; then
15152   as_myself=$0
15153 fi
15154 if test ! -f "$as_myself"; then
15155   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15156   exit 1
15157 fi
15158
15159 # Unset variables that we do not need and which cause bugs (e.g. in
15160 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15161 # suppresses any "Segmentation fault" message there.  '((' could
15162 # trigger a bug in pdksh 5.2.14.
15163 for as_var in BASH_ENV ENV MAIL MAILPATH
15164 do eval test x\${$as_var+set} = xset \
15165   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15166 done
15167 PS1='$ '
15168 PS2='> '
15169 PS4='+ '
15170
15171 # NLS nuisances.
15172 LC_ALL=C
15173 export LC_ALL
15174 LANGUAGE=C
15175 export LANGUAGE
15176
15177 # CDPATH.
15178 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15179
15180
15181 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15182 # ----------------------------------------
15183 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15184 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15185 # script with STATUS, using 1 if that was 0.
15186 as_fn_error ()
15187 {
15188   as_status=$1; test $as_status -eq 0 && as_status=1
15189   if test "$4"; then
15190     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15191     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15192   fi
15193   $as_echo "$as_me: error: $2" >&2
15194   as_fn_exit $as_status
15195 } # as_fn_error
15196
15197
15198 # as_fn_set_status STATUS
15199 # -----------------------
15200 # Set $? to STATUS, without forking.
15201 as_fn_set_status ()
15202 {
15203   return $1
15204 } # as_fn_set_status
15205
15206 # as_fn_exit STATUS
15207 # -----------------
15208 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15209 as_fn_exit ()
15210 {
15211   set +e
15212   as_fn_set_status $1
15213   exit $1
15214 } # as_fn_exit
15215
15216 # as_fn_unset VAR
15217 # ---------------
15218 # Portably unset VAR.
15219 as_fn_unset ()
15220 {
15221   { eval $1=; unset $1;}
15222 }
15223 as_unset=as_fn_unset
15224 # as_fn_append VAR VALUE
15225 # ----------------------
15226 # Append the text in VALUE to the end of the definition contained in VAR. Take
15227 # advantage of any shell optimizations that allow amortized linear growth over
15228 # repeated appends, instead of the typical quadratic growth present in naive
15229 # implementations.
15230 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15231   eval 'as_fn_append ()
15232   {
15233     eval $1+=\$2
15234   }'
15235 else
15236   as_fn_append ()
15237   {
15238     eval $1=\$$1\$2
15239   }
15240 fi # as_fn_append
15241
15242 # as_fn_arith ARG...
15243 # ------------------
15244 # Perform arithmetic evaluation on the ARGs, and store the result in the
15245 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15246 # must be portable across $(()) and expr.
15247 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15248   eval 'as_fn_arith ()
15249   {
15250     as_val=$(( $* ))
15251   }'
15252 else
15253   as_fn_arith ()
15254   {
15255     as_val=`expr "$@" || test $? -eq 1`
15256   }
15257 fi # as_fn_arith
15258
15259
15260 if expr a : '\(a\)' >/dev/null 2>&1 &&
15261    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15262   as_expr=expr
15263 else
15264   as_expr=false
15265 fi
15266
15267 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15268   as_basename=basename
15269 else
15270   as_basename=false
15271 fi
15272
15273 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15274   as_dirname=dirname
15275 else
15276   as_dirname=false
15277 fi
15278
15279 as_me=`$as_basename -- "$0" ||
15280 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15281          X"$0" : 'X\(//\)$' \| \
15282          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15283 $as_echo X/"$0" |
15284     sed '/^.*\/\([^/][^/]*\)\/*$/{
15285             s//\1/
15286             q
15287           }
15288           /^X\/\(\/\/\)$/{
15289             s//\1/
15290             q
15291           }
15292           /^X\/\(\/\).*/{
15293             s//\1/
15294             q
15295           }
15296           s/.*/./; q'`
15297
15298 # Avoid depending upon Character Ranges.
15299 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15300 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15301 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15302 as_cr_digits='0123456789'
15303 as_cr_alnum=$as_cr_Letters$as_cr_digits
15304
15305 ECHO_C= ECHO_N= ECHO_T=
15306 case `echo -n x` in #(((((
15307 -n*)
15308   case `echo 'xy\c'` in
15309   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15310   xy)  ECHO_C='\c';;
15311   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15312        ECHO_T=' ';;
15313   esac;;
15314 *)
15315   ECHO_N='-n';;
15316 esac
15317
15318 rm -f conf$$ conf$$.exe conf$$.file
15319 if test -d conf$$.dir; then
15320   rm -f conf$$.dir/conf$$.file
15321 else
15322   rm -f conf$$.dir
15323   mkdir conf$$.dir 2>/dev/null
15324 fi
15325 if (echo >conf$$.file) 2>/dev/null; then
15326   if ln -s conf$$.file conf$$ 2>/dev/null; then
15327     as_ln_s='ln -s'
15328     # ... but there are two gotchas:
15329     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15330     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15331     # In both cases, we have to default to `cp -pR'.
15332     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15333       as_ln_s='cp -pR'
15334   elif ln conf$$.file conf$$ 2>/dev/null; then
15335     as_ln_s=ln
15336   else
15337     as_ln_s='cp -pR'
15338   fi
15339 else
15340   as_ln_s='cp -pR'
15341 fi
15342 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15343 rmdir conf$$.dir 2>/dev/null
15344
15345
15346 # as_fn_mkdir_p
15347 # -------------
15348 # Create "$as_dir" as a directory, including parents if necessary.
15349 as_fn_mkdir_p ()
15350 {
15351
15352   case $as_dir in #(
15353   -*) as_dir=./$as_dir;;
15354   esac
15355   test -d "$as_dir" || eval $as_mkdir_p || {
15356     as_dirs=
15357     while :; do
15358       case $as_dir in #(
15359       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15360       *) as_qdir=$as_dir;;
15361       esac
15362       as_dirs="'$as_qdir' $as_dirs"
15363       as_dir=`$as_dirname -- "$as_dir" ||
15364 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15365          X"$as_dir" : 'X\(//\)[^/]' \| \
15366          X"$as_dir" : 'X\(//\)$' \| \
15367          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15368 $as_echo X"$as_dir" |
15369     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15370             s//\1/
15371             q
15372           }
15373           /^X\(\/\/\)[^/].*/{
15374             s//\1/
15375             q
15376           }
15377           /^X\(\/\/\)$/{
15378             s//\1/
15379             q
15380           }
15381           /^X\(\/\).*/{
15382             s//\1/
15383             q
15384           }
15385           s/.*/./; q'`
15386       test -d "$as_dir" && break
15387     done
15388     test -z "$as_dirs" || eval "mkdir $as_dirs"
15389   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15390
15391
15392 } # as_fn_mkdir_p
15393 if mkdir -p . 2>/dev/null; then
15394   as_mkdir_p='mkdir -p "$as_dir"'
15395 else
15396   test -d ./-p && rmdir ./-p
15397   as_mkdir_p=false
15398 fi
15399
15400
15401 # as_fn_executable_p FILE
15402 # -----------------------
15403 # Test if FILE is an executable regular file.
15404 as_fn_executable_p ()
15405 {
15406   test -f "$1" && test -x "$1"
15407 } # as_fn_executable_p
15408 as_test_x='test -x'
15409 as_executable_p=as_fn_executable_p
15410
15411 # Sed expression to map a string onto a valid CPP name.
15412 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15413
15414 # Sed expression to map a string onto a valid variable name.
15415 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15416
15417
15418 exec 6>&1
15419 ## ----------------------------------- ##
15420 ## Main body of $CONFIG_STATUS script. ##
15421 ## ----------------------------------- ##
15422 _ASEOF
15423 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15424
15425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15426 # Save the log message, to keep $0 and so on meaningful, and to
15427 # report actual input values of CONFIG_FILES etc. instead of their
15428 # values after options handling.
15429 ac_log="
15430 This file was extended by libffi $as_me 3.0.12-rc0, which was
15431 generated by GNU Autoconf 2.69.  Invocation command line was
15432
15433   CONFIG_FILES    = $CONFIG_FILES
15434   CONFIG_HEADERS  = $CONFIG_HEADERS
15435   CONFIG_LINKS    = $CONFIG_LINKS
15436   CONFIG_COMMANDS = $CONFIG_COMMANDS
15437   $ $0 $@
15438
15439 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15440 "
15441
15442 _ACEOF
15443
15444 case $ac_config_files in *"
15445 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15446 esac
15447
15448 case $ac_config_headers in *"
15449 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15450 esac
15451
15452
15453 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15454 # Files that config.status was made for.
15455 config_files="$ac_config_files"
15456 config_headers="$ac_config_headers"
15457 config_links="$ac_config_links"
15458 config_commands="$ac_config_commands"
15459
15460 _ACEOF
15461
15462 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15463 ac_cs_usage="\
15464 \`$as_me' instantiates files and other configuration actions
15465 from templates according to the current configuration.  Unless the files
15466 and actions are specified as TAGs, all are instantiated by default.
15467
15468 Usage: $0 [OPTION]... [TAG]...
15469
15470   -h, --help       print this help, then exit
15471   -V, --version    print version number and configuration settings, then exit
15472       --config     print configuration, then exit
15473   -q, --quiet, --silent
15474                    do not print progress messages
15475   -d, --debug      don't remove temporary files
15476       --recheck    update $as_me by reconfiguring in the same conditions
15477       --file=FILE[:TEMPLATE]
15478                    instantiate the configuration file FILE
15479       --header=FILE[:TEMPLATE]
15480                    instantiate the configuration header FILE
15481
15482 Configuration files:
15483 $config_files
15484
15485 Configuration headers:
15486 $config_headers
15487
15488 Configuration links:
15489 $config_links
15490
15491 Configuration commands:
15492 $config_commands
15493
15494 Report bugs to <http://gcc.gnu.org/bugs.html>."
15495
15496 _ACEOF
15497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15498 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15499 ac_cs_version="\\
15500 libffi config.status 3.0.12-rc0
15501 configured by $0, generated by GNU Autoconf 2.69,
15502   with options \\"\$ac_cs_config\\"
15503
15504 Copyright (C) 2012 Free Software Foundation, Inc.
15505 This config.status script is free software; the Free Software Foundation
15506 gives unlimited permission to copy, distribute and modify it."
15507
15508 ac_pwd='$ac_pwd'
15509 srcdir='$srcdir'
15510 INSTALL='$INSTALL'
15511 MKDIR_P='$MKDIR_P'
15512 AWK='$AWK'
15513 test -n "\$AWK" || AWK=awk
15514 _ACEOF
15515
15516 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15517 # The default lists apply if the user does not specify any file.
15518 ac_need_defaults=:
15519 while test $# != 0
15520 do
15521   case $1 in
15522   --*=?*)
15523     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15524     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15525     ac_shift=:
15526     ;;
15527   --*=)
15528     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15529     ac_optarg=
15530     ac_shift=:
15531     ;;
15532   *)
15533     ac_option=$1
15534     ac_optarg=$2
15535     ac_shift=shift
15536     ;;
15537   esac
15538
15539   case $ac_option in
15540   # Handling of the options.
15541   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15542     ac_cs_recheck=: ;;
15543   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15544     $as_echo "$ac_cs_version"; exit ;;
15545   --config | --confi | --conf | --con | --co | --c )
15546     $as_echo "$ac_cs_config"; exit ;;
15547   --debug | --debu | --deb | --de | --d | -d )
15548     debug=: ;;
15549   --file | --fil | --fi | --f )
15550     $ac_shift
15551     case $ac_optarg in
15552     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15553     '') as_fn_error $? "missing file argument" ;;
15554     esac
15555     as_fn_append CONFIG_FILES " '$ac_optarg'"
15556     ac_need_defaults=false;;
15557   --header | --heade | --head | --hea )
15558     $ac_shift
15559     case $ac_optarg in
15560     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15561     esac
15562     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15563     ac_need_defaults=false;;
15564   --he | --h)
15565     # Conflict between --help and --header
15566     as_fn_error $? "ambiguous option: \`$1'
15567 Try \`$0 --help' for more information.";;
15568   --help | --hel | -h )
15569     $as_echo "$ac_cs_usage"; exit ;;
15570   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15571   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15572     ac_cs_silent=: ;;
15573
15574   # This is an error.
15575   -*) as_fn_error $? "unrecognized option: \`$1'
15576 Try \`$0 --help' for more information." ;;
15577
15578   *) as_fn_append ac_config_targets " $1"
15579      ac_need_defaults=false ;;
15580
15581   esac
15582   shift
15583 done
15584
15585 ac_configure_extra_args=
15586
15587 if $ac_cs_silent; then
15588   exec 6>/dev/null
15589   ac_configure_extra_args="$ac_configure_extra_args --silent"
15590 fi
15591
15592 _ACEOF
15593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15594 if \$ac_cs_recheck; then
15595   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15596   shift
15597   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15598   CONFIG_SHELL='$SHELL'
15599   export CONFIG_SHELL
15600   exec "\$@"
15601 fi
15602
15603 _ACEOF
15604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15605 exec 5>>config.log
15606 {
15607   echo
15608   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15609 ## Running $as_me. ##
15610 _ASBOX
15611   $as_echo "$ac_log"
15612 } >&5
15613
15614 _ACEOF
15615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15616 #
15617 # INIT-COMMANDS
15618 #
15619 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15620 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15621 ax_enable_builddir_version="$VERSION"                  # $VERSION
15622 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15623 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15624 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15625 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15626
15627 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15628
15629
15630 # The HP-UX ksh and POSIX shell print the target directory to stdout
15631 # if CDPATH is set.
15632 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15633
15634 sed_quote_subst='$sed_quote_subst'
15635 double_quote_subst='$double_quote_subst'
15636 delay_variable_subst='$delay_variable_subst'
15637 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15638 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15639 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15640 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15641 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15642 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15643 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15644 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15645 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15646 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15647 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15648 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15649 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15650 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15651 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15652 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15653 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15654 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15655 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15656 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15657 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15658 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15659 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15660 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15661 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15662 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15663 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15664 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15665 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15666 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15667 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15668 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15669 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15670 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15671 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15672 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15673 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15674 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15675 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15676 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15677 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15678 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15679 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15680 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15681 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15682 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15683 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15684 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15685 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15686 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15687 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15688 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15689 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15690 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15691 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15692 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15693 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"`'
15694 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15695 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15696 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15697 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15698 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15699 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15700 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15701 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15702 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15703 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15704 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15705 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15706 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15707 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15708 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15709 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15710 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15711 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15712 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15713 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15714 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15715 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15716 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15717 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15718 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15719 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15720 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15721 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15722 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15723 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15724 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15725 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15726 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15727 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15728 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15729 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15730 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15731 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15732 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15733 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15734 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15735 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15736 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15737 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15738 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15739 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15740 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15741 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15742 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15743 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15744 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15745 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15746 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15747 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15748 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15749 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15750 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15751 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15752 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15753 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15754 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15755 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15756 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15757 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15758 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15759 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15760 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15761 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15762 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15763 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15764 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15765 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15766 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15767
15768 LTCC='$LTCC'
15769 LTCFLAGS='$LTCFLAGS'
15770 compiler='$compiler_DEFAULT'
15771
15772 # A function that is used when there is no print builtin or printf.
15773 func_fallback_echo ()
15774 {
15775   eval 'cat <<_LTECHO_EOF
15776 \$1
15777 _LTECHO_EOF'
15778 }
15779
15780 # Quote evaled strings.
15781 for var in SHELL \
15782 ECHO \
15783 PATH_SEPARATOR \
15784 SED \
15785 GREP \
15786 EGREP \
15787 FGREP \
15788 LD \
15789 NM \
15790 LN_S \
15791 lt_SP2NL \
15792 lt_NL2SP \
15793 reload_flag \
15794 OBJDUMP \
15795 deplibs_check_method \
15796 file_magic_cmd \
15797 file_magic_glob \
15798 want_nocaseglob \
15799 DLLTOOL \
15800 sharedlib_from_linklib_cmd \
15801 AR \
15802 AR_FLAGS \
15803 archiver_list_spec \
15804 STRIP \
15805 RANLIB \
15806 CC \
15807 CFLAGS \
15808 compiler \
15809 lt_cv_sys_global_symbol_pipe \
15810 lt_cv_sys_global_symbol_to_cdecl \
15811 lt_cv_sys_global_symbol_to_c_name_address \
15812 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15813 nm_file_list_spec \
15814 lt_prog_compiler_no_builtin_flag \
15815 lt_prog_compiler_pic \
15816 lt_prog_compiler_wl \
15817 lt_prog_compiler_static \
15818 lt_cv_prog_compiler_c_o \
15819 need_locks \
15820 MANIFEST_TOOL \
15821 DSYMUTIL \
15822 NMEDIT \
15823 LIPO \
15824 OTOOL \
15825 OTOOL64 \
15826 shrext_cmds \
15827 export_dynamic_flag_spec \
15828 whole_archive_flag_spec \
15829 compiler_needs_object \
15830 with_gnu_ld \
15831 allow_undefined_flag \
15832 no_undefined_flag \
15833 hardcode_libdir_flag_spec \
15834 hardcode_libdir_separator \
15835 exclude_expsyms \
15836 include_expsyms \
15837 file_list_spec \
15838 variables_saved_for_relink \
15839 libname_spec \
15840 library_names_spec \
15841 soname_spec \
15842 install_override_mode \
15843 finish_eval \
15844 old_striplib \
15845 striplib; do
15846     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15847     *[\\\\\\\`\\"\\\$]*)
15848       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15849       ;;
15850     *)
15851       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15852       ;;
15853     esac
15854 done
15855
15856 # Double-quote double-evaled strings.
15857 for var in reload_cmds \
15858 old_postinstall_cmds \
15859 old_postuninstall_cmds \
15860 old_archive_cmds \
15861 extract_expsyms_cmds \
15862 old_archive_from_new_cmds \
15863 old_archive_from_expsyms_cmds \
15864 archive_cmds \
15865 archive_expsym_cmds \
15866 module_cmds \
15867 module_expsym_cmds \
15868 export_symbols_cmds \
15869 prelink_cmds \
15870 postlink_cmds \
15871 postinstall_cmds \
15872 postuninstall_cmds \
15873 finish_cmds \
15874 sys_lib_search_path_spec \
15875 sys_lib_dlsearch_path_spec; do
15876     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15877     *[\\\\\\\`\\"\\\$]*)
15878       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15879       ;;
15880     *)
15881       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15882       ;;
15883     esac
15884 done
15885
15886 ac_aux_dir='$ac_aux_dir'
15887 xsi_shell='$xsi_shell'
15888 lt_shell_append='$lt_shell_append'
15889
15890 # See if we are running on zsh, and set the options which allow our
15891 # commands through without removal of \ escapes INIT.
15892 if test -n "\${ZSH_VERSION+set}" ; then
15893    setopt NO_GLOB_SUBST
15894 fi
15895
15896
15897     PACKAGE='$PACKAGE'
15898     VERSION='$VERSION'
15899     TIMESTAMP='$TIMESTAMP'
15900     RM='$RM'
15901     ofile='$ofile'
15902
15903
15904
15905 TARGETDIR="$TARGETDIR"
15906
15907 _ACEOF
15908
15909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15910
15911 # Handling of arguments.
15912 for ac_config_target in $ac_config_targets
15913 do
15914   case $ac_config_target in
15915     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15916     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15917     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15918     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15919     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15920     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15921     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15922     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15923     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15924     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15925     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15926     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15927     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
15928
15929   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15930   esac
15931 done
15932
15933
15934 # If the user did not use the arguments to specify the items to instantiate,
15935 # then the envvar interface is used.  Set only those that are not.
15936 # We use the long form for the default assignment because of an extremely
15937 # bizarre bug on SunOS 4.1.3.
15938 if $ac_need_defaults; then
15939   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15940   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15941   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
15942   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15943 fi
15944
15945 # Have a temporary directory for convenience.  Make it in the build tree
15946 # simply because there is no reason against having it here, and in addition,
15947 # creating and moving files from /tmp can sometimes cause problems.
15948 # Hook for its removal unless debugging.
15949 # Note that there is a small window in which the directory will not be cleaned:
15950 # after its creation but before its name has been assigned to `$tmp'.
15951 $debug ||
15952 {
15953   tmp= ac_tmp=
15954   trap 'exit_status=$?
15955   : "${ac_tmp:=$tmp}"
15956   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15957 ' 0
15958   trap 'as_fn_exit 1' 1 2 13 15
15959 }
15960 # Create a (secure) tmp directory for tmp files.
15961
15962 {
15963   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15964   test -d "$tmp"
15965 }  ||
15966 {
15967   tmp=./conf$$-$RANDOM
15968   (umask 077 && mkdir "$tmp")
15969 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15970 ac_tmp=$tmp
15971
15972 # Set up the scripts for CONFIG_FILES section.
15973 # No need to generate them if there are no CONFIG_FILES.
15974 # This happens for instance with `./config.status config.h'.
15975 if test -n "$CONFIG_FILES"; then
15976
15977
15978 ac_cr=`echo X | tr X '\015'`
15979 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15980 # But we know of no other shell where ac_cr would be empty at this
15981 # point, so we can use a bashism as a fallback.
15982 if test "x$ac_cr" = x; then
15983   eval ac_cr=\$\'\\r\'
15984 fi
15985 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15986 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15987   ac_cs_awk_cr='\\r'
15988 else
15989   ac_cs_awk_cr=$ac_cr
15990 fi
15991
15992 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15993 _ACEOF
15994
15995
15996 {
15997   echo "cat >conf$$subs.awk <<_ACEOF" &&
15998   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15999   echo "_ACEOF"
16000 } >conf$$subs.sh ||
16001   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16002 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16003 ac_delim='%!_!# '
16004 for ac_last_try in false false false false false :; do
16005   . ./conf$$subs.sh ||
16006     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16007
16008   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16009   if test $ac_delim_n = $ac_delim_num; then
16010     break
16011   elif $ac_last_try; then
16012     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16013   else
16014     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16015   fi
16016 done
16017 rm -f conf$$subs.sh
16018
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16020 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16021 _ACEOF
16022 sed -n '
16023 h
16024 s/^/S["/; s/!.*/"]=/
16025 p
16026 g
16027 s/^[^!]*!//
16028 :repl
16029 t repl
16030 s/'"$ac_delim"'$//
16031 t delim
16032 :nl
16033 h
16034 s/\(.\{148\}\)..*/\1/
16035 t more1
16036 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16037 p
16038 n
16039 b repl
16040 :more1
16041 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16042 p
16043 g
16044 s/.\{148\}//
16045 t nl
16046 :delim
16047 h
16048 s/\(.\{148\}\)..*/\1/
16049 t more2
16050 s/["\\]/\\&/g; s/^/"/; s/$/"/
16051 p
16052 b
16053 :more2
16054 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16055 p
16056 g
16057 s/.\{148\}//
16058 t delim
16059 ' <conf$$subs.awk | sed '
16060 /^[^""]/{
16061   N
16062   s/\n//
16063 }
16064 ' >>$CONFIG_STATUS || ac_write_fail=1
16065 rm -f conf$$subs.awk
16066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16067 _ACAWK
16068 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16069   for (key in S) S_is_set[key] = 1
16070   FS = "\a"
16071
16072 }
16073 {
16074   line = $ 0
16075   nfields = split(line, field, "@")
16076   substed = 0
16077   len = length(field[1])
16078   for (i = 2; i < nfields; i++) {
16079     key = field[i]
16080     keylen = length(key)
16081     if (S_is_set[key]) {
16082       value = S[key]
16083       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16084       len += length(value) + length(field[++i])
16085       substed = 1
16086     } else
16087       len += 1 + keylen
16088   }
16089
16090   print line
16091 }
16092
16093 _ACAWK
16094 _ACEOF
16095 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16096 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16097   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16098 else
16099   cat
16100 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16101   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16102 _ACEOF
16103
16104 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16105 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16106 # trailing colons and then remove the whole line if VPATH becomes empty
16107 # (actually we leave an empty line to preserve line numbers).
16108 if test "x$srcdir" = x.; then
16109   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16110 h
16111 s///
16112 s/^/:/
16113 s/[      ]*$/:/
16114 s/:\$(srcdir):/:/g
16115 s/:\${srcdir}:/:/g
16116 s/:@srcdir@:/:/g
16117 s/^:*//
16118 s/:*$//
16119 x
16120 s/\(=[   ]*\).*/\1/
16121 G
16122 s/\n//
16123 s/^[^=]*=[       ]*$//
16124 }'
16125 fi
16126
16127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 fi # test -n "$CONFIG_FILES"
16129
16130 # Set up the scripts for CONFIG_HEADERS section.
16131 # No need to generate them if there are no CONFIG_HEADERS.
16132 # This happens for instance with `./config.status Makefile'.
16133 if test -n "$CONFIG_HEADERS"; then
16134 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16135 BEGIN {
16136 _ACEOF
16137
16138 # Transform confdefs.h into an awk script `defines.awk', embedded as
16139 # here-document in config.status, that substitutes the proper values into
16140 # config.h.in to produce config.h.
16141
16142 # Create a delimiter string that does not exist in confdefs.h, to ease
16143 # handling of long lines.
16144 ac_delim='%!_!# '
16145 for ac_last_try in false false :; do
16146   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16147   if test -z "$ac_tt"; then
16148     break
16149   elif $ac_last_try; then
16150     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16151   else
16152     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16153   fi
16154 done
16155
16156 # For the awk script, D is an array of macro values keyed by name,
16157 # likewise P contains macro parameters if any.  Preserve backslash
16158 # newline sequences.
16159
16160 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16161 sed -n '
16162 s/.\{148\}/&'"$ac_delim"'/g
16163 t rset
16164 :rset
16165 s/^[     ]*#[    ]*define[       ][      ]*/ /
16166 t def
16167 d
16168 :def
16169 s/\\$//
16170 t bsnl
16171 s/["\\]/\\&/g
16172 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16173 D["\1"]=" \3"/p
16174 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16175 d
16176 :bsnl
16177 s/["\\]/\\&/g
16178 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16179 D["\1"]=" \3\\\\\\n"\\/p
16180 t cont
16181 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16182 t cont
16183 d
16184 :cont
16185 n
16186 s/.\{148\}/&'"$ac_delim"'/g
16187 t clear
16188 :clear
16189 s/\\$//
16190 t bsnlc
16191 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16192 d
16193 :bsnlc
16194 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16195 b cont
16196 ' <confdefs.h | sed '
16197 s/'"$ac_delim"'/"\\\
16198 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16199
16200 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16201   for (key in D) D_is_set[key] = 1
16202   FS = "\a"
16203 }
16204 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16205   line = \$ 0
16206   split(line, arg, " ")
16207   if (arg[1] == "#") {
16208     defundef = arg[2]
16209     mac1 = arg[3]
16210   } else {
16211     defundef = substr(arg[1], 2)
16212     mac1 = arg[2]
16213   }
16214   split(mac1, mac2, "(") #)
16215   macro = mac2[1]
16216   prefix = substr(line, 1, index(line, defundef) - 1)
16217   if (D_is_set[macro]) {
16218     # Preserve the white space surrounding the "#".
16219     print prefix "define", macro P[macro] D[macro]
16220     next
16221   } else {
16222     # Replace #undef with comments.  This is necessary, for example,
16223     # in the case of _POSIX_SOURCE, which is predefined and required
16224     # on some systems where configure will not decide to define it.
16225     if (defundef == "undef") {
16226       print "/*", prefix defundef, macro, "*/"
16227       next
16228     }
16229   }
16230 }
16231 { print }
16232 _ACAWK
16233 _ACEOF
16234 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16235   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16236 fi # test -n "$CONFIG_HEADERS"
16237
16238
16239 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16240 shift
16241 for ac_tag
16242 do
16243   case $ac_tag in
16244   :[FHLC]) ac_mode=$ac_tag; continue;;
16245   esac
16246   case $ac_mode$ac_tag in
16247   :[FHL]*:*);;
16248   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16249   :[FH]-) ac_tag=-:-;;
16250   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16251   esac
16252   ac_save_IFS=$IFS
16253   IFS=:
16254   set x $ac_tag
16255   IFS=$ac_save_IFS
16256   shift
16257   ac_file=$1
16258   shift
16259
16260   case $ac_mode in
16261   :L) ac_source=$1;;
16262   :[FH])
16263     ac_file_inputs=
16264     for ac_f
16265     do
16266       case $ac_f in
16267       -) ac_f="$ac_tmp/stdin";;
16268       *) # Look for the file first in the build tree, then in the source tree
16269          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16270          # because $ac_f cannot contain `:'.
16271          test -f "$ac_f" ||
16272            case $ac_f in
16273            [\\/$]*) false;;
16274            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16275            esac ||
16276            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16277       esac
16278       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16279       as_fn_append ac_file_inputs " '$ac_f'"
16280     done
16281
16282     # Let's still pretend it is `configure' which instantiates (i.e., don't
16283     # use $as_me), people would be surprised to read:
16284     #    /* config.h.  Generated by config.status.  */
16285     configure_input='Generated from '`
16286           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16287         `' by configure.'
16288     if test x"$ac_file" != x-; then
16289       configure_input="$ac_file.  $configure_input"
16290       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16291 $as_echo "$as_me: creating $ac_file" >&6;}
16292     fi
16293     # Neutralize special characters interpreted by sed in replacement strings.
16294     case $configure_input in #(
16295     *\&* | *\|* | *\\* )
16296        ac_sed_conf_input=`$as_echo "$configure_input" |
16297        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16298     *) ac_sed_conf_input=$configure_input;;
16299     esac
16300
16301     case $ac_tag in
16302     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16303       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16304     esac
16305     ;;
16306   esac
16307
16308   ac_dir=`$as_dirname -- "$ac_file" ||
16309 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16310          X"$ac_file" : 'X\(//\)[^/]' \| \
16311          X"$ac_file" : 'X\(//\)$' \| \
16312          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16313 $as_echo X"$ac_file" |
16314     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16315             s//\1/
16316             q
16317           }
16318           /^X\(\/\/\)[^/].*/{
16319             s//\1/
16320             q
16321           }
16322           /^X\(\/\/\)$/{
16323             s//\1/
16324             q
16325           }
16326           /^X\(\/\).*/{
16327             s//\1/
16328             q
16329           }
16330           s/.*/./; q'`
16331   as_dir="$ac_dir"; as_fn_mkdir_p
16332   ac_builddir=.
16333
16334 case "$ac_dir" in
16335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16336 *)
16337   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16338   # A ".." for each directory in $ac_dir_suffix.
16339   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16340   case $ac_top_builddir_sub in
16341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16343   esac ;;
16344 esac
16345 ac_abs_top_builddir=$ac_pwd
16346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16347 # for backward compatibility:
16348 ac_top_builddir=$ac_top_build_prefix
16349
16350 case $srcdir in
16351   .)  # We are building in place.
16352     ac_srcdir=.
16353     ac_top_srcdir=$ac_top_builddir_sub
16354     ac_abs_top_srcdir=$ac_pwd ;;
16355   [\\/]* | ?:[\\/]* )  # Absolute name.
16356     ac_srcdir=$srcdir$ac_dir_suffix;
16357     ac_top_srcdir=$srcdir
16358     ac_abs_top_srcdir=$srcdir ;;
16359   *) # Relative name.
16360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16361     ac_top_srcdir=$ac_top_build_prefix$srcdir
16362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16363 esac
16364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16365
16366
16367   case $ac_mode in
16368   :F)
16369   #
16370   # CONFIG_FILE
16371   #
16372
16373   case $INSTALL in
16374   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16375   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16376   esac
16377   ac_MKDIR_P=$MKDIR_P
16378   case $MKDIR_P in
16379   [\\/$]* | ?:[\\/]* ) ;;
16380   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16381   esac
16382 _ACEOF
16383
16384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16385 # If the template does not know about datarootdir, expand it.
16386 # FIXME: This hack should be removed a few years after 2.60.
16387 ac_datarootdir_hack=; ac_datarootdir_seen=
16388 ac_sed_dataroot='
16389 /datarootdir/ {
16390   p
16391   q
16392 }
16393 /@datadir@/p
16394 /@docdir@/p
16395 /@infodir@/p
16396 /@localedir@/p
16397 /@mandir@/p'
16398 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16399 *datarootdir*) ac_datarootdir_seen=yes;;
16400 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16402 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16403 _ACEOF
16404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16405   ac_datarootdir_hack='
16406   s&@datadir@&$datadir&g
16407   s&@docdir@&$docdir&g
16408   s&@infodir@&$infodir&g
16409   s&@localedir@&$localedir&g
16410   s&@mandir@&$mandir&g
16411   s&\\\${datarootdir}&$datarootdir&g' ;;
16412 esac
16413 _ACEOF
16414
16415 # Neutralize VPATH when `$srcdir' = `.'.
16416 # Shell code in configure.ac might set extrasub.
16417 # FIXME: do we really want to maintain this feature?
16418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16419 ac_sed_extra="$ac_vpsub
16420 $extrasub
16421 _ACEOF
16422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16423 :t
16424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16425 s|@configure_input@|$ac_sed_conf_input|;t t
16426 s&@top_builddir@&$ac_top_builddir_sub&;t t
16427 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16428 s&@srcdir@&$ac_srcdir&;t t
16429 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16430 s&@top_srcdir@&$ac_top_srcdir&;t t
16431 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16432 s&@builddir@&$ac_builddir&;t t
16433 s&@abs_builddir@&$ac_abs_builddir&;t t
16434 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16435 s&@INSTALL@&$ac_INSTALL&;t t
16436 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16437 $ac_datarootdir_hack
16438 "
16439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16440   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16441
16442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16443   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16444   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16445       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16446   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16447 which seems to be undefined.  Please make sure it is defined" >&5
16448 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16449 which seems to be undefined.  Please make sure it is defined" >&2;}
16450
16451   rm -f "$ac_tmp/stdin"
16452   case $ac_file in
16453   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16454   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16455   esac \
16456   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16457  ;;
16458   :H)
16459   #
16460   # CONFIG_HEADER
16461   #
16462   if test x"$ac_file" != x-; then
16463     {
16464       $as_echo "/* $configure_input  */" \
16465       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16466     } >"$ac_tmp/config.h" \
16467       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16468     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16469       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16470 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16471     else
16472       rm -f "$ac_file"
16473       mv "$ac_tmp/config.h" "$ac_file" \
16474         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16475     fi
16476   else
16477     $as_echo "/* $configure_input  */" \
16478       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16479       || as_fn_error $? "could not create -" "$LINENO" 5
16480   fi
16481 # Compute "$ac_file"'s index in $config_headers.
16482 _am_arg="$ac_file"
16483 _am_stamp_count=1
16484 for _am_header in $config_headers :; do
16485   case $_am_header in
16486     $_am_arg | $_am_arg:* )
16487       break ;;
16488     * )
16489       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16490   esac
16491 done
16492 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16493 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16494          X"$_am_arg" : 'X\(//\)[^/]' \| \
16495          X"$_am_arg" : 'X\(//\)$' \| \
16496          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16497 $as_echo X"$_am_arg" |
16498     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16499             s//\1/
16500             q
16501           }
16502           /^X\(\/\/\)[^/].*/{
16503             s//\1/
16504             q
16505           }
16506           /^X\(\/\/\)$/{
16507             s//\1/
16508             q
16509           }
16510           /^X\(\/\).*/{
16511             s//\1/
16512             q
16513           }
16514           s/.*/./; q'`/stamp-h$_am_stamp_count
16515  ;;
16516   :L)
16517   #
16518   # CONFIG_LINK
16519   #
16520
16521   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16522     :
16523   else
16524     # Prefer the file from the source tree if names are identical.
16525     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16526       ac_source=$srcdir/$ac_source
16527     fi
16528
16529     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16530 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16531
16532     if test ! -r "$ac_source"; then
16533       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16534     fi
16535     rm -f "$ac_file"
16536
16537     # Try a relative symlink, then a hard link, then a copy.
16538     case $ac_source in
16539     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16540         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16541     esac
16542     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16543       ln "$ac_source" "$ac_file" 2>/dev/null ||
16544       cp -p "$ac_source" "$ac_file" ||
16545       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16546   fi
16547  ;;
16548   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16549 $as_echo "$as_me: executing $ac_file commands" >&6;}
16550  ;;
16551   esac
16552
16553
16554   case $ac_file$ac_mode in
16555     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16556   if test ".$ax_enable_builddir" = ".." ; then
16557     if test -f "$top_srcdir/Makefile" ; then
16558       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16559 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16560     else
16561       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16562 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16563     fi
16564   else
16565     if test -f "$ac_top_srcdir/Makefile" ; then
16566       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16567       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16568     fi
16569     if test -f "$ac_top_srcdir/Makefile" ; then
16570         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16571         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16572       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16573       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16574       then rm $ac_top_srcdir/Makefile ; fi
16575       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16576     fi
16577     if test ! -f "$ac_top_srcdir/Makefile" ; then
16578       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16579 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16580       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16581 /^\$/n
16582 x
16583 /^\$/bS
16584 x
16585 /\\\\\$/{H;d;}
16586 {H;s/.*//;x;}
16587 bM
16588 :S
16589 x
16590 /\\\\\$/{h;d;}
16591 {h;s/.*//;x;}
16592 :M
16593 s/\\(\\n\\)     /\\1 /g
16594 /^      /d
16595 /^[      ]*[\\#]/d
16596 /^VPATH *=/d
16597 s/^srcdir *=.*/srcdir = ./
16598 s/^top_srcdir *=.*/top_srcdir = ./
16599 /[:=]/!d
16600 /^\\./d
16601 / = /b
16602 / .= /b
16603 /:/!b
16604 s/:.*/:/
16605 s/ /  /g
16606 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16607 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16608 s/  / /g
16609 /^all all-all[ :]/i\\
16610 all-configured : all-all
16611 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16612 /-all-all/d
16613 a\\
16614         @ HOST="\$(HOST)\" \\\\\\
16615         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16616         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16617         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16618         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16619         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16620         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16621         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16622         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16623         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16624 /dist-all *:/a\\
16625         @ HOST="\$(HOST)\" \\\\\\
16626         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16627         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16628         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16629         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16630         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16631         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16632         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16633         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16634         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16635 /dist-[a-zA-Z0-9]*-all *:/a\\
16636         @ HOST="\$(HOST)\" \\\\\\
16637         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16638         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16639         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16640         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16641         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16642         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16643         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16644         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16645         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16646 /distclean-all *:/a\\
16647         @ HOST="\$(HOST)\" \\\\\\
16648         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16649         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16650         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16651         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16652         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16653         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16654         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16655         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16656         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16657         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16658         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16659 _EOF
16660       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16661       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16662       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16663         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16664 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16665         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16666       fi ; xxxx="####"
16667       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16668       # sanity check
16669       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16670         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16671 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16672         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16673           >$ac_top_srcdir/Makefile~
16674         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16675       fi
16676     else
16677       xxxx="\\#\\#\\#\\#"
16678       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16679       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16680       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16681         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16682         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16683       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16684         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16685 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16686         rm "$tmp/mkfile.tmp"
16687       else
16688         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16689 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16690         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16691       fi
16692     fi
16693     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16694 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16695     xxxx="####"
16696     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16697   fi
16698  ;;
16699     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16700   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16701   # are listed without --file.  Let's play safe and only enable the eval
16702   # if we detect the quoting.
16703   case $CONFIG_FILES in
16704   *\'*) eval set x "$CONFIG_FILES" ;;
16705   *)   set x $CONFIG_FILES ;;
16706   esac
16707   shift
16708   for mf
16709   do
16710     # Strip MF so we end up with the name of the file.
16711     mf=`echo "$mf" | sed -e 's/:.*$//'`
16712     # Check whether this is an Automake generated Makefile or not.
16713     # We used to match only the files named 'Makefile.in', but
16714     # some people rename them; so instead we look at the file content.
16715     # Grep'ing the first line is not enough: some people post-process
16716     # each Makefile.in and add a new line on top of each file to say so.
16717     # Grep'ing the whole file is not good either: AIX grep has a line
16718     # limit of 2048, but all sed's we know have understand at least 4000.
16719     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16720       dirpart=`$as_dirname -- "$mf" ||
16721 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16722          X"$mf" : 'X\(//\)[^/]' \| \
16723          X"$mf" : 'X\(//\)$' \| \
16724          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16725 $as_echo X"$mf" |
16726     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16727             s//\1/
16728             q
16729           }
16730           /^X\(\/\/\)[^/].*/{
16731             s//\1/
16732             q
16733           }
16734           /^X\(\/\/\)$/{
16735             s//\1/
16736             q
16737           }
16738           /^X\(\/\).*/{
16739             s//\1/
16740             q
16741           }
16742           s/.*/./; q'`
16743     else
16744       continue
16745     fi
16746     # Extract the definition of DEPDIR, am__include, and am__quote
16747     # from the Makefile without running 'make'.
16748     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16749     test -z "$DEPDIR" && continue
16750     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16751     test -z "am__include" && continue
16752     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16753     # Find all dependency output files, they are included files with
16754     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16755     # simplest approach to changing $(DEPDIR) to its actual value in the
16756     # expansion.
16757     for file in `sed -n "
16758       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16759          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16760       # Make sure the directory exists.
16761       test -f "$dirpart/$file" && continue
16762       fdir=`$as_dirname -- "$file" ||
16763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16764          X"$file" : 'X\(//\)[^/]' \| \
16765          X"$file" : 'X\(//\)$' \| \
16766          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16767 $as_echo X"$file" |
16768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16769             s//\1/
16770             q
16771           }
16772           /^X\(\/\/\)[^/].*/{
16773             s//\1/
16774             q
16775           }
16776           /^X\(\/\/\)$/{
16777             s//\1/
16778             q
16779           }
16780           /^X\(\/\).*/{
16781             s//\1/
16782             q
16783           }
16784           s/.*/./; q'`
16785       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16786       # echo "creating $dirpart/$file"
16787       echo '# dummy' > "$dirpart/$file"
16788     done
16789   done
16790 }
16791  ;;
16792     "libtool":C)
16793
16794     # See if we are running on zsh, and set the options which allow our
16795     # commands through without removal of \ escapes.
16796     if test -n "${ZSH_VERSION+set}" ; then
16797       setopt NO_GLOB_SUBST
16798     fi
16799
16800     cfgfile="${ofile}T"
16801     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16802     $RM "$cfgfile"
16803
16804     cat <<_LT_EOF >> "$cfgfile"
16805 #! $SHELL
16806
16807 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16808 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16809 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16810 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16811 #
16812 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16813 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16814 #                 Foundation, Inc.
16815 #   Written by Gordon Matzigkeit, 1996
16816 #
16817 #   This file is part of GNU Libtool.
16818 #
16819 # GNU Libtool is free software; you can redistribute it and/or
16820 # modify it under the terms of the GNU General Public License as
16821 # published by the Free Software Foundation; either version 2 of
16822 # the License, or (at your option) any later version.
16823 #
16824 # As a special exception to the GNU General Public License,
16825 # if you distribute this file as part of a program or library that
16826 # is built using GNU Libtool, you may include this file under the
16827 # same distribution terms that you use for the rest of that program.
16828 #
16829 # GNU Libtool is distributed in the hope that it will be useful,
16830 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16831 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16832 # GNU General Public License for more details.
16833 #
16834 # You should have received a copy of the GNU General Public License
16835 # along with GNU Libtool; see the file COPYING.  If not, a copy
16836 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16837 # obtained by writing to the Free Software Foundation, Inc.,
16838 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16839
16840
16841 # The names of the tagged configurations supported by this script.
16842 available_tags=""
16843
16844 # ### BEGIN LIBTOOL CONFIG
16845
16846 # Which release of libtool.m4 was used?
16847 macro_version=$macro_version
16848 macro_revision=$macro_revision
16849
16850 # Whether or not to build shared libraries.
16851 build_libtool_libs=$enable_shared
16852
16853 # Whether or not to build static libraries.
16854 build_old_libs=$enable_static
16855
16856 # What type of objects to build.
16857 pic_mode=$pic_mode
16858
16859 # Whether or not to optimize for fast installation.
16860 fast_install=$enable_fast_install
16861
16862 # Shell to use when invoking shell scripts.
16863 SHELL=$lt_SHELL
16864
16865 # An echo program that protects backslashes.
16866 ECHO=$lt_ECHO
16867
16868 # The PATH separator for the build system.
16869 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16870
16871 # The host system.
16872 host_alias=$host_alias
16873 host=$host
16874 host_os=$host_os
16875
16876 # The build system.
16877 build_alias=$build_alias
16878 build=$build
16879 build_os=$build_os
16880
16881 # A sed program that does not truncate output.
16882 SED=$lt_SED
16883
16884 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16885 Xsed="\$SED -e 1s/^X//"
16886
16887 # A grep program that handles long lines.
16888 GREP=$lt_GREP
16889
16890 # An ERE matcher.
16891 EGREP=$lt_EGREP
16892
16893 # A literal string matcher.
16894 FGREP=$lt_FGREP
16895
16896 # A BSD- or MS-compatible name lister.
16897 NM=$lt_NM
16898
16899 # Whether we need soft or hard links.
16900 LN_S=$lt_LN_S
16901
16902 # What is the maximum length of a command?
16903 max_cmd_len=$max_cmd_len
16904
16905 # Object file suffix (normally "o").
16906 objext=$ac_objext
16907
16908 # Executable file suffix (normally "").
16909 exeext=$exeext
16910
16911 # whether the shell understands "unset".
16912 lt_unset=$lt_unset
16913
16914 # turn spaces into newlines.
16915 SP2NL=$lt_lt_SP2NL
16916
16917 # turn newlines into spaces.
16918 NL2SP=$lt_lt_NL2SP
16919
16920 # convert \$build file names to \$host format.
16921 to_host_file_cmd=$lt_cv_to_host_file_cmd
16922
16923 # convert \$build files to toolchain format.
16924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16925
16926 # An object symbol dumper.
16927 OBJDUMP=$lt_OBJDUMP
16928
16929 # Method to check whether dependent libraries are shared objects.
16930 deplibs_check_method=$lt_deplibs_check_method
16931
16932 # Command to use when deplibs_check_method = "file_magic".
16933 file_magic_cmd=$lt_file_magic_cmd
16934
16935 # How to find potential files when deplibs_check_method = "file_magic".
16936 file_magic_glob=$lt_file_magic_glob
16937
16938 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16939 want_nocaseglob=$lt_want_nocaseglob
16940
16941 # DLL creation program.
16942 DLLTOOL=$lt_DLLTOOL
16943
16944 # Command to associate shared and link libraries.
16945 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16946
16947 # The archiver.
16948 AR=$lt_AR
16949
16950 # Flags to create an archive.
16951 AR_FLAGS=$lt_AR_FLAGS
16952
16953 # How to feed a file listing to the archiver.
16954 archiver_list_spec=$lt_archiver_list_spec
16955
16956 # A symbol stripping program.
16957 STRIP=$lt_STRIP
16958
16959 # Commands used to install an old-style archive.
16960 RANLIB=$lt_RANLIB
16961 old_postinstall_cmds=$lt_old_postinstall_cmds
16962 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16963
16964 # Whether to use a lock for old archive extraction.
16965 lock_old_archive_extraction=$lock_old_archive_extraction
16966
16967 # A C compiler.
16968 LTCC=$lt_CC
16969
16970 # LTCC compiler flags.
16971 LTCFLAGS=$lt_CFLAGS
16972
16973 # Take the output of nm and produce a listing of raw symbols and C names.
16974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16975
16976 # Transform the output of nm in a proper C declaration.
16977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16978
16979 # Transform the output of nm in a C name address pair.
16980 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16981
16982 # Transform the output of nm in a C name address pair when lib prefix is needed.
16983 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16984
16985 # Specify filename containing input files for \$NM.
16986 nm_file_list_spec=$lt_nm_file_list_spec
16987
16988 # The root where to search for dependent libraries,and in which our libraries should be installed.
16989 lt_sysroot=$lt_sysroot
16990
16991 # The name of the directory that contains temporary libtool files.
16992 objdir=$objdir
16993
16994 # Used to examine libraries when file_magic_cmd begins with "file".
16995 MAGIC_CMD=$MAGIC_CMD
16996
16997 # Must we lock files when doing compilation?
16998 need_locks=$lt_need_locks
16999
17000 # Manifest tool.
17001 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17002
17003 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17004 DSYMUTIL=$lt_DSYMUTIL
17005
17006 # Tool to change global to local symbols on Mac OS X.
17007 NMEDIT=$lt_NMEDIT
17008
17009 # Tool to manipulate fat objects and archives on Mac OS X.
17010 LIPO=$lt_LIPO
17011
17012 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17013 OTOOL=$lt_OTOOL
17014
17015 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17016 OTOOL64=$lt_OTOOL64
17017
17018 # Old archive suffix (normally "a").
17019 libext=$libext
17020
17021 # Shared library suffix (normally ".so").
17022 shrext_cmds=$lt_shrext_cmds
17023
17024 # The commands to extract the exported symbol list from a shared archive.
17025 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17026
17027 # Variables whose values should be saved in libtool wrapper scripts and
17028 # restored at link time.
17029 variables_saved_for_relink=$lt_variables_saved_for_relink
17030
17031 # Do we need the "lib" prefix for modules?
17032 need_lib_prefix=$need_lib_prefix
17033
17034 # Do we need a version for libraries?
17035 need_version=$need_version
17036
17037 # Library versioning type.
17038 version_type=$version_type
17039
17040 # Shared library runtime path variable.
17041 runpath_var=$runpath_var
17042
17043 # Shared library path variable.
17044 shlibpath_var=$shlibpath_var
17045
17046 # Is shlibpath searched before the hard-coded library search path?
17047 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17048
17049 # Format of library name prefix.
17050 libname_spec=$lt_libname_spec
17051
17052 # List of archive names.  First name is the real one, the rest are links.
17053 # The last name is the one that the linker finds with -lNAME
17054 library_names_spec=$lt_library_names_spec
17055
17056 # The coded name of the library, if different from the real name.
17057 soname_spec=$lt_soname_spec
17058
17059 # Permission mode override for installation of shared libraries.
17060 install_override_mode=$lt_install_override_mode
17061
17062 # Command to use after installation of a shared archive.
17063 postinstall_cmds=$lt_postinstall_cmds
17064
17065 # Command to use after uninstallation of a shared archive.
17066 postuninstall_cmds=$lt_postuninstall_cmds
17067
17068 # Commands used to finish a libtool library installation in a directory.
17069 finish_cmds=$lt_finish_cmds
17070
17071 # As "finish_cmds", except a single script fragment to be evaled but
17072 # not shown.
17073 finish_eval=$lt_finish_eval
17074
17075 # Whether we should hardcode library paths into libraries.
17076 hardcode_into_libs=$hardcode_into_libs
17077
17078 # Compile-time system search path for libraries.
17079 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17080
17081 # Run-time system search path for libraries.
17082 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17083
17084 # Whether dlopen is supported.
17085 dlopen_support=$enable_dlopen
17086
17087 # Whether dlopen of programs is supported.
17088 dlopen_self=$enable_dlopen_self
17089
17090 # Whether dlopen of statically linked programs is supported.
17091 dlopen_self_static=$enable_dlopen_self_static
17092
17093 # Commands to strip libraries.
17094 old_striplib=$lt_old_striplib
17095 striplib=$lt_striplib
17096
17097
17098 # The linker used to build libraries.
17099 LD=$lt_LD
17100
17101 # How to create reloadable object files.
17102 reload_flag=$lt_reload_flag
17103 reload_cmds=$lt_reload_cmds
17104
17105 # Commands used to build an old-style archive.
17106 old_archive_cmds=$lt_old_archive_cmds
17107
17108 # A language specific compiler.
17109 CC=$lt_compiler
17110
17111 # Is the compiler the GNU compiler?
17112 with_gcc=$GCC
17113
17114 # Compiler flag to turn off builtin functions.
17115 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17116
17117 # Additional compiler flags for building library objects.
17118 pic_flag=$lt_lt_prog_compiler_pic
17119
17120 # How to pass a linker flag through the compiler.
17121 wl=$lt_lt_prog_compiler_wl
17122
17123 # Compiler flag to prevent dynamic linking.
17124 link_static_flag=$lt_lt_prog_compiler_static
17125
17126 # Does compiler simultaneously support -c and -o options?
17127 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17128
17129 # Whether or not to add -lc for building shared libraries.
17130 build_libtool_need_lc=$archive_cmds_need_lc
17131
17132 # Whether or not to disallow shared libs when runtime libs are static.
17133 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17134
17135 # Compiler flag to allow reflexive dlopens.
17136 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17137
17138 # Compiler flag to generate shared objects directly from archives.
17139 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17140
17141 # Whether the compiler copes with passing no objects directly.
17142 compiler_needs_object=$lt_compiler_needs_object
17143
17144 # Create an old-style archive from a shared archive.
17145 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17146
17147 # Create a temporary old-style archive to link instead of a shared archive.
17148 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17149
17150 # Commands used to build a shared archive.
17151 archive_cmds=$lt_archive_cmds
17152 archive_expsym_cmds=$lt_archive_expsym_cmds
17153
17154 # Commands used to build a loadable module if different from building
17155 # a shared archive.
17156 module_cmds=$lt_module_cmds
17157 module_expsym_cmds=$lt_module_expsym_cmds
17158
17159 # Whether we are building with GNU ld or not.
17160 with_gnu_ld=$lt_with_gnu_ld
17161
17162 # Flag that allows shared libraries with undefined symbols to be built.
17163 allow_undefined_flag=$lt_allow_undefined_flag
17164
17165 # Flag that enforces no undefined symbols.
17166 no_undefined_flag=$lt_no_undefined_flag
17167
17168 # Flag to hardcode \$libdir into a binary during linking.
17169 # This must work even if \$libdir does not exist
17170 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17171
17172 # Whether we need a single "-rpath" flag with a separated argument.
17173 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17174
17175 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17176 # DIR into the resulting binary.
17177 hardcode_direct=$hardcode_direct
17178
17179 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17180 # DIR into the resulting binary and the resulting library dependency is
17181 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17182 # library is relocated.
17183 hardcode_direct_absolute=$hardcode_direct_absolute
17184
17185 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17186 # into the resulting binary.
17187 hardcode_minus_L=$hardcode_minus_L
17188
17189 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17190 # into the resulting binary.
17191 hardcode_shlibpath_var=$hardcode_shlibpath_var
17192
17193 # Set to "yes" if building a shared library automatically hardcodes DIR
17194 # into the library and all subsequent libraries and executables linked
17195 # against it.
17196 hardcode_automatic=$hardcode_automatic
17197
17198 # Set to yes if linker adds runtime paths of dependent libraries
17199 # to runtime path list.
17200 inherit_rpath=$inherit_rpath
17201
17202 # Whether libtool must link a program against all its dependency libraries.
17203 link_all_deplibs=$link_all_deplibs
17204
17205 # Set to "yes" if exported symbols are required.
17206 always_export_symbols=$always_export_symbols
17207
17208 # The commands to list exported symbols.
17209 export_symbols_cmds=$lt_export_symbols_cmds
17210
17211 # Symbols that should not be listed in the preloaded symbols.
17212 exclude_expsyms=$lt_exclude_expsyms
17213
17214 # Symbols that must always be exported.
17215 include_expsyms=$lt_include_expsyms
17216
17217 # Commands necessary for linking programs (against libraries) with templates.
17218 prelink_cmds=$lt_prelink_cmds
17219
17220 # Commands necessary for finishing linking programs.
17221 postlink_cmds=$lt_postlink_cmds
17222
17223 # Specify filename containing input files.
17224 file_list_spec=$lt_file_list_spec
17225
17226 # How to hardcode a shared library path into an executable.
17227 hardcode_action=$hardcode_action
17228
17229 # ### END LIBTOOL CONFIG
17230
17231 _LT_EOF
17232
17233   case $host_os in
17234   aix3*)
17235     cat <<\_LT_EOF >> "$cfgfile"
17236 # AIX sometimes has problems with the GCC collect2 program.  For some
17237 # reason, if we set the COLLECT_NAMES environment variable, the problems
17238 # vanish in a puff of smoke.
17239 if test "X${COLLECT_NAMES+set}" != Xset; then
17240   COLLECT_NAMES=
17241   export COLLECT_NAMES
17242 fi
17243 _LT_EOF
17244     ;;
17245   esac
17246
17247
17248 ltmain="$ac_aux_dir/ltmain.sh"
17249
17250
17251   # We use sed instead of cat because bash on DJGPP gets confused if
17252   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17253   # text mode, it properly converts lines to CR/LF.  This bash problem
17254   # is reportedly fixed, but why not run on old versions too?
17255   sed '$q' "$ltmain" >> "$cfgfile" \
17256      || (rm -f "$cfgfile"; exit 1)
17257
17258   if test x"$xsi_shell" = xyes; then
17259   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17260 func_dirname ()\
17261 {\
17262 \    case ${1} in\
17263 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17264 \      *  ) func_dirname_result="${3}" ;;\
17265 \    esac\
17266 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17267   && mv -f "$cfgfile.tmp" "$cfgfile" \
17268     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17269 test 0 -eq $? || _lt_function_replace_fail=:
17270
17271
17272   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17273 func_basename ()\
17274 {\
17275 \    func_basename_result="${1##*/}"\
17276 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17277   && mv -f "$cfgfile.tmp" "$cfgfile" \
17278     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17279 test 0 -eq $? || _lt_function_replace_fail=:
17280
17281
17282   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17283 func_dirname_and_basename ()\
17284 {\
17285 \    case ${1} in\
17286 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17287 \      *  ) func_dirname_result="${3}" ;;\
17288 \    esac\
17289 \    func_basename_result="${1##*/}"\
17290 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17291   && mv -f "$cfgfile.tmp" "$cfgfile" \
17292     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17293 test 0 -eq $? || _lt_function_replace_fail=:
17294
17295
17296   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17297 func_stripname ()\
17298 {\
17299 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17300 \    # positional parameters, so assign one to ordinary parameter first.\
17301 \    func_stripname_result=${3}\
17302 \    func_stripname_result=${func_stripname_result#"${1}"}\
17303 \    func_stripname_result=${func_stripname_result%"${2}"}\
17304 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17305   && mv -f "$cfgfile.tmp" "$cfgfile" \
17306     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17307 test 0 -eq $? || _lt_function_replace_fail=:
17308
17309
17310   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17311 func_split_long_opt ()\
17312 {\
17313 \    func_split_long_opt_name=${1%%=*}\
17314 \    func_split_long_opt_arg=${1#*=}\
17315 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17316   && mv -f "$cfgfile.tmp" "$cfgfile" \
17317     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17318 test 0 -eq $? || _lt_function_replace_fail=:
17319
17320
17321   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17322 func_split_short_opt ()\
17323 {\
17324 \    func_split_short_opt_arg=${1#??}\
17325 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17326 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17327   && mv -f "$cfgfile.tmp" "$cfgfile" \
17328     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17329 test 0 -eq $? || _lt_function_replace_fail=:
17330
17331
17332   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17333 func_lo2o ()\
17334 {\
17335 \    case ${1} in\
17336 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17337 \      *)    func_lo2o_result=${1} ;;\
17338 \    esac\
17339 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17340   && mv -f "$cfgfile.tmp" "$cfgfile" \
17341     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17342 test 0 -eq $? || _lt_function_replace_fail=:
17343
17344
17345   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17346 func_xform ()\
17347 {\
17348     func_xform_result=${1%.*}.lo\
17349 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17350   && mv -f "$cfgfile.tmp" "$cfgfile" \
17351     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17352 test 0 -eq $? || _lt_function_replace_fail=:
17353
17354
17355   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17356 func_arith ()\
17357 {\
17358     func_arith_result=$(( $* ))\
17359 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17360   && mv -f "$cfgfile.tmp" "$cfgfile" \
17361     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17362 test 0 -eq $? || _lt_function_replace_fail=:
17363
17364
17365   sed -e '/^func_len ()$/,/^} # func_len /c\
17366 func_len ()\
17367 {\
17368     func_len_result=${#1}\
17369 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17370   && mv -f "$cfgfile.tmp" "$cfgfile" \
17371     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17372 test 0 -eq $? || _lt_function_replace_fail=:
17373
17374 fi
17375
17376 if test x"$lt_shell_append" = xyes; then
17377   sed -e '/^func_append ()$/,/^} # func_append /c\
17378 func_append ()\
17379 {\
17380     eval "${1}+=\\${2}"\
17381 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17382   && mv -f "$cfgfile.tmp" "$cfgfile" \
17383     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17384 test 0 -eq $? || _lt_function_replace_fail=:
17385
17386
17387   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17388 func_append_quoted ()\
17389 {\
17390 \    func_quote_for_eval "${2}"\
17391 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17392 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17393   && mv -f "$cfgfile.tmp" "$cfgfile" \
17394     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17395 test 0 -eq $? || _lt_function_replace_fail=:
17396
17397
17398   # Save a `func_append' function call where possible by direct use of '+='
17399   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17400     && mv -f "$cfgfile.tmp" "$cfgfile" \
17401       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17402   test 0 -eq $? || _lt_function_replace_fail=:
17403 else
17404   # Save a `func_append' function call even when '+=' is not available
17405   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17406     && mv -f "$cfgfile.tmp" "$cfgfile" \
17407       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17408   test 0 -eq $? || _lt_function_replace_fail=:
17409 fi
17410
17411 if test x"$_lt_function_replace_fail" = x":"; then
17412   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17413 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17414 fi
17415
17416
17417    mv -f "$cfgfile" "$ofile" ||
17418     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17419   chmod +x "$ofile"
17420
17421  ;;
17422     "include":C) test -d include || mkdir include ;;
17423     "src":C)
17424 test -d src || mkdir src
17425 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17426  ;;
17427
17428   esac
17429 done # for ac_tag
17430
17431
17432 as_fn_exit 0
17433 _ACEOF
17434 ac_clean_files=$ac_clean_files_save
17435
17436 test $ac_write_fail = 0 ||
17437   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17438
17439
17440 # configure is writing to config.log, and then calls config.status.
17441 # config.status does its own redirection, appending to config.log.
17442 # Unfortunately, on DOS this fails, as config.log is still kept open
17443 # by configure, so config.status won't be able to write to it; its
17444 # output is simply discarded.  So we exec the FD to /dev/null,
17445 # effectively closing config.log, so it can be properly (re)opened and
17446 # appended to by config.status.  When coming back to configure, we
17447 # need to make the FD available again.
17448 if test "$no_create" != yes; then
17449   ac_cs_success=:
17450   ac_config_status_args=
17451   test "$silent" = yes &&
17452     ac_config_status_args="$ac_config_status_args --quiet"
17453   exec 5>/dev/null
17454   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17455   exec 5>>config.log
17456   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17457   # would make configure fail if this is the last instruction.
17458   $ac_cs_success || as_fn_exit 1
17459 fi
17460 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17461   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17462 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17463 fi
17464