Xtensa support
[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 XTENSA_FALSE
651 XTENSA_TRUE
652 TILE_FALSE
653 TILE_TRUE
654 PA64_HPUX_FALSE
655 PA64_HPUX_TRUE
656 PA_HPUX_FALSE
657 PA_HPUX_TRUE
658 PA_LINUX_FALSE
659 PA_LINUX_TRUE
660 SH64_FALSE
661 SH64_TRUE
662 SH_FALSE
663 SH_TRUE
664 X86_64_FALSE
665 X86_64_TRUE
666 S390_FALSE
667 S390_TRUE
668 FRV_FALSE
669 FRV_TRUE
670 LIBFFI_CRIS_FALSE
671 LIBFFI_CRIS_TRUE
672 AVR32_FALSE
673 AVR32_TRUE
674 ARM_FALSE
675 ARM_TRUE
676 AARCH64_FALSE
677 AARCH64_TRUE
678 POWERPC_FREEBSD_FALSE
679 POWERPC_FREEBSD_TRUE
680 POWERPC_DARWIN_FALSE
681 POWERPC_DARWIN_TRUE
682 POWERPC_AIX_FALSE
683 POWERPC_AIX_TRUE
684 POWERPC_FALSE
685 POWERPC_TRUE
686 MOXIE_FALSE
687 MOXIE_TRUE
688 M68K_FALSE
689 M68K_TRUE
690 M32R_FALSE
691 M32R_TRUE
692 IA64_FALSE
693 IA64_TRUE
694 ALPHA_FALSE
695 ALPHA_TRUE
696 X86_DARWIN_FALSE
697 X86_DARWIN_TRUE
698 X86_WIN64_FALSE
699 X86_WIN64_TRUE
700 X86_WIN32_FALSE
701 X86_WIN32_TRUE
702 X86_FREEBSD_FALSE
703 X86_FREEBSD_TRUE
704 X86_FALSE
705 X86_TRUE
706 SPARC_FALSE
707 SPARC_TRUE
708 BFIN_FALSE
709 BFIN_TRUE
710 MIPS_FALSE
711 MIPS_TRUE
712 AM_LTLDFLAGS
713 AM_RUNTESTFLAGS
714 TESTSUBDIR_FALSE
715 TESTSUBDIR_TRUE
716 MAINT
717 MAINTAINER_MODE_FALSE
718 MAINTAINER_MODE_TRUE
719 PRTDIAG
720 CPP
721 OTOOL64
722 OTOOL
723 LIPO
724 NMEDIT
725 DSYMUTIL
726 MANIFEST_TOOL
727 RANLIB
728 ac_ct_AR
729 AR
730 DLLTOOL
731 OBJDUMP
732 LN_S
733 NM
734 ac_ct_DUMPBIN
735 DUMPBIN
736 LD
737 FGREP
738 EGREP
739 GREP
740 SED
741 LIBTOOL
742 am__fastdepCCAS_FALSE
743 am__fastdepCCAS_TRUE
744 CCASDEPMODE
745 CCASFLAGS
746 CCAS
747 am__fastdepCC_FALSE
748 am__fastdepCC_TRUE
749 CCDEPMODE
750 am__nodep
751 AMDEPBACKSLASH
752 AMDEP_FALSE
753 AMDEP_TRUE
754 am__quote
755 am__include
756 DEPDIR
757 OBJEXT
758 EXEEXT
759 ac_ct_CC
760 CPPFLAGS
761 LDFLAGS
762 CFLAGS
763 CC
764 am__untar
765 am__tar
766 AMTAR
767 am__leading_dot
768 SET_MAKE
769 AWK
770 mkdir_p
771 MKDIR_P
772 INSTALL_STRIP_PROGRAM
773 STRIP
774 install_sh
775 MAKEINFO
776 AUTOHEADER
777 AUTOMAKE
778 AUTOCONF
779 ACLOCAL
780 VERSION
781 PACKAGE
782 CYGPATH_W
783 am__isrc
784 INSTALL_DATA
785 INSTALL_SCRIPT
786 INSTALL_PROGRAM
787 ax_enable_builddir_sed
788 target_os
789 target_vendor
790 target_cpu
791 target
792 host_os
793 host_vendor
794 host_cpu
795 host
796 build_os
797 build_vendor
798 build_cpu
799 build
800 target_alias
801 host_alias
802 build_alias
803 LIBS
804 ECHO_T
805 ECHO_N
806 ECHO_C
807 DEFS
808 mandir
809 localedir
810 libdir
811 psdir
812 pdfdir
813 dvidir
814 htmldir
815 infodir
816 docdir
817 oldincludedir
818 includedir
819 localstatedir
820 sharedstatedir
821 sysconfdir
822 datadir
823 datarootdir
824 libexecdir
825 sbindir
826 bindir
827 program_transform_name
828 prefix
829 exec_prefix
830 PACKAGE_URL
831 PACKAGE_BUGREPORT
832 PACKAGE_STRING
833 PACKAGE_VERSION
834 PACKAGE_TARNAME
835 PACKAGE_NAME
836 PATH_SEPARATOR
837 SHELL'
838 ac_subst_files=''
839 ac_user_opts='
840 enable_option_checking
841 enable_builddir
842 enable_dependency_tracking
843 enable_shared
844 enable_static
845 with_pic
846 enable_fast_install
847 with_gnu_ld
848 with_sysroot
849 enable_libtool_lock
850 enable_portable_binary
851 with_gcc_arch
852 enable_maintainer_mode
853 enable_pax_emutramp
854 enable_debug
855 enable_structs
856 enable_raw_api
857 enable_purify_safety
858 '
859       ac_precious_vars='build_alias
860 host_alias
861 target_alias
862 CCAS
863 CCASFLAGS
864 CPP
865 CPPFLAGS'
866
867
868 # Initialize some variables set by options.
869 ac_init_help=
870 ac_init_version=false
871 ac_unrecognized_opts=
872 ac_unrecognized_sep=
873 # The variables have the same names as the options, with
874 # dashes changed to underlines.
875 cache_file=/dev/null
876 exec_prefix=NONE
877 no_create=
878 no_recursion=
879 prefix=NONE
880 program_prefix=NONE
881 program_suffix=NONE
882 program_transform_name=s,x,x,
883 silent=
884 site=
885 srcdir=
886 verbose=
887 x_includes=NONE
888 x_libraries=NONE
889
890 # Installation directory options.
891 # These are left unexpanded so users can "make install exec_prefix=/foo"
892 # and all the variables that are supposed to be based on exec_prefix
893 # by default will actually change.
894 # Use braces instead of parens because sh, perl, etc. also accept them.
895 # (The list follows the same order as the GNU Coding Standards.)
896 bindir='${exec_prefix}/bin'
897 sbindir='${exec_prefix}/sbin'
898 libexecdir='${exec_prefix}/libexec'
899 datarootdir='${prefix}/share'
900 datadir='${datarootdir}'
901 sysconfdir='${prefix}/etc'
902 sharedstatedir='${prefix}/com'
903 localstatedir='${prefix}/var'
904 includedir='${prefix}/include'
905 oldincludedir='/usr/include'
906 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
907 infodir='${datarootdir}/info'
908 htmldir='${docdir}'
909 dvidir='${docdir}'
910 pdfdir='${docdir}'
911 psdir='${docdir}'
912 libdir='${exec_prefix}/lib'
913 localedir='${datarootdir}/locale'
914 mandir='${datarootdir}/man'
915
916 ac_prev=
917 ac_dashdash=
918 for ac_option
919 do
920   # If the previous option needs an argument, assign it.
921   if test -n "$ac_prev"; then
922     eval $ac_prev=\$ac_option
923     ac_prev=
924     continue
925   fi
926
927   case $ac_option in
928   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
929   *=)   ac_optarg= ;;
930   *)    ac_optarg=yes ;;
931   esac
932
933   # Accept the important Cygnus configure options, so we can diagnose typos.
934
935   case $ac_dashdash$ac_option in
936   --)
937     ac_dashdash=yes ;;
938
939   -bindir | --bindir | --bindi | --bind | --bin | --bi)
940     ac_prev=bindir ;;
941   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942     bindir=$ac_optarg ;;
943
944   -build | --build | --buil | --bui | --bu)
945     ac_prev=build_alias ;;
946   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
947     build_alias=$ac_optarg ;;
948
949   -cache-file | --cache-file | --cache-fil | --cache-fi \
950   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951     ac_prev=cache_file ;;
952   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
954     cache_file=$ac_optarg ;;
955
956   --config-cache | -C)
957     cache_file=config.cache ;;
958
959   -datadir | --datadir | --datadi | --datad)
960     ac_prev=datadir ;;
961   -datadir=* | --datadir=* | --datadi=* | --datad=*)
962     datadir=$ac_optarg ;;
963
964   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965   | --dataroo | --dataro | --datar)
966     ac_prev=datarootdir ;;
967   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969     datarootdir=$ac_optarg ;;
970
971   -disable-* | --disable-*)
972     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
973     # Reject names that are not valid shell variable names.
974     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975       as_fn_error $? "invalid feature name: $ac_useropt"
976     ac_useropt_orig=$ac_useropt
977     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978     case $ac_user_opts in
979       *"
980 "enable_$ac_useropt"
981 "*) ;;
982       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
983          ac_unrecognized_sep=', ';;
984     esac
985     eval enable_$ac_useropt=no ;;
986
987   -docdir | --docdir | --docdi | --doc | --do)
988     ac_prev=docdir ;;
989   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990     docdir=$ac_optarg ;;
991
992   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
993     ac_prev=dvidir ;;
994   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995     dvidir=$ac_optarg ;;
996
997   -enable-* | --enable-*)
998     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999     # Reject names that are not valid shell variable names.
1000     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1001       as_fn_error $? "invalid feature name: $ac_useropt"
1002     ac_useropt_orig=$ac_useropt
1003     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004     case $ac_user_opts in
1005       *"
1006 "enable_$ac_useropt"
1007 "*) ;;
1008       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009          ac_unrecognized_sep=', ';;
1010     esac
1011     eval enable_$ac_useropt=\$ac_optarg ;;
1012
1013   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015   | --exec | --exe | --ex)
1016     ac_prev=exec_prefix ;;
1017   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019   | --exec=* | --exe=* | --ex=*)
1020     exec_prefix=$ac_optarg ;;
1021
1022   -gas | --gas | --ga | --g)
1023     # Obsolete; use --with-gas.
1024     with_gas=yes ;;
1025
1026   -help | --help | --hel | --he | -h)
1027     ac_init_help=long ;;
1028   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029     ac_init_help=recursive ;;
1030   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031     ac_init_help=short ;;
1032
1033   -host | --host | --hos | --ho)
1034     ac_prev=host_alias ;;
1035   -host=* | --host=* | --hos=* | --ho=*)
1036     host_alias=$ac_optarg ;;
1037
1038   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039     ac_prev=htmldir ;;
1040   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041   | --ht=*)
1042     htmldir=$ac_optarg ;;
1043
1044   -includedir | --includedir | --includedi | --included | --include \
1045   | --includ | --inclu | --incl | --inc)
1046     ac_prev=includedir ;;
1047   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048   | --includ=* | --inclu=* | --incl=* | --inc=*)
1049     includedir=$ac_optarg ;;
1050
1051   -infodir | --infodir | --infodi | --infod | --info | --inf)
1052     ac_prev=infodir ;;
1053   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1054     infodir=$ac_optarg ;;
1055
1056   -libdir | --libdir | --libdi | --libd)
1057     ac_prev=libdir ;;
1058   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1059     libdir=$ac_optarg ;;
1060
1061   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062   | --libexe | --libex | --libe)
1063     ac_prev=libexecdir ;;
1064   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065   | --libexe=* | --libex=* | --libe=*)
1066     libexecdir=$ac_optarg ;;
1067
1068   -localedir | --localedir | --localedi | --localed | --locale)
1069     ac_prev=localedir ;;
1070   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071     localedir=$ac_optarg ;;
1072
1073   -localstatedir | --localstatedir | --localstatedi | --localstated \
1074   | --localstate | --localstat | --localsta | --localst | --locals)
1075     ac_prev=localstatedir ;;
1076   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1077   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1078     localstatedir=$ac_optarg ;;
1079
1080   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081     ac_prev=mandir ;;
1082   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1083     mandir=$ac_optarg ;;
1084
1085   -nfp | --nfp | --nf)
1086     # Obsolete; use --without-fp.
1087     with_fp=no ;;
1088
1089   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1090   | --no-cr | --no-c | -n)
1091     no_create=yes ;;
1092
1093   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095     no_recursion=yes ;;
1096
1097   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099   | --oldin | --oldi | --old | --ol | --o)
1100     ac_prev=oldincludedir ;;
1101   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1104     oldincludedir=$ac_optarg ;;
1105
1106   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107     ac_prev=prefix ;;
1108   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1109     prefix=$ac_optarg ;;
1110
1111   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112   | --program-pre | --program-pr | --program-p)
1113     ac_prev=program_prefix ;;
1114   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1116     program_prefix=$ac_optarg ;;
1117
1118   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119   | --program-suf | --program-su | --program-s)
1120     ac_prev=program_suffix ;;
1121   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1123     program_suffix=$ac_optarg ;;
1124
1125   -program-transform-name | --program-transform-name \
1126   | --program-transform-nam | --program-transform-na \
1127   | --program-transform-n | --program-transform- \
1128   | --program-transform | --program-transfor \
1129   | --program-transfo | --program-transf \
1130   | --program-trans | --program-tran \
1131   | --progr-tra | --program-tr | --program-t)
1132     ac_prev=program_transform_name ;;
1133   -program-transform-name=* | --program-transform-name=* \
1134   | --program-transform-nam=* | --program-transform-na=* \
1135   | --program-transform-n=* | --program-transform-=* \
1136   | --program-transform=* | --program-transfor=* \
1137   | --program-transfo=* | --program-transf=* \
1138   | --program-trans=* | --program-tran=* \
1139   | --progr-tra=* | --program-tr=* | --program-t=*)
1140     program_transform_name=$ac_optarg ;;
1141
1142   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143     ac_prev=pdfdir ;;
1144   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145     pdfdir=$ac_optarg ;;
1146
1147   -psdir | --psdir | --psdi | --psd | --ps)
1148     ac_prev=psdir ;;
1149   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150     psdir=$ac_optarg ;;
1151
1152   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153   | -silent | --silent | --silen | --sile | --sil)
1154     silent=yes ;;
1155
1156   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157     ac_prev=sbindir ;;
1158   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159   | --sbi=* | --sb=*)
1160     sbindir=$ac_optarg ;;
1161
1162   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164   | --sharedst | --shareds | --shared | --share | --shar \
1165   | --sha | --sh)
1166     ac_prev=sharedstatedir ;;
1167   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170   | --sha=* | --sh=*)
1171     sharedstatedir=$ac_optarg ;;
1172
1173   -site | --site | --sit)
1174     ac_prev=site ;;
1175   -site=* | --site=* | --sit=*)
1176     site=$ac_optarg ;;
1177
1178   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179     ac_prev=srcdir ;;
1180   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1181     srcdir=$ac_optarg ;;
1182
1183   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184   | --syscon | --sysco | --sysc | --sys | --sy)
1185     ac_prev=sysconfdir ;;
1186   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1188     sysconfdir=$ac_optarg ;;
1189
1190   -target | --target | --targe | --targ | --tar | --ta | --t)
1191     ac_prev=target_alias ;;
1192   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1193     target_alias=$ac_optarg ;;
1194
1195   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196     verbose=yes ;;
1197
1198   -version | --version | --versio | --versi | --vers | -V)
1199     ac_init_version=: ;;
1200
1201   -with-* | --with-*)
1202     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1203     # Reject names that are not valid shell variable names.
1204     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205       as_fn_error $? "invalid package name: $ac_useropt"
1206     ac_useropt_orig=$ac_useropt
1207     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208     case $ac_user_opts in
1209       *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1213          ac_unrecognized_sep=', ';;
1214     esac
1215     eval with_$ac_useropt=\$ac_optarg ;;
1216
1217   -without-* | --without-*)
1218     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1219     # Reject names that are not valid shell variable names.
1220     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221       as_fn_error $? "invalid package name: $ac_useropt"
1222     ac_useropt_orig=$ac_useropt
1223     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224     case $ac_user_opts in
1225       *"
1226 "with_$ac_useropt"
1227 "*) ;;
1228       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1229          ac_unrecognized_sep=', ';;
1230     esac
1231     eval with_$ac_useropt=no ;;
1232
1233   --x)
1234     # Obsolete; use --with-x.
1235     with_x=yes ;;
1236
1237   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238   | --x-incl | --x-inc | --x-in | --x-i)
1239     ac_prev=x_includes ;;
1240   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242     x_includes=$ac_optarg ;;
1243
1244   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246     ac_prev=x_libraries ;;
1247   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249     x_libraries=$ac_optarg ;;
1250
1251   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1252 Try \`$0 --help' for more information"
1253     ;;
1254
1255   *=*)
1256     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257     # Reject names that are not valid shell variable names.
1258     case $ac_envvar in #(
1259       '' | [0-9]* | *[!_$as_cr_alnum]* )
1260       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1261     esac
1262     eval $ac_envvar=\$ac_optarg
1263     export $ac_envvar ;;
1264
1265   *)
1266     # FIXME: should be removed in autoconf 3.0.
1267     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1271     ;;
1272
1273   esac
1274 done
1275
1276 if test -n "$ac_prev"; then
1277   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278   as_fn_error $? "missing argument to $ac_option"
1279 fi
1280
1281 if test -n "$ac_unrecognized_opts"; then
1282   case $enable_option_checking in
1283     no) ;;
1284     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1285     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1286   esac
1287 fi
1288
1289 # Check all directory arguments for consistency.
1290 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1291                 datadir sysconfdir sharedstatedir localstatedir includedir \
1292                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1293                 libdir localedir mandir
1294 do
1295   eval ac_val=\$$ac_var
1296   # Remove trailing slashes.
1297   case $ac_val in
1298     */ )
1299       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1300       eval $ac_var=\$ac_val;;
1301   esac
1302   # Be sure to have absolute directory names.
1303   case $ac_val in
1304     [\\/$]* | ?:[\\/]* )  continue;;
1305     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1306   esac
1307   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1308 done
1309
1310 # There might be people who depend on the old broken behavior: `$host'
1311 # used to hold the argument of --host etc.
1312 # FIXME: To remove some day.
1313 build=$build_alias
1314 host=$host_alias
1315 target=$target_alias
1316
1317 # FIXME: To remove some day.
1318 if test "x$host_alias" != x; then
1319   if test "x$build_alias" = x; then
1320     cross_compiling=maybe
1321   elif test "x$build_alias" != "x$host_alias"; then
1322     cross_compiling=yes
1323   fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335   as_fn_error $? "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337   as_fn_error $? "pwd does not report name of working directory"
1338
1339
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342   ac_srcdir_defaulted=yes
1343   # Try the directory containing this script, then the parent directory.
1344   ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346          X"$as_myself" : 'X\(//\)[^/]' \| \
1347          X"$as_myself" : 'X\(//\)$' \| \
1348          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\/\)[^/].*/{
1355             s//\1/
1356             q
1357           }
1358           /^X\(\/\/\)$/{
1359             s//\1/
1360             q
1361           }
1362           /^X\(\/\).*/{
1363             s//\1/
1364             q
1365           }
1366           s/.*/./; q'`
1367   srcdir=$ac_confdir
1368   if test ! -r "$srcdir/$ac_unique_file"; then
1369     srcdir=..
1370   fi
1371 else
1372   ac_srcdir_defaulted=no
1373 fi
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1381         pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384   srcdir=.
1385 fi
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394   eval ac_env_${ac_var}_value=\$${ac_var}
1395   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1398
1399 #
1400 # Report the --help message.
1401 #
1402 if test "$ac_init_help" = "long"; then
1403   # Omit some internal or obsolete options to make the list less imposing.
1404   # This message is too long to be a string in the A/UX 3.1 sh.
1405   cat <<_ACEOF
1406 \`configure' configures libffi 3.0.12-rc0 to adapt to many kinds of systems.
1407
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1409
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE.  See below for descriptions of some of the useful variables.
1412
1413 Defaults for the options are specified in brackets.
1414
1415 Configuration:
1416   -h, --help              display this help and exit
1417       --help=short        display options specific to this package
1418       --help=recursive    display the short help of all the included packages
1419   -V, --version           display version information and exit
1420   -q, --quiet, --silent   do not print \`checking ...' messages
1421       --cache-file=FILE   cache test results in FILE [disabled]
1422   -C, --config-cache      alias for \`--cache-file=config.cache'
1423   -n, --no-create         do not create output files
1424       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1425
1426 Installation directories:
1427   --prefix=PREFIX         install architecture-independent files in PREFIX
1428                           [$ac_default_prefix]
1429   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1430                           [PREFIX]
1431
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1436
1437 For better control, use the options below.
1438
1439 Fine tuning of the installation directories:
1440   --bindir=DIR            user executables [EPREFIX/bin]
1441   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1442   --libexecdir=DIR        program executables [EPREFIX/libexec]
1443   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1444   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1445   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1446   --libdir=DIR            object code libraries [EPREFIX/lib]
1447   --includedir=DIR        C header files [PREFIX/include]
1448   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1449   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1450   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1451   --infodir=DIR           info documentation [DATAROOTDIR/info]
1452   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1453   --mandir=DIR            man documentation [DATAROOTDIR/man]
1454   --docdir=DIR            documentation root [DATAROOTDIR/doc/libffi]
1455   --htmldir=DIR           html documentation [DOCDIR]
1456   --dvidir=DIR            dvi documentation [DOCDIR]
1457   --pdfdir=DIR            pdf documentation [DOCDIR]
1458   --psdir=DIR             ps documentation [DOCDIR]
1459 _ACEOF
1460
1461   cat <<\_ACEOF
1462
1463 Program names:
1464   --program-prefix=PREFIX            prepend PREFIX to installed program names
1465   --program-suffix=SUFFIX            append SUFFIX to installed program names
1466   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1467
1468 System types:
1469   --build=BUILD     configure for building on BUILD [guessed]
1470   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1471   --target=TARGET   configure for building compilers for TARGET [HOST]
1472 _ACEOF
1473 fi
1474
1475 if test -n "$ac_init_help"; then
1476   case $ac_init_help in
1477      short | recursive ) echo "Configuration of libffi 3.0.12-rc0:";;
1478    esac
1479   cat <<\_ACEOF
1480
1481 Optional Features:
1482   --disable-option-checking  ignore unrecognized --enable/--with options
1483   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1484   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1485   --disable-builddir      disable automatic build in subdir of sources
1486
1487   --enable-dependency-tracking
1488                           do not reject slow dependency extractors
1489   --disable-dependency-tracking
1490                           speeds up one-time build
1491   --enable-shared[=PKGS]  build shared libraries [default=yes]
1492   --enable-static[=PKGS]  build static libraries [default=yes]
1493   --enable-fast-install[=PKGS]
1494                           optimize for fast installation [default=yes]
1495   --disable-libtool-lock  avoid locking (might break parallel builds)
1496   --enable-portable-binary
1497                           disable compiler optimizations that would produce
1498                           unportable binaries
1499   --enable-maintainer-mode
1500                           enable make rules and dependencies not useful (and
1501                           sometimes confusing) to the casual installer
1502   --enable-pax_emutramp       enable pax emulated trampolines, for we can't use PROT_EXEC
1503   --enable-debug          debugging mode
1504   --disable-structs       omit code for struct support
1505   --disable-raw-api       make the raw api unavailable
1506   --enable-purify-safety  purify-safe mode
1507
1508 Optional Packages:
1509   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1510   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1511   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1512                           both]
1513   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1514   --with-sysroot=DIR Search for dependent libraries within DIR
1515                         (or the compiler's sysroot if not specified).
1516   --with-gcc-arch=<arch>  use architecture <arch> for gcc -march/-mtune,
1517                           instead of guessing
1518
1519 Some influential environment variables:
1520   CC          C compiler command
1521   CFLAGS      C compiler flags
1522   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1523               nonstandard directory <lib dir>
1524   LIBS        libraries to pass to the linker, e.g. -l<library>
1525   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1526               you have headers in a nonstandard directory <include dir>
1527   CCAS        assembler compiler command (defaults to CC)
1528   CCASFLAGS   assembler compiler flags (defaults to CFLAGS)
1529   CPP         C preprocessor
1530
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1533
1534 Report bugs to <http://gcc.gnu.org/bugs.html>.
1535 _ACEOF
1536 ac_status=$?
1537 fi
1538
1539 if test "$ac_init_help" = "recursive"; then
1540   # If there are subdirs, report their specific --help.
1541   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1542     test -d "$ac_dir" ||
1543       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1544       continue
1545     ac_builddir=.
1546
1547 case "$ac_dir" in
1548 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *)
1550   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1551   # A ".." for each directory in $ac_dir_suffix.
1552   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1553   case $ac_top_builddir_sub in
1554   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1556   esac ;;
1557 esac
1558 ac_abs_top_builddir=$ac_pwd
1559 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1560 # for backward compatibility:
1561 ac_top_builddir=$ac_top_build_prefix
1562
1563 case $srcdir in
1564   .)  # We are building in place.
1565     ac_srcdir=.
1566     ac_top_srcdir=$ac_top_builddir_sub
1567     ac_abs_top_srcdir=$ac_pwd ;;
1568   [\\/]* | ?:[\\/]* )  # Absolute name.
1569     ac_srcdir=$srcdir$ac_dir_suffix;
1570     ac_top_srcdir=$srcdir
1571     ac_abs_top_srcdir=$srcdir ;;
1572   *) # Relative name.
1573     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1574     ac_top_srcdir=$ac_top_build_prefix$srcdir
1575     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1576 esac
1577 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1578
1579     cd "$ac_dir" || { ac_status=$?; continue; }
1580     # Check for guested configure.
1581     if test -f "$ac_srcdir/configure.gnu"; then
1582       echo &&
1583       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1584     elif test -f "$ac_srcdir/configure"; then
1585       echo &&
1586       $SHELL "$ac_srcdir/configure" --help=recursive
1587     else
1588       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1589     fi || ac_status=$?
1590     cd "$ac_pwd" || { ac_status=$?; break; }
1591   done
1592 fi
1593
1594 test -n "$ac_init_help" && exit $ac_status
1595 if $ac_init_version; then
1596   cat <<\_ACEOF
1597 libffi configure 3.0.12-rc0
1598 generated by GNU Autoconf 2.69
1599
1600 Copyright (C) 2012 Free Software Foundation, Inc.
1601 This configure script is free software; the Free Software Foundation
1602 gives unlimited permission to copy, distribute and modify it.
1603 _ACEOF
1604   exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617   rm -f conftest.$ac_objext
1618   if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621   *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 $as_echo "$ac_try_echo"; } >&5
1625   (eval "$ac_compile") 2>conftest.err
1626   ac_status=$?
1627   if test -s conftest.err; then
1628     grep -v '^ *+' conftest.err >conftest.er1
1629     cat conftest.er1 >&5
1630     mv -f conftest.er1 conftest.err
1631   fi
1632   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633   test $ac_status = 0; } && {
1634          test -z "$ac_c_werror_flag" ||
1635          test ! -s conftest.err
1636        } && test -s conftest.$ac_objext; then :
1637   ac_retval=0
1638 else
1639   $as_echo "$as_me: failed program was:" >&5
1640 sed 's/^/| /' conftest.$ac_ext >&5
1641
1642         ac_retval=1
1643 fi
1644   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1645   as_fn_set_status $ac_retval
1646
1647 } # ac_fn_c_try_compile
1648
1649 # ac_fn_c_try_link LINENO
1650 # -----------------------
1651 # Try to link conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_link ()
1653 {
1654   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655   rm -f conftest.$ac_objext conftest$ac_exeext
1656   if { { ac_try="$ac_link"
1657 case "(($ac_try" in
1658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659   *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663   (eval "$ac_link") 2>conftest.err
1664   ac_status=$?
1665   if test -s conftest.err; then
1666     grep -v '^ *+' conftest.err >conftest.er1
1667     cat conftest.er1 >&5
1668     mv -f conftest.er1 conftest.err
1669   fi
1670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671   test $ac_status = 0; } && {
1672          test -z "$ac_c_werror_flag" ||
1673          test ! -s conftest.err
1674        } && test -s conftest$ac_exeext && {
1675          test "$cross_compiling" = yes ||
1676          test -x conftest$ac_exeext
1677        }; then :
1678   ac_retval=0
1679 else
1680   $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683         ac_retval=1
1684 fi
1685   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1686   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1687   # interfere with the next link command; also delete a directory that is
1688   # left behind by Apple's compiler.  We do this before executing the actions.
1689   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1690   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1691   as_fn_set_status $ac_retval
1692
1693 } # ac_fn_c_try_link
1694
1695 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1696 # -------------------------------------------------------
1697 # Tests whether HEADER exists and can be compiled using the include files in
1698 # INCLUDES, setting the cache variable VAR accordingly.
1699 ac_fn_c_check_header_compile ()
1700 {
1701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1703 $as_echo_n "checking for $2... " >&6; }
1704 if eval \${$3+:} false; then :
1705   $as_echo_n "(cached) " >&6
1706 else
1707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1708 /* end confdefs.h.  */
1709 $4
1710 #include <$2>
1711 _ACEOF
1712 if ac_fn_c_try_compile "$LINENO"; then :
1713   eval "$3=yes"
1714 else
1715   eval "$3=no"
1716 fi
1717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1718 fi
1719 eval ac_res=\$$3
1720                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1721 $as_echo "$ac_res" >&6; }
1722   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723
1724 } # ac_fn_c_check_header_compile
1725
1726 # ac_fn_c_try_cpp LINENO
1727 # ----------------------
1728 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729 ac_fn_c_try_cpp ()
1730 {
1731   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732   if { { ac_try="$ac_cpp conftest.$ac_ext"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } > conftest.i && {
1748          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749          test ! -s conftest.err
1750        }; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756     ac_retval=1
1757 fi
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_c_try_cpp
1762
1763 # ac_fn_c_try_run LINENO
1764 # ----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1766 # that executables *can* be run.
1767 ac_fn_c_try_run ()
1768 {
1769   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770   if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_link") 2>&5
1778   ac_status=$?
1779   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1781   { { case "(($ac_try" in
1782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1783   *) ac_try_echo=$ac_try;;
1784 esac
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787   (eval "$ac_try") 2>&5
1788   ac_status=$?
1789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790   test $ac_status = 0; }; }; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: program exited with status $ac_status" >&5
1794        $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797        ac_retval=$ac_status
1798 fi
1799   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1800   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801   as_fn_set_status $ac_retval
1802
1803 } # ac_fn_c_try_run
1804
1805 # ac_fn_c_check_func LINENO FUNC VAR
1806 # ----------------------------------
1807 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1808 ac_fn_c_check_func ()
1809 {
1810   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812 $as_echo_n "checking for $2... " >&6; }
1813 if eval \${$3+:} false; then :
1814   $as_echo_n "(cached) " >&6
1815 else
1816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h.  */
1818 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1820 #define $2 innocuous_$2
1821
1822 /* System header to define __stub macros and hopefully few prototypes,
1823     which can conflict with char $2 (); below.
1824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1825     <limits.h> exists even on freestanding compilers.  */
1826
1827 #ifdef __STDC__
1828 # include <limits.h>
1829 #else
1830 # include <assert.h>
1831 #endif
1832
1833 #undef $2
1834
1835 /* Override any GCC internal prototype to avoid an error.
1836    Use char because int might match the return type of a GCC
1837    builtin and then its argument prototype would still apply.  */
1838 #ifdef __cplusplus
1839 extern "C"
1840 #endif
1841 char $2 ();
1842 /* The GNU C library defines this for functions which it implements
1843     to always fail with ENOSYS.  Some functions are actually named
1844     something starting with __ and the normal name is an alias.  */
1845 #if defined __stub_$2 || defined __stub___$2
1846 choke me
1847 #endif
1848
1849 int
1850 main ()
1851 {
1852 return $2 ();
1853   ;
1854   return 0;
1855 }
1856 _ACEOF
1857 if ac_fn_c_try_link "$LINENO"; then :
1858   eval "$3=yes"
1859 else
1860   eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext \
1863     conftest$ac_exeext conftest.$ac_ext
1864 fi
1865 eval ac_res=\$$3
1866                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1867 $as_echo "$ac_res" >&6; }
1868   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869
1870 } # ac_fn_c_check_func
1871
1872 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1873 # --------------------------------------------
1874 # Tries to find the compile-time value of EXPR in a program that includes
1875 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1876 # computed
1877 ac_fn_c_compute_int ()
1878 {
1879   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880   if test "$cross_compiling" = yes; then
1881     # Depending upon the size, compute the lo and hi bounds.
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h.  */
1884 $4
1885 int
1886 main ()
1887 {
1888 static int test_array [1 - 2 * !(($2) >= 0)];
1889 test_array [0] = 0;
1890 return test_array [0];
1891
1892   ;
1893   return 0;
1894 }
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897   ac_lo=0 ac_mid=0
1898   while :; do
1899     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h.  */
1901 $4
1902 int
1903 main ()
1904 {
1905 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1906 test_array [0] = 0;
1907 return test_array [0];
1908
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_compile "$LINENO"; then :
1914   ac_hi=$ac_mid; break
1915 else
1916   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1917                         if test $ac_lo -le $ac_mid; then
1918                           ac_lo= ac_hi=
1919                           break
1920                         fi
1921                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924   done
1925 else
1926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h.  */
1928 $4
1929 int
1930 main ()
1931 {
1932 static int test_array [1 - 2 * !(($2) < 0)];
1933 test_array [0] = 0;
1934 return test_array [0];
1935
1936   ;
1937   return 0;
1938 }
1939 _ACEOF
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941   ac_hi=-1 ac_mid=-1
1942   while :; do
1943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h.  */
1945 $4
1946 int
1947 main ()
1948 {
1949 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1950 test_array [0] = 0;
1951 return test_array [0];
1952
1953   ;
1954   return 0;
1955 }
1956 _ACEOF
1957 if ac_fn_c_try_compile "$LINENO"; then :
1958   ac_lo=$ac_mid; break
1959 else
1960   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1961                         if test $ac_mid -le $ac_hi; then
1962                           ac_lo= ac_hi=
1963                           break
1964                         fi
1965                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1966 fi
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1968   done
1969 else
1970   ac_lo= ac_hi=
1971 fi
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1975 # Binary search between lo and hi bounds.
1976 while test "x$ac_lo" != "x$ac_hi"; do
1977   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h.  */
1980 $4
1981 int
1982 main ()
1983 {
1984 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1985 test_array [0] = 0;
1986 return test_array [0];
1987
1988   ;
1989   return 0;
1990 }
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_hi=$ac_mid
1994 else
1995   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 done
1999 case $ac_lo in #((
2000 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2001 '') ac_retval=1 ;;
2002 esac
2003   else
2004     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 $4
2007 static long int longval () { return $2; }
2008 static unsigned long int ulongval () { return $2; }
2009 #include <stdio.h>
2010 #include <stdlib.h>
2011 int
2012 main ()
2013 {
2014
2015   FILE *f = fopen ("conftest.val", "w");
2016   if (! f)
2017     return 1;
2018   if (($2) < 0)
2019     {
2020       long int i = longval ();
2021       if (i != ($2))
2022         return 1;
2023       fprintf (f, "%ld", i);
2024     }
2025   else
2026     {
2027       unsigned long int i = ulongval ();
2028       if (i != ($2))
2029         return 1;
2030       fprintf (f, "%lu", i);
2031     }
2032   /* Do not output a trailing newline, as this causes \r\n confusion
2033      on some platforms.  */
2034   return ferror (f) || fclose (f) != 0;
2035
2036   ;
2037   return 0;
2038 }
2039 _ACEOF
2040 if ac_fn_c_try_run "$LINENO"; then :
2041   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2042 else
2043   ac_retval=1
2044 fi
2045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2046   conftest.$ac_objext conftest.beam conftest.$ac_ext
2047 rm -f conftest.val
2048
2049   fi
2050   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2051   as_fn_set_status $ac_retval
2052
2053 } # ac_fn_c_compute_int
2054
2055 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2056 # -------------------------------------------------------
2057 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2058 # the include files in INCLUDES and setting the cache variable VAR
2059 # accordingly.
2060 ac_fn_c_check_header_mongrel ()
2061 {
2062   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063   if eval \${$3+:} false; then :
2064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067   $as_echo_n "(cached) " >&6
2068 fi
2069 eval ac_res=\$$3
2070                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071 $as_echo "$ac_res" >&6; }
2072 else
2073   # Is the header compilable?
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2075 $as_echo_n "checking $2 usability... " >&6; }
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 $4
2079 #include <$2>
2080 _ACEOF
2081 if ac_fn_c_try_compile "$LINENO"; then :
2082   ac_header_compiler=yes
2083 else
2084   ac_header_compiler=no
2085 fi
2086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2088 $as_echo "$ac_header_compiler" >&6; }
2089
2090 # Is the header present?
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2092 $as_echo_n "checking $2 presence... " >&6; }
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 #include <$2>
2096 _ACEOF
2097 if ac_fn_c_try_cpp "$LINENO"; then :
2098   ac_header_preproc=yes
2099 else
2100   ac_header_preproc=no
2101 fi
2102 rm -f conftest.err conftest.i conftest.$ac_ext
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2104 $as_echo "$ac_header_preproc" >&6; }
2105
2106 # So?  What about this header?
2107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2108   yes:no: )
2109     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2110 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2111     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2112 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2113     ;;
2114   no:yes:* )
2115     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2116 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2118 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2120 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2121     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2122 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2123     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2124 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2125 ( $as_echo "## ------------------------------------------- ##
2126 ## Report this to http://gcc.gnu.org/bugs.html ##
2127 ## ------------------------------------------- ##"
2128      ) | sed "s/^/$as_me: WARNING:     /" >&2
2129     ;;
2130 esac
2131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2132 $as_echo_n "checking for $2... " >&6; }
2133 if eval \${$3+:} false; then :
2134   $as_echo_n "(cached) " >&6
2135 else
2136   eval "$3=\$ac_header_compiler"
2137 fi
2138 eval ac_res=\$$3
2139                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2140 $as_echo "$ac_res" >&6; }
2141 fi
2142   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143
2144 } # ac_fn_c_check_header_mongrel
2145
2146 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2147 # -------------------------------------------
2148 # Tests whether TYPE exists after having included INCLUDES, setting cache
2149 # variable VAR accordingly.
2150 ac_fn_c_check_type ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2154 $as_echo_n "checking for $2... " >&6; }
2155 if eval \${$3+:} false; then :
2156   $as_echo_n "(cached) " >&6
2157 else
2158   eval "$3=no"
2159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 int
2163 main ()
2164 {
2165 if (sizeof ($2))
2166          return 0;
2167   ;
2168   return 0;
2169 }
2170 _ACEOF
2171 if ac_fn_c_try_compile "$LINENO"; then :
2172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h.  */
2174 $4
2175 int
2176 main ()
2177 {
2178 if (sizeof (($2)))
2179             return 0;
2180   ;
2181   return 0;
2182 }
2183 _ACEOF
2184 if ac_fn_c_try_compile "$LINENO"; then :
2185
2186 else
2187   eval "$3=yes"
2188 fi
2189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 fi
2193 eval ac_res=\$$3
2194                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2195 $as_echo "$ac_res" >&6; }
2196   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197
2198 } # ac_fn_c_check_type
2199 cat >config.log <<_ACEOF
2200 This file contains any messages produced by compilers while
2201 running configure, to aid debugging if configure makes a mistake.
2202
2203 It was created by libffi $as_me 3.0.12-rc0, which was
2204 generated by GNU Autoconf 2.69.  Invocation command line was
2205
2206   $ $0 $@
2207
2208 _ACEOF
2209 exec 5>>config.log
2210 {
2211 cat <<_ASUNAME
2212 ## --------- ##
2213 ## Platform. ##
2214 ## --------- ##
2215
2216 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2217 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2218 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2219 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2220 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2221
2222 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2223 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2224
2225 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2226 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2227 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2228 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2229 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2230 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2231 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2232
2233 _ASUNAME
2234
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240     $as_echo "PATH: $as_dir"
2241   done
2242 IFS=$as_save_IFS
2243
2244 } >&5
2245
2246 cat >&5 <<_ACEOF
2247
2248
2249 ## ----------- ##
2250 ## Core tests. ##
2251 ## ----------- ##
2252
2253 _ACEOF
2254
2255
2256 # Keep a trace of the command line.
2257 # Strip out --no-create and --no-recursion so they do not pile up.
2258 # Strip out --silent because we don't want to record it for future runs.
2259 # Also quote any args containing shell meta-characters.
2260 # Make two passes to allow for proper duplicate-argument suppression.
2261 ac_configure_args=
2262 ac_configure_args0=
2263 ac_configure_args1=
2264 ac_must_keep_next=false
2265 for ac_pass in 1 2
2266 do
2267   for ac_arg
2268   do
2269     case $ac_arg in
2270     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2271     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2272     | -silent | --silent | --silen | --sile | --sil)
2273       continue ;;
2274     *\'*)
2275       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2276     esac
2277     case $ac_pass in
2278     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2279     2)
2280       as_fn_append ac_configure_args1 " '$ac_arg'"
2281       if test $ac_must_keep_next = true; then
2282         ac_must_keep_next=false # Got value, back to normal.
2283       else
2284         case $ac_arg in
2285           *=* | --config-cache | -C | -disable-* | --disable-* \
2286           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2287           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2288           | -with-* | --with-* | -without-* | --without-* | --x)
2289             case "$ac_configure_args0 " in
2290               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2291             esac
2292             ;;
2293           -* ) ac_must_keep_next=true ;;
2294         esac
2295       fi
2296       as_fn_append ac_configure_args " '$ac_arg'"
2297       ;;
2298     esac
2299   done
2300 done
2301 { ac_configure_args0=; unset ac_configure_args0;}
2302 { ac_configure_args1=; unset ac_configure_args1;}
2303
2304 # When interrupted or exit'd, cleanup temporary files, and complete
2305 # config.log.  We remove comments because anyway the quotes in there
2306 # would cause problems or look ugly.
2307 # WARNING: Use '\'' to represent an apostrophe within the trap.
2308 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2309 trap 'exit_status=$?
2310   # Save into config.log some information that might help in debugging.
2311   {
2312     echo
2313
2314     $as_echo "## ---------------- ##
2315 ## Cache variables. ##
2316 ## ---------------- ##"
2317     echo
2318     # The following way of writing the cache mishandles newlines in values,
2319 (
2320   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2321     eval ac_val=\$$ac_var
2322     case $ac_val in #(
2323     *${as_nl}*)
2324       case $ac_var in #(
2325       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2326 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2327       esac
2328       case $ac_var in #(
2329       _ | IFS | as_nl) ;; #(
2330       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2331       *) { eval $ac_var=; unset $ac_var;} ;;
2332       esac ;;
2333     esac
2334   done
2335   (set) 2>&1 |
2336     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2337     *${as_nl}ac_space=\ *)
2338       sed -n \
2339         "s/'\''/'\''\\\\'\'''\''/g;
2340           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2341       ;; #(
2342     *)
2343       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2344       ;;
2345     esac |
2346     sort
2347 )
2348     echo
2349
2350     $as_echo "## ----------------- ##
2351 ## Output variables. ##
2352 ## ----------------- ##"
2353     echo
2354     for ac_var in $ac_subst_vars
2355     do
2356       eval ac_val=\$$ac_var
2357       case $ac_val in
2358       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2359       esac
2360       $as_echo "$ac_var='\''$ac_val'\''"
2361     done | sort
2362     echo
2363
2364     if test -n "$ac_subst_files"; then
2365       $as_echo "## ------------------- ##
2366 ## File substitutions. ##
2367 ## ------------------- ##"
2368       echo
2369       for ac_var in $ac_subst_files
2370       do
2371         eval ac_val=\$$ac_var
2372         case $ac_val in
2373         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374         esac
2375         $as_echo "$ac_var='\''$ac_val'\''"
2376       done | sort
2377       echo
2378     fi
2379
2380     if test -s confdefs.h; then
2381       $as_echo "## ----------- ##
2382 ## confdefs.h. ##
2383 ## ----------- ##"
2384       echo
2385       cat confdefs.h
2386       echo
2387     fi
2388     test "$ac_signal" != 0 &&
2389       $as_echo "$as_me: caught signal $ac_signal"
2390     $as_echo "$as_me: exit $exit_status"
2391   } >&5
2392   rm -f core *.core core.conftest.* &&
2393     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2394     exit $exit_status
2395 ' 0
2396 for ac_signal in 1 2 13 15; do
2397   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2398 done
2399 ac_signal=0
2400
2401 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2402 rm -f -r conftest* confdefs.h
2403
2404 $as_echo "/* confdefs.h */" > confdefs.h
2405
2406 # Predefined preprocessor variables.
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_NAME "$PACKAGE_NAME"
2410 _ACEOF
2411
2412 cat >>confdefs.h <<_ACEOF
2413 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2414 _ACEOF
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_STRING "$PACKAGE_STRING"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_URL "$PACKAGE_URL"
2430 _ACEOF
2431
2432
2433 # Let the site file select an alternate cache file if it wants to.
2434 # Prefer an explicitly selected file to automatically selected ones.
2435 ac_site_file1=NONE
2436 ac_site_file2=NONE
2437 if test -n "$CONFIG_SITE"; then
2438   # We do not want a PATH search for config.site.
2439   case $CONFIG_SITE in #((
2440     -*)  ac_site_file1=./$CONFIG_SITE;;
2441     */*) ac_site_file1=$CONFIG_SITE;;
2442     *)   ac_site_file1=./$CONFIG_SITE;;
2443   esac
2444 elif test "x$prefix" != xNONE; then
2445   ac_site_file1=$prefix/share/config.site
2446   ac_site_file2=$prefix/etc/config.site
2447 else
2448   ac_site_file1=$ac_default_prefix/share/config.site
2449   ac_site_file2=$ac_default_prefix/etc/config.site
2450 fi
2451 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2452 do
2453   test "x$ac_site_file" = xNONE && continue
2454   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2455     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2456 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2457     sed 's/^/| /' "$ac_site_file" >&5
2458     . "$ac_site_file" \
2459       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461 as_fn_error $? "failed to load site script $ac_site_file
2462 See \`config.log' for more details" "$LINENO" 5; }
2463   fi
2464 done
2465
2466 if test -r "$cache_file"; then
2467   # Some versions of bash will fail to source /dev/null (special files
2468   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2469   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471 $as_echo "$as_me: loading cache $cache_file" >&6;}
2472     case $cache_file in
2473       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474       *)                      . "./$cache_file";;
2475     esac
2476   fi
2477 else
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479 $as_echo "$as_me: creating cache $cache_file" >&6;}
2480   >$cache_file
2481 fi
2482
2483 # Check that the precious variables saved in the cache have kept the same
2484 # value.
2485 ac_cache_corrupted=false
2486 for ac_var in $ac_precious_vars; do
2487   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488   eval ac_new_set=\$ac_env_${ac_var}_set
2489   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490   eval ac_new_val=\$ac_env_${ac_var}_value
2491   case $ac_old_set,$ac_new_set in
2492     set,)
2493       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495       ac_cache_corrupted=: ;;
2496     ,set)
2497       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499       ac_cache_corrupted=: ;;
2500     ,);;
2501     *)
2502       if test "x$ac_old_val" != "x$ac_new_val"; then
2503         # differences in whitespace do not lead to failure.
2504         ac_old_val_w=`echo x $ac_old_val`
2505         ac_new_val_w=`echo x $ac_new_val`
2506         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509           ac_cache_corrupted=:
2510         else
2511           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513           eval $ac_var=\$ac_old_val
2514         fi
2515         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2516 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2518 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2519       fi;;
2520   esac
2521   # Pass precious variables to config.status.
2522   if test "$ac_new_set" = set; then
2523     case $ac_new_val in
2524     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525     *) ac_arg=$ac_var=$ac_new_val ;;
2526     esac
2527     case " $ac_configure_args " in
2528       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2529       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530     esac
2531   fi
2532 done
2533 if $ac_cache_corrupted; then
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2539 fi
2540 ## -------------------- ##
2541 ## Main body of script. ##
2542 ## -------------------- ##
2543
2544 ac_ext=c
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550
2551 ac_config_headers="$ac_config_headers fficonfig.h"
2552
2553
2554 ac_aux_dir=
2555 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2556   if test -f "$ac_dir/install-sh"; then
2557     ac_aux_dir=$ac_dir
2558     ac_install_sh="$ac_aux_dir/install-sh -c"
2559     break
2560   elif test -f "$ac_dir/install.sh"; then
2561     ac_aux_dir=$ac_dir
2562     ac_install_sh="$ac_aux_dir/install.sh -c"
2563     break
2564   elif test -f "$ac_dir/shtool"; then
2565     ac_aux_dir=$ac_dir
2566     ac_install_sh="$ac_aux_dir/shtool install -c"
2567     break
2568   fi
2569 done
2570 if test -z "$ac_aux_dir"; then
2571   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2572 fi
2573
2574 # These three variables are undocumented and unsupported,
2575 # and are intended to be withdrawn in a future Autoconf release.
2576 # They can cause serious problems if a builder's source tree is in a directory
2577 # whose full name contains unusual characters.
2578 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2579 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2580 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2581
2582
2583 # Make sure we can run config.sub.
2584 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2585   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2586
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2588 $as_echo_n "checking build system type... " >&6; }
2589 if ${ac_cv_build+:} false; then :
2590   $as_echo_n "(cached) " >&6
2591 else
2592   ac_build_alias=$build_alias
2593 test "x$ac_build_alias" = x &&
2594   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2595 test "x$ac_build_alias" = x &&
2596   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2597 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2598   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2599
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2602 $as_echo "$ac_cv_build" >&6; }
2603 case $ac_cv_build in
2604 *-*-*) ;;
2605 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2606 esac
2607 build=$ac_cv_build
2608 ac_save_IFS=$IFS; IFS='-'
2609 set x $ac_cv_build
2610 shift
2611 build_cpu=$1
2612 build_vendor=$2
2613 shift; shift
2614 # Remember, the first character of IFS is used to create $*,
2615 # except with old shells:
2616 build_os=$*
2617 IFS=$ac_save_IFS
2618 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2619
2620
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2622 $as_echo_n "checking host system type... " >&6; }
2623 if ${ac_cv_host+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   if test "x$host_alias" = x; then
2627   ac_cv_host=$ac_cv_build
2628 else
2629   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2630     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2631 fi
2632
2633 fi
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2635 $as_echo "$ac_cv_host" >&6; }
2636 case $ac_cv_host in
2637 *-*-*) ;;
2638 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2639 esac
2640 host=$ac_cv_host
2641 ac_save_IFS=$IFS; IFS='-'
2642 set x $ac_cv_host
2643 shift
2644 host_cpu=$1
2645 host_vendor=$2
2646 shift; shift
2647 # Remember, the first character of IFS is used to create $*,
2648 # except with old shells:
2649 host_os=$*
2650 IFS=$ac_save_IFS
2651 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2652
2653
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2655 $as_echo_n "checking target system type... " >&6; }
2656 if ${ac_cv_target+:} false; then :
2657   $as_echo_n "(cached) " >&6
2658 else
2659   if test "x$target_alias" = x; then
2660   ac_cv_target=$ac_cv_host
2661 else
2662   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2663     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2664 fi
2665
2666 fi
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2668 $as_echo "$ac_cv_target" >&6; }
2669 case $ac_cv_target in
2670 *-*-*) ;;
2671 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2672 esac
2673 target=$ac_cv_target
2674 ac_save_IFS=$IFS; IFS='-'
2675 set x $ac_cv_target
2676 shift
2677 target_cpu=$1
2678 target_vendor=$2
2679 shift; shift
2680 # Remember, the first character of IFS is used to create $*,
2681 # except with old shells:
2682 target_os=$*
2683 IFS=$ac_save_IFS
2684 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2685
2686
2687 # The aliases save the names the user supplied, while $host etc.
2688 # will get canonicalized.
2689 test -n "$target_alias" &&
2690   test "$program_prefix$program_suffix$program_transform_name" = \
2691     NONENONEs,x,x, &&
2692   program_prefix=${target_alias}-
2693
2694 target_alias=${target_alias-$host_alias}
2695
2696 . ${srcdir}/configure.host
2697
2698
2699    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2700    if test "${ac_configure_args+set}" != "set" ; then
2701       ac_configure_args=
2702       for ac_arg in ${1+"$@"}; do
2703          ac_configure_args="$ac_configure_args '$ac_arg'"
2704       done
2705    fi
2706
2707 # expand $ac_aux_dir to an absolute path
2708 am_aux_dir=`cd $ac_aux_dir && pwd`
2709
2710
2711 ax_enable_builddir="."
2712 # Check whether --enable-builddir was given.
2713 if test "${enable_builddir+set}" = set; then :
2714   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2715 else
2716   ax_enable_builddir="auto"
2717 fi
2718
2719 if test ".$ac_srcdir_defaulted" != ".no" ; then
2720 if test ".$srcdir" = ".." ; then
2721   if test -f config.status ; then
2722     { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2723 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2724   else
2725     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2726     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2727     test ".$TARGET" = "." && TARGET="$target"
2728     test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2729     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2730       as_dir=$ax_enable_builddir; as_fn_mkdir_p
2731       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2732       cd $ax_enable_builddir
2733       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2734         rm conftest.tmp
2735         { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2736 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2737       else
2738         as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2739       fi
2740       srcdir=`echo "$ax_enable_builddir" |
2741               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2742       # going to restart from subdirectory location
2743       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2744       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2745       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2746       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2747       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2748 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2749       case "$0" in # restart
2750        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2751        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2752       esac ; exit $?
2753     fi
2754   fi
2755 fi fi
2756 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2757 # Extract the first word of "gsed sed", so it can be a program name with args.
2758 set dummy gsed sed; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2762   $as_echo_n "(cached) " >&6
2763 else
2764   case $ax_enable_builddir_sed in
2765   [\\/]* | ?:[\\/]*)
2766   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2767   ;;
2768   *)
2769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2771 do
2772   IFS=$as_save_IFS
2773   test -z "$as_dir" && as_dir=.
2774     for ac_exec_ext in '' $ac_executable_extensions; do
2775   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778     break 2
2779   fi
2780 done
2781   done
2782 IFS=$as_save_IFS
2783
2784   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2785   ;;
2786 esac
2787 fi
2788 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2789 if test -n "$ax_enable_builddir_sed"; then
2790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2791 $as_echo "$ax_enable_builddir_sed" >&6; }
2792 else
2793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 fi
2796
2797
2798 ax_enable_builddir_auxdir="$am_aux_dir"
2799 ac_config_commands="$ac_config_commands buildir"
2800
2801
2802 am__api_version='1.12'
2803
2804 # Find a good install program.  We prefer a C program (faster),
2805 # so one script is as good as another.  But avoid the broken or
2806 # incompatible versions:
2807 # SysV /etc/install, /usr/sbin/install
2808 # SunOS /usr/etc/install
2809 # IRIX /sbin/install
2810 # AIX /bin/install
2811 # AmigaOS /C/install, which installs bootblocks on floppy discs
2812 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2813 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2814 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2815 # OS/2's system install, which has a completely different semantic
2816 # ./install, which can be erroneously created by make from ./install.sh.
2817 # Reject install programs that cannot install multiple files.
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2819 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2820 if test -z "$INSTALL"; then
2821 if ${ac_cv_path_install+:} false; then :
2822   $as_echo_n "(cached) " >&6
2823 else
2824   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2825 for as_dir in $PATH
2826 do
2827   IFS=$as_save_IFS
2828   test -z "$as_dir" && as_dir=.
2829     # Account for people who put trailing slashes in PATH elements.
2830 case $as_dir/ in #((
2831   ./ | .// | /[cC]/* | \
2832   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2833   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2834   /usr/ucb/* ) ;;
2835   *)
2836     # OSF1 and SCO ODT 3.0 have their own names for install.
2837     # Don't use installbsd from OSF since it installs stuff as root
2838     # by default.
2839     for ac_prog in ginstall scoinst install; do
2840       for ac_exec_ext in '' $ac_executable_extensions; do
2841         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2842           if test $ac_prog = install &&
2843             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844             # AIX install.  It has an incompatible calling convention.
2845             :
2846           elif test $ac_prog = install &&
2847             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2848             # program-specific install script used by HP pwplus--don't use.
2849             :
2850           else
2851             rm -rf conftest.one conftest.two conftest.dir
2852             echo one > conftest.one
2853             echo two > conftest.two
2854             mkdir conftest.dir
2855             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2856               test -s conftest.one && test -s conftest.two &&
2857               test -s conftest.dir/conftest.one &&
2858               test -s conftest.dir/conftest.two
2859             then
2860               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2861               break 3
2862             fi
2863           fi
2864         fi
2865       done
2866     done
2867     ;;
2868 esac
2869
2870   done
2871 IFS=$as_save_IFS
2872
2873 rm -rf conftest.one conftest.two conftest.dir
2874
2875 fi
2876   if test "${ac_cv_path_install+set}" = set; then
2877     INSTALL=$ac_cv_path_install
2878   else
2879     # As a last resort, use the slow shell script.  Don't cache a
2880     # value for INSTALL within a source directory, because that will
2881     # break other packages using the cache if that directory is
2882     # removed, or if the value is a relative name.
2883     INSTALL=$ac_install_sh
2884   fi
2885 fi
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2887 $as_echo "$INSTALL" >&6; }
2888
2889 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2890 # It thinks the first close brace ends the variable substitution.
2891 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892
2893 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894
2895 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2898 $as_echo_n "checking whether build environment is sane... " >&6; }
2899 # Reject unsafe characters in $srcdir or the absolute working directory
2900 # name.  Accept space and tab only in the latter.
2901 am_lf='
2902 '
2903 case `pwd` in
2904   *[\\\"\#\$\&\'\`$am_lf]*)
2905     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2906 esac
2907 case $srcdir in
2908   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2909     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2910 esac
2911
2912 # Do 'set' in a subshell so we don't clobber the current shell's
2913 # arguments.  Must try -L first in case configure is actually a
2914 # symlink; some systems play weird games with the mod time of symlinks
2915 # (eg FreeBSD returns the mod time of the symlink's containing
2916 # directory).
2917 if (
2918    am_has_slept=no
2919    for am_try in 1 2; do
2920      echo "timestamp, slept: $am_has_slept" > conftest.file
2921      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2922      if test "$*" = "X"; then
2923         # -L didn't work.
2924         set X `ls -t "$srcdir/configure" conftest.file`
2925      fi
2926      if test "$*" != "X $srcdir/configure conftest.file" \
2927         && test "$*" != "X conftest.file $srcdir/configure"; then
2928
2929         # If neither matched, then we have a broken ls.  This can happen
2930         # if, for instance, CONFIG_SHELL is bash and it inherits a
2931         # broken ls alias from the environment.  This has actually
2932         # happened.  Such a system could not be considered "sane".
2933         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2934   alias in your environment" "$LINENO" 5
2935      fi
2936      if test "$2" = conftest.file || test $am_try -eq 2; then
2937        break
2938      fi
2939      # Just in case.
2940      sleep 1
2941      am_has_slept=yes
2942    done
2943    test "$2" = conftest.file
2944    )
2945 then
2946    # Ok.
2947    :
2948 else
2949    as_fn_error $? "newly created file is older than distributed files!
2950 Check your system clock" "$LINENO" 5
2951 fi
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2953 $as_echo "yes" >&6; }
2954 # If we didn't sleep, we still need to ensure time stamps of config.status and
2955 # generated files are strictly newer.
2956 am_sleep_pid=
2957 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2958   ( sleep 1 ) &
2959   am_sleep_pid=$!
2960 fi
2961
2962 rm -f conftest.file
2963
2964 test "$program_prefix" != NONE &&
2965   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2966 # Use a double $ so make ignores it.
2967 test "$program_suffix" != NONE &&
2968   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2969 # Double any \ or $.
2970 # By default was `s,x,x', remove it if useless.
2971 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2972 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2973
2974 if test x"${MISSING+set}" != xset; then
2975   case $am_aux_dir in
2976   *\ * | *\     *)
2977     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2978   *)
2979     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2980   esac
2981 fi
2982 # Use eval to expand $SHELL
2983 if eval "$MISSING --run true"; then
2984   am_missing_run="$MISSING --run "
2985 else
2986   am_missing_run=
2987   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2988 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2989 fi
2990
2991 if test x"${install_sh}" != xset; then
2992   case $am_aux_dir in
2993   *\ * | *\     *)
2994     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2995   *)
2996     install_sh="\${SHELL} $am_aux_dir/install-sh"
2997   esac
2998 fi
2999
3000 # Installed binaries are usually stripped using 'strip' when the user
3001 # run "make install-strip".  However 'strip' might not be the right
3002 # tool to use in cross-compilation environments, therefore Automake
3003 # will honor the 'STRIP' environment variable to overrule this program.
3004 if test "$cross_compiling" != no; then
3005   if test -n "$ac_tool_prefix"; then
3006   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3007 set dummy ${ac_tool_prefix}strip; ac_word=$2
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3009 $as_echo_n "checking for $ac_word... " >&6; }
3010 if ${ac_cv_prog_STRIP+:} false; then :
3011   $as_echo_n "(cached) " >&6
3012 else
3013   if test -n "$STRIP"; then
3014   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3015 else
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3017 for as_dir in $PATH
3018 do
3019   IFS=$as_save_IFS
3020   test -z "$as_dir" && as_dir=.
3021     for ac_exec_ext in '' $ac_executable_extensions; do
3022   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3023     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3024     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3025     break 2
3026   fi
3027 done
3028   done
3029 IFS=$as_save_IFS
3030
3031 fi
3032 fi
3033 STRIP=$ac_cv_prog_STRIP
3034 if test -n "$STRIP"; then
3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3036 $as_echo "$STRIP" >&6; }
3037 else
3038   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3039 $as_echo "no" >&6; }
3040 fi
3041
3042
3043 fi
3044 if test -z "$ac_cv_prog_STRIP"; then
3045   ac_ct_STRIP=$STRIP
3046   # Extract the first word of "strip", so it can be a program name with args.
3047 set dummy strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3051   $as_echo_n "(cached) " >&6
3052 else
3053   if test -n "$ac_ct_STRIP"; then
3054   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3058 do
3059   IFS=$as_save_IFS
3060   test -z "$as_dir" && as_dir=.
3061     for ac_exec_ext in '' $ac_executable_extensions; do
3062   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3063     ac_cv_prog_ac_ct_STRIP="strip"
3064     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065     break 2
3066   fi
3067 done
3068   done
3069 IFS=$as_save_IFS
3070
3071 fi
3072 fi
3073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3074 if test -n "$ac_ct_STRIP"; then
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3076 $as_echo "$ac_ct_STRIP" >&6; }
3077 else
3078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3080 fi
3081
3082   if test "x$ac_ct_STRIP" = x; then
3083     STRIP=":"
3084   else
3085     case $cross_compiling:$ac_tool_warned in
3086 yes:)
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3088 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3089 ac_tool_warned=yes ;;
3090 esac
3091     STRIP=$ac_ct_STRIP
3092   fi
3093 else
3094   STRIP="$ac_cv_prog_STRIP"
3095 fi
3096
3097 fi
3098 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3099
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3101 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3102 if test -z "$MKDIR_P"; then
3103   if ${ac_cv_path_mkdir+:} false; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3108 do
3109   IFS=$as_save_IFS
3110   test -z "$as_dir" && as_dir=.
3111     for ac_prog in mkdir gmkdir; do
3112          for ac_exec_ext in '' $ac_executable_extensions; do
3113            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3114            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3115              'mkdir (GNU coreutils) '* | \
3116              'mkdir (coreutils) '* | \
3117              'mkdir (fileutils) '4.1*)
3118                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3119                break 3;;
3120            esac
3121          done
3122        done
3123   done
3124 IFS=$as_save_IFS
3125
3126 fi
3127
3128   test -d ./--version && rmdir ./--version
3129   if test "${ac_cv_path_mkdir+set}" = set; then
3130     MKDIR_P="$ac_cv_path_mkdir -p"
3131   else
3132     # As a last resort, use the slow shell script.  Don't cache a
3133     # value for MKDIR_P within a source directory, because that will
3134     # break other packages using the cache if that directory is
3135     # removed, or if the value is a relative name.
3136     MKDIR_P="$ac_install_sh -d"
3137   fi
3138 fi
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3140 $as_echo "$MKDIR_P" >&6; }
3141
3142 for ac_prog in gawk mawk nawk awk
3143 do
3144   # Extract the first word of "$ac_prog", so it can be a program name with args.
3145 set dummy $ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_AWK+:} false; then :
3149   $as_echo_n "(cached) " >&6
3150 else
3151   if test -n "$AWK"; then
3152   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157   IFS=$as_save_IFS
3158   test -z "$as_dir" && as_dir=.
3159     for ac_exec_ext in '' $ac_executable_extensions; do
3160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161     ac_cv_prog_AWK="$ac_prog"
3162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163     break 2
3164   fi
3165 done
3166   done
3167 IFS=$as_save_IFS
3168
3169 fi
3170 fi
3171 AWK=$ac_cv_prog_AWK
3172 if test -n "$AWK"; then
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3174 $as_echo "$AWK" >&6; }
3175 else
3176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3178 fi
3179
3180
3181   test -n "$AWK" && break
3182 done
3183
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3185 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3186 set x ${MAKE-make}
3187 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3188 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   cat >conftest.make <<\_ACEOF
3192 SHELL = /bin/sh
3193 all:
3194         @echo '@@@%%%=$(MAKE)=@@@%%%'
3195 _ACEOF
3196 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3197 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3198   *@@@%%%=?*=@@@%%%*)
3199     eval ac_cv_prog_make_${ac_make}_set=yes;;
3200   *)
3201     eval ac_cv_prog_make_${ac_make}_set=no;;
3202 esac
3203 rm -f conftest.make
3204 fi
3205 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3207 $as_echo "yes" >&6; }
3208   SET_MAKE=
3209 else
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3211 $as_echo "no" >&6; }
3212   SET_MAKE="MAKE=${MAKE-make}"
3213 fi
3214
3215 rm -rf .tst 2>/dev/null
3216 mkdir .tst 2>/dev/null
3217 if test -d .tst; then
3218   am__leading_dot=.
3219 else
3220   am__leading_dot=_
3221 fi
3222 rmdir .tst 2>/dev/null
3223
3224 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3225   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3226   # is not polluted with repeated "-I."
3227   am__isrc=' -I$(srcdir)'
3228   # test to see if srcdir already configured
3229   if test -f $srcdir/config.status; then
3230     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3231   fi
3232 fi
3233
3234 # test whether we have cygpath
3235 if test -z "$CYGPATH_W"; then
3236   if (cygpath --version) >/dev/null 2>/dev/null; then
3237     CYGPATH_W='cygpath -w'
3238   else
3239     CYGPATH_W=echo
3240   fi
3241 fi
3242
3243
3244 # Define the identity of the package.
3245  PACKAGE='libffi'
3246  VERSION='3.0.12-rc0'
3247
3248
3249 cat >>confdefs.h <<_ACEOF
3250 #define PACKAGE "$PACKAGE"
3251 _ACEOF
3252
3253
3254 cat >>confdefs.h <<_ACEOF
3255 #define VERSION "$VERSION"
3256 _ACEOF
3257
3258 # Some tools Automake needs.
3259
3260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3261
3262
3263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3264
3265
3266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3267
3268
3269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3270
3271
3272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3273
3274 # For better backward compatibility.  To be removed once Automake 1.9.x
3275 # dies out for good.  For more background, see:
3276 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3277 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3278 mkdir_p='$(MKDIR_P)'
3279
3280 # We need awk for the "check" target.  The system "awk" is bad on
3281 # some platforms.
3282 # Always define AMTAR for backward compatibility.  Yes, it's still used
3283 # in the wild :-(  We should find a proper way to deprecate it ...
3284 AMTAR='$${TAR-tar}'
3285
3286 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3287
3288
3289
3290
3291
3292
3293 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3294 # We must force CC to /not/ be precious variables; otherwise
3295 # the wrong, non-multilib-adjusted value will be used in multilibs.
3296 # As a side effect, we have to subst CFLAGS ourselves.
3297 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3298 # defaults of its own if none are provided.
3299
3300
3301
3302 save_CFLAGS=$CFLAGS
3303 ac_ext=c
3304 ac_cpp='$CPP $CPPFLAGS'
3305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314   $as_echo_n "(cached) " >&6
3315 else
3316   if test -n "$CC"; then
3317   ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322   IFS=$as_save_IFS
3323   test -z "$as_dir" && as_dir=.
3324     for ac_exec_ext in '' $ac_executable_extensions; do
3325   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328     break 2
3329   fi
3330 done
3331   done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 if test -z "$ac_cv_prog_CC"; then
3348   ac_ct_CC=$CC
3349   # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$ac_ct_CC"; then
3357   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3366     ac_cv_prog_ac_ct_CC="gcc"
3367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371   done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385   if test "x$ac_ct_CC" = x; then
3386     CC=""
3387   else
3388     case $cross_compiling:$ac_tool_warned in
3389 yes:)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned=yes ;;
3393 esac
3394     CC=$ac_ct_CC
3395   fi
3396 else
3397   CC="$ac_cv_prog_CC"
3398 fi
3399
3400 if test -z "$CC"; then
3401           if test -n "$ac_tool_prefix"; then
3402     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy ${ac_tool_prefix}cc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407   $as_echo_n "(cached) " >&6
3408 else
3409   if test -n "$CC"; then
3410   ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415   IFS=$as_save_IFS
3416   test -z "$as_dir" && as_dir=.
3417     for ac_exec_ext in '' $ac_executable_extensions; do
3418   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419     ac_cv_prog_CC="${ac_tool_prefix}cc"
3420     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421     break 2
3422   fi
3423 done
3424   done
3425 IFS=$as_save_IFS
3426
3427 fi
3428 fi
3429 CC=$ac_cv_prog_CC
3430 if test -n "$CC"; then
3431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3433 else
3434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3436 fi
3437
3438
3439   fi
3440 fi
3441 if test -z "$CC"; then
3442   # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false; then :
3447   $as_echo_n "(cached) " >&6
3448 else
3449   if test -n "$CC"; then
3450   ac_cv_prog_CC="$CC" # Let the user override the test.
3451 else
3452   ac_prog_rejected=no
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3454 for as_dir in $PATH
3455 do
3456   IFS=$as_save_IFS
3457   test -z "$as_dir" && as_dir=.
3458     for ac_exec_ext in '' $ac_executable_extensions; do
3459   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461        ac_prog_rejected=yes
3462        continue
3463      fi
3464     ac_cv_prog_CC="cc"
3465     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466     break 2
3467   fi
3468 done
3469   done
3470 IFS=$as_save_IFS
3471
3472 if test $ac_prog_rejected = yes; then
3473   # We found a bogon in the path, so make sure we never use it.
3474   set dummy $ac_cv_prog_CC
3475   shift
3476   if test $# != 0; then
3477     # We chose a different compiler from the bogus one.
3478     # However, it has the same basename, so the bogon will be chosen
3479     # first if we set CC to just the basename; use the full file name.
3480     shift
3481     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3482   fi
3483 fi
3484 fi
3485 fi
3486 CC=$ac_cv_prog_CC
3487 if test -n "$CC"; then
3488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3490 else
3491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3493 fi
3494
3495
3496 fi
3497 if test -z "$CC"; then
3498   if test -n "$ac_tool_prefix"; then
3499   for ac_prog in cl.exe
3500   do
3501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 for as_dir in $PATH
3513 do
3514   IFS=$as_save_IFS
3515   test -z "$as_dir" && as_dir=.
3516     for ac_exec_ext in '' $ac_executable_extensions; do
3517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3518     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3520     break 2
3521   fi
3522 done
3523   done
3524 IFS=$as_save_IFS
3525
3526 fi
3527 fi
3528 CC=$ac_cv_prog_CC
3529 if test -n "$CC"; then
3530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3532 else
3533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3535 fi
3536
3537
3538     test -n "$CC" && break
3539   done
3540 fi
3541 if test -z "$CC"; then
3542   ac_ct_CC=$CC
3543   for ac_prog in cl.exe
3544 do
3545   # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy $ac_prog; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550   $as_echo_n "(cached) " >&6
3551 else
3552   if test -n "$ac_ct_CC"; then
3553   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558   IFS=$as_save_IFS
3559   test -z "$as_dir" && as_dir=.
3560     for ac_exec_ext in '' $ac_executable_extensions; do
3561   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562     ac_cv_prog_ac_ct_CC="$ac_prog"
3563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564     break 2
3565   fi
3566 done
3567   done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3576 else
3577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581
3582   test -n "$ac_ct_CC" && break
3583 done
3584
3585   if test "x$ac_ct_CC" = x; then
3586     CC=""
3587   else
3588     case $cross_compiling:$ac_tool_warned in
3589 yes:)
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned=yes ;;
3593 esac
3594     CC=$ac_ct_CC
3595   fi
3596 fi
3597
3598 fi
3599
3600
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $? "no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3605
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3608 set X $ac_compile
3609 ac_compiler=$2
3610 for ac_option in --version -v -V -qversion; do
3611   { { ac_try="$ac_compiler $ac_option >&5"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3619   ac_status=$?
3620   if test -s conftest.err; then
3621     sed '10a\
3622 ... rest of stderr output deleted ...
3623          10q' conftest.err >conftest.er1
3624     cat conftest.er1 >&5
3625   fi
3626   rm -f conftest.er1 conftest.err
3627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628   test $ac_status = 0; }
3629 done
3630
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h.  */
3633
3634 int
3635 main ()
3636 {
3637
3638   ;
3639   return 0;
3640 }
3641 _ACEOF
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3646 # of exeext.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3650
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3653
3654 ac_rmfiles=
3655 for ac_file in $ac_files
3656 do
3657   case $ac_file in
3658     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3660   esac
3661 done
3662 rm -f $ac_rmfiles
3663
3664 if { { ac_try="$ac_link_default"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671   (eval "$ac_link_default") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674   test $ac_status = 0; }; then :
3675   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3679 # Autoconf.
3680 for ac_file in $ac_files ''
3681 do
3682   test -f "$ac_file" || continue
3683   case $ac_file in
3684     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3685         ;;
3686     [ab].out )
3687         # We found the default executable, but exeext='' is most
3688         # certainly right.
3689         break;;
3690     *.* )
3691         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3692         then :; else
3693            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3694         fi
3695         # We set ac_cv_exeext here because the later test for it is not
3696         # safe: cross compilers may not add the suffix if given an `-o'
3697         # argument, so we may need to know it at that point already.
3698         # Even if this section looks crufty: it has the advantage of
3699         # actually working.
3700         break;;
3701     * )
3702         break;;
3703   esac
3704 done
3705 test "$ac_cv_exeext" = no && ac_cv_exeext=
3706
3707 else
3708   ac_file=''
3709 fi
3710 if test -z "$ac_file"; then :
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3715
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error 77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3720 else
3721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3723 fi
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext=$ac_cv_exeext
3729
3730 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3731 ac_clean_files=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try="$ac_link"
3735 case "(($ac_try" in
3736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737   *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741   (eval "$ac_link") 2>&5
3742   ac_status=$?
3743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744   test $ac_status = 0; }; then :
3745   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3746 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3748 # `rm'.
3749 for ac_file in conftest.exe conftest conftest.*; do
3750   test -f "$ac_file" || continue
3751   case $ac_file in
3752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3753     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3754           break;;
3755     * ) break;;
3756   esac
3757 done
3758 else
3759   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3763 fi
3764 rm -f conftest conftest$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3767
3768 rm -f conftest.$ac_ext
3769 EXEEXT=$ac_cv_exeext
3770 ac_exeext=$EXEEXT
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h.  */
3773 #include <stdio.h>
3774 int
3775 main ()
3776 {
3777 FILE *f = fopen ("conftest.out", "w");
3778  return ferror (f) || fclose (f) != 0;
3779
3780   ;
3781   return 0;
3782 }
3783 _ACEOF
3784 ac_clean_files="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run.  If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790   { { ac_try="$ac_link"
3791 case "(($ac_try" in
3792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793   *) ac_try_echo=$ac_try;;
3794 esac
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797   (eval "$ac_link") 2>&5
3798   ac_status=$?
3799   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800   test $ac_status = 0; }
3801   if { ac_try='./conftest$ac_cv_exeext'
3802   { { case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808   (eval "$ac_try") 2>&5
3809   ac_status=$?
3810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811   test $ac_status = 0; }; }; then
3812     cross_compiling=no
3813   else
3814     if test "$cross_compiling" = maybe; then
3815         cross_compiling=yes
3816     else
3817         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $? "cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3822     fi
3823   fi
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3827
3828 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3829 ac_clean_files=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false; then :
3833   $as_echo_n "(cached) " >&6
3834 else
3835   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h.  */
3837
3838 int
3839 main ()
3840 {
3841
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try="$ac_compile"
3848 case "(($ac_try" in
3849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850   *) ac_try_echo=$ac_try;;
3851 esac
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854   (eval "$ac_compile") 2>&5
3855   ac_status=$?
3856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857   test $ac_status = 0; }; then :
3858   for ac_file in conftest.o conftest.obj conftest.*; do
3859   test -f "$ac_file" || continue;
3860   case $ac_file in
3861     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3863        break;;
3864   esac
3865 done
3866 else
3867   $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 fi
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3876 fi
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3880 ac_objext=$OBJEXT
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884   $as_echo_n "(cached) " >&6
3885 else
3886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h.  */
3888
3889 int
3890 main ()
3891 {
3892 #ifndef __GNUC__
3893        choke me
3894 #endif
3895
3896   ;
3897   return 0;
3898 }
3899 _ACEOF
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901   ac_compiler_gnu=yes
3902 else
3903   ac_compiler_gnu=no
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3907
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3912   GCC=yes
3913 else
3914   GCC=
3915 fi
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921   $as_echo_n "(cached) " >&6
3922 else
3923   ac_save_c_werror_flag=$ac_c_werror_flag
3924    ac_c_werror_flag=yes
3925    ac_cv_prog_cc_g=no
3926    CFLAGS="-g"
3927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h.  */
3929
3930 int
3931 main ()
3932 {
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 if ac_fn_c_try_compile "$LINENO"; then :
3939   ac_cv_prog_cc_g=yes
3940 else
3941   CFLAGS=""
3942       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h.  */
3944
3945 int
3946 main ()
3947 {
3948
3949   ;
3950   return 0;
3951 }
3952 _ACEOF
3953 if ac_fn_c_try_compile "$LINENO"; then :
3954
3955 else
3956   ac_c_werror_flag=$ac_save_c_werror_flag
3957          CFLAGS="-g"
3958          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h.  */
3960
3961 int
3962 main ()
3963 {
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970   ac_cv_prog_cc_g=yes
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 fi
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977    ac_c_werror_flag=$ac_save_c_werror_flag
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982   CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984   if test "$GCC" = yes; then
3985     CFLAGS="-g -O2"
3986   else
3987     CFLAGS="-g"
3988   fi
3989 else
3990   if test "$GCC" = yes; then
3991     CFLAGS="-O2"
3992   else
3993     CFLAGS=
3994   fi
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999   $as_echo_n "(cached) " >&6
4000 else
4001   ac_cv_prog_cc_c89=no
4002 ac_save_CC=$CC
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h.  */
4005 #include <stdarg.h>
4006 #include <stdio.h>
4007 struct stat;
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4012      char **p;
4013      int i;
4014 {
4015   return p[i];
4016 }
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4018 {
4019   char *s;
4020   va_list v;
4021   va_start (v,p);
4022   s = g (p, va_arg (v,int));
4023   va_end (v);
4024   return s;
4025 }
4026
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4028    function prototypes and stuff, but not '\xHH' hex character constants.
4029    These don't provoke an error unfortunately, instead are silently treated
4030    as 'x'.  The following induces an error, until -std is added to get
4031    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4032    array size at least.  It's necessary to write '\x00'==0 to get something
4033    that's true only with -std.  */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4035
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037    inside strings and character constants.  */
4038 #define FOO(x) 'x'
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4040
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4045 int argc;
4046 char **argv;
4047 int
4048 main ()
4049 {
4050 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4051   ;
4052   return 0;
4053 }
4054 _ACEOF
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4057 do
4058   CC="$ac_save_CC $ac_arg"
4059   if ac_fn_c_try_compile "$LINENO"; then :
4060   ac_cv_prog_cc_c89=$ac_arg
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext
4063   test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4067
4068 fi
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4071   x)
4072     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 $as_echo "none needed" >&6; } ;;
4074   xno)
4075     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 $as_echo "unsupported" >&6; } ;;
4077   *)
4078     CC="$CC $ac_cv_prog_cc_c89"
4079     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4082 if test "x$ac_cv_prog_cc_c89" != xno; then :
4083
4084 fi
4085
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4091 DEPDIR="${am__leading_dot}deps"
4092
4093 ac_config_commands="$ac_config_commands depfiles"
4094
4095
4096 am_make=${MAKE-make}
4097 cat > confinc << 'END'
4098 am__doit:
4099         @echo this is the am__doit target
4100 .PHONY: am__doit
4101 END
4102 # If we don't find an include directive, just comment out the code.
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4104 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4105 am__include="#"
4106 am__quote=
4107 _am_result=none
4108 # First try GNU make style include.
4109 echo "include confinc" > confmf
4110 # Ignore all kinds of additional output from 'make'.
4111 case `$am_make -s -f confmf 2> /dev/null` in #(
4112 *the\ am__doit\ target*)
4113   am__include=include
4114   am__quote=
4115   _am_result=GNU
4116   ;;
4117 esac
4118 # Now try BSD make style include.
4119 if test "$am__include" = "#"; then
4120    echo '.include "confinc"' > confmf
4121    case `$am_make -s -f confmf 2> /dev/null` in #(
4122    *the\ am__doit\ target*)
4123      am__include=.include
4124      am__quote="\""
4125      _am_result=BSD
4126      ;;
4127    esac
4128 fi
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4132 $as_echo "$_am_result" >&6; }
4133 rm -f confinc confmf
4134
4135 # Check whether --enable-dependency-tracking was given.
4136 if test "${enable_dependency_tracking+set}" = set; then :
4137   enableval=$enable_dependency_tracking;
4138 fi
4139
4140 if test "x$enable_dependency_tracking" != xno; then
4141   am_depcomp="$ac_aux_dir/depcomp"
4142   AMDEPBACKSLASH='\'
4143   am__nodep='_no'
4144 fi
4145  if test "x$enable_dependency_tracking" != xno; then
4146   AMDEP_TRUE=
4147   AMDEP_FALSE='#'
4148 else
4149   AMDEP_TRUE='#'
4150   AMDEP_FALSE=
4151 fi
4152
4153
4154
4155 depcc="$CC"   am_compiler_list=
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4158 $as_echo_n "checking dependency style of $depcc... " >&6; }
4159 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4163   # We make a subdir and do the tests there.  Otherwise we can end up
4164   # making bogus files that we don't know about and never remove.  For
4165   # instance it was reported that on HP-UX the gcc test will end up
4166   # making a dummy file named 'D' -- because '-MD' means "put the output
4167   # in D".
4168   rm -rf conftest.dir
4169   mkdir conftest.dir
4170   # Copy depcomp to subdir because otherwise we won't find it if we're
4171   # using a relative directory.
4172   cp "$am_depcomp" conftest.dir
4173   cd conftest.dir
4174   # We will build objects and dependencies in a subdirectory because
4175   # it helps to detect inapplicable dependency modes.  For instance
4176   # both Tru64's cc and ICC support -MD to output dependencies as a
4177   # side effect of compilation, but ICC will put the dependencies in
4178   # the current directory while Tru64 will put them in the object
4179   # directory.
4180   mkdir sub
4181
4182   am_cv_CC_dependencies_compiler_type=none
4183   if test "$am_compiler_list" = ""; then
4184      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4185   fi
4186   am__universal=false
4187   case " $depcc " in #(
4188      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4189      esac
4190
4191   for depmode in $am_compiler_list; do
4192     # Setup a source with many dependencies, because some compilers
4193     # like to wrap large dependency lists on column 80 (with \), and
4194     # we should not choose a depcomp mode which is confused by this.
4195     #
4196     # We need to recreate these files for each test, as the compiler may
4197     # overwrite some of them when testing with obscure command lines.
4198     # This happens at least with the AIX C compiler.
4199     : > sub/conftest.c
4200     for i in 1 2 3 4 5 6; do
4201       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4202       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4203       # Solaris 10 /bin/sh.
4204       echo '/* dummy */' > sub/conftst$i.h
4205     done
4206     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4207
4208     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4209     # mode.  It turns out that the SunPro C++ compiler does not properly
4210     # handle '-M -o', and we need to detect this.  Also, some Intel
4211     # versions had trouble with output in subdirs.
4212     am__obj=sub/conftest.${OBJEXT-o}
4213     am__minus_obj="-o $am__obj"
4214     case $depmode in
4215     gcc)
4216       # This depmode causes a compiler race in universal mode.
4217       test "$am__universal" = false || continue
4218       ;;
4219     nosideeffect)
4220       # After this tag, mechanisms are not by side-effect, so they'll
4221       # only be used when explicitly requested.
4222       if test "x$enable_dependency_tracking" = xyes; then
4223         continue
4224       else
4225         break
4226       fi
4227       ;;
4228     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4229       # This compiler won't grok '-c -o', but also, the minuso test has
4230       # not run yet.  These depmodes are late enough in the game, and
4231       # so weak that their functioning should not be impacted.
4232       am__obj=conftest.${OBJEXT-o}
4233       am__minus_obj=
4234       ;;
4235     none) break ;;
4236     esac
4237     if depmode=$depmode \
4238        source=sub/conftest.c object=$am__obj \
4239        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4240        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4241          >/dev/null 2>conftest.err &&
4242        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4243        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4244        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4245        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4246       # icc doesn't choke on unknown options, it will just issue warnings
4247       # or remarks (even with -Werror).  So we grep stderr for any message
4248       # that says an option was ignored or not supported.
4249       # When given -MP, icc 7.0 and 7.1 complain thusly:
4250       #   icc: Command line warning: ignoring option '-M'; no argument required
4251       # The diagnosis changed in icc 8.0:
4252       #   icc: Command line remark: option '-MP' not supported
4253       if (grep 'ignoring option' conftest.err ||
4254           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4255         am_cv_CC_dependencies_compiler_type=$depmode
4256         break
4257       fi
4258     fi
4259   done
4260
4261   cd ..
4262   rm -rf conftest.dir
4263 else
4264   am_cv_CC_dependencies_compiler_type=none
4265 fi
4266
4267 fi
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4269 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4270 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4271
4272  if
4273   test "x$enable_dependency_tracking" != xno \
4274   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4275   am__fastdepCC_TRUE=
4276   am__fastdepCC_FALSE='#'
4277 else
4278   am__fastdepCC_TRUE='#'
4279   am__fastdepCC_FALSE=
4280 fi
4281
4282
4283 CFLAGS=$save_CFLAGS
4284
4285
4286
4287
4288
4289 # By default we simply use the C compiler to build assembly code.
4290
4291 test "${CCAS+set}" = set || CCAS=$CC
4292 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4293
4294
4295
4296 depcc="$CCAS"   am_compiler_list=
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4299 $as_echo_n "checking dependency style of $depcc... " >&6; }
4300 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4301   $as_echo_n "(cached) " >&6
4302 else
4303   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4304   # We make a subdir and do the tests there.  Otherwise we can end up
4305   # making bogus files that we don't know about and never remove.  For
4306   # instance it was reported that on HP-UX the gcc test will end up
4307   # making a dummy file named 'D' -- because '-MD' means "put the output
4308   # in D".
4309   rm -rf conftest.dir
4310   mkdir conftest.dir
4311   # Copy depcomp to subdir because otherwise we won't find it if we're
4312   # using a relative directory.
4313   cp "$am_depcomp" conftest.dir
4314   cd conftest.dir
4315   # We will build objects and dependencies in a subdirectory because
4316   # it helps to detect inapplicable dependency modes.  For instance
4317   # both Tru64's cc and ICC support -MD to output dependencies as a
4318   # side effect of compilation, but ICC will put the dependencies in
4319   # the current directory while Tru64 will put them in the object
4320   # directory.
4321   mkdir sub
4322
4323   am_cv_CCAS_dependencies_compiler_type=none
4324   if test "$am_compiler_list" = ""; then
4325      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4326   fi
4327   am__universal=false
4328
4329
4330   for depmode in $am_compiler_list; do
4331     # Setup a source with many dependencies, because some compilers
4332     # like to wrap large dependency lists on column 80 (with \), and
4333     # we should not choose a depcomp mode which is confused by this.
4334     #
4335     # We need to recreate these files for each test, as the compiler may
4336     # overwrite some of them when testing with obscure command lines.
4337     # This happens at least with the AIX C compiler.
4338     : > sub/conftest.c
4339     for i in 1 2 3 4 5 6; do
4340       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4341       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4342       # Solaris 10 /bin/sh.
4343       echo '/* dummy */' > sub/conftst$i.h
4344     done
4345     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4346
4347     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4348     # mode.  It turns out that the SunPro C++ compiler does not properly
4349     # handle '-M -o', and we need to detect this.  Also, some Intel
4350     # versions had trouble with output in subdirs.
4351     am__obj=sub/conftest.${OBJEXT-o}
4352     am__minus_obj="-o $am__obj"
4353     case $depmode in
4354     gcc)
4355       # This depmode causes a compiler race in universal mode.
4356       test "$am__universal" = false || continue
4357       ;;
4358     nosideeffect)
4359       # After this tag, mechanisms are not by side-effect, so they'll
4360       # only be used when explicitly requested.
4361       if test "x$enable_dependency_tracking" = xyes; then
4362         continue
4363       else
4364         break
4365       fi
4366       ;;
4367     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4368       # This compiler won't grok '-c -o', but also, the minuso test has
4369       # not run yet.  These depmodes are late enough in the game, and
4370       # so weak that their functioning should not be impacted.
4371       am__obj=conftest.${OBJEXT-o}
4372       am__minus_obj=
4373       ;;
4374     none) break ;;
4375     esac
4376     if depmode=$depmode \
4377        source=sub/conftest.c object=$am__obj \
4378        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4379        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4380          >/dev/null 2>conftest.err &&
4381        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4382        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4383        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4384        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4385       # icc doesn't choke on unknown options, it will just issue warnings
4386       # or remarks (even with -Werror).  So we grep stderr for any message
4387       # that says an option was ignored or not supported.
4388       # When given -MP, icc 7.0 and 7.1 complain thusly:
4389       #   icc: Command line warning: ignoring option '-M'; no argument required
4390       # The diagnosis changed in icc 8.0:
4391       #   icc: Command line remark: option '-MP' not supported
4392       if (grep 'ignoring option' conftest.err ||
4393           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4394         am_cv_CCAS_dependencies_compiler_type=$depmode
4395         break
4396       fi
4397     fi
4398   done
4399
4400   cd ..
4401   rm -rf conftest.dir
4402 else
4403   am_cv_CCAS_dependencies_compiler_type=none
4404 fi
4405
4406 fi
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4408 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4409 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4410
4411  if
4412   test "x$enable_dependency_tracking" != xno \
4413   && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4414   am__fastdepCCAS_TRUE=
4415   am__fastdepCCAS_FALSE='#'
4416 else
4417   am__fastdepCCAS_TRUE='#'
4418   am__fastdepCCAS_FALSE=
4419 fi
4420
4421
4422 if test "x$CC" != xcc; then
4423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4424 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4425 else
4426   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4427 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4428 fi
4429 set dummy $CC; ac_cc=`$as_echo "$2" |
4430                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4431 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4432   $as_echo_n "(cached) " >&6
4433 else
4434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4435 /* end confdefs.h.  */
4436
4437 int
4438 main ()
4439 {
4440
4441   ;
4442   return 0;
4443 }
4444 _ACEOF
4445 # Make sure it works both with $CC and with simple cc.
4446 # We do the test twice because some compilers refuse to overwrite an
4447 # existing .o file with -o, though they will create one.
4448 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4449 rm -f conftest2.*
4450 if { { case "(($ac_try" in
4451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452   *) ac_try_echo=$ac_try;;
4453 esac
4454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456   (eval "$ac_try") 2>&5
4457   ac_status=$?
4458   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459   test $ac_status = 0; } &&
4460    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4462   *) ac_try_echo=$ac_try;;
4463 esac
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466   (eval "$ac_try") 2>&5
4467   ac_status=$?
4468   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4469   test $ac_status = 0; };
4470 then
4471   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4472   if test "x$CC" != xcc; then
4473     # Test first that cc exists at all.
4474     if { ac_try='cc -c conftest.$ac_ext >&5'
4475   { { case "(($ac_try" in
4476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477   *) ac_try_echo=$ac_try;;
4478 esac
4479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480 $as_echo "$ac_try_echo"; } >&5
4481   (eval "$ac_try") 2>&5
4482   ac_status=$?
4483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4484   test $ac_status = 0; }; }; then
4485       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4486       rm -f conftest2.*
4487       if { { case "(($ac_try" in
4488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489   *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 $as_echo "$ac_try_echo"; } >&5
4493   (eval "$ac_try") 2>&5
4494   ac_status=$?
4495   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496   test $ac_status = 0; } &&
4497          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499   *) ac_try_echo=$ac_try;;
4500 esac
4501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503   (eval "$ac_try") 2>&5
4504   ac_status=$?
4505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506   test $ac_status = 0; };
4507       then
4508         # cc works too.
4509         :
4510       else
4511         # cc exists but doesn't like -o.
4512         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4513       fi
4514     fi
4515   fi
4516 else
4517   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4518 fi
4519 rm -f core conftest*
4520
4521 fi
4522 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4524 $as_echo "yes" >&6; }
4525 else
4526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527 $as_echo "no" >&6; }
4528
4529 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4530
4531 fi
4532
4533 # FIXME: we rely on the cache variable name because
4534 # there is no other way.
4535 set dummy $CC
4536 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4537 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4538 if test "$am_t" != yes; then
4539    # Losing compiler, so override with the script.
4540    # FIXME: It is wrong to rewrite CC.
4541    # But if we don't then we get into trouble of one sort or another.
4542    # A longer-term fix would be to have automake use am__CC in this case,
4543    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4544    CC="$am_aux_dir/compile $CC"
4545 fi
4546
4547
4548 case `pwd` in
4549   *\ * | *\     *)
4550     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4551 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4552 esac
4553
4554
4555
4556 macro_version='2.4.2'
4557 macro_revision='1.3337'
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 ltmain="$ac_aux_dir/ltmain.sh"
4572
4573 # Backslashify metacharacters that are still active within
4574 # double-quoted strings.
4575 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4576
4577 # Same as above, but do not quote variable references.
4578 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4579
4580 # Sed substitution to delay expansion of an escaped shell variable in a
4581 # double_quote_subst'ed string.
4582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4583
4584 # Sed substitution to delay expansion of an escaped single quote.
4585 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4586
4587 # Sed substitution to avoid accidental globbing in evaled expressions
4588 no_glob_subst='s/\*/\\\*/g'
4589
4590 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4591 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4592 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4593
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4595 $as_echo_n "checking how to print strings... " >&6; }
4596 # Test print first, because it will be a builtin if present.
4597 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4598    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4599   ECHO='print -r --'
4600 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4601   ECHO='printf %s\n'
4602 else
4603   # Use this function as a fallback that always works.
4604   func_fallback_echo ()
4605   {
4606     eval 'cat <<_LTECHO_EOF
4607 $1
4608 _LTECHO_EOF'
4609   }
4610   ECHO='func_fallback_echo'
4611 fi
4612
4613 # func_echo_all arg...
4614 # Invoke $ECHO with all args, space-separated.
4615 func_echo_all ()
4616 {
4617     $ECHO ""
4618 }
4619
4620 case "$ECHO" in
4621   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4622 $as_echo "printf" >&6; } ;;
4623   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4624 $as_echo "print -r" >&6; } ;;
4625   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4626 $as_echo "cat" >&6; } ;;
4627 esac
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4643 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4644 if ${ac_cv_path_SED+:} false; then :
4645   $as_echo_n "(cached) " >&6
4646 else
4647             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4648      for ac_i in 1 2 3 4 5 6 7; do
4649        ac_script="$ac_script$as_nl$ac_script"
4650      done
4651      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4652      { ac_script=; unset ac_script;}
4653      if test -z "$SED"; then
4654   ac_path_SED_found=false
4655   # Loop through the user's path and test for each of PROGNAME-LIST
4656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4658 do
4659   IFS=$as_save_IFS
4660   test -z "$as_dir" && as_dir=.
4661     for ac_prog in sed gsed; do
4662     for ac_exec_ext in '' $ac_executable_extensions; do
4663       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4664       as_fn_executable_p "$ac_path_SED" || continue
4665 # Check for GNU ac_path_SED and select it if it is found.
4666   # Check for GNU $ac_path_SED
4667 case `"$ac_path_SED" --version 2>&1` in
4668 *GNU*)
4669   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4670 *)
4671   ac_count=0
4672   $as_echo_n 0123456789 >"conftest.in"
4673   while :
4674   do
4675     cat "conftest.in" "conftest.in" >"conftest.tmp"
4676     mv "conftest.tmp" "conftest.in"
4677     cp "conftest.in" "conftest.nl"
4678     $as_echo '' >> "conftest.nl"
4679     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4680     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4681     as_fn_arith $ac_count + 1 && ac_count=$as_val
4682     if test $ac_count -gt ${ac_path_SED_max-0}; then
4683       # Best one so far, save it but keep looking for a better one
4684       ac_cv_path_SED="$ac_path_SED"
4685       ac_path_SED_max=$ac_count
4686     fi
4687     # 10*(2^10) chars as input seems more than enough
4688     test $ac_count -gt 10 && break
4689   done
4690   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4691 esac
4692
4693       $ac_path_SED_found && break 3
4694     done
4695   done
4696   done
4697 IFS=$as_save_IFS
4698   if test -z "$ac_cv_path_SED"; then
4699     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4700   fi
4701 else
4702   ac_cv_path_SED=$SED
4703 fi
4704
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4707 $as_echo "$ac_cv_path_SED" >&6; }
4708  SED="$ac_cv_path_SED"
4709   rm -f conftest.sed
4710
4711 test -z "$SED" && SED=sed
4712 Xsed="$SED -e 1s/^X//"
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4725 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4726 if ${ac_cv_path_GREP+:} false; then :
4727   $as_echo_n "(cached) " >&6
4728 else
4729   if test -z "$GREP"; then
4730   ac_path_GREP_found=false
4731   # Loop through the user's path and test for each of PROGNAME-LIST
4732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737     for ac_prog in grep ggrep; do
4738     for ac_exec_ext in '' $ac_executable_extensions; do
4739       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4740       as_fn_executable_p "$ac_path_GREP" || continue
4741 # Check for GNU ac_path_GREP and select it if it is found.
4742   # Check for GNU $ac_path_GREP
4743 case `"$ac_path_GREP" --version 2>&1` in
4744 *GNU*)
4745   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4746 *)
4747   ac_count=0
4748   $as_echo_n 0123456789 >"conftest.in"
4749   while :
4750   do
4751     cat "conftest.in" "conftest.in" >"conftest.tmp"
4752     mv "conftest.tmp" "conftest.in"
4753     cp "conftest.in" "conftest.nl"
4754     $as_echo 'GREP' >> "conftest.nl"
4755     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757     as_fn_arith $ac_count + 1 && ac_count=$as_val
4758     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4759       # Best one so far, save it but keep looking for a better one
4760       ac_cv_path_GREP="$ac_path_GREP"
4761       ac_path_GREP_max=$ac_count
4762     fi
4763     # 10*(2^10) chars as input seems more than enough
4764     test $ac_count -gt 10 && break
4765   done
4766   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 esac
4768
4769       $ac_path_GREP_found && break 3
4770     done
4771   done
4772   done
4773 IFS=$as_save_IFS
4774   if test -z "$ac_cv_path_GREP"; then
4775     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776   fi
4777 else
4778   ac_cv_path_GREP=$GREP
4779 fi
4780
4781 fi
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4783 $as_echo "$ac_cv_path_GREP" >&6; }
4784  GREP="$ac_cv_path_GREP"
4785
4786
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4788 $as_echo_n "checking for egrep... " >&6; }
4789 if ${ac_cv_path_EGREP+:} false; then :
4790   $as_echo_n "(cached) " >&6
4791 else
4792   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4793    then ac_cv_path_EGREP="$GREP -E"
4794    else
4795      if test -z "$EGREP"; then
4796   ac_path_EGREP_found=false
4797   # Loop through the user's path and test for each of PROGNAME-LIST
4798   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800 do
4801   IFS=$as_save_IFS
4802   test -z "$as_dir" && as_dir=.
4803     for ac_prog in egrep; do
4804     for ac_exec_ext in '' $ac_executable_extensions; do
4805       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4806       as_fn_executable_p "$ac_path_EGREP" || continue
4807 # Check for GNU ac_path_EGREP and select it if it is found.
4808   # Check for GNU $ac_path_EGREP
4809 case `"$ac_path_EGREP" --version 2>&1` in
4810 *GNU*)
4811   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4812 *)
4813   ac_count=0
4814   $as_echo_n 0123456789 >"conftest.in"
4815   while :
4816   do
4817     cat "conftest.in" "conftest.in" >"conftest.tmp"
4818     mv "conftest.tmp" "conftest.in"
4819     cp "conftest.in" "conftest.nl"
4820     $as_echo 'EGREP' >> "conftest.nl"
4821     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823     as_fn_arith $ac_count + 1 && ac_count=$as_val
4824     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4825       # Best one so far, save it but keep looking for a better one
4826       ac_cv_path_EGREP="$ac_path_EGREP"
4827       ac_path_EGREP_max=$ac_count
4828     fi
4829     # 10*(2^10) chars as input seems more than enough
4830     test $ac_count -gt 10 && break
4831   done
4832   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833 esac
4834
4835       $ac_path_EGREP_found && break 3
4836     done
4837   done
4838   done
4839 IFS=$as_save_IFS
4840   if test -z "$ac_cv_path_EGREP"; then
4841     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842   fi
4843 else
4844   ac_cv_path_EGREP=$EGREP
4845 fi
4846
4847    fi
4848 fi
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4850 $as_echo "$ac_cv_path_EGREP" >&6; }
4851  EGREP="$ac_cv_path_EGREP"
4852
4853
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4855 $as_echo_n "checking for fgrep... " >&6; }
4856 if ${ac_cv_path_FGREP+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4860    then ac_cv_path_FGREP="$GREP -F"
4861    else
4862      if test -z "$FGREP"; then
4863   ac_path_FGREP_found=false
4864   # Loop through the user's path and test for each of PROGNAME-LIST
4865   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 do
4868   IFS=$as_save_IFS
4869   test -z "$as_dir" && as_dir=.
4870     for ac_prog in fgrep; do
4871     for ac_exec_ext in '' $ac_executable_extensions; do
4872       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4873       as_fn_executable_p "$ac_path_FGREP" || continue
4874 # Check for GNU ac_path_FGREP and select it if it is found.
4875   # Check for GNU $ac_path_FGREP
4876 case `"$ac_path_FGREP" --version 2>&1` in
4877 *GNU*)
4878   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4879 *)
4880   ac_count=0
4881   $as_echo_n 0123456789 >"conftest.in"
4882   while :
4883   do
4884     cat "conftest.in" "conftest.in" >"conftest.tmp"
4885     mv "conftest.tmp" "conftest.in"
4886     cp "conftest.in" "conftest.nl"
4887     $as_echo 'FGREP' >> "conftest.nl"
4888     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890     as_fn_arith $ac_count + 1 && ac_count=$as_val
4891     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4892       # Best one so far, save it but keep looking for a better one
4893       ac_cv_path_FGREP="$ac_path_FGREP"
4894       ac_path_FGREP_max=$ac_count
4895     fi
4896     # 10*(2^10) chars as input seems more than enough
4897     test $ac_count -gt 10 && break
4898   done
4899   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 esac
4901
4902       $ac_path_FGREP_found && break 3
4903     done
4904   done
4905   done
4906 IFS=$as_save_IFS
4907   if test -z "$ac_cv_path_FGREP"; then
4908     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909   fi
4910 else
4911   ac_cv_path_FGREP=$FGREP
4912 fi
4913
4914    fi
4915 fi
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4917 $as_echo "$ac_cv_path_FGREP" >&6; }
4918  FGREP="$ac_cv_path_FGREP"
4919
4920
4921 test -z "$GREP" && GREP=grep
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941 # Check whether --with-gnu-ld was given.
4942 if test "${with_gnu_ld+set}" = set; then :
4943   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4944 else
4945   with_gnu_ld=no
4946 fi
4947
4948 ac_prog=ld
4949 if test "$GCC" = yes; then
4950   # Check if gcc -print-prog-name=ld gives a path.
4951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4952 $as_echo_n "checking for ld used by $CC... " >&6; }
4953   case $host in
4954   *-*-mingw*)
4955     # gcc leaves a trailing carriage return which upsets mingw
4956     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4957   *)
4958     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4959   esac
4960   case $ac_prog in
4961     # Accept absolute paths.
4962     [\\/]* | ?:[\\/]*)
4963       re_direlt='/[^/][^/]*/\.\./'
4964       # Canonicalize the pathname of ld
4965       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4966       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4967         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4968       done
4969       test -z "$LD" && LD="$ac_prog"
4970       ;;
4971   "")
4972     # If it fails, then pretend we aren't using GCC.
4973     ac_prog=ld
4974     ;;
4975   *)
4976     # If it is relative, then search for the first ld in PATH.
4977     with_gnu_ld=unknown
4978     ;;
4979   esac
4980 elif test "$with_gnu_ld" = yes; then
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4982 $as_echo_n "checking for GNU ld... " >&6; }
4983 else
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4985 $as_echo_n "checking for non-GNU ld... " >&6; }
4986 fi
4987 if ${lt_cv_path_LD+:} false; then :
4988   $as_echo_n "(cached) " >&6
4989 else
4990   if test -z "$LD"; then
4991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4992   for ac_dir in $PATH; do
4993     IFS="$lt_save_ifs"
4994     test -z "$ac_dir" && ac_dir=.
4995     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4996       lt_cv_path_LD="$ac_dir/$ac_prog"
4997       # Check to see if the program is GNU ld.  I'd rather use --version,
4998       # but apparently some variants of GNU ld only accept -v.
4999       # Break only if it was the GNU/non-GNU ld that we prefer.
5000       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5001       *GNU* | *'with BFD'*)
5002         test "$with_gnu_ld" != no && break
5003         ;;
5004       *)
5005         test "$with_gnu_ld" != yes && break
5006         ;;
5007       esac
5008     fi
5009   done
5010   IFS="$lt_save_ifs"
5011 else
5012   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5013 fi
5014 fi
5015
5016 LD="$lt_cv_path_LD"
5017 if test -n "$LD"; then
5018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5019 $as_echo "$LD" >&6; }
5020 else
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5022 $as_echo "no" >&6; }
5023 fi
5024 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5027 if ${lt_cv_prog_gnu_ld+:} false; then :
5028   $as_echo_n "(cached) " >&6
5029 else
5030   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5031 case `$LD -v 2>&1 </dev/null` in
5032 *GNU* | *'with BFD'*)
5033   lt_cv_prog_gnu_ld=yes
5034   ;;
5035 *)
5036   lt_cv_prog_gnu_ld=no
5037   ;;
5038 esac
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5042 with_gnu_ld=$lt_cv_prog_gnu_ld
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5053 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5054 if ${lt_cv_path_NM+:} false; then :
5055   $as_echo_n "(cached) " >&6
5056 else
5057   if test -n "$NM"; then
5058   # Let the user override the test.
5059   lt_cv_path_NM="$NM"
5060 else
5061   lt_nm_to_check="${ac_tool_prefix}nm"
5062   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5063     lt_nm_to_check="$lt_nm_to_check nm"
5064   fi
5065   for lt_tmp_nm in $lt_nm_to_check; do
5066     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5067     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5068       IFS="$lt_save_ifs"
5069       test -z "$ac_dir" && ac_dir=.
5070       tmp_nm="$ac_dir/$lt_tmp_nm"
5071       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5072         # Check to see if the nm accepts a BSD-compat flag.
5073         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5074         #   nm: unknown option "B" ignored
5075         # Tru64's nm complains that /dev/null is an invalid object file
5076         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5077         */dev/null* | *'Invalid file or object type'*)
5078           lt_cv_path_NM="$tmp_nm -B"
5079           break
5080           ;;
5081         *)
5082           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5083           */dev/null*)
5084             lt_cv_path_NM="$tmp_nm -p"
5085             break
5086             ;;
5087           *)
5088             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5089             continue # so that we can try to find one that supports BSD flags
5090             ;;
5091           esac
5092           ;;
5093         esac
5094       fi
5095     done
5096     IFS="$lt_save_ifs"
5097   done
5098   : ${lt_cv_path_NM=no}
5099 fi
5100 fi
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5102 $as_echo "$lt_cv_path_NM" >&6; }
5103 if test "$lt_cv_path_NM" != "no"; then
5104   NM="$lt_cv_path_NM"
5105 else
5106   # Didn't find any BSD compatible name lister, look for dumpbin.
5107   if test -n "$DUMPBIN"; then :
5108     # Let the user override the test.
5109   else
5110     if test -n "$ac_tool_prefix"; then
5111   for ac_prog in dumpbin "link -dump"
5112   do
5113     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_DUMPBIN+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   if test -n "$DUMPBIN"; then
5121   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 DUMPBIN=$ac_cv_prog_DUMPBIN
5141 if test -n "$DUMPBIN"; then
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5143 $as_echo "$DUMPBIN" >&6; }
5144 else
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150     test -n "$DUMPBIN" && break
5151   done
5152 fi
5153 if test -z "$DUMPBIN"; then
5154   ac_ct_DUMPBIN=$DUMPBIN
5155   for ac_prog in dumpbin "link -dump"
5156 do
5157   # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if test -n "$ac_ct_DUMPBIN"; then
5165   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5166 else
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179   done
5180 IFS=$as_save_IFS
5181
5182 fi
5183 fi
5184 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5185 if test -n "$ac_ct_DUMPBIN"; then
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5187 $as_echo "$ac_ct_DUMPBIN" >&6; }
5188 else
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194   test -n "$ac_ct_DUMPBIN" && break
5195 done
5196
5197   if test "x$ac_ct_DUMPBIN" = x; then
5198     DUMPBIN=":"
5199   else
5200     case $cross_compiling:$ac_tool_warned in
5201 yes:)
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5205 esac
5206     DUMPBIN=$ac_ct_DUMPBIN
5207   fi
5208 fi
5209
5210     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5211     *COFF*)
5212       DUMPBIN="$DUMPBIN -symbols"
5213       ;;
5214     *)
5215       DUMPBIN=:
5216       ;;
5217     esac
5218   fi
5219
5220   if test "$DUMPBIN" != ":"; then
5221     NM="$DUMPBIN"
5222   fi
5223 fi
5224 test -z "$NM" && NM=nm
5225
5226
5227
5228
5229
5230
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5232 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5233 if ${lt_cv_nm_interface+:} false; then :
5234   $as_echo_n "(cached) " >&6
5235 else
5236   lt_cv_nm_interface="BSD nm"
5237   echo "int some_variable = 0;" > conftest.$ac_ext
5238   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5239   (eval "$ac_compile" 2>conftest.err)
5240   cat conftest.err >&5
5241   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5242   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5243   cat conftest.err >&5
5244   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5245   cat conftest.out >&5
5246   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5247     lt_cv_nm_interface="MS dumpbin"
5248   fi
5249   rm -f conftest*
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5252 $as_echo "$lt_cv_nm_interface" >&6; }
5253
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5255 $as_echo_n "checking whether ln -s works... " >&6; }
5256 LN_S=$as_ln_s
5257 if test "$LN_S" = "ln -s"; then
5258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5260 else
5261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5262 $as_echo "no, using $LN_S" >&6; }
5263 fi
5264
5265 # find the maximum length of command line arguments
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5267 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5268 if ${lt_cv_sys_max_cmd_len+:} false; then :
5269   $as_echo_n "(cached) " >&6
5270 else
5271     i=0
5272   teststring="ABCD"
5273
5274   case $build_os in
5275   msdosdjgpp*)
5276     # On DJGPP, this test can blow up pretty badly due to problems in libc
5277     # (any single argument exceeding 2000 bytes causes a buffer overrun
5278     # during glob expansion).  Even if it were fixed, the result of this
5279     # check would be larger than it should be.
5280     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5281     ;;
5282
5283   gnu*)
5284     # Under GNU Hurd, this test is not required because there is
5285     # no limit to the length of command line arguments.
5286     # Libtool will interpret -1 as no limit whatsoever
5287     lt_cv_sys_max_cmd_len=-1;
5288     ;;
5289
5290   cygwin* | mingw* | cegcc*)
5291     # On Win9x/ME, this test blows up -- it succeeds, but takes
5292     # about 5 minutes as the teststring grows exponentially.
5293     # Worse, since 9x/ME are not pre-emptively multitasking,
5294     # you end up with a "frozen" computer, even though with patience
5295     # the test eventually succeeds (with a max line length of 256k).
5296     # Instead, let's just punt: use the minimum linelength reported by
5297     # all of the supported platforms: 8192 (on NT/2K/XP).
5298     lt_cv_sys_max_cmd_len=8192;
5299     ;;
5300
5301   mint*)
5302     # On MiNT this can take a long time and run out of memory.
5303     lt_cv_sys_max_cmd_len=8192;
5304     ;;
5305
5306   amigaos*)
5307     # On AmigaOS with pdksh, this test takes hours, literally.
5308     # So we just punt and use a minimum line length of 8192.
5309     lt_cv_sys_max_cmd_len=8192;
5310     ;;
5311
5312   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5313     # This has been around since 386BSD, at least.  Likely further.
5314     if test -x /sbin/sysctl; then
5315       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5316     elif test -x /usr/sbin/sysctl; then
5317       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5318     else
5319       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5320     fi
5321     # And add a safety zone
5322     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5324     ;;
5325
5326   interix*)
5327     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5328     lt_cv_sys_max_cmd_len=196608
5329     ;;
5330
5331   os2*)
5332     # The test takes a long time on OS/2.
5333     lt_cv_sys_max_cmd_len=8192
5334     ;;
5335
5336   osf*)
5337     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5338     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5339     # nice to cause kernel panics so lets avoid the loop below.
5340     # First set a reasonable default.
5341     lt_cv_sys_max_cmd_len=16384
5342     #
5343     if test -x /sbin/sysconfig; then
5344       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5345         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5346       esac
5347     fi
5348     ;;
5349   sco3.2v5*)
5350     lt_cv_sys_max_cmd_len=102400
5351     ;;
5352   sysv5* | sco5v6* | sysv4.2uw2*)
5353     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5354     if test -n "$kargmax"; then
5355       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5356     else
5357       lt_cv_sys_max_cmd_len=32768
5358     fi
5359     ;;
5360   *)
5361     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5362     if test -n "$lt_cv_sys_max_cmd_len"; then
5363       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365     else
5366       # Make teststring a little bigger before we do anything with it.
5367       # a 1K string should be a reasonable start.
5368       for i in 1 2 3 4 5 6 7 8 ; do
5369         teststring=$teststring$teststring
5370       done
5371       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5372       # If test is not a shell built-in, we'll probably end up computing a
5373       # maximum length that is only half of the actual maximum length, but
5374       # we can't tell.
5375       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5376                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5377               test $i != 17 # 1/2 MB should be enough
5378       do
5379         i=`expr $i + 1`
5380         teststring=$teststring$teststring
5381       done
5382       # Only check the string length outside the loop.
5383       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5384       teststring=
5385       # Add a significant safety factor because C++ compilers can tack on
5386       # massive amounts of additional arguments before passing them to the
5387       # linker.  It appears as though 1/2 is a usable value.
5388       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5389     fi
5390     ;;
5391   esac
5392
5393 fi
5394
5395 if test -n $lt_cv_sys_max_cmd_len ; then
5396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5397 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5398 else
5399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5400 $as_echo "none" >&6; }
5401 fi
5402 max_cmd_len=$lt_cv_sys_max_cmd_len
5403
5404
5405
5406
5407
5408
5409 : ${CP="cp -f"}
5410 : ${MV="mv -f"}
5411 : ${RM="rm -f"}
5412
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5414 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5415 # Try some XSI features
5416 xsi_shell=no
5417 ( _lt_dummy="a/b/c"
5418   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5419       = c,a/b,b/c, \
5420     && eval 'test $(( 1 + 1 )) -eq 2 \
5421     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5422   && xsi_shell=yes
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5424 $as_echo "$xsi_shell" >&6; }
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5428 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5429 lt_shell_append=no
5430 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5431     >/dev/null 2>&1 \
5432   && lt_shell_append=yes
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5434 $as_echo "$lt_shell_append" >&6; }
5435
5436
5437 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5438   lt_unset=unset
5439 else
5440   lt_unset=false
5441 fi
5442
5443
5444
5445
5446
5447 # test EBCDIC or ASCII
5448 case `echo X|tr X '\101'` in
5449  A) # ASCII based system
5450     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5451   lt_SP2NL='tr \040 \012'
5452   lt_NL2SP='tr \015\012 \040\040'
5453   ;;
5454  *) # EBCDIC based system
5455   lt_SP2NL='tr \100 \n'
5456   lt_NL2SP='tr \r\n \100\100'
5457   ;;
5458 esac
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5469 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5470 if ${lt_cv_to_host_file_cmd+:} false; then :
5471   $as_echo_n "(cached) " >&6
5472 else
5473   case $host in
5474   *-*-mingw* )
5475     case $build in
5476       *-*-mingw* ) # actually msys
5477         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5478         ;;
5479       *-*-cygwin* )
5480         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5481         ;;
5482       * ) # otherwise, assume *nix
5483         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5484         ;;
5485     esac
5486     ;;
5487   *-*-cygwin* )
5488     case $build in
5489       *-*-mingw* ) # actually msys
5490         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5491         ;;
5492       *-*-cygwin* )
5493         lt_cv_to_host_file_cmd=func_convert_file_noop
5494         ;;
5495       * ) # otherwise, assume *nix
5496         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5497         ;;
5498     esac
5499     ;;
5500   * ) # unhandled hosts (and "normal" native builds)
5501     lt_cv_to_host_file_cmd=func_convert_file_noop
5502     ;;
5503 esac
5504
5505 fi
5506
5507 to_host_file_cmd=$lt_cv_to_host_file_cmd
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5509 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5510
5511
5512
5513
5514
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5516 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5517 if ${lt_cv_to_tool_file_cmd+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   #assume ordinary cross tools, or native build.
5521 lt_cv_to_tool_file_cmd=func_convert_file_noop
5522 case $host in
5523   *-*-mingw* )
5524     case $build in
5525       *-*-mingw* ) # actually msys
5526         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5527         ;;
5528     esac
5529     ;;
5530 esac
5531
5532 fi
5533
5534 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5536 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5537
5538
5539
5540
5541
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5543 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5544 if ${lt_cv_ld_reload_flag+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547   lt_cv_ld_reload_flag='-r'
5548 fi
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5550 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5551 reload_flag=$lt_cv_ld_reload_flag
5552 case $reload_flag in
5553 "" | " "*) ;;
5554 *) reload_flag=" $reload_flag" ;;
5555 esac
5556 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5557 case $host_os in
5558   cygwin* | mingw* | pw32* | cegcc*)
5559     if test "$GCC" != yes; then
5560       reload_cmds=false
5561     fi
5562     ;;
5563   darwin*)
5564     if test "$GCC" = yes; then
5565       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5566     else
5567       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5568     fi
5569     ;;
5570 esac
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580 if test -n "$ac_tool_prefix"; then
5581   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5582 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_prog_OBJDUMP+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   if test -n "$OBJDUMP"; then
5589   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5590 else
5591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 for as_dir in $PATH
5593 do
5594   IFS=$as_save_IFS
5595   test -z "$as_dir" && as_dir=.
5596     for ac_exec_ext in '' $ac_executable_extensions; do
5597   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5598     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5600     break 2
5601   fi
5602 done
5603   done
5604 IFS=$as_save_IFS
5605
5606 fi
5607 fi
5608 OBJDUMP=$ac_cv_prog_OBJDUMP
5609 if test -n "$OBJDUMP"; then
5610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5611 $as_echo "$OBJDUMP" >&6; }
5612 else
5613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5614 $as_echo "no" >&6; }
5615 fi
5616
5617
5618 fi
5619 if test -z "$ac_cv_prog_OBJDUMP"; then
5620   ac_ct_OBJDUMP=$OBJDUMP
5621   # Extract the first word of "objdump", so it can be a program name with args.
5622 set dummy objdump; ac_word=$2
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5624 $as_echo_n "checking for $ac_word... " >&6; }
5625 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5626   $as_echo_n "(cached) " >&6
5627 else
5628   if test -n "$ac_ct_OBJDUMP"; then
5629   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5630 else
5631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5632 for as_dir in $PATH
5633 do
5634   IFS=$as_save_IFS
5635   test -z "$as_dir" && as_dir=.
5636     for ac_exec_ext in '' $ac_executable_extensions; do
5637   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5638     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640     break 2
5641   fi
5642 done
5643   done
5644 IFS=$as_save_IFS
5645
5646 fi
5647 fi
5648 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5649 if test -n "$ac_ct_OBJDUMP"; then
5650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5651 $as_echo "$ac_ct_OBJDUMP" >&6; }
5652 else
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5654 $as_echo "no" >&6; }
5655 fi
5656
5657   if test "x$ac_ct_OBJDUMP" = x; then
5658     OBJDUMP="false"
5659   else
5660     case $cross_compiling:$ac_tool_warned in
5661 yes:)
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5664 ac_tool_warned=yes ;;
5665 esac
5666     OBJDUMP=$ac_ct_OBJDUMP
5667   fi
5668 else
5669   OBJDUMP="$ac_cv_prog_OBJDUMP"
5670 fi
5671
5672 test -z "$OBJDUMP" && OBJDUMP=objdump
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5683 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5684 if ${lt_cv_deplibs_check_method+:} false; then :
5685   $as_echo_n "(cached) " >&6
5686 else
5687   lt_cv_file_magic_cmd='$MAGIC_CMD'
5688 lt_cv_file_magic_test_file=
5689 lt_cv_deplibs_check_method='unknown'
5690 # Need to set the preceding variable on all platforms that support
5691 # interlibrary dependencies.
5692 # 'none' -- dependencies not supported.
5693 # `unknown' -- same as none, but documents that we really don't know.
5694 # 'pass_all' -- all dependencies passed with no checks.
5695 # 'test_compile' -- check by making test program.
5696 # 'file_magic [[regex]]' -- check by looking for files in library path
5697 # which responds to the $file_magic_cmd with a given extended regex.
5698 # If you have `file' or equivalent on your system and you're not sure
5699 # whether `pass_all' will *always* work, you probably want this one.
5700
5701 case $host_os in
5702 aix[4-9]*)
5703   lt_cv_deplibs_check_method=pass_all
5704   ;;
5705
5706 beos*)
5707   lt_cv_deplibs_check_method=pass_all
5708   ;;
5709
5710 bsdi[45]*)
5711   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5712   lt_cv_file_magic_cmd='/usr/bin/file -L'
5713   lt_cv_file_magic_test_file=/shlib/libc.so
5714   ;;
5715
5716 cygwin*)
5717   # func_win32_libid is a shell function defined in ltmain.sh
5718   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5719   lt_cv_file_magic_cmd='func_win32_libid'
5720   ;;
5721
5722 mingw* | pw32*)
5723   # Base MSYS/MinGW do not provide the 'file' command needed by
5724   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5725   # unless we find 'file', for example because we are cross-compiling.
5726   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5727   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5728     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5729     lt_cv_file_magic_cmd='func_win32_libid'
5730   else
5731     # Keep this pattern in sync with the one in func_win32_libid.
5732     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5733     lt_cv_file_magic_cmd='$OBJDUMP -f'
5734   fi
5735   ;;
5736
5737 cegcc*)
5738   # use the weaker test based on 'objdump'. See mingw*.
5739   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5740   lt_cv_file_magic_cmd='$OBJDUMP -f'
5741   ;;
5742
5743 darwin* | rhapsody*)
5744   lt_cv_deplibs_check_method=pass_all
5745   ;;
5746
5747 freebsd* | dragonfly*)
5748   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5749     case $host_cpu in
5750     i*86 )
5751       # Not sure whether the presence of OpenBSD here was a mistake.
5752       # Let's accept both of them until this is cleared up.
5753       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5754       lt_cv_file_magic_cmd=/usr/bin/file
5755       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5756       ;;
5757     esac
5758   else
5759     lt_cv_deplibs_check_method=pass_all
5760   fi
5761   ;;
5762
5763 gnu*)
5764   lt_cv_deplibs_check_method=pass_all
5765   ;;
5766
5767 haiku*)
5768   lt_cv_deplibs_check_method=pass_all
5769   ;;
5770
5771 hpux10.20* | hpux11*)
5772   lt_cv_file_magic_cmd=/usr/bin/file
5773   case $host_cpu in
5774   ia64*)
5775     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5776     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5777     ;;
5778   hppa*64*)
5779     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]'
5780     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5781     ;;
5782   *)
5783     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5784     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5785     ;;
5786   esac
5787   ;;
5788
5789 interix[3-9]*)
5790   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5791   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5792   ;;
5793
5794 irix5* | irix6* | nonstopux*)
5795   case $LD in
5796   *-32|*"-32 ") libmagic=32-bit;;
5797   *-n32|*"-n32 ") libmagic=N32;;
5798   *-64|*"-64 ") libmagic=64-bit;;
5799   *) libmagic=never-match;;
5800   esac
5801   lt_cv_deplibs_check_method=pass_all
5802   ;;
5803
5804 # This must be glibc/ELF.
5805 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5806   lt_cv_deplibs_check_method=pass_all
5807   ;;
5808
5809 netbsd*)
5810   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5811     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5812   else
5813     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5814   fi
5815   ;;
5816
5817 newos6*)
5818   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5819   lt_cv_file_magic_cmd=/usr/bin/file
5820   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5821   ;;
5822
5823 *nto* | *qnx*)
5824   lt_cv_deplibs_check_method=pass_all
5825   ;;
5826
5827 openbsd*)
5828   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5829     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5830   else
5831     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5832   fi
5833   ;;
5834
5835 osf3* | osf4* | osf5*)
5836   lt_cv_deplibs_check_method=pass_all
5837   ;;
5838
5839 rdos*)
5840   lt_cv_deplibs_check_method=pass_all
5841   ;;
5842
5843 solaris*)
5844   lt_cv_deplibs_check_method=pass_all
5845   ;;
5846
5847 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5848   lt_cv_deplibs_check_method=pass_all
5849   ;;
5850
5851 sysv4 | sysv4.3*)
5852   case $host_vendor in
5853   motorola)
5854     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]'
5855     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5856     ;;
5857   ncr)
5858     lt_cv_deplibs_check_method=pass_all
5859     ;;
5860   sequent)
5861     lt_cv_file_magic_cmd='/bin/file'
5862     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5863     ;;
5864   sni)
5865     lt_cv_file_magic_cmd='/bin/file'
5866     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5867     lt_cv_file_magic_test_file=/lib/libc.so
5868     ;;
5869   siemens)
5870     lt_cv_deplibs_check_method=pass_all
5871     ;;
5872   pc)
5873     lt_cv_deplibs_check_method=pass_all
5874     ;;
5875   esac
5876   ;;
5877
5878 tpf*)
5879   lt_cv_deplibs_check_method=pass_all
5880   ;;
5881 esac
5882
5883 fi
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5885 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5886
5887 file_magic_glob=
5888 want_nocaseglob=no
5889 if test "$build" = "$host"; then
5890   case $host_os in
5891   mingw* | pw32*)
5892     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5893       want_nocaseglob=yes
5894     else
5895       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5896     fi
5897     ;;
5898   esac
5899 fi
5900
5901 file_magic_cmd=$lt_cv_file_magic_cmd
5902 deplibs_check_method=$lt_cv_deplibs_check_method
5903 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926 if test -n "$ac_tool_prefix"; then
5927   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5928 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5930 $as_echo_n "checking for $ac_word... " >&6; }
5931 if ${ac_cv_prog_DLLTOOL+:} false; then :
5932   $as_echo_n "(cached) " >&6
5933 else
5934   if test -n "$DLLTOOL"; then
5935   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942     for ac_exec_ext in '' $ac_executable_extensions; do
5943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949   done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 DLLTOOL=$ac_cv_prog_DLLTOOL
5955 if test -n "$DLLTOOL"; then
5956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5957 $as_echo "$DLLTOOL" >&6; }
5958 else
5959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 $as_echo "no" >&6; }
5961 fi
5962
5963
5964 fi
5965 if test -z "$ac_cv_prog_DLLTOOL"; then
5966   ac_ct_DLLTOOL=$DLLTOOL
5967   # Extract the first word of "dlltool", so it can be a program name with args.
5968 set dummy dlltool; ac_word=$2
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 $as_echo_n "checking for $ac_word... " >&6; }
5971 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5972   $as_echo_n "(cached) " >&6
5973 else
5974   if test -n "$ac_ct_DLLTOOL"; then
5975   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5976 else
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978 for as_dir in $PATH
5979 do
5980   IFS=$as_save_IFS
5981   test -z "$as_dir" && as_dir=.
5982     for ac_exec_ext in '' $ac_executable_extensions; do
5983   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5985     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986     break 2
5987   fi
5988 done
5989   done
5990 IFS=$as_save_IFS
5991
5992 fi
5993 fi
5994 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5995 if test -n "$ac_ct_DLLTOOL"; then
5996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5997 $as_echo "$ac_ct_DLLTOOL" >&6; }
5998 else
5999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000 $as_echo "no" >&6; }
6001 fi
6002
6003   if test "x$ac_ct_DLLTOOL" = x; then
6004     DLLTOOL="false"
6005   else
6006     case $cross_compiling:$ac_tool_warned in
6007 yes:)
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6010 ac_tool_warned=yes ;;
6011 esac
6012     DLLTOOL=$ac_ct_DLLTOOL
6013   fi
6014 else
6015   DLLTOOL="$ac_cv_prog_DLLTOOL"
6016 fi
6017
6018 test -z "$DLLTOOL" && DLLTOOL=dlltool
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6030 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6031 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   lt_cv_sharedlib_from_linklib_cmd='unknown'
6035
6036 case $host_os in
6037 cygwin* | mingw* | pw32* | cegcc*)
6038   # two different shell functions defined in ltmain.sh
6039   # decide which to use based on capabilities of $DLLTOOL
6040   case `$DLLTOOL --help 2>&1` in
6041   *--identify-strict*)
6042     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6043     ;;
6044   *)
6045     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6046     ;;
6047   esac
6048   ;;
6049 *)
6050   # fallback: assume linklib IS sharedlib
6051   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6052   ;;
6053 esac
6054
6055 fi
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6057 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6058 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6059 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6060
6061
6062
6063
6064
6065
6066
6067
6068 if test -n "$ac_tool_prefix"; then
6069   for ac_prog in ar
6070   do
6071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_AR+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$AR"; then
6079   ac_cv_prog_AR="$AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093   done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 AR=$ac_cv_prog_AR
6099 if test -n "$AR"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6101 $as_echo "$AR" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108     test -n "$AR" && break
6109   done
6110 fi
6111 if test -z "$AR"; then
6112   ac_ct_AR=$AR
6113   for ac_prog in ar
6114 do
6115   # Extract the first word of "$ac_prog", so it can be a program name with args.
6116 set dummy $ac_prog; ac_word=$2
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6118 $as_echo_n "checking for $ac_word... " >&6; }
6119 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   if test -n "$ac_ct_AR"; then
6123   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6124 else
6125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6126 for as_dir in $PATH
6127 do
6128   IFS=$as_save_IFS
6129   test -z "$as_dir" && as_dir=.
6130     for ac_exec_ext in '' $ac_executable_extensions; do
6131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6132     ac_cv_prog_ac_ct_AR="$ac_prog"
6133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6134     break 2
6135   fi
6136 done
6137   done
6138 IFS=$as_save_IFS
6139
6140 fi
6141 fi
6142 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6143 if test -n "$ac_ct_AR"; then
6144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6145 $as_echo "$ac_ct_AR" >&6; }
6146 else
6147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6148 $as_echo "no" >&6; }
6149 fi
6150
6151
6152   test -n "$ac_ct_AR" && break
6153 done
6154
6155   if test "x$ac_ct_AR" = x; then
6156     AR="false"
6157   else
6158     case $cross_compiling:$ac_tool_warned in
6159 yes:)
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6162 ac_tool_warned=yes ;;
6163 esac
6164     AR=$ac_ct_AR
6165   fi
6166 fi
6167
6168 : ${AR=ar}
6169 : ${AR_FLAGS=cru}
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6182 $as_echo_n "checking for archiver @FILE support... " >&6; }
6183 if ${lt_cv_ar_at_file+:} false; then :
6184   $as_echo_n "(cached) " >&6
6185 else
6186   lt_cv_ar_at_file=no
6187    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6188 /* end confdefs.h.  */
6189
6190 int
6191 main ()
6192 {
6193
6194   ;
6195   return 0;
6196 }
6197 _ACEOF
6198 if ac_fn_c_try_compile "$LINENO"; then :
6199   echo conftest.$ac_objext > conftest.lst
6200       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6201       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6202   (eval $lt_ar_try) 2>&5
6203   ac_status=$?
6204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6205   test $ac_status = 0; }
6206       if test "$ac_status" -eq 0; then
6207         # Ensure the archiver fails upon bogus file names.
6208         rm -f conftest.$ac_objext libconftest.a
6209         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6210   (eval $lt_ar_try) 2>&5
6211   ac_status=$?
6212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213   test $ac_status = 0; }
6214         if test "$ac_status" -ne 0; then
6215           lt_cv_ar_at_file=@
6216         fi
6217       fi
6218       rm -f conftest.* libconftest.a
6219
6220 fi
6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6222
6223 fi
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6225 $as_echo "$lt_cv_ar_at_file" >&6; }
6226
6227 if test "x$lt_cv_ar_at_file" = xno; then
6228   archiver_list_spec=
6229 else
6230   archiver_list_spec=$lt_cv_ar_at_file
6231 fi
6232
6233
6234
6235
6236
6237
6238
6239 if test -n "$ac_tool_prefix"; then
6240   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6241 set dummy ${ac_tool_prefix}strip; ac_word=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_STRIP+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   if test -n "$STRIP"; then
6248   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6249 else
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251 for as_dir in $PATH
6252 do
6253   IFS=$as_save_IFS
6254   test -z "$as_dir" && as_dir=.
6255     for ac_exec_ext in '' $ac_executable_extensions; do
6256   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6258     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6259     break 2
6260   fi
6261 done
6262   done
6263 IFS=$as_save_IFS
6264
6265 fi
6266 fi
6267 STRIP=$ac_cv_prog_STRIP
6268 if test -n "$STRIP"; then
6269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6270 $as_echo "$STRIP" >&6; }
6271 else
6272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6274 fi
6275
6276
6277 fi
6278 if test -z "$ac_cv_prog_STRIP"; then
6279   ac_ct_STRIP=$STRIP
6280   # Extract the first word of "strip", so it can be a program name with args.
6281 set dummy strip; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   if test -n "$ac_ct_STRIP"; then
6288   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293   IFS=$as_save_IFS
6294   test -z "$as_dir" && as_dir=.
6295     for ac_exec_ext in '' $ac_executable_extensions; do
6296   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297     ac_cv_prog_ac_ct_STRIP="strip"
6298     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299     break 2
6300   fi
6301 done
6302   done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6308 if test -n "$ac_ct_STRIP"; then
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6310 $as_echo "$ac_ct_STRIP" >&6; }
6311 else
6312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316   if test "x$ac_ct_STRIP" = x; then
6317     STRIP=":"
6318   else
6319     case $cross_compiling:$ac_tool_warned in
6320 yes:)
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6323 ac_tool_warned=yes ;;
6324 esac
6325     STRIP=$ac_ct_STRIP
6326   fi
6327 else
6328   STRIP="$ac_cv_prog_STRIP"
6329 fi
6330
6331 test -z "$STRIP" && STRIP=:
6332
6333
6334
6335
6336
6337
6338 if test -n "$ac_tool_prefix"; then
6339   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_RANLIB+:} false; then :
6344   $as_echo_n "(cached) " >&6
6345 else
6346   if test -n "$RANLIB"; then
6347   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6351 do
6352   IFS=$as_save_IFS
6353   test -z "$as_dir" && as_dir=.
6354     for ac_exec_ext in '' $ac_executable_extensions; do
6355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358     break 2
6359   fi
6360 done
6361   done
6362 IFS=$as_save_IFS
6363
6364 fi
6365 fi
6366 RANLIB=$ac_cv_prog_RANLIB
6367 if test -n "$RANLIB"; then
6368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6369 $as_echo "$RANLIB" >&6; }
6370 else
6371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6373 fi
6374
6375
6376 fi
6377 if test -z "$ac_cv_prog_RANLIB"; then
6378   ac_ct_RANLIB=$RANLIB
6379   # Extract the first word of "ranlib", so it can be a program name with args.
6380 set dummy ranlib; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6384   $as_echo_n "(cached) " >&6
6385 else
6386   if test -n "$ac_ct_RANLIB"; then
6387   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392   IFS=$as_save_IFS
6393   test -z "$as_dir" && as_dir=.
6394     for ac_exec_ext in '' $ac_executable_extensions; do
6395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396     ac_cv_prog_ac_ct_RANLIB="ranlib"
6397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398     break 2
6399   fi
6400 done
6401   done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6407 if test -n "$ac_ct_RANLIB"; then
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6409 $as_echo "$ac_ct_RANLIB" >&6; }
6410 else
6411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415   if test "x$ac_ct_RANLIB" = x; then
6416     RANLIB=":"
6417   else
6418     case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422 ac_tool_warned=yes ;;
6423 esac
6424     RANLIB=$ac_ct_RANLIB
6425   fi
6426 else
6427   RANLIB="$ac_cv_prog_RANLIB"
6428 fi
6429
6430 test -z "$RANLIB" && RANLIB=:
6431
6432
6433
6434
6435
6436
6437 # Determine commands to create old-style static archives.
6438 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6439 old_postinstall_cmds='chmod 644 $oldlib'
6440 old_postuninstall_cmds=
6441
6442 if test -n "$RANLIB"; then
6443   case $host_os in
6444   openbsd*)
6445     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6446     ;;
6447   *)
6448     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6449     ;;
6450   esac
6451   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6452 fi
6453
6454 case $host_os in
6455   darwin*)
6456     lock_old_archive_extraction=yes ;;
6457   *)
6458     lock_old_archive_extraction=no ;;
6459 esac
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
6498
6499 # If no C compiler was specified, use CC.
6500 LTCC=${LTCC-"$CC"}
6501
6502 # If no C compiler flags were specified, use CFLAGS.
6503 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6504
6505 # Allow CC to be a program name with arguments.
6506 compiler=$CC
6507
6508
6509 # Check for command to grab the raw symbol name followed by C symbol from nm.
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6511 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6512 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6513   $as_echo_n "(cached) " >&6
6514 else
6515
6516 # These are sane defaults that work on at least a few old systems.
6517 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6518
6519 # Character class describing NM global symbol codes.
6520 symcode='[BCDEGRST]'
6521
6522 # Regexp to match symbols that can be accessed directly from C.
6523 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6524
6525 # Define system-specific variables.
6526 case $host_os in
6527 aix*)
6528   symcode='[BCDT]'
6529   ;;
6530 cygwin* | mingw* | pw32* | cegcc*)
6531   symcode='[ABCDGISTW]'
6532   ;;
6533 hpux*)
6534   if test "$host_cpu" = ia64; then
6535     symcode='[ABCDEGRST]'
6536   fi
6537   ;;
6538 irix* | nonstopux*)
6539   symcode='[BCDEGRST]'
6540   ;;
6541 osf*)
6542   symcode='[BCDEGQRST]'
6543   ;;
6544 solaris*)
6545   symcode='[BDRT]'
6546   ;;
6547 sco3.2v5*)
6548   symcode='[DT]'
6549   ;;
6550 sysv4.2uw2*)
6551   symcode='[DT]'
6552   ;;
6553 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6554   symcode='[ABDT]'
6555   ;;
6556 sysv4)
6557   symcode='[DFNSTU]'
6558   ;;
6559 esac
6560
6561 # If we're using GNU nm, then use its standard symbol codes.
6562 case `$NM -V 2>&1` in
6563 *GNU* | *'with BFD'*)
6564   symcode='[ABCDGIRSTW]' ;;
6565 esac
6566
6567 # Transform an extracted symbol line into a proper C declaration.
6568 # Some systems (esp. on ia64) link data and code symbols differently,
6569 # so use this general approach.
6570 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6571
6572 # Transform an extracted symbol line into symbol name and symbol address
6573 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6574 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'"
6575
6576 # Handle CRLF in mingw tool chain
6577 opt_cr=
6578 case $build_os in
6579 mingw*)
6580   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6581   ;;
6582 esac
6583
6584 # Try without a prefix underscore, then with it.
6585 for ac_symprfx in "" "_"; do
6586
6587   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6588   symxfrm="\\1 $ac_symprfx\\2 \\2"
6589
6590   # Write the raw and C identifiers.
6591   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6592     # Fake it for dumpbin and say T for any non-static function
6593     # and D for any global variable.
6594     # Also find C++ and __fastcall symbols from MSVC++,
6595     # which start with @ or ?.
6596     lt_cv_sys_global_symbol_pipe="$AWK '"\
6597 "     {last_section=section; section=\$ 3};"\
6598 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6599 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6600 "     \$ 0!~/External *\|/{next};"\
6601 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6602 "     {if(hide[section]) next};"\
6603 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6604 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6605 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6606 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6607 "     ' prfx=^$ac_symprfx"
6608   else
6609     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6610   fi
6611   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6612
6613   # Check to see that the pipe works correctly.
6614   pipe_works=no
6615
6616   rm -f conftest*
6617   cat > conftest.$ac_ext <<_LT_EOF
6618 #ifdef __cplusplus
6619 extern "C" {
6620 #endif
6621 char nm_test_var;
6622 void nm_test_func(void);
6623 void nm_test_func(void){}
6624 #ifdef __cplusplus
6625 }
6626 #endif
6627 int main(){nm_test_var='a';nm_test_func();return(0);}
6628 _LT_EOF
6629
6630   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6631   (eval $ac_compile) 2>&5
6632   ac_status=$?
6633   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6634   test $ac_status = 0; }; then
6635     # Now try to grab the symbols.
6636     nlist=conftest.nm
6637     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6638   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6639   ac_status=$?
6640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6641   test $ac_status = 0; } && test -s "$nlist"; then
6642       # Try sorting and uniquifying the output.
6643       if sort "$nlist" | uniq > "$nlist"T; then
6644         mv -f "$nlist"T "$nlist"
6645       else
6646         rm -f "$nlist"T
6647       fi
6648
6649       # Make sure that we snagged all the symbols we need.
6650       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6651         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6652           cat <<_LT_EOF > conftest.$ac_ext
6653 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6654 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6655 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6656    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6657 # define LT_DLSYM_CONST
6658 #elif defined(__osf__)
6659 /* This system does not cope well with relocations in const data.  */
6660 # define LT_DLSYM_CONST
6661 #else
6662 # define LT_DLSYM_CONST const
6663 #endif
6664
6665 #ifdef __cplusplus
6666 extern "C" {
6667 #endif
6668
6669 _LT_EOF
6670           # Now generate the symbol file.
6671           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6672
6673           cat <<_LT_EOF >> conftest.$ac_ext
6674
6675 /* The mapping between symbol names and symbols.  */
6676 LT_DLSYM_CONST struct {
6677   const char *name;
6678   void       *address;
6679 }
6680 lt__PROGRAM__LTX_preloaded_symbols[] =
6681 {
6682   { "@PROGRAM@", (void *) 0 },
6683 _LT_EOF
6684           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6685           cat <<\_LT_EOF >> conftest.$ac_ext
6686   {0, (void *) 0}
6687 };
6688
6689 /* This works around a problem in FreeBSD linker */
6690 #ifdef FREEBSD_WORKAROUND
6691 static const void *lt_preloaded_setup() {
6692   return lt__PROGRAM__LTX_preloaded_symbols;
6693 }
6694 #endif
6695
6696 #ifdef __cplusplus
6697 }
6698 #endif
6699 _LT_EOF
6700           # Now try linking the two files.
6701           mv conftest.$ac_objext conftstm.$ac_objext
6702           lt_globsym_save_LIBS=$LIBS
6703           lt_globsym_save_CFLAGS=$CFLAGS
6704           LIBS="conftstm.$ac_objext"
6705           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6706           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6707   (eval $ac_link) 2>&5
6708   ac_status=$?
6709   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6710   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6711             pipe_works=yes
6712           fi
6713           LIBS=$lt_globsym_save_LIBS
6714           CFLAGS=$lt_globsym_save_CFLAGS
6715         else
6716           echo "cannot find nm_test_func in $nlist" >&5
6717         fi
6718       else
6719         echo "cannot find nm_test_var in $nlist" >&5
6720       fi
6721     else
6722       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6723     fi
6724   else
6725     echo "$progname: failed program was:" >&5
6726     cat conftest.$ac_ext >&5
6727   fi
6728   rm -rf conftest* conftst*
6729
6730   # Do not use the global_symbol_pipe unless it works.
6731   if test "$pipe_works" = yes; then
6732     break
6733   else
6734     lt_cv_sys_global_symbol_pipe=
6735   fi
6736 done
6737
6738 fi
6739
6740 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6741   lt_cv_sys_global_symbol_to_cdecl=
6742 fi
6743 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6745 $as_echo "failed" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6748 $as_echo "ok" >&6; }
6749 fi
6750
6751 # Response file support.
6752 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6753   nm_file_list_spec='@'
6754 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6755   nm_file_list_spec='@'
6756 fi
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
6783
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6785 $as_echo_n "checking for sysroot... " >&6; }
6786
6787 # Check whether --with-sysroot was given.
6788 if test "${with_sysroot+set}" = set; then :
6789   withval=$with_sysroot;
6790 else
6791   with_sysroot=no
6792 fi
6793
6794
6795 lt_sysroot=
6796 case ${with_sysroot} in #(
6797  yes)
6798    if test "$GCC" = yes; then
6799      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6800    fi
6801    ;; #(
6802  /*)
6803    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6804    ;; #(
6805  no|'')
6806    ;; #(
6807  *)
6808    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6809 $as_echo "${with_sysroot}" >&6; }
6810    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6811    ;;
6812 esac
6813
6814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6815 $as_echo "${lt_sysroot:-no}" >&6; }
6816
6817
6818
6819
6820
6821 # Check whether --enable-libtool-lock was given.
6822 if test "${enable_libtool_lock+set}" = set; then :
6823   enableval=$enable_libtool_lock;
6824 fi
6825
6826 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6827
6828 # Some flags need to be propagated to the compiler or linker for good
6829 # libtool support.
6830 case $host in
6831 ia64-*-hpux*)
6832   # Find out which ABI we are using.
6833   echo 'int i;' > conftest.$ac_ext
6834   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6835   (eval $ac_compile) 2>&5
6836   ac_status=$?
6837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6838   test $ac_status = 0; }; then
6839     case `/usr/bin/file conftest.$ac_objext` in
6840       *ELF-32*)
6841         HPUX_IA64_MODE="32"
6842         ;;
6843       *ELF-64*)
6844         HPUX_IA64_MODE="64"
6845         ;;
6846     esac
6847   fi
6848   rm -rf conftest*
6849   ;;
6850 *-*-irix6*)
6851   # Find out which ABI we are using.
6852   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6853   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854   (eval $ac_compile) 2>&5
6855   ac_status=$?
6856   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857   test $ac_status = 0; }; then
6858     if test "$lt_cv_prog_gnu_ld" = yes; then
6859       case `/usr/bin/file conftest.$ac_objext` in
6860         *32-bit*)
6861           LD="${LD-ld} -melf32bsmip"
6862           ;;
6863         *N32*)
6864           LD="${LD-ld} -melf32bmipn32"
6865           ;;
6866         *64-bit*)
6867           LD="${LD-ld} -melf64bmip"
6868         ;;
6869       esac
6870     else
6871       case `/usr/bin/file conftest.$ac_objext` in
6872         *32-bit*)
6873           LD="${LD-ld} -32"
6874           ;;
6875         *N32*)
6876           LD="${LD-ld} -n32"
6877           ;;
6878         *64-bit*)
6879           LD="${LD-ld} -64"
6880           ;;
6881       esac
6882     fi
6883   fi
6884   rm -rf conftest*
6885   ;;
6886
6887 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6888 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6889   # Find out which ABI we are using.
6890   echo 'int i;' > conftest.$ac_ext
6891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895   test $ac_status = 0; }; then
6896     case `/usr/bin/file conftest.o` in
6897       *32-bit*)
6898         case $host in
6899           x86_64-*kfreebsd*-gnu)
6900             LD="${LD-ld} -m elf_i386_fbsd"
6901             ;;
6902           x86_64-*linux*)
6903             case `/usr/bin/file conftest.o` in
6904               *x86-64*)
6905                  LD="${LD-ld} -m elf32_x86_64"
6906                  ;;
6907               *)
6908                  LD="${LD-ld} -m elf_i386"
6909                  ;;
6910             esac
6911             ;;
6912           ppc64-*linux*|powerpc64-*linux*)
6913             LD="${LD-ld} -m elf32ppclinux"
6914             ;;
6915           s390x-*linux*)
6916             LD="${LD-ld} -m elf_s390"
6917             ;;
6918           sparc64-*linux*)
6919             LD="${LD-ld} -m elf32_sparc"
6920             ;;
6921         esac
6922         ;;
6923       *64-bit*)
6924         case $host in
6925           x86_64-*kfreebsd*-gnu)
6926             LD="${LD-ld} -m elf_x86_64_fbsd"
6927             ;;
6928           x86_64-*linux*)
6929             LD="${LD-ld} -m elf_x86_64"
6930             ;;
6931           ppc*-*linux*|powerpc*-*linux*)
6932             LD="${LD-ld} -m elf64ppc"
6933             ;;
6934           s390*-*linux*|s390*-*tpf*)
6935             LD="${LD-ld} -m elf64_s390"
6936             ;;
6937           sparc*-*linux*)
6938             LD="${LD-ld} -m elf64_sparc"
6939             ;;
6940         esac
6941         ;;
6942     esac
6943   fi
6944   rm -rf conftest*
6945   ;;
6946
6947 *-*-sco3.2v5*)
6948   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6949   SAVE_CFLAGS="$CFLAGS"
6950   CFLAGS="$CFLAGS -belf"
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6952 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6953 if ${lt_cv_cc_needs_belf+:} false; then :
6954   $as_echo_n "(cached) " >&6
6955 else
6956   ac_ext=c
6957 ac_cpp='$CPP $CPPFLAGS'
6958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6961
6962      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h.  */
6964
6965 int
6966 main ()
6967 {
6968
6969   ;
6970   return 0;
6971 }
6972 _ACEOF
6973 if ac_fn_c_try_link "$LINENO"; then :
6974   lt_cv_cc_needs_belf=yes
6975 else
6976   lt_cv_cc_needs_belf=no
6977 fi
6978 rm -f core conftest.err conftest.$ac_objext \
6979     conftest$ac_exeext conftest.$ac_ext
6980      ac_ext=c
6981 ac_cpp='$CPP $CPPFLAGS'
6982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6985
6986 fi
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6988 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6989   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6990     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6991     CFLAGS="$SAVE_CFLAGS"
6992   fi
6993   ;;
6994 *-*solaris*)
6995   # Find out which ABI we are using.
6996   echo 'int i;' > conftest.$ac_ext
6997   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6998   (eval $ac_compile) 2>&5
6999   ac_status=$?
7000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7001   test $ac_status = 0; }; then
7002     case `/usr/bin/file conftest.o` in
7003     *64-bit*)
7004       case $lt_cv_prog_gnu_ld in
7005       yes*)
7006         case $host in
7007         i?86-*-solaris*)
7008           LD="${LD-ld} -m elf_x86_64"
7009           ;;
7010         sparc*-*-solaris*)
7011           LD="${LD-ld} -m elf64_sparc"
7012           ;;
7013         esac
7014         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7015         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7016           LD="${LD-ld}_sol2"
7017         fi
7018         ;;
7019       *)
7020         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7021           LD="${LD-ld} -64"
7022         fi
7023         ;;
7024       esac
7025       ;;
7026     esac
7027   fi
7028   rm -rf conftest*
7029   ;;
7030 esac
7031
7032 need_locks="$enable_libtool_lock"
7033
7034 if test -n "$ac_tool_prefix"; then
7035   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7036 set dummy ${ac_tool_prefix}mt; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   if test -n "$MANIFEST_TOOL"; then
7043   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050     for ac_exec_ext in '' $ac_executable_extensions; do
7051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054     break 2
7055   fi
7056 done
7057   done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7063 if test -n "$MANIFEST_TOOL"; then
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7065 $as_echo "$MANIFEST_TOOL" >&6; }
7066 else
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071
7072 fi
7073 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7074   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7075   # Extract the first word of "mt", so it can be a program name with args.
7076 set dummy mt; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7078 $as_echo_n "checking for $ac_word... " >&6; }
7079 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7080   $as_echo_n "(cached) " >&6
7081 else
7082   if test -n "$ac_ct_MANIFEST_TOOL"; then
7083   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7084 else
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7086 for as_dir in $PATH
7087 do
7088   IFS=$as_save_IFS
7089   test -z "$as_dir" && as_dir=.
7090     for ac_exec_ext in '' $ac_executable_extensions; do
7091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7094     break 2
7095   fi
7096 done
7097   done
7098 IFS=$as_save_IFS
7099
7100 fi
7101 fi
7102 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7103 if test -n "$ac_ct_MANIFEST_TOOL"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7105 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7112     MANIFEST_TOOL=":"
7113   else
7114     case $cross_compiling:$ac_tool_warned in
7115 yes:)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7121   fi
7122 else
7123   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7124 fi
7125
7126 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7128 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7129 if ${lt_cv_path_mainfest_tool+:} false; then :
7130   $as_echo_n "(cached) " >&6
7131 else
7132   lt_cv_path_mainfest_tool=no
7133   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7134   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7135   cat conftest.err >&5
7136   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7137     lt_cv_path_mainfest_tool=yes
7138   fi
7139   rm -f conftest*
7140 fi
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7142 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7143 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7144   MANIFEST_TOOL=:
7145 fi
7146
7147
7148
7149
7150
7151
7152   case $host_os in
7153     rhapsody* | darwin*)
7154     if test -n "$ac_tool_prefix"; then
7155   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7156 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7160   $as_echo_n "(cached) " >&6
7161 else
7162   if test -n "$DSYMUTIL"; then
7163   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170     for ac_exec_ext in '' $ac_executable_extensions; do
7171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7172     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177   done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7183 if test -n "$DSYMUTIL"; then
7184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7185 $as_echo "$DSYMUTIL" >&6; }
7186 else
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191
7192 fi
7193 if test -z "$ac_cv_prog_DSYMUTIL"; then
7194   ac_ct_DSYMUTIL=$DSYMUTIL
7195   # Extract the first word of "dsymutil", so it can be a program name with args.
7196 set dummy dsymutil; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7200   $as_echo_n "(cached) " >&6
7201 else
7202   if test -n "$ac_ct_DSYMUTIL"; then
7203   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7204 else
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7206 for as_dir in $PATH
7207 do
7208   IFS=$as_save_IFS
7209   test -z "$as_dir" && as_dir=.
7210     for ac_exec_ext in '' $ac_executable_extensions; do
7211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7212     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7214     break 2
7215   fi
7216 done
7217   done
7218 IFS=$as_save_IFS
7219
7220 fi
7221 fi
7222 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7223 if test -n "$ac_ct_DSYMUTIL"; then
7224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7225 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7226 else
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7229 fi
7230
7231   if test "x$ac_ct_DSYMUTIL" = x; then
7232     DSYMUTIL=":"
7233   else
7234     case $cross_compiling:$ac_tool_warned in
7235 yes:)
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7237 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7238 ac_tool_warned=yes ;;
7239 esac
7240     DSYMUTIL=$ac_ct_DSYMUTIL
7241   fi
7242 else
7243   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7244 fi
7245
7246     if test -n "$ac_tool_prefix"; then
7247   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_NMEDIT+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$NMEDIT"; then
7255   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 NMEDIT=$ac_cv_prog_NMEDIT
7275 if test -n "$NMEDIT"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7277 $as_echo "$NMEDIT" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_NMEDIT"; then
7286   ac_ct_NMEDIT=$NMEDIT
7287   # Extract the first word of "nmedit", so it can be a program name with args.
7288 set dummy nmedit; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$ac_ct_NMEDIT"; then
7295   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7315 if test -n "$ac_ct_NMEDIT"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7317 $as_echo "$ac_ct_NMEDIT" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323   if test "x$ac_ct_NMEDIT" = x; then
7324     NMEDIT=":"
7325   else
7326     case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332     NMEDIT=$ac_ct_NMEDIT
7333   fi
7334 else
7335   NMEDIT="$ac_cv_prog_NMEDIT"
7336 fi
7337
7338     if test -n "$ac_tool_prefix"; then
7339   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7340 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342 $as_echo_n "checking for $ac_word... " >&6; }
7343 if ${ac_cv_prog_LIPO+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   if test -n "$LIPO"; then
7347   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7348 else
7349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7350 for as_dir in $PATH
7351 do
7352   IFS=$as_save_IFS
7353   test -z "$as_dir" && as_dir=.
7354     for ac_exec_ext in '' $ac_executable_extensions; do
7355   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7358     break 2
7359   fi
7360 done
7361   done
7362 IFS=$as_save_IFS
7363
7364 fi
7365 fi
7366 LIPO=$ac_cv_prog_LIPO
7367 if test -n "$LIPO"; then
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7369 $as_echo "$LIPO" >&6; }
7370 else
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376 fi
7377 if test -z "$ac_cv_prog_LIPO"; then
7378   ac_ct_LIPO=$LIPO
7379   # Extract the first word of "lipo", so it can be a program name with args.
7380 set dummy lipo; ac_word=$2
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382 $as_echo_n "checking for $ac_word... " >&6; }
7383 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7384   $as_echo_n "(cached) " >&6
7385 else
7386   if test -n "$ac_ct_LIPO"; then
7387   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7388 else
7389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7390 for as_dir in $PATH
7391 do
7392   IFS=$as_save_IFS
7393   test -z "$as_dir" && as_dir=.
7394     for ac_exec_ext in '' $ac_executable_extensions; do
7395   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396     ac_cv_prog_ac_ct_LIPO="lipo"
7397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7398     break 2
7399   fi
7400 done
7401   done
7402 IFS=$as_save_IFS
7403
7404 fi
7405 fi
7406 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7407 if test -n "$ac_ct_LIPO"; then
7408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7409 $as_echo "$ac_ct_LIPO" >&6; }
7410 else
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412 $as_echo "no" >&6; }
7413 fi
7414
7415   if test "x$ac_ct_LIPO" = x; then
7416     LIPO=":"
7417   else
7418     case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424     LIPO=$ac_ct_LIPO
7425   fi
7426 else
7427   LIPO="$ac_cv_prog_LIPO"
7428 fi
7429
7430     if test -n "$ac_tool_prefix"; then
7431   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7432 set dummy ${ac_tool_prefix}otool; ac_word=$2
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434 $as_echo_n "checking for $ac_word... " >&6; }
7435 if ${ac_cv_prog_OTOOL+:} false; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   if test -n "$OTOOL"; then
7439   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7440 else
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442 for as_dir in $PATH
7443 do
7444   IFS=$as_save_IFS
7445   test -z "$as_dir" && as_dir=.
7446     for ac_exec_ext in '' $ac_executable_extensions; do
7447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450     break 2
7451   fi
7452 done
7453   done
7454 IFS=$as_save_IFS
7455
7456 fi
7457 fi
7458 OTOOL=$ac_cv_prog_OTOOL
7459 if test -n "$OTOOL"; then
7460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7461 $as_echo "$OTOOL" >&6; }
7462 else
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 fi
7466
7467
7468 fi
7469 if test -z "$ac_cv_prog_OTOOL"; then
7470   ac_ct_OTOOL=$OTOOL
7471   # Extract the first word of "otool", so it can be a program name with args.
7472 set dummy otool; ac_word=$2
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474 $as_echo_n "checking for $ac_word... " >&6; }
7475 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7476   $as_echo_n "(cached) " >&6
7477 else
7478   if test -n "$ac_ct_OTOOL"; then
7479   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484   IFS=$as_save_IFS
7485   test -z "$as_dir" && as_dir=.
7486     for ac_exec_ext in '' $ac_executable_extensions; do
7487   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488     ac_cv_prog_ac_ct_OTOOL="otool"
7489     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490     break 2
7491   fi
7492 done
7493   done
7494 IFS=$as_save_IFS
7495
7496 fi
7497 fi
7498 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7499 if test -n "$ac_ct_OTOOL"; then
7500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7501 $as_echo "$ac_ct_OTOOL" >&6; }
7502 else
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }
7505 fi
7506
7507   if test "x$ac_ct_OTOOL" = x; then
7508     OTOOL=":"
7509   else
7510     case $cross_compiling:$ac_tool_warned in
7511 yes:)
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514 ac_tool_warned=yes ;;
7515 esac
7516     OTOOL=$ac_ct_OTOOL
7517   fi
7518 else
7519   OTOOL="$ac_cv_prog_OTOOL"
7520 fi
7521
7522     if test -n "$ac_tool_prefix"; then
7523   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7524 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526 $as_echo_n "checking for $ac_word... " >&6; }
7527 if ${ac_cv_prog_OTOOL64+:} false; then :
7528   $as_echo_n "(cached) " >&6
7529 else
7530   if test -n "$OTOOL64"; then
7531   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7532 else
7533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534 for as_dir in $PATH
7535 do
7536   IFS=$as_save_IFS
7537   test -z "$as_dir" && as_dir=.
7538     for ac_exec_ext in '' $ac_executable_extensions; do
7539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542     break 2
7543   fi
7544 done
7545   done
7546 IFS=$as_save_IFS
7547
7548 fi
7549 fi
7550 OTOOL64=$ac_cv_prog_OTOOL64
7551 if test -n "$OTOOL64"; then
7552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7553 $as_echo "$OTOOL64" >&6; }
7554 else
7555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556 $as_echo "no" >&6; }
7557 fi
7558
7559
7560 fi
7561 if test -z "$ac_cv_prog_OTOOL64"; then
7562   ac_ct_OTOOL64=$OTOOL64
7563   # Extract the first word of "otool64", so it can be a program name with args.
7564 set dummy otool64; ac_word=$2
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566 $as_echo_n "checking for $ac_word... " >&6; }
7567 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7568   $as_echo_n "(cached) " >&6
7569 else
7570   if test -n "$ac_ct_OTOOL64"; then
7571   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7572 else
7573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574 for as_dir in $PATH
7575 do
7576   IFS=$as_save_IFS
7577   test -z "$as_dir" && as_dir=.
7578     for ac_exec_ext in '' $ac_executable_extensions; do
7579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580     ac_cv_prog_ac_ct_OTOOL64="otool64"
7581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582     break 2
7583   fi
7584 done
7585   done
7586 IFS=$as_save_IFS
7587
7588 fi
7589 fi
7590 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7591 if test -n "$ac_ct_OTOOL64"; then
7592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7593 $as_echo "$ac_ct_OTOOL64" >&6; }
7594 else
7595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7597 fi
7598
7599   if test "x$ac_ct_OTOOL64" = x; then
7600     OTOOL64=":"
7601   else
7602     case $cross_compiling:$ac_tool_warned in
7603 yes:)
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606 ac_tool_warned=yes ;;
7607 esac
7608     OTOOL64=$ac_ct_OTOOL64
7609   fi
7610 else
7611   OTOOL64="$ac_cv_prog_OTOOL64"
7612 fi
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7641 $as_echo_n "checking for -single_module linker flag... " >&6; }
7642 if ${lt_cv_apple_cc_single_mod+:} false; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   lt_cv_apple_cc_single_mod=no
7646       if test -z "${LT_MULTI_MODULE}"; then
7647         # By default we will add the -single_module flag. You can override
7648         # by either setting the environment variable LT_MULTI_MODULE
7649         # non-empty at configure time, or by adding -multi_module to the
7650         # link flags.
7651         rm -rf libconftest.dylib*
7652         echo "int foo(void){return 1;}" > conftest.c
7653         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7654 -dynamiclib -Wl,-single_module conftest.c" >&5
7655         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7656           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7657         _lt_result=$?
7658         # If there is a non-empty error log, and "single_module"
7659         # appears in it, assume the flag caused a linker warning
7660         if test -s conftest.err && $GREP single_module conftest.err; then
7661           cat conftest.err >&5
7662         # Otherwise, if the output was created with a 0 exit code from
7663         # the compiler, it worked.
7664         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7665           lt_cv_apple_cc_single_mod=yes
7666         else
7667           cat conftest.err >&5
7668         fi
7669         rm -rf libconftest.dylib*
7670         rm -f conftest.*
7671       fi
7672 fi
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7674 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7675
7676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7677 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7678 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   lt_cv_ld_exported_symbols_list=no
7682       save_LDFLAGS=$LDFLAGS
7683       echo "_main" > conftest.sym
7684       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7685       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7686 /* end confdefs.h.  */
7687
7688 int
7689 main ()
7690 {
7691
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7697   lt_cv_ld_exported_symbols_list=yes
7698 else
7699   lt_cv_ld_exported_symbols_list=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext \
7702     conftest$ac_exeext conftest.$ac_ext
7703         LDFLAGS="$save_LDFLAGS"
7704
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7707 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7708
7709     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7710 $as_echo_n "checking for -force_load linker flag... " >&6; }
7711 if ${lt_cv_ld_force_load+:} false; then :
7712   $as_echo_n "(cached) " >&6
7713 else
7714   lt_cv_ld_force_load=no
7715       cat > conftest.c << _LT_EOF
7716 int forced_loaded() { return 2;}
7717 _LT_EOF
7718       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7719       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7720       echo "$AR cru libconftest.a conftest.o" >&5
7721       $AR cru libconftest.a conftest.o 2>&5
7722       echo "$RANLIB libconftest.a" >&5
7723       $RANLIB libconftest.a 2>&5
7724       cat > conftest.c << _LT_EOF
7725 int main() { return 0;}
7726 _LT_EOF
7727       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7728       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7729       _lt_result=$?
7730       if test -s conftest.err && $GREP force_load conftest.err; then
7731         cat conftest.err >&5
7732       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7733         lt_cv_ld_force_load=yes
7734       else
7735         cat conftest.err >&5
7736       fi
7737         rm -f conftest.err libconftest.a conftest conftest.c
7738         rm -rf conftest.dSYM
7739
7740 fi
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7742 $as_echo "$lt_cv_ld_force_load" >&6; }
7743     case $host_os in
7744     rhapsody* | darwin1.[012])
7745       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7746     darwin1.*)
7747       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7748     darwin*) # darwin 5.x on
7749       # if running on 10.5 or later, the deployment target defaults
7750       # to the OS version, if on x86, and 10.4, the deployment
7751       # target defaults to 10.4. Don't you love it?
7752       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7753         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7754           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7755         10.[012]*)
7756           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7757         10.*)
7758           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7759       esac
7760     ;;
7761   esac
7762     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7763       _lt_dar_single_mod='$single_module'
7764     fi
7765     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7766       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7767     else
7768       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7769     fi
7770     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7771       _lt_dsymutil='~$DSYMUTIL $lib || :'
7772     else
7773       _lt_dsymutil=
7774     fi
7775     ;;
7776   esac
7777
7778 ac_ext=c
7779 ac_cpp='$CPP $CPPFLAGS'
7780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7784 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7785 # On Suns, sometimes $CPP names a directory.
7786 if test -n "$CPP" && test -d "$CPP"; then
7787   CPP=
7788 fi
7789 if test -z "$CPP"; then
7790   if ${ac_cv_prog_CPP+:} false; then :
7791   $as_echo_n "(cached) " >&6
7792 else
7793       # Double quotes because CPP needs to be expanded
7794     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7795     do
7796       ac_preproc_ok=false
7797 for ac_c_preproc_warn_flag in '' yes
7798 do
7799   # Use a header file that comes with gcc, so configuring glibc
7800   # with a fresh cross-compiler works.
7801   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7802   # <limits.h> exists even on freestanding compilers.
7803   # On the NeXT, cc -E runs the code through the compiler's parser,
7804   # not just through cpp. "Syntax error" is here to catch this case.
7805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7806 /* end confdefs.h.  */
7807 #ifdef __STDC__
7808 # include <limits.h>
7809 #else
7810 # include <assert.h>
7811 #endif
7812                      Syntax error
7813 _ACEOF
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815
7816 else
7817   # Broken: fails on valid input.
7818 continue
7819 fi
7820 rm -f conftest.err conftest.i conftest.$ac_ext
7821
7822   # OK, works on sane cases.  Now check whether nonexistent headers
7823   # can be detected and how.
7824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h.  */
7826 #include <ac_nonexistent.h>
7827 _ACEOF
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7829   # Broken: success on invalid input.
7830 continue
7831 else
7832   # Passes both tests.
7833 ac_preproc_ok=:
7834 break
7835 fi
7836 rm -f conftest.err conftest.i conftest.$ac_ext
7837
7838 done
7839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7840 rm -f conftest.i conftest.err conftest.$ac_ext
7841 if $ac_preproc_ok; then :
7842   break
7843 fi
7844
7845     done
7846     ac_cv_prog_CPP=$CPP
7847
7848 fi
7849   CPP=$ac_cv_prog_CPP
7850 else
7851   ac_cv_prog_CPP=$CPP
7852 fi
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7854 $as_echo "$CPP" >&6; }
7855 ac_preproc_ok=false
7856 for ac_c_preproc_warn_flag in '' yes
7857 do
7858   # Use a header file that comes with gcc, so configuring glibc
7859   # with a fresh cross-compiler works.
7860   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7861   # <limits.h> exists even on freestanding compilers.
7862   # On the NeXT, cc -E runs the code through the compiler's parser,
7863   # not just through cpp. "Syntax error" is here to catch this case.
7864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h.  */
7866 #ifdef __STDC__
7867 # include <limits.h>
7868 #else
7869 # include <assert.h>
7870 #endif
7871                      Syntax error
7872 _ACEOF
7873 if ac_fn_c_try_cpp "$LINENO"; then :
7874
7875 else
7876   # Broken: fails on valid input.
7877 continue
7878 fi
7879 rm -f conftest.err conftest.i conftest.$ac_ext
7880
7881   # OK, works on sane cases.  Now check whether nonexistent headers
7882   # can be detected and how.
7883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h.  */
7885 #include <ac_nonexistent.h>
7886 _ACEOF
7887 if ac_fn_c_try_cpp "$LINENO"; then :
7888   # Broken: success on invalid input.
7889 continue
7890 else
7891   # Passes both tests.
7892 ac_preproc_ok=:
7893 break
7894 fi
7895 rm -f conftest.err conftest.i conftest.$ac_ext
7896
7897 done
7898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7899 rm -f conftest.i conftest.err conftest.$ac_ext
7900 if $ac_preproc_ok; then :
7901
7902 else
7903   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7904 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7905 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7906 See \`config.log' for more details" "$LINENO" 5; }
7907 fi
7908
7909 ac_ext=c
7910 ac_cpp='$CPP $CPPFLAGS'
7911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7914
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7917 $as_echo_n "checking for ANSI C header files... " >&6; }
7918 if ${ac_cv_header_stdc+:} false; then :
7919   $as_echo_n "(cached) " >&6
7920 else
7921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922 /* end confdefs.h.  */
7923 #include <stdlib.h>
7924 #include <stdarg.h>
7925 #include <string.h>
7926 #include <float.h>
7927
7928 int
7929 main ()
7930 {
7931
7932   ;
7933   return 0;
7934 }
7935 _ACEOF
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937   ac_cv_header_stdc=yes
7938 else
7939   ac_cv_header_stdc=no
7940 fi
7941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7942
7943 if test $ac_cv_header_stdc = yes; then
7944   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7946 /* end confdefs.h.  */
7947 #include <string.h>
7948
7949 _ACEOF
7950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7951   $EGREP "memchr" >/dev/null 2>&1; then :
7952
7953 else
7954   ac_cv_header_stdc=no
7955 fi
7956 rm -f conftest*
7957
7958 fi
7959
7960 if test $ac_cv_header_stdc = yes; then
7961   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7963 /* end confdefs.h.  */
7964 #include <stdlib.h>
7965
7966 _ACEOF
7967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7968   $EGREP "free" >/dev/null 2>&1; then :
7969
7970 else
7971   ac_cv_header_stdc=no
7972 fi
7973 rm -f conftest*
7974
7975 fi
7976
7977 if test $ac_cv_header_stdc = yes; then
7978   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7979   if test "$cross_compiling" = yes; then :
7980   :
7981 else
7982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h.  */
7984 #include <ctype.h>
7985 #include <stdlib.h>
7986 #if ((' ' & 0x0FF) == 0x020)
7987 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7988 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7989 #else
7990 # define ISLOWER(c) \
7991                    (('a' <= (c) && (c) <= 'i') \
7992                      || ('j' <= (c) && (c) <= 'r') \
7993                      || ('s' <= (c) && (c) <= 'z'))
7994 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7995 #endif
7996
7997 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7998 int
7999 main ()
8000 {
8001   int i;
8002   for (i = 0; i < 256; i++)
8003     if (XOR (islower (i), ISLOWER (i))
8004         || toupper (i) != TOUPPER (i))
8005       return 2;
8006   return 0;
8007 }
8008 _ACEOF
8009 if ac_fn_c_try_run "$LINENO"; then :
8010
8011 else
8012   ac_cv_header_stdc=no
8013 fi
8014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8015   conftest.$ac_objext conftest.beam conftest.$ac_ext
8016 fi
8017
8018 fi
8019 fi
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8021 $as_echo "$ac_cv_header_stdc" >&6; }
8022 if test $ac_cv_header_stdc = yes; then
8023
8024 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8025
8026 fi
8027
8028 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8029 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8030                   inttypes.h stdint.h unistd.h
8031 do :
8032   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8033 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8034 "
8035 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8036   cat >>confdefs.h <<_ACEOF
8037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8038 _ACEOF
8039
8040 fi
8041
8042 done
8043
8044
8045 for ac_header in dlfcn.h
8046 do :
8047   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8048 "
8049 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8050   cat >>confdefs.h <<_ACEOF
8051 #define HAVE_DLFCN_H 1
8052 _ACEOF
8053
8054 fi
8055
8056 done
8057
8058
8059
8060
8061
8062 # Set options
8063
8064
8065
8066         enable_dlopen=no
8067
8068
8069   enable_win32_dll=no
8070
8071
8072             # Check whether --enable-shared was given.
8073 if test "${enable_shared+set}" = set; then :
8074   enableval=$enable_shared; p=${PACKAGE-default}
8075     case $enableval in
8076     yes) enable_shared=yes ;;
8077     no) enable_shared=no ;;
8078     *)
8079       enable_shared=no
8080       # Look at the argument we got.  We use all the common list separators.
8081       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8082       for pkg in $enableval; do
8083         IFS="$lt_save_ifs"
8084         if test "X$pkg" = "X$p"; then
8085           enable_shared=yes
8086         fi
8087       done
8088       IFS="$lt_save_ifs"
8089       ;;
8090     esac
8091 else
8092   enable_shared=yes
8093 fi
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103   # Check whether --enable-static was given.
8104 if test "${enable_static+set}" = set; then :
8105   enableval=$enable_static; p=${PACKAGE-default}
8106     case $enableval in
8107     yes) enable_static=yes ;;
8108     no) enable_static=no ;;
8109     *)
8110      enable_static=no
8111       # Look at the argument we got.  We use all the common list separators.
8112       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8113       for pkg in $enableval; do
8114         IFS="$lt_save_ifs"
8115         if test "X$pkg" = "X$p"; then
8116           enable_static=yes
8117         fi
8118       done
8119       IFS="$lt_save_ifs"
8120       ;;
8121     esac
8122 else
8123   enable_static=yes
8124 fi
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135 # Check whether --with-pic was given.
8136 if test "${with_pic+set}" = set; then :
8137   withval=$with_pic; lt_p=${PACKAGE-default}
8138     case $withval in
8139     yes|no) pic_mode=$withval ;;
8140     *)
8141       pic_mode=default
8142       # Look at the argument we got.  We use all the common list separators.
8143       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8144       for lt_pkg in $withval; do
8145         IFS="$lt_save_ifs"
8146         if test "X$lt_pkg" = "X$lt_p"; then
8147           pic_mode=yes
8148         fi
8149       done
8150       IFS="$lt_save_ifs"
8151       ;;
8152     esac
8153 else
8154   pic_mode=default
8155 fi
8156
8157
8158 test -z "$pic_mode" && pic_mode=default
8159
8160
8161
8162
8163
8164
8165
8166   # Check whether --enable-fast-install was given.
8167 if test "${enable_fast_install+set}" = set; then :
8168   enableval=$enable_fast_install; p=${PACKAGE-default}
8169     case $enableval in
8170     yes) enable_fast_install=yes ;;
8171     no) enable_fast_install=no ;;
8172     *)
8173       enable_fast_install=no
8174       # Look at the argument we got.  We use all the common list separators.
8175       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8176       for pkg in $enableval; do
8177         IFS="$lt_save_ifs"
8178         if test "X$pkg" = "X$p"; then
8179           enable_fast_install=yes
8180         fi
8181       done
8182       IFS="$lt_save_ifs"
8183       ;;
8184     esac
8185 else
8186   enable_fast_install=yes
8187 fi
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199 # This can be used to rebuild libtool when needed
8200 LIBTOOL_DEPS="$ltmain"
8201
8202 # Always use our own libtool.
8203 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 test -z "$LN_S" && LN_S="ln -s"
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249 if test -n "${ZSH_VERSION+set}" ; then
8250    setopt NO_GLOB_SUBST
8251 fi
8252
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8254 $as_echo_n "checking for objdir... " >&6; }
8255 if ${lt_cv_objdir+:} false; then :
8256   $as_echo_n "(cached) " >&6
8257 else
8258   rm -f .libs 2>/dev/null
8259 mkdir .libs 2>/dev/null
8260 if test -d .libs; then
8261   lt_cv_objdir=.libs
8262 else
8263   # MS-DOS does not allow filenames that begin with a dot.
8264   lt_cv_objdir=_libs
8265 fi
8266 rmdir .libs 2>/dev/null
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8269 $as_echo "$lt_cv_objdir" >&6; }
8270 objdir=$lt_cv_objdir
8271
8272
8273
8274
8275
8276 cat >>confdefs.h <<_ACEOF
8277 #define LT_OBJDIR "$lt_cv_objdir/"
8278 _ACEOF
8279
8280
8281
8282
8283 case $host_os in
8284 aix3*)
8285   # AIX sometimes has problems with the GCC collect2 program.  For some
8286   # reason, if we set the COLLECT_NAMES environment variable, the problems
8287   # vanish in a puff of smoke.
8288   if test "X${COLLECT_NAMES+set}" != Xset; then
8289     COLLECT_NAMES=
8290     export COLLECT_NAMES
8291   fi
8292   ;;
8293 esac
8294
8295 # Global variables:
8296 ofile=libtool
8297 can_build_shared=yes
8298
8299 # All known linkers require a `.a' archive for static linking (except MSVC,
8300 # which needs '.lib').
8301 libext=a
8302
8303 with_gnu_ld="$lt_cv_prog_gnu_ld"
8304
8305 old_CC="$CC"
8306 old_CFLAGS="$CFLAGS"
8307
8308 # Set sane defaults for various variables
8309 test -z "$CC" && CC=cc
8310 test -z "$LTCC" && LTCC=$CC
8311 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8312 test -z "$LD" && LD=ld
8313 test -z "$ac_objext" && ac_objext=o
8314
8315 for cc_temp in $compiler""; do
8316   case $cc_temp in
8317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8319     \-*) ;;
8320     *) break;;
8321   esac
8322 done
8323 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8324
8325
8326 # Only perform the check for file, if the check method requires it
8327 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8328 case $deplibs_check_method in
8329 file_magic*)
8330   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8331     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8332 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8333 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8334   $as_echo_n "(cached) " >&6
8335 else
8336   case $MAGIC_CMD in
8337 [\\/*] |  ?:[\\/]*)
8338   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8339   ;;
8340 *)
8341   lt_save_MAGIC_CMD="$MAGIC_CMD"
8342   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8343   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8344   for ac_dir in $ac_dummy; do
8345     IFS="$lt_save_ifs"
8346     test -z "$ac_dir" && ac_dir=.
8347     if test -f $ac_dir/${ac_tool_prefix}file; then
8348       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8349       if test -n "$file_magic_test_file"; then
8350         case $deplibs_check_method in
8351         "file_magic "*)
8352           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8353           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8354           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8355             $EGREP "$file_magic_regex" > /dev/null; then
8356             :
8357           else
8358             cat <<_LT_EOF 1>&2
8359
8360 *** Warning: the command libtool uses to detect shared libraries,
8361 *** $file_magic_cmd, produces output that libtool cannot recognize.
8362 *** The result is that libtool may fail to recognize shared libraries
8363 *** as such.  This will affect the creation of libtool libraries that
8364 *** depend on shared libraries, but programs linked with such libtool
8365 *** libraries will work regardless of this problem.  Nevertheless, you
8366 *** may want to report the problem to your system manager and/or to
8367 *** bug-libtool@gnu.org
8368
8369 _LT_EOF
8370           fi ;;
8371         esac
8372       fi
8373       break
8374     fi
8375   done
8376   IFS="$lt_save_ifs"
8377   MAGIC_CMD="$lt_save_MAGIC_CMD"
8378   ;;
8379 esac
8380 fi
8381
8382 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8383 if test -n "$MAGIC_CMD"; then
8384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8385 $as_echo "$MAGIC_CMD" >&6; }
8386 else
8387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8389 fi
8390
8391
8392
8393
8394
8395 if test -z "$lt_cv_path_MAGIC_CMD"; then
8396   if test -n "$ac_tool_prefix"; then
8397     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8398 $as_echo_n "checking for file... " >&6; }
8399 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   case $MAGIC_CMD in
8403 [\\/*] |  ?:[\\/]*)
8404   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8405   ;;
8406 *)
8407   lt_save_MAGIC_CMD="$MAGIC_CMD"
8408   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8409   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8410   for ac_dir in $ac_dummy; do
8411     IFS="$lt_save_ifs"
8412     test -z "$ac_dir" && ac_dir=.
8413     if test -f $ac_dir/file; then
8414       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8415       if test -n "$file_magic_test_file"; then
8416         case $deplibs_check_method in
8417         "file_magic "*)
8418           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8419           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8420           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8421             $EGREP "$file_magic_regex" > /dev/null; then
8422             :
8423           else
8424             cat <<_LT_EOF 1>&2
8425
8426 *** Warning: the command libtool uses to detect shared libraries,
8427 *** $file_magic_cmd, produces output that libtool cannot recognize.
8428 *** The result is that libtool may fail to recognize shared libraries
8429 *** as such.  This will affect the creation of libtool libraries that
8430 *** depend on shared libraries, but programs linked with such libtool
8431 *** libraries will work regardless of this problem.  Nevertheless, you
8432 *** may want to report the problem to your system manager and/or to
8433 *** bug-libtool@gnu.org
8434
8435 _LT_EOF
8436           fi ;;
8437         esac
8438       fi
8439       break
8440     fi
8441   done
8442   IFS="$lt_save_ifs"
8443   MAGIC_CMD="$lt_save_MAGIC_CMD"
8444   ;;
8445 esac
8446 fi
8447
8448 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8449 if test -n "$MAGIC_CMD"; then
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8451 $as_echo "$MAGIC_CMD" >&6; }
8452 else
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456
8457
8458   else
8459     MAGIC_CMD=:
8460   fi
8461 fi
8462
8463   fi
8464   ;;
8465 esac
8466
8467 # Use C for the default configuration in the libtool script
8468
8469 lt_save_CC="$CC"
8470 ac_ext=c
8471 ac_cpp='$CPP $CPPFLAGS'
8472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8475
8476
8477 # Source file extension for C test sources.
8478 ac_ext=c
8479
8480 # Object file extension for compiled C test sources.
8481 objext=o
8482 objext=$objext
8483
8484 # Code to be used in simple compile tests
8485 lt_simple_compile_test_code="int some_variable = 0;"
8486
8487 # Code to be used in simple link tests
8488 lt_simple_link_test_code='int main(){return(0);}'
8489
8490
8491
8492
8493
8494
8495
8496 # If no C compiler was specified, use CC.
8497 LTCC=${LTCC-"$CC"}
8498
8499 # If no C compiler flags were specified, use CFLAGS.
8500 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8501
8502 # Allow CC to be a program name with arguments.
8503 compiler=$CC
8504
8505 # Save the default compiler, since it gets overwritten when the other
8506 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8507 compiler_DEFAULT=$CC
8508
8509 # save warnings/boilerplate of simple test code
8510 ac_outfile=conftest.$ac_objext
8511 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8512 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8513 _lt_compiler_boilerplate=`cat conftest.err`
8514 $RM conftest*
8515
8516 ac_outfile=conftest.$ac_objext
8517 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8518 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_linker_boilerplate=`cat conftest.err`
8520 $RM -r conftest*
8521
8522
8523 ## CAVEAT EMPTOR:
8524 ## There is no encapsulation within the following macros, do not change
8525 ## the running order or otherwise move them around unless you know exactly
8526 ## what you are doing...
8527 if test -n "$compiler"; then
8528
8529 lt_prog_compiler_no_builtin_flag=
8530
8531 if test "$GCC" = yes; then
8532   case $cc_basename in
8533   nvcc*)
8534     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8535   *)
8536     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8537   esac
8538
8539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8540 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8541 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   lt_cv_prog_compiler_rtti_exceptions=no
8545    ac_outfile=conftest.$ac_objext
8546    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8547    lt_compiler_flag="-fno-rtti -fno-exceptions"
8548    # Insert the option either (1) after the last *FLAGS variable, or
8549    # (2) before a word containing "conftest.", or (3) at the end.
8550    # Note that $ac_compile itself does not contain backslashes and begins
8551    # with a dollar sign (not a hyphen), so the echo should work correctly.
8552    # The option is referenced via a variable to avoid confusing sed.
8553    lt_compile=`echo "$ac_compile" | $SED \
8554    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8555    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8556    -e 's:$: $lt_compiler_flag:'`
8557    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8558    (eval "$lt_compile" 2>conftest.err)
8559    ac_status=$?
8560    cat conftest.err >&5
8561    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8562    if (exit $ac_status) && test -s "$ac_outfile"; then
8563      # The compiler can only warn and ignore the option if not recognized
8564      # So say no if there are warnings other than the usual output.
8565      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8566      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8567      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8568        lt_cv_prog_compiler_rtti_exceptions=yes
8569      fi
8570    fi
8571    $RM conftest*
8572
8573 fi
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8575 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8576
8577 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8578     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8579 else
8580     :
8581 fi
8582
8583 fi
8584
8585
8586
8587
8588
8589
8590   lt_prog_compiler_wl=
8591 lt_prog_compiler_pic=
8592 lt_prog_compiler_static=
8593
8594
8595   if test "$GCC" = yes; then
8596     lt_prog_compiler_wl='-Wl,'
8597     lt_prog_compiler_static='-static'
8598
8599     case $host_os in
8600       aix*)
8601       # All AIX code is PIC.
8602       if test "$host_cpu" = ia64; then
8603         # AIX 5 now supports IA64 processor
8604         lt_prog_compiler_static='-Bstatic'
8605       fi
8606       ;;
8607
8608     amigaos*)
8609       case $host_cpu in
8610       powerpc)
8611             # see comment about AmigaOS4 .so support
8612             lt_prog_compiler_pic='-fPIC'
8613         ;;
8614       m68k)
8615             # FIXME: we need at least 68020 code to build shared libraries, but
8616             # adding the `-m68020' flag to GCC prevents building anything better,
8617             # like `-m68040'.
8618             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8619         ;;
8620       esac
8621       ;;
8622
8623     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8624       # PIC is the default for these OSes.
8625       ;;
8626
8627     mingw* | cygwin* | pw32* | os2* | cegcc*)
8628       # This hack is so that the source file can tell whether it is being
8629       # built for inclusion in a dll (and should export symbols for example).
8630       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8631       # (--disable-auto-import) libraries
8632       lt_prog_compiler_pic='-DDLL_EXPORT'
8633       ;;
8634
8635     darwin* | rhapsody*)
8636       # PIC is the default on this platform
8637       # Common symbols not allowed in MH_DYLIB files
8638       lt_prog_compiler_pic='-fno-common'
8639       ;;
8640
8641     haiku*)
8642       # PIC is the default for Haiku.
8643       # The "-static" flag exists, but is broken.
8644       lt_prog_compiler_static=
8645       ;;
8646
8647     hpux*)
8648       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8649       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8650       # sets the default TLS model and affects inlining.
8651       case $host_cpu in
8652       hppa*64*)
8653         # +Z the default
8654         ;;
8655       *)
8656         lt_prog_compiler_pic='-fPIC'
8657         ;;
8658       esac
8659       ;;
8660
8661     interix[3-9]*)
8662       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8663       # Instead, we relocate shared libraries at runtime.
8664       ;;
8665
8666     msdosdjgpp*)
8667       # Just because we use GCC doesn't mean we suddenly get shared libraries
8668       # on systems that don't support them.
8669       lt_prog_compiler_can_build_shared=no
8670       enable_shared=no
8671       ;;
8672
8673     *nto* | *qnx*)
8674       # QNX uses GNU C++, but need to define -shared option too, otherwise
8675       # it will coredump.
8676       lt_prog_compiler_pic='-fPIC -shared'
8677       ;;
8678
8679     sysv4*MP*)
8680       if test -d /usr/nec; then
8681         lt_prog_compiler_pic=-Kconform_pic
8682       fi
8683       ;;
8684
8685     *)
8686       lt_prog_compiler_pic='-fPIC'
8687       ;;
8688     esac
8689
8690     case $cc_basename in
8691     nvcc*) # Cuda Compiler Driver 2.2
8692       lt_prog_compiler_wl='-Xlinker '
8693       if test -n "$lt_prog_compiler_pic"; then
8694         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8695       fi
8696       ;;
8697     esac
8698   else
8699     # PORTME Check for flag to pass linker flags through the system compiler.
8700     case $host_os in
8701     aix*)
8702       lt_prog_compiler_wl='-Wl,'
8703       if test "$host_cpu" = ia64; then
8704         # AIX 5 now supports IA64 processor
8705         lt_prog_compiler_static='-Bstatic'
8706       else
8707         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8708       fi
8709       ;;
8710
8711     mingw* | cygwin* | pw32* | os2* | cegcc*)
8712       # This hack is so that the source file can tell whether it is being
8713       # built for inclusion in a dll (and should export symbols for example).
8714       lt_prog_compiler_pic='-DDLL_EXPORT'
8715       ;;
8716
8717     hpux9* | hpux10* | hpux11*)
8718       lt_prog_compiler_wl='-Wl,'
8719       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8720       # not for PA HP-UX.
8721       case $host_cpu in
8722       hppa*64*|ia64*)
8723         # +Z the default
8724         ;;
8725       *)
8726         lt_prog_compiler_pic='+Z'
8727         ;;
8728       esac
8729       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8730       lt_prog_compiler_static='${wl}-a ${wl}archive'
8731       ;;
8732
8733     irix5* | irix6* | nonstopux*)
8734       lt_prog_compiler_wl='-Wl,'
8735       # PIC (with -KPIC) is the default.
8736       lt_prog_compiler_static='-non_shared'
8737       ;;
8738
8739     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8740       case $cc_basename in
8741       # old Intel for x86_64 which still supported -KPIC.
8742       ecc*)
8743         lt_prog_compiler_wl='-Wl,'
8744         lt_prog_compiler_pic='-KPIC'
8745         lt_prog_compiler_static='-static'
8746         ;;
8747       # icc used to be incompatible with GCC.
8748       # ICC 10 doesn't accept -KPIC any more.
8749       icc* | ifort*)
8750         lt_prog_compiler_wl='-Wl,'
8751         lt_prog_compiler_pic='-fPIC'
8752         lt_prog_compiler_static='-static'
8753         ;;
8754       # Lahey Fortran 8.1.
8755       lf95*)
8756         lt_prog_compiler_wl='-Wl,'
8757         lt_prog_compiler_pic='--shared'
8758         lt_prog_compiler_static='--static'
8759         ;;
8760       nagfor*)
8761         # NAG Fortran compiler
8762         lt_prog_compiler_wl='-Wl,-Wl,,'
8763         lt_prog_compiler_pic='-PIC'
8764         lt_prog_compiler_static='-Bstatic'
8765         ;;
8766       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8767         # Portland Group compilers (*not* the Pentium gcc compiler,
8768         # which looks to be a dead project)
8769         lt_prog_compiler_wl='-Wl,'
8770         lt_prog_compiler_pic='-fpic'
8771         lt_prog_compiler_static='-Bstatic'
8772         ;;
8773       ccc*)
8774         lt_prog_compiler_wl='-Wl,'
8775         # All Alpha code is PIC.
8776         lt_prog_compiler_static='-non_shared'
8777         ;;
8778       xl* | bgxl* | bgf* | mpixl*)
8779         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8780         lt_prog_compiler_wl='-Wl,'
8781         lt_prog_compiler_pic='-qpic'
8782         lt_prog_compiler_static='-qstaticlink'
8783         ;;
8784       *)
8785         case `$CC -V 2>&1 | sed 5q` in
8786         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8787           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8788           lt_prog_compiler_pic='-KPIC'
8789           lt_prog_compiler_static='-Bstatic'
8790           lt_prog_compiler_wl=''
8791           ;;
8792         *Sun\ F* | *Sun*Fortran*)
8793           lt_prog_compiler_pic='-KPIC'
8794           lt_prog_compiler_static='-Bstatic'
8795           lt_prog_compiler_wl='-Qoption ld '
8796           ;;
8797         *Sun\ C*)
8798           # Sun C 5.9
8799           lt_prog_compiler_pic='-KPIC'
8800           lt_prog_compiler_static='-Bstatic'
8801           lt_prog_compiler_wl='-Wl,'
8802           ;;
8803         *Intel*\ [CF]*Compiler*)
8804           lt_prog_compiler_wl='-Wl,'
8805           lt_prog_compiler_pic='-fPIC'
8806           lt_prog_compiler_static='-static'
8807           ;;
8808         *Portland\ Group*)
8809           lt_prog_compiler_wl='-Wl,'
8810           lt_prog_compiler_pic='-fpic'
8811           lt_prog_compiler_static='-Bstatic'
8812           ;;
8813         esac
8814         ;;
8815       esac
8816       ;;
8817
8818     newsos6)
8819       lt_prog_compiler_pic='-KPIC'
8820       lt_prog_compiler_static='-Bstatic'
8821       ;;
8822
8823     *nto* | *qnx*)
8824       # QNX uses GNU C++, but need to define -shared option too, otherwise
8825       # it will coredump.
8826       lt_prog_compiler_pic='-fPIC -shared'
8827       ;;
8828
8829     osf3* | osf4* | osf5*)
8830       lt_prog_compiler_wl='-Wl,'
8831       # All OSF/1 code is PIC.
8832       lt_prog_compiler_static='-non_shared'
8833       ;;
8834
8835     rdos*)
8836       lt_prog_compiler_static='-non_shared'
8837       ;;
8838
8839     solaris*)
8840       lt_prog_compiler_pic='-KPIC'
8841       lt_prog_compiler_static='-Bstatic'
8842       case $cc_basename in
8843       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8844         lt_prog_compiler_wl='-Qoption ld ';;
8845       *)
8846         lt_prog_compiler_wl='-Wl,';;
8847       esac
8848       ;;
8849
8850     sunos4*)
8851       lt_prog_compiler_wl='-Qoption ld '
8852       lt_prog_compiler_pic='-PIC'
8853       lt_prog_compiler_static='-Bstatic'
8854       ;;
8855
8856     sysv4 | sysv4.2uw2* | sysv4.3*)
8857       lt_prog_compiler_wl='-Wl,'
8858       lt_prog_compiler_pic='-KPIC'
8859       lt_prog_compiler_static='-Bstatic'
8860       ;;
8861
8862     sysv4*MP*)
8863       if test -d /usr/nec ;then
8864         lt_prog_compiler_pic='-Kconform_pic'
8865         lt_prog_compiler_static='-Bstatic'
8866       fi
8867       ;;
8868
8869     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8870       lt_prog_compiler_wl='-Wl,'
8871       lt_prog_compiler_pic='-KPIC'
8872       lt_prog_compiler_static='-Bstatic'
8873       ;;
8874
8875     unicos*)
8876       lt_prog_compiler_wl='-Wl,'
8877       lt_prog_compiler_can_build_shared=no
8878       ;;
8879
8880     uts4*)
8881       lt_prog_compiler_pic='-pic'
8882       lt_prog_compiler_static='-Bstatic'
8883       ;;
8884
8885     *)
8886       lt_prog_compiler_can_build_shared=no
8887       ;;
8888     esac
8889   fi
8890
8891 case $host_os in
8892   # For platforms which do not support PIC, -DPIC is meaningless:
8893   *djgpp*)
8894     lt_prog_compiler_pic=
8895     ;;
8896   *)
8897     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8898     ;;
8899 esac
8900
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8902 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8903 if ${lt_cv_prog_compiler_pic+:} false; then :
8904   $as_echo_n "(cached) " >&6
8905 else
8906   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8909 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8910 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8911
8912 #
8913 # Check to make sure the PIC flag actually works.
8914 #
8915 if test -n "$lt_prog_compiler_pic"; then
8916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8917 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8918 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   lt_cv_prog_compiler_pic_works=no
8922    ac_outfile=conftest.$ac_objext
8923    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8924    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8925    # Insert the option either (1) after the last *FLAGS variable, or
8926    # (2) before a word containing "conftest.", or (3) at the end.
8927    # Note that $ac_compile itself does not contain backslashes and begins
8928    # with a dollar sign (not a hyphen), so the echo should work correctly.
8929    # The option is referenced via a variable to avoid confusing sed.
8930    lt_compile=`echo "$ac_compile" | $SED \
8931    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8932    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8933    -e 's:$: $lt_compiler_flag:'`
8934    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8935    (eval "$lt_compile" 2>conftest.err)
8936    ac_status=$?
8937    cat conftest.err >&5
8938    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939    if (exit $ac_status) && test -s "$ac_outfile"; then
8940      # The compiler can only warn and ignore the option if not recognized
8941      # So say no if there are warnings other than the usual output.
8942      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8943      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8944      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8945        lt_cv_prog_compiler_pic_works=yes
8946      fi
8947    fi
8948    $RM conftest*
8949
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8952 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8953
8954 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8955     case $lt_prog_compiler_pic in
8956      "" | " "*) ;;
8957      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8958      esac
8959 else
8960     lt_prog_compiler_pic=
8961      lt_prog_compiler_can_build_shared=no
8962 fi
8963
8964 fi
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976 #
8977 # Check to make sure the static flag actually works.
8978 #
8979 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8981 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8982 if ${lt_cv_prog_compiler_static_works+:} false; then :
8983   $as_echo_n "(cached) " >&6
8984 else
8985   lt_cv_prog_compiler_static_works=no
8986    save_LDFLAGS="$LDFLAGS"
8987    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8988    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8989    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8990      # The linker can only warn and ignore the option if not recognized
8991      # So say no if there are warnings
8992      if test -s conftest.err; then
8993        # Append any errors to the config.log.
8994        cat conftest.err 1>&5
8995        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8996        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8997        if diff conftest.exp conftest.er2 >/dev/null; then
8998          lt_cv_prog_compiler_static_works=yes
8999        fi
9000      else
9001        lt_cv_prog_compiler_static_works=yes
9002      fi
9003    fi
9004    $RM -r conftest*
9005    LDFLAGS="$save_LDFLAGS"
9006
9007 fi
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9009 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9010
9011 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9012     :
9013 else
9014     lt_prog_compiler_static=
9015 fi
9016
9017
9018
9019
9020
9021
9022
9023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9024 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9025 if ${lt_cv_prog_compiler_c_o+:} false; then :
9026   $as_echo_n "(cached) " >&6
9027 else
9028   lt_cv_prog_compiler_c_o=no
9029    $RM -r conftest 2>/dev/null
9030    mkdir conftest
9031    cd conftest
9032    mkdir out
9033    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9034
9035    lt_compiler_flag="-o out/conftest2.$ac_objext"
9036    # Insert the option either (1) after the last *FLAGS variable, or
9037    # (2) before a word containing "conftest.", or (3) at the end.
9038    # Note that $ac_compile itself does not contain backslashes and begins
9039    # with a dollar sign (not a hyphen), so the echo should work correctly.
9040    lt_compile=`echo "$ac_compile" | $SED \
9041    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043    -e 's:$: $lt_compiler_flag:'`
9044    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9045    (eval "$lt_compile" 2>out/conftest.err)
9046    ac_status=$?
9047    cat out/conftest.err >&5
9048    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9050    then
9051      # The compiler can only warn and ignore the option if not recognized
9052      # So say no if there are warnings
9053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9054      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9055      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9056        lt_cv_prog_compiler_c_o=yes
9057      fi
9058    fi
9059    chmod u+w . 2>&5
9060    $RM conftest*
9061    # SGI C++ compiler will create directory out/ii_files/ for
9062    # template instantiation
9063    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9064    $RM out/* && rmdir out
9065    cd ..
9066    $RM -r conftest
9067    $RM conftest*
9068
9069 fi
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9071 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9072
9073
9074
9075
9076
9077
9078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9079 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9080 if ${lt_cv_prog_compiler_c_o+:} false; then :
9081   $as_echo_n "(cached) " >&6
9082 else
9083   lt_cv_prog_compiler_c_o=no
9084    $RM -r conftest 2>/dev/null
9085    mkdir conftest
9086    cd conftest
9087    mkdir out
9088    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9089
9090    lt_compiler_flag="-o out/conftest2.$ac_objext"
9091    # Insert the option either (1) after the last *FLAGS variable, or
9092    # (2) before a word containing "conftest.", or (3) at the end.
9093    # Note that $ac_compile itself does not contain backslashes and begins
9094    # with a dollar sign (not a hyphen), so the echo should work correctly.
9095    lt_compile=`echo "$ac_compile" | $SED \
9096    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9097    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9098    -e 's:$: $lt_compiler_flag:'`
9099    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9100    (eval "$lt_compile" 2>out/conftest.err)
9101    ac_status=$?
9102    cat out/conftest.err >&5
9103    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9105    then
9106      # The compiler can only warn and ignore the option if not recognized
9107      # So say no if there are warnings
9108      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9109      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9110      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9111        lt_cv_prog_compiler_c_o=yes
9112      fi
9113    fi
9114    chmod u+w . 2>&5
9115    $RM conftest*
9116    # SGI C++ compiler will create directory out/ii_files/ for
9117    # template instantiation
9118    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9119    $RM out/* && rmdir out
9120    cd ..
9121    $RM -r conftest
9122    $RM conftest*
9123
9124 fi
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9126 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9127
9128
9129
9130
9131 hard_links="nottested"
9132 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9133   # do not overwrite the value of need_locks provided by the user
9134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9135 $as_echo_n "checking if we can lock with hard links... " >&6; }
9136   hard_links=yes
9137   $RM conftest*
9138   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9139   touch conftest.a
9140   ln conftest.a conftest.b 2>&5 || hard_links=no
9141   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9143 $as_echo "$hard_links" >&6; }
9144   if test "$hard_links" = no; then
9145     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9146 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9147     need_locks=warn
9148   fi
9149 else
9150   need_locks=no
9151 fi
9152
9153
9154
9155
9156
9157
9158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9159 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9160
9161   runpath_var=
9162   allow_undefined_flag=
9163   always_export_symbols=no
9164   archive_cmds=
9165   archive_expsym_cmds=
9166   compiler_needs_object=no
9167   enable_shared_with_static_runtimes=no
9168   export_dynamic_flag_spec=
9169   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9170   hardcode_automatic=no
9171   hardcode_direct=no
9172   hardcode_direct_absolute=no
9173   hardcode_libdir_flag_spec=
9174   hardcode_libdir_separator=
9175   hardcode_minus_L=no
9176   hardcode_shlibpath_var=unsupported
9177   inherit_rpath=no
9178   link_all_deplibs=unknown
9179   module_cmds=
9180   module_expsym_cmds=
9181   old_archive_from_new_cmds=
9182   old_archive_from_expsyms_cmds=
9183   thread_safe_flag_spec=
9184   whole_archive_flag_spec=
9185   # include_expsyms should be a list of space-separated symbols to be *always*
9186   # included in the symbol list
9187   include_expsyms=
9188   # exclude_expsyms can be an extended regexp of symbols to exclude
9189   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9190   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9191   # as well as any symbol that contains `d'.
9192   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9193   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9194   # platforms (ab)use it in PIC code, but their linkers get confused if
9195   # the symbol is explicitly referenced.  Since portable code cannot
9196   # rely on this symbol name, it's probably fine to never include it in
9197   # preloaded symbol tables.
9198   # Exclude shared library initialization/finalization symbols.
9199   extract_expsyms_cmds=
9200
9201   case $host_os in
9202   cygwin* | mingw* | pw32* | cegcc*)
9203     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9204     # When not using gcc, we currently assume that we are using
9205     # Microsoft Visual C++.
9206     if test "$GCC" != yes; then
9207       with_gnu_ld=no
9208     fi
9209     ;;
9210   interix*)
9211     # we just hope/assume this is gcc and not c89 (= MSVC++)
9212     with_gnu_ld=yes
9213     ;;
9214   openbsd*)
9215     with_gnu_ld=no
9216     ;;
9217   esac
9218
9219   ld_shlibs=yes
9220
9221   # On some targets, GNU ld is compatible enough with the native linker
9222   # that we're better off using the native interface for both.
9223   lt_use_gnu_ld_interface=no
9224   if test "$with_gnu_ld" = yes; then
9225     case $host_os in
9226       aix*)
9227         # The AIX port of GNU ld has always aspired to compatibility
9228         # with the native linker.  However, as the warning in the GNU ld
9229         # block says, versions before 2.19.5* couldn't really create working
9230         # shared libraries, regardless of the interface used.
9231         case `$LD -v 2>&1` in
9232           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9233           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9234           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9235           *)
9236             lt_use_gnu_ld_interface=yes
9237             ;;
9238         esac
9239         ;;
9240       *)
9241         lt_use_gnu_ld_interface=yes
9242         ;;
9243     esac
9244   fi
9245
9246   if test "$lt_use_gnu_ld_interface" = yes; then
9247     # If archive_cmds runs LD, not CC, wlarc should be empty
9248     wlarc='${wl}'
9249
9250     # Set some defaults for GNU ld with shared library support. These
9251     # are reset later if shared libraries are not supported. Putting them
9252     # here allows them to be overridden if necessary.
9253     runpath_var=LD_RUN_PATH
9254     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255     export_dynamic_flag_spec='${wl}--export-dynamic'
9256     # ancient GNU ld didn't support --whole-archive et. al.
9257     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9258       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9259     else
9260       whole_archive_flag_spec=
9261     fi
9262     supports_anon_versioning=no
9263     case `$LD -v 2>&1` in
9264       *GNU\ gold*) supports_anon_versioning=yes ;;
9265       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9266       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9267       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9268       *\ 2.11.*) ;; # other 2.11 versions
9269       *) supports_anon_versioning=yes ;;
9270     esac
9271
9272     # See if GNU ld supports shared libraries.
9273     case $host_os in
9274     aix[3-9]*)
9275       # On AIX/PPC, the GNU linker is very broken
9276       if test "$host_cpu" != ia64; then
9277         ld_shlibs=no
9278         cat <<_LT_EOF 1>&2
9279
9280 *** Warning: the GNU linker, at least up to release 2.19, is reported
9281 *** to be unable to reliably create shared libraries on AIX.
9282 *** Therefore, libtool is disabling shared libraries support.  If you
9283 *** really care for shared libraries, you may want to install binutils
9284 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9285 *** You will then need to restart the configuration process.
9286
9287 _LT_EOF
9288       fi
9289       ;;
9290
9291     amigaos*)
9292       case $host_cpu in
9293       powerpc)
9294             # see comment about AmigaOS4 .so support
9295             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9296             archive_expsym_cmds=''
9297         ;;
9298       m68k)
9299             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)'
9300             hardcode_libdir_flag_spec='-L$libdir'
9301             hardcode_minus_L=yes
9302         ;;
9303       esac
9304       ;;
9305
9306     beos*)
9307       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308         allow_undefined_flag=unsupported
9309         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9310         # support --undefined.  This deserves some investigation.  FIXME
9311         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9312       else
9313         ld_shlibs=no
9314       fi
9315       ;;
9316
9317     cygwin* | mingw* | pw32* | cegcc*)
9318       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9319       # as there is no search path for DLLs.
9320       hardcode_libdir_flag_spec='-L$libdir'
9321       export_dynamic_flag_spec='${wl}--export-all-symbols'
9322       allow_undefined_flag=unsupported
9323       always_export_symbols=no
9324       enable_shared_with_static_runtimes=yes
9325       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'
9326       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9327
9328       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9329         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9330         # If the export-symbols file already is a .def file (1st line
9331         # is EXPORTS), use it as is; otherwise, prepend...
9332         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9333           cp $export_symbols $output_objdir/$soname.def;
9334         else
9335           echo EXPORTS > $output_objdir/$soname.def;
9336           cat $export_symbols >> $output_objdir/$soname.def;
9337         fi~
9338         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9339       else
9340         ld_shlibs=no
9341       fi
9342       ;;
9343
9344     haiku*)
9345       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9346       link_all_deplibs=yes
9347       ;;
9348
9349     interix[3-9]*)
9350       hardcode_direct=no
9351       hardcode_shlibpath_var=no
9352       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9353       export_dynamic_flag_spec='${wl}-E'
9354       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9355       # Instead, shared libraries are loaded at an image base (0x10000000 by
9356       # default) and relocated if they conflict, which is a slow very memory
9357       # consuming and fragmenting process.  To avoid this, we pick a random,
9358       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9359       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9360       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9361       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'
9362       ;;
9363
9364     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9365       tmp_diet=no
9366       if test "$host_os" = linux-dietlibc; then
9367         case $cc_basename in
9368           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9369         esac
9370       fi
9371       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9372          && test "$tmp_diet" = no
9373       then
9374         tmp_addflag=' $pic_flag'
9375         tmp_sharedflag='-shared'
9376         case $cc_basename,$host_cpu in
9377         pgcc*)                          # Portland Group C compiler
9378           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'
9379           tmp_addflag=' $pic_flag'
9380           ;;
9381         pgf77* | pgf90* | pgf95* | pgfortran*)
9382                                         # Portland Group f77 and f90 compilers
9383           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9384           tmp_addflag=' $pic_flag -Mnomain' ;;
9385         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9386           tmp_addflag=' -i_dynamic' ;;
9387         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9388           tmp_addflag=' -i_dynamic -nofor_main' ;;
9389         ifc* | ifort*)                  # Intel Fortran compiler
9390           tmp_addflag=' -nofor_main' ;;
9391         lf95*)                          # Lahey Fortran 8.1
9392           whole_archive_flag_spec=
9393           tmp_sharedflag='--shared' ;;
9394         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9395           tmp_sharedflag='-qmkshrobj'
9396           tmp_addflag= ;;
9397         nvcc*)  # Cuda Compiler Driver 2.2
9398           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'
9399           compiler_needs_object=yes
9400           ;;
9401         esac
9402         case `$CC -V 2>&1 | sed 5q` in
9403         *Sun\ C*)                       # Sun C 5.9
9404           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'
9405           compiler_needs_object=yes
9406           tmp_sharedflag='-G' ;;
9407         *Sun\ F*)                       # Sun Fortran 8.3
9408           tmp_sharedflag='-G' ;;
9409         esac
9410         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9411
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             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9417         fi
9418
9419         case $cc_basename in
9420         xlf* | bgf* | bgxlf* | mpixlf*)
9421           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9422           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9423           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9424           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9425           if test "x$supports_anon_versioning" = xyes; then
9426             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9427               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9428               echo "local: *; };" >> $output_objdir/$libname.ver~
9429               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9430           fi
9431           ;;
9432         esac
9433       else
9434         ld_shlibs=no
9435       fi
9436       ;;
9437
9438     netbsd*)
9439       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9440         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9441         wlarc=
9442       else
9443         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9444         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9445       fi
9446       ;;
9447
9448     solaris*)
9449       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9450         ld_shlibs=no
9451         cat <<_LT_EOF 1>&2
9452
9453 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9454 *** create shared libraries on Solaris systems.  Therefore, libtool
9455 *** is disabling shared libraries support.  We urge you to upgrade GNU
9456 *** binutils to release 2.9.1 or newer.  Another option is to modify
9457 *** your PATH or compiler configuration so that the native linker is
9458 *** used, and then restart.
9459
9460 _LT_EOF
9461       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9463         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9464       else
9465         ld_shlibs=no
9466       fi
9467       ;;
9468
9469     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9470       case `$LD -v 2>&1` in
9471         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9472         ld_shlibs=no
9473         cat <<_LT_EOF 1>&2
9474
9475 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9476 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9477 *** is disabling shared libraries support.  We urge you to upgrade GNU
9478 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9479 *** your PATH or compiler configuration so that the native linker is
9480 *** used, and then restart.
9481
9482 _LT_EOF
9483         ;;
9484         *)
9485           # For security reasons, it is highly recommended that you always
9486           # use absolute paths for naming shared libraries, and exclude the
9487           # DT_RUNPATH tag from executables and libraries.  But doing so
9488           # requires that you compile everything twice, which is a pain.
9489           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9490             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9491             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9492             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9493           else
9494             ld_shlibs=no
9495           fi
9496         ;;
9497       esac
9498       ;;
9499
9500     sunos4*)
9501       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9502       wlarc=
9503       hardcode_direct=yes
9504       hardcode_shlibpath_var=no
9505       ;;
9506
9507     *)
9508       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9509         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9510         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9511       else
9512         ld_shlibs=no
9513       fi
9514       ;;
9515     esac
9516
9517     if test "$ld_shlibs" = no; then
9518       runpath_var=
9519       hardcode_libdir_flag_spec=
9520       export_dynamic_flag_spec=
9521       whole_archive_flag_spec=
9522     fi
9523   else
9524     # PORTME fill in a description of your system's linker (not GNU ld)
9525     case $host_os in
9526     aix3*)
9527       allow_undefined_flag=unsupported
9528       always_export_symbols=yes
9529       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'
9530       # Note: this linker hardcodes the directories in LIBPATH if there
9531       # are no directories specified by -L.
9532       hardcode_minus_L=yes
9533       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9534         # Neither direct hardcoding nor static linking is supported with a
9535         # broken collect2.
9536         hardcode_direct=unsupported
9537       fi
9538       ;;
9539
9540     aix[4-9]*)
9541       if test "$host_cpu" = ia64; then
9542         # On IA64, the linker does run time linking by default, so we don't
9543         # have to do anything special.
9544         aix_use_runtimelinking=no
9545         exp_sym_flag='-Bexport'
9546         no_entry_flag=""
9547       else
9548         # If we're using GNU nm, then we don't want the "-C" option.
9549         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9550         # Also, AIX nm treats weak defined symbols like other global
9551         # defined symbols, whereas GNU nm marks them as "W".
9552         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9553           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'
9554         else
9555           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'
9556         fi
9557         aix_use_runtimelinking=no
9558
9559         # Test if we are trying to use run time linking or normal
9560         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9561         # need to do runtime linking.
9562         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9563           for ld_flag in $LDFLAGS; do
9564           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9565             aix_use_runtimelinking=yes
9566             break
9567           fi
9568           done
9569           ;;
9570         esac
9571
9572         exp_sym_flag='-bexport'
9573         no_entry_flag='-bnoentry'
9574       fi
9575
9576       # When large executables or shared objects are built, AIX ld can
9577       # have problems creating the table of contents.  If linking a library
9578       # or program results in "error TOC overflow" add -mminimal-toc to
9579       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9580       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9581
9582       archive_cmds=''
9583       hardcode_direct=yes
9584       hardcode_direct_absolute=yes
9585       hardcode_libdir_separator=':'
9586       link_all_deplibs=yes
9587       file_list_spec='${wl}-f,'
9588
9589       if test "$GCC" = yes; then
9590         case $host_os in aix4.[012]|aix4.[012].*)
9591         # We only want to do this on AIX 4.2 and lower, the check
9592         # below for broken collect2 doesn't work under 4.3+
9593           collect2name=`${CC} -print-prog-name=collect2`
9594           if test -f "$collect2name" &&
9595            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9596           then
9597           # We have reworked collect2
9598           :
9599           else
9600           # We have old collect2
9601           hardcode_direct=unsupported
9602           # It fails to find uninstalled libraries when the uninstalled
9603           # path is not listed in the libpath.  Setting hardcode_minus_L
9604           # to unsupported forces relinking
9605           hardcode_minus_L=yes
9606           hardcode_libdir_flag_spec='-L$libdir'
9607           hardcode_libdir_separator=
9608           fi
9609           ;;
9610         esac
9611         shared_flag='-shared'
9612         if test "$aix_use_runtimelinking" = yes; then
9613           shared_flag="$shared_flag "'${wl}-G'
9614         fi
9615       else
9616         # not using gcc
9617         if test "$host_cpu" = ia64; then
9618         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9619         # chokes on -Wl,-G. The following line is correct:
9620           shared_flag='-G'
9621         else
9622           if test "$aix_use_runtimelinking" = yes; then
9623             shared_flag='${wl}-G'
9624           else
9625             shared_flag='${wl}-bM:SRE'
9626           fi
9627         fi
9628       fi
9629
9630       export_dynamic_flag_spec='${wl}-bexpall'
9631       # It seems that -bexpall does not export symbols beginning with
9632       # underscore (_), so it is better to generate a list of symbols to export.
9633       always_export_symbols=yes
9634       if test "$aix_use_runtimelinking" = yes; then
9635         # Warning - without using the other runtime loading flags (-brtl),
9636         # -berok will link without error, but may produce a broken library.
9637         allow_undefined_flag='-berok'
9638         # Determine the default libpath from the value encoded in an
9639         # empty executable.
9640         if test "${lt_cv_aix_libpath+set}" = set; then
9641   aix_libpath=$lt_cv_aix_libpath
9642 else
9643   if ${lt_cv_aix_libpath_+:} false; then :
9644   $as_echo_n "(cached) " >&6
9645 else
9646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h.  */
9648
9649 int
9650 main ()
9651 {
9652
9653   ;
9654   return 0;
9655 }
9656 _ACEOF
9657 if ac_fn_c_try_link "$LINENO"; then :
9658
9659   lt_aix_libpath_sed='
9660       /Import File Strings/,/^$/ {
9661           /^0/ {
9662               s/^0  *\([^ ]*\) *$/\1/
9663               p
9664           }
9665       }'
9666   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9667   # Check for a 64-bit object if we didn't find anything.
9668   if test -z "$lt_cv_aix_libpath_"; then
9669     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9670   fi
9671 fi
9672 rm -f core conftest.err conftest.$ac_objext \
9673     conftest$ac_exeext conftest.$ac_ext
9674   if test -z "$lt_cv_aix_libpath_"; then
9675     lt_cv_aix_libpath_="/usr/lib:/lib"
9676   fi
9677
9678 fi
9679
9680   aix_libpath=$lt_cv_aix_libpath_
9681 fi
9682
9683         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9684         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"
9685       else
9686         if test "$host_cpu" = ia64; then
9687           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9688           allow_undefined_flag="-z nodefs"
9689           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"
9690         else
9691          # Determine the default libpath from the value encoded in an
9692          # empty executable.
9693          if test "${lt_cv_aix_libpath+set}" = set; then
9694   aix_libpath=$lt_cv_aix_libpath
9695 else
9696   if ${lt_cv_aix_libpath_+:} false; then :
9697   $as_echo_n "(cached) " >&6
9698 else
9699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h.  */
9701
9702 int
9703 main ()
9704 {
9705
9706   ;
9707   return 0;
9708 }
9709 _ACEOF
9710 if ac_fn_c_try_link "$LINENO"; then :
9711
9712   lt_aix_libpath_sed='
9713       /Import File Strings/,/^$/ {
9714           /^0/ {
9715               s/^0  *\([^ ]*\) *$/\1/
9716               p
9717           }
9718       }'
9719   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9720   # Check for a 64-bit object if we didn't find anything.
9721   if test -z "$lt_cv_aix_libpath_"; then
9722     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9723   fi
9724 fi
9725 rm -f core conftest.err conftest.$ac_objext \
9726     conftest$ac_exeext conftest.$ac_ext
9727   if test -z "$lt_cv_aix_libpath_"; then
9728     lt_cv_aix_libpath_="/usr/lib:/lib"
9729   fi
9730
9731 fi
9732
9733   aix_libpath=$lt_cv_aix_libpath_
9734 fi
9735
9736          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9737           # Warning - without using the other run time loading flags,
9738           # -berok will link without error, but may produce a broken library.
9739           no_undefined_flag=' ${wl}-bernotok'
9740           allow_undefined_flag=' ${wl}-berok'
9741           if test "$with_gnu_ld" = yes; then
9742             # We only use this code for GNU lds that support --whole-archive.
9743             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9744           else
9745             # Exported symbols can be pulled into shared objects from archives
9746             whole_archive_flag_spec='$convenience'
9747           fi
9748           archive_cmds_need_lc=yes
9749           # This is similar to how AIX traditionally builds its shared libraries.
9750           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'
9751         fi
9752       fi
9753       ;;
9754
9755     amigaos*)
9756       case $host_cpu in
9757       powerpc)
9758             # see comment about AmigaOS4 .so support
9759             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760             archive_expsym_cmds=''
9761         ;;
9762       m68k)
9763             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)'
9764             hardcode_libdir_flag_spec='-L$libdir'
9765             hardcode_minus_L=yes
9766         ;;
9767       esac
9768       ;;
9769
9770     bsdi[45]*)
9771       export_dynamic_flag_spec=-rdynamic
9772       ;;
9773
9774     cygwin* | mingw* | pw32* | cegcc*)
9775       # When not using gcc, we currently assume that we are using
9776       # Microsoft Visual C++.
9777       # hardcode_libdir_flag_spec is actually meaningless, as there is
9778       # no search path for DLLs.
9779       case $cc_basename in
9780       cl*)
9781         # Native MSVC
9782         hardcode_libdir_flag_spec=' '
9783         allow_undefined_flag=unsupported
9784         always_export_symbols=yes
9785         file_list_spec='@'
9786         # Tell ltmain to make .lib files, not .a files.
9787         libext=lib
9788         # Tell ltmain to make .dll files, not .so files.
9789         shrext_cmds=".dll"
9790         # FIXME: Setting linknames here is a bad hack.
9791         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9792         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9793             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9794           else
9795             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9796           fi~
9797           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9798           linknames='
9799         # The linker will not automatically build a static lib if we build a DLL.
9800         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9801         enable_shared_with_static_runtimes=yes
9802         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9803         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9804         # Don't use ranlib
9805         old_postinstall_cmds='chmod 644 $oldlib'
9806         postlink_cmds='lt_outputfile="@OUTPUT@"~
9807           lt_tool_outputfile="@TOOL_OUTPUT@"~
9808           case $lt_outputfile in
9809             *.exe|*.EXE) ;;
9810             *)
9811               lt_outputfile="$lt_outputfile.exe"
9812               lt_tool_outputfile="$lt_tool_outputfile.exe"
9813               ;;
9814           esac~
9815           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9816             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9817             $RM "$lt_outputfile.manifest";
9818           fi'
9819         ;;
9820       *)
9821         # Assume MSVC wrapper
9822         hardcode_libdir_flag_spec=' '
9823         allow_undefined_flag=unsupported
9824         # Tell ltmain to make .lib files, not .a files.
9825         libext=lib
9826         # Tell ltmain to make .dll files, not .so files.
9827         shrext_cmds=".dll"
9828         # FIXME: Setting linknames here is a bad hack.
9829         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9830         # The linker will automatically build a .lib file if we build a DLL.
9831         old_archive_from_new_cmds='true'
9832         # FIXME: Should let the user specify the lib program.
9833         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9834         enable_shared_with_static_runtimes=yes
9835         ;;
9836       esac
9837       ;;
9838
9839     darwin* | rhapsody*)
9840
9841
9842   archive_cmds_need_lc=no
9843   hardcode_direct=no
9844   hardcode_automatic=yes
9845   hardcode_shlibpath_var=unsupported
9846   if test "$lt_cv_ld_force_load" = "yes"; then
9847     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\"`'
9848
9849   else
9850     whole_archive_flag_spec=''
9851   fi
9852   link_all_deplibs=yes
9853   allow_undefined_flag="$_lt_dar_allow_undefined"
9854   case $cc_basename in
9855      ifort*) _lt_dar_can_shared=yes ;;
9856      *) _lt_dar_can_shared=$GCC ;;
9857   esac
9858   if test "$_lt_dar_can_shared" = "yes"; then
9859     output_verbose_link_cmd=func_echo_all
9860     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9861     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9862     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}"
9863     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}"
9864
9865   else
9866   ld_shlibs=no
9867   fi
9868
9869       ;;
9870
9871     dgux*)
9872       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9873       hardcode_libdir_flag_spec='-L$libdir'
9874       hardcode_shlibpath_var=no
9875       ;;
9876
9877     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9878     # support.  Future versions do this automatically, but an explicit c++rt0.o
9879     # does not break anything, and helps significantly (at the cost of a little
9880     # extra space).
9881     freebsd2.2*)
9882       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9883       hardcode_libdir_flag_spec='-R$libdir'
9884       hardcode_direct=yes
9885       hardcode_shlibpath_var=no
9886       ;;
9887
9888     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9889     freebsd2.*)
9890       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9891       hardcode_direct=yes
9892       hardcode_minus_L=yes
9893       hardcode_shlibpath_var=no
9894       ;;
9895
9896     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9897     freebsd* | dragonfly*)
9898       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9899       hardcode_libdir_flag_spec='-R$libdir'
9900       hardcode_direct=yes
9901       hardcode_shlibpath_var=no
9902       ;;
9903
9904     hpux9*)
9905       if test "$GCC" = yes; then
9906         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'
9907       else
9908         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'
9909       fi
9910       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911       hardcode_libdir_separator=:
9912       hardcode_direct=yes
9913
9914       # hardcode_minus_L: Not really in the search PATH,
9915       # but as the default location of the library.
9916       hardcode_minus_L=yes
9917       export_dynamic_flag_spec='${wl}-E'
9918       ;;
9919
9920     hpux10*)
9921       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9922         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9923       else
9924         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9925       fi
9926       if test "$with_gnu_ld" = no; then
9927         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928         hardcode_libdir_separator=:
9929         hardcode_direct=yes
9930         hardcode_direct_absolute=yes
9931         export_dynamic_flag_spec='${wl}-E'
9932         # hardcode_minus_L: Not really in the search PATH,
9933         # but as the default location of the library.
9934         hardcode_minus_L=yes
9935       fi
9936       ;;
9937
9938     hpux11*)
9939       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9940         case $host_cpu in
9941         hppa*64*)
9942           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9943           ;;
9944         ia64*)
9945           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9946           ;;
9947         *)
9948           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9949           ;;
9950         esac
9951       else
9952         case $host_cpu in
9953         hppa*64*)
9954           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9955           ;;
9956         ia64*)
9957           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9958           ;;
9959         *)
9960
9961           # Older versions of the 11.00 compiler do not understand -b yet
9962           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9963           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9964 $as_echo_n "checking if $CC understands -b... " >&6; }
9965 if ${lt_cv_prog_compiler__b+:} false; then :
9966   $as_echo_n "(cached) " >&6
9967 else
9968   lt_cv_prog_compiler__b=no
9969    save_LDFLAGS="$LDFLAGS"
9970    LDFLAGS="$LDFLAGS -b"
9971    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9972    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9973      # The linker can only warn and ignore the option if not recognized
9974      # So say no if there are warnings
9975      if test -s conftest.err; then
9976        # Append any errors to the config.log.
9977        cat conftest.err 1>&5
9978        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9979        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9980        if diff conftest.exp conftest.er2 >/dev/null; then
9981          lt_cv_prog_compiler__b=yes
9982        fi
9983      else
9984        lt_cv_prog_compiler__b=yes
9985      fi
9986    fi
9987    $RM -r conftest*
9988    LDFLAGS="$save_LDFLAGS"
9989
9990 fi
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9992 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9993
9994 if test x"$lt_cv_prog_compiler__b" = xyes; then
9995     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9996 else
9997     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9998 fi
9999
10000           ;;
10001         esac
10002       fi
10003       if test "$with_gnu_ld" = no; then
10004         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005         hardcode_libdir_separator=:
10006
10007         case $host_cpu in
10008         hppa*64*|ia64*)
10009           hardcode_direct=no
10010           hardcode_shlibpath_var=no
10011           ;;
10012         *)
10013           hardcode_direct=yes
10014           hardcode_direct_absolute=yes
10015           export_dynamic_flag_spec='${wl}-E'
10016
10017           # hardcode_minus_L: Not really in the search PATH,
10018           # but as the default location of the library.
10019           hardcode_minus_L=yes
10020           ;;
10021         esac
10022       fi
10023       ;;
10024
10025     irix5* | irix6* | nonstopux*)
10026       if test "$GCC" = yes; then
10027         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'
10028         # Try to use the -exported_symbol ld option, if it does not
10029         # work, assume that -exports_file does not work either and
10030         # implicitly export all symbols.
10031         # This should be the same for all languages, so no per-tag cache variable.
10032         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10033 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10034 if ${lt_cv_irix_exported_symbol+:} false; then :
10035   $as_echo_n "(cached) " >&6
10036 else
10037   save_LDFLAGS="$LDFLAGS"
10038            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10039            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10040 /* end confdefs.h.  */
10041 int foo (void) { return 0; }
10042 _ACEOF
10043 if ac_fn_c_try_link "$LINENO"; then :
10044   lt_cv_irix_exported_symbol=yes
10045 else
10046   lt_cv_irix_exported_symbol=no
10047 fi
10048 rm -f core conftest.err conftest.$ac_objext \
10049     conftest$ac_exeext conftest.$ac_ext
10050            LDFLAGS="$save_LDFLAGS"
10051 fi
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10053 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10054         if test "$lt_cv_irix_exported_symbol" = yes; then
10055           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'
10056         fi
10057       else
10058         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'
10059         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'
10060       fi
10061       archive_cmds_need_lc='no'
10062       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10063       hardcode_libdir_separator=:
10064       inherit_rpath=yes
10065       link_all_deplibs=yes
10066       ;;
10067
10068     netbsd*)
10069       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10070         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10071       else
10072         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10073       fi
10074       hardcode_libdir_flag_spec='-R$libdir'
10075       hardcode_direct=yes
10076       hardcode_shlibpath_var=no
10077       ;;
10078
10079     newsos6)
10080       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10081       hardcode_direct=yes
10082       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10083       hardcode_libdir_separator=:
10084       hardcode_shlibpath_var=no
10085       ;;
10086
10087     *nto* | *qnx*)
10088       ;;
10089
10090     openbsd*)
10091       if test -f /usr/libexec/ld.so; then
10092         hardcode_direct=yes
10093         hardcode_shlibpath_var=no
10094         hardcode_direct_absolute=yes
10095         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10096           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10097           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10098           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10099           export_dynamic_flag_spec='${wl}-E'
10100         else
10101           case $host_os in
10102            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10103              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10104              hardcode_libdir_flag_spec='-R$libdir'
10105              ;;
10106            *)
10107              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10108              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10109              ;;
10110           esac
10111         fi
10112       else
10113         ld_shlibs=no
10114       fi
10115       ;;
10116
10117     os2*)
10118       hardcode_libdir_flag_spec='-L$libdir'
10119       hardcode_minus_L=yes
10120       allow_undefined_flag=unsupported
10121       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'
10122       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10123       ;;
10124
10125     osf3*)
10126       if test "$GCC" = yes; then
10127         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10128         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'
10129       else
10130         allow_undefined_flag=' -expect_unresolved \*'
10131         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'
10132       fi
10133       archive_cmds_need_lc='no'
10134       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10135       hardcode_libdir_separator=:
10136       ;;
10137
10138     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10139       if test "$GCC" = yes; then
10140         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10141         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'
10142         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10143       else
10144         allow_undefined_flag=' -expect_unresolved \*'
10145         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'
10146         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~
10147         $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'
10148
10149         # Both c and cxx compiler support -rpath directly
10150         hardcode_libdir_flag_spec='-rpath $libdir'
10151       fi
10152       archive_cmds_need_lc='no'
10153       hardcode_libdir_separator=:
10154       ;;
10155
10156     solaris*)
10157       no_undefined_flag=' -z defs'
10158       if test "$GCC" = yes; then
10159         wlarc='${wl}'
10160         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$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 -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'
10163       else
10164         case `$CC -V 2>&1` in
10165         *"Compilers 5.0"*)
10166           wlarc=''
10167           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10168           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10169           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10170           ;;
10171         *)
10172           wlarc='${wl}'
10173           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10174           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10175           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10176           ;;
10177         esac
10178       fi
10179       hardcode_libdir_flag_spec='-R$libdir'
10180       hardcode_shlibpath_var=no
10181       case $host_os in
10182       solaris2.[0-5] | solaris2.[0-5].*) ;;
10183       *)
10184         # The compiler driver will combine and reorder linker options,
10185         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10186         # but is careful enough not to reorder.
10187         # Supported since Solaris 2.6 (maybe 2.5.1?)
10188         if test "$GCC" = yes; then
10189           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10190         else
10191           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10192         fi
10193         ;;
10194       esac
10195       link_all_deplibs=yes
10196       ;;
10197
10198     sunos4*)
10199       if test "x$host_vendor" = xsequent; then
10200         # Use $CC to link under sequent, because it throws in some extra .o
10201         # files that make .init and .fini sections work.
10202         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10203       else
10204         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10205       fi
10206       hardcode_libdir_flag_spec='-L$libdir'
10207       hardcode_direct=yes
10208       hardcode_minus_L=yes
10209       hardcode_shlibpath_var=no
10210       ;;
10211
10212     sysv4)
10213       case $host_vendor in
10214         sni)
10215           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10216           hardcode_direct=yes # is this really true???
10217         ;;
10218         siemens)
10219           ## LD is ld it makes a PLAMLIB
10220           ## CC just makes a GrossModule.
10221           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10222           reload_cmds='$CC -r -o $output$reload_objs'
10223           hardcode_direct=no
10224         ;;
10225         motorola)
10226           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10227           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10228         ;;
10229       esac
10230       runpath_var='LD_RUN_PATH'
10231       hardcode_shlibpath_var=no
10232       ;;
10233
10234     sysv4.3*)
10235       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10236       hardcode_shlibpath_var=no
10237       export_dynamic_flag_spec='-Bexport'
10238       ;;
10239
10240     sysv4*MP*)
10241       if test -d /usr/nec; then
10242         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10243         hardcode_shlibpath_var=no
10244         runpath_var=LD_RUN_PATH
10245         hardcode_runpath_var=yes
10246         ld_shlibs=yes
10247       fi
10248       ;;
10249
10250     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10251       no_undefined_flag='${wl}-z,text'
10252       archive_cmds_need_lc=no
10253       hardcode_shlibpath_var=no
10254       runpath_var='LD_RUN_PATH'
10255
10256       if test "$GCC" = yes; then
10257         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10258         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10259       else
10260         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10261         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10262       fi
10263       ;;
10264
10265     sysv5* | sco3.2v5* | sco5v6*)
10266       # Note: We can NOT use -z defs as we might desire, because we do not
10267       # link with -lc, and that would cause any symbols used from libc to
10268       # always be unresolved, which means just about no library would
10269       # ever link correctly.  If we're not using GNU ld we use -z text
10270       # though, which does catch some bad symbols but isn't as heavy-handed
10271       # as -z defs.
10272       no_undefined_flag='${wl}-z,text'
10273       allow_undefined_flag='${wl}-z,nodefs'
10274       archive_cmds_need_lc=no
10275       hardcode_shlibpath_var=no
10276       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10277       hardcode_libdir_separator=':'
10278       link_all_deplibs=yes
10279       export_dynamic_flag_spec='${wl}-Bexport'
10280       runpath_var='LD_RUN_PATH'
10281
10282       if test "$GCC" = yes; then
10283         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10284         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10285       else
10286         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10287         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10288       fi
10289       ;;
10290
10291     uts4*)
10292       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10293       hardcode_libdir_flag_spec='-L$libdir'
10294       hardcode_shlibpath_var=no
10295       ;;
10296
10297     *)
10298       ld_shlibs=no
10299       ;;
10300     esac
10301
10302     if test x$host_vendor = xsni; then
10303       case $host in
10304       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10305         export_dynamic_flag_spec='${wl}-Blargedynsym'
10306         ;;
10307       esac
10308     fi
10309   fi
10310
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10312 $as_echo "$ld_shlibs" >&6; }
10313 test "$ld_shlibs" = no && can_build_shared=no
10314
10315 with_gnu_ld=$with_gnu_ld
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331 #
10332 # Do we need to explicitly link libc?
10333 #
10334 case "x$archive_cmds_need_lc" in
10335 x|xyes)
10336   # Assume -lc should be added
10337   archive_cmds_need_lc=yes
10338
10339   if test "$enable_shared" = yes && test "$GCC" = yes; then
10340     case $archive_cmds in
10341     *'~'*)
10342       # FIXME: we may have to deal with multi-command sequences.
10343       ;;
10344     '$CC '*)
10345       # Test whether the compiler implicitly links with -lc since on some
10346       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10347       # to ld, don't add -lc before -lgcc.
10348       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10349 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10350 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10351   $as_echo_n "(cached) " >&6
10352 else
10353   $RM conftest*
10354         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10355
10356         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10357   (eval $ac_compile) 2>&5
10358   ac_status=$?
10359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10360   test $ac_status = 0; } 2>conftest.err; then
10361           soname=conftest
10362           lib=conftest
10363           libobjs=conftest.$ac_objext
10364           deplibs=
10365           wl=$lt_prog_compiler_wl
10366           pic_flag=$lt_prog_compiler_pic
10367           compiler_flags=-v
10368           linker_flags=-v
10369           verstring=
10370           output_objdir=.
10371           libname=conftest
10372           lt_save_allow_undefined_flag=$allow_undefined_flag
10373           allow_undefined_flag=
10374           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10375   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10376   ac_status=$?
10377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10378   test $ac_status = 0; }
10379           then
10380             lt_cv_archive_cmds_need_lc=no
10381           else
10382             lt_cv_archive_cmds_need_lc=yes
10383           fi
10384           allow_undefined_flag=$lt_save_allow_undefined_flag
10385         else
10386           cat conftest.err 1>&5
10387         fi
10388         $RM conftest*
10389
10390 fi
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10392 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10393       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10394       ;;
10395     esac
10396   fi
10397   ;;
10398 esac
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
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10552 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10553
10554 if test "$GCC" = yes; then
10555   case $host_os in
10556     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10557     *) lt_awk_arg="/^libraries:/" ;;
10558   esac
10559   case $host_os in
10560     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10561     *) lt_sed_strip_eq="s,=/,/,g" ;;
10562   esac
10563   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10564   case $lt_search_path_spec in
10565   *\;*)
10566     # if the path contains ";" then we assume it to be the separator
10567     # otherwise default to the standard path separator (i.e. ":") - it is
10568     # assumed that no part of a normal pathname contains ";" but that should
10569     # okay in the real world where ";" in dirpaths is itself problematic.
10570     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10571     ;;
10572   *)
10573     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10574     ;;
10575   esac
10576   # Ok, now we have the path, separated by spaces, we can step through it
10577   # and add multilib dir if necessary.
10578   lt_tmp_lt_search_path_spec=
10579   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10580   for lt_sys_path in $lt_search_path_spec; do
10581     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10582       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10583     else
10584       test -d "$lt_sys_path" && \
10585         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10586     fi
10587   done
10588   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10589 BEGIN {RS=" "; FS="/|\n";} {
10590   lt_foo="";
10591   lt_count=0;
10592   for (lt_i = NF; lt_i > 0; lt_i--) {
10593     if ($lt_i != "" && $lt_i != ".") {
10594       if ($lt_i == "..") {
10595         lt_count++;
10596       } else {
10597         if (lt_count == 0) {
10598           lt_foo="/" $lt_i lt_foo;
10599         } else {
10600           lt_count--;
10601         }
10602       }
10603     }
10604   }
10605   if (lt_foo != "") { lt_freq[lt_foo]++; }
10606   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10607 }'`
10608   # AWK program above erroneously prepends '/' to C:/dos/paths
10609   # for these hosts.
10610   case $host_os in
10611     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10612       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10613   esac
10614   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10615 else
10616   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10617 fi
10618 library_names_spec=
10619 libname_spec='lib$name'
10620 soname_spec=
10621 shrext_cmds=".so"
10622 postinstall_cmds=
10623 postuninstall_cmds=
10624 finish_cmds=
10625 finish_eval=
10626 shlibpath_var=
10627 shlibpath_overrides_runpath=unknown
10628 version_type=none
10629 dynamic_linker="$host_os ld.so"
10630 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10631 need_lib_prefix=unknown
10632 hardcode_into_libs=no
10633
10634 # when you set need_version to no, make sure it does not cause -set_version
10635 # flags to be left without arguments
10636 need_version=unknown
10637
10638 case $host_os in
10639 aix3*)
10640   version_type=linux # correct to gnu/linux during the next big refactor
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10642   shlibpath_var=LIBPATH
10643
10644   # AIX 3 has no versioning support, so we append a major version to the name.
10645   soname_spec='${libname}${release}${shared_ext}$major'
10646   ;;
10647
10648 aix[4-9]*)
10649   version_type=linux # correct to gnu/linux during the next big refactor
10650   need_lib_prefix=no
10651   need_version=no
10652   hardcode_into_libs=yes
10653   if test "$host_cpu" = ia64; then
10654     # AIX 5 supports IA64
10655     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10656     shlibpath_var=LD_LIBRARY_PATH
10657   else
10658     # With GCC up to 2.95.x, collect2 would create an import file
10659     # for dependence libraries.  The import file would start with
10660     # the line `#! .'.  This would cause the generated library to
10661     # depend on `.', always an invalid library.  This was fixed in
10662     # development snapshots of GCC prior to 3.0.
10663     case $host_os in
10664       aix4 | aix4.[01] | aix4.[01].*)
10665       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10666            echo ' yes '
10667            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10668         :
10669       else
10670         can_build_shared=no
10671       fi
10672       ;;
10673     esac
10674     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10675     # soname into executable. Probably we can add versioning support to
10676     # collect2, so additional links can be useful in future.
10677     if test "$aix_use_runtimelinking" = yes; then
10678       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10679       # instead of lib<name>.a to let people know that these are not
10680       # typical AIX shared libraries.
10681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10682     else
10683       # We preserve .a as extension for shared libraries through AIX4.2
10684       # and later when we are not doing run time linking.
10685       library_names_spec='${libname}${release}.a $libname.a'
10686       soname_spec='${libname}${release}${shared_ext}$major'
10687     fi
10688     shlibpath_var=LIBPATH
10689   fi
10690   ;;
10691
10692 amigaos*)
10693   case $host_cpu in
10694   powerpc)
10695     # Since July 2007 AmigaOS4 officially supports .so libraries.
10696     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10697     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10698     ;;
10699   m68k)
10700     library_names_spec='$libname.ixlibrary $libname.a'
10701     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10702     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'
10703     ;;
10704   esac
10705   ;;
10706
10707 beos*)
10708   library_names_spec='${libname}${shared_ext}'
10709   dynamic_linker="$host_os ld.so"
10710   shlibpath_var=LIBRARY_PATH
10711   ;;
10712
10713 bsdi[45]*)
10714   version_type=linux # correct to gnu/linux during the next big refactor
10715   need_version=no
10716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717   soname_spec='${libname}${release}${shared_ext}$major'
10718   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10719   shlibpath_var=LD_LIBRARY_PATH
10720   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10721   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10722   # the default ld.so.conf also contains /usr/contrib/lib and
10723   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10724   # libtool to hard-code these into programs
10725   ;;
10726
10727 cygwin* | mingw* | pw32* | cegcc*)
10728   version_type=windows
10729   shrext_cmds=".dll"
10730   need_version=no
10731   need_lib_prefix=no
10732
10733   case $GCC,$cc_basename in
10734   yes,*)
10735     # gcc
10736     library_names_spec='$libname.dll.a'
10737     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10738     postinstall_cmds='base_file=`basename \${file}`~
10739       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10740       dldir=$destdir/`dirname \$dlpath`~
10741       test -d \$dldir || mkdir -p \$dldir~
10742       $install_prog $dir/$dlname \$dldir/$dlname~
10743       chmod a+x \$dldir/$dlname~
10744       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10745         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10746       fi'
10747     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10748       dlpath=$dir/\$dldll~
10749        $RM \$dlpath'
10750     shlibpath_overrides_runpath=yes
10751
10752     case $host_os in
10753     cygwin*)
10754       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10755       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10756
10757       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10758       ;;
10759     mingw* | cegcc*)
10760       # MinGW DLLs use traditional 'lib' prefix
10761       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10762       ;;
10763     pw32*)
10764       # pw32 DLLs use 'pw' prefix rather than 'lib'
10765       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10766       ;;
10767     esac
10768     dynamic_linker='Win32 ld.exe'
10769     ;;
10770
10771   *,cl*)
10772     # Native MSVC
10773     libname_spec='$name'
10774     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10775     library_names_spec='${libname}.dll.lib'
10776
10777     case $build_os in
10778     mingw*)
10779       sys_lib_search_path_spec=
10780       lt_save_ifs=$IFS
10781       IFS=';'
10782       for lt_path in $LIB
10783       do
10784         IFS=$lt_save_ifs
10785         # Let DOS variable expansion print the short 8.3 style file name.
10786         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10787         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10788       done
10789       IFS=$lt_save_ifs
10790       # Convert to MSYS style.
10791       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10792       ;;
10793     cygwin*)
10794       # Convert to unix form, then to dos form, then back to unix form
10795       # but this time dos style (no spaces!) so that the unix form looks
10796       # like /cygdrive/c/PROGRA~1:/cygdr...
10797       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10798       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10799       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10800       ;;
10801     *)
10802       sys_lib_search_path_spec="$LIB"
10803       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10804         # It is most probably a Windows format PATH.
10805         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10806       else
10807         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10808       fi
10809       # FIXME: find the short name or the path components, as spaces are
10810       # common. (e.g. "Program Files" -> "PROGRA~1")
10811       ;;
10812     esac
10813
10814     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10815     postinstall_cmds='base_file=`basename \${file}`~
10816       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10817       dldir=$destdir/`dirname \$dlpath`~
10818       test -d \$dldir || mkdir -p \$dldir~
10819       $install_prog $dir/$dlname \$dldir/$dlname'
10820     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10821       dlpath=$dir/\$dldll~
10822        $RM \$dlpath'
10823     shlibpath_overrides_runpath=yes
10824     dynamic_linker='Win32 link.exe'
10825     ;;
10826
10827   *)
10828     # Assume MSVC wrapper
10829     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10830     dynamic_linker='Win32 ld.exe'
10831     ;;
10832   esac
10833   # FIXME: first we should search . and the directory the executable is in
10834   shlibpath_var=PATH
10835   ;;
10836
10837 darwin* | rhapsody*)
10838   dynamic_linker="$host_os dyld"
10839   version_type=darwin
10840   need_lib_prefix=no
10841   need_version=no
10842   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10843   soname_spec='${libname}${release}${major}$shared_ext'
10844   shlibpath_overrides_runpath=yes
10845   shlibpath_var=DYLD_LIBRARY_PATH
10846   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10847
10848   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10849   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10850   ;;
10851
10852 dgux*)
10853   version_type=linux # correct to gnu/linux during the next big refactor
10854   need_lib_prefix=no
10855   need_version=no
10856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10857   soname_spec='${libname}${release}${shared_ext}$major'
10858   shlibpath_var=LD_LIBRARY_PATH
10859   ;;
10860
10861 freebsd* | dragonfly*)
10862   # DragonFly does not have aout.  When/if they implement a new
10863   # versioning mechanism, adjust this.
10864   if test -x /usr/bin/objformat; then
10865     objformat=`/usr/bin/objformat`
10866   else
10867     case $host_os in
10868     freebsd[23].*) objformat=aout ;;
10869     *) objformat=elf ;;
10870     esac
10871   fi
10872   version_type=freebsd-$objformat
10873   case $version_type in
10874     freebsd-elf*)
10875       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10876       need_version=no
10877       need_lib_prefix=no
10878       ;;
10879     freebsd-*)
10880       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10881       need_version=yes
10882       ;;
10883   esac
10884   shlibpath_var=LD_LIBRARY_PATH
10885   case $host_os in
10886   freebsd2.*)
10887     shlibpath_overrides_runpath=yes
10888     ;;
10889   freebsd3.[01]* | freebsdelf3.[01]*)
10890     shlibpath_overrides_runpath=yes
10891     hardcode_into_libs=yes
10892     ;;
10893   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10894   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10895     shlibpath_overrides_runpath=no
10896     hardcode_into_libs=yes
10897     ;;
10898   *) # from 4.6 on, and DragonFly
10899     shlibpath_overrides_runpath=yes
10900     hardcode_into_libs=yes
10901     ;;
10902   esac
10903   ;;
10904
10905 gnu*)
10906   version_type=linux # correct to gnu/linux during the next big refactor
10907   need_lib_prefix=no
10908   need_version=no
10909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10910   soname_spec='${libname}${release}${shared_ext}$major'
10911   shlibpath_var=LD_LIBRARY_PATH
10912   shlibpath_overrides_runpath=no
10913   hardcode_into_libs=yes
10914   ;;
10915
10916 haiku*)
10917   version_type=linux # correct to gnu/linux during the next big refactor
10918   need_lib_prefix=no
10919   need_version=no
10920   dynamic_linker="$host_os runtime_loader"
10921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10922   soname_spec='${libname}${release}${shared_ext}$major'
10923   shlibpath_var=LIBRARY_PATH
10924   shlibpath_overrides_runpath=yes
10925   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10926   hardcode_into_libs=yes
10927   ;;
10928
10929 hpux9* | hpux10* | hpux11*)
10930   # Give a soname corresponding to the major version so that dld.sl refuses to
10931   # link against other versions.
10932   version_type=sunos
10933   need_lib_prefix=no
10934   need_version=no
10935   case $host_cpu in
10936   ia64*)
10937     shrext_cmds='.so'
10938     hardcode_into_libs=yes
10939     dynamic_linker="$host_os dld.so"
10940     shlibpath_var=LD_LIBRARY_PATH
10941     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943     soname_spec='${libname}${release}${shared_ext}$major'
10944     if test "X$HPUX_IA64_MODE" = X32; then
10945       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10946     else
10947       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10948     fi
10949     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10950     ;;
10951   hppa*64*)
10952     shrext_cmds='.sl'
10953     hardcode_into_libs=yes
10954     dynamic_linker="$host_os dld.sl"
10955     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10956     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10957     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10958     soname_spec='${libname}${release}${shared_ext}$major'
10959     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10960     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10961     ;;
10962   *)
10963     shrext_cmds='.sl'
10964     dynamic_linker="$host_os dld.sl"
10965     shlibpath_var=SHLIB_PATH
10966     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10967     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10968     soname_spec='${libname}${release}${shared_ext}$major'
10969     ;;
10970   esac
10971   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10972   postinstall_cmds='chmod 555 $lib'
10973   # or fails outright, so override atomically:
10974   install_override_mode=555
10975   ;;
10976
10977 interix[3-9]*)
10978   version_type=linux # correct to gnu/linux during the next big refactor
10979   need_lib_prefix=no
10980   need_version=no
10981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10982   soname_spec='${libname}${release}${shared_ext}$major'
10983   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10984   shlibpath_var=LD_LIBRARY_PATH
10985   shlibpath_overrides_runpath=no
10986   hardcode_into_libs=yes
10987   ;;
10988
10989 irix5* | irix6* | nonstopux*)
10990   case $host_os in
10991     nonstopux*) version_type=nonstopux ;;
10992     *)
10993         if test "$lt_cv_prog_gnu_ld" = yes; then
10994                 version_type=linux # correct to gnu/linux during the next big refactor
10995         else
10996                 version_type=irix
10997         fi ;;
10998   esac
10999   need_lib_prefix=no
11000   need_version=no
11001   soname_spec='${libname}${release}${shared_ext}$major'
11002   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11003   case $host_os in
11004   irix5* | nonstopux*)
11005     libsuff= shlibsuff=
11006     ;;
11007   *)
11008     case $LD in # libtool.m4 will add one of these switches to LD
11009     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11010       libsuff= shlibsuff= libmagic=32-bit;;
11011     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11012       libsuff=32 shlibsuff=N32 libmagic=N32;;
11013     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11014       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11015     *) libsuff= shlibsuff= libmagic=never-match;;
11016     esac
11017     ;;
11018   esac
11019   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11020   shlibpath_overrides_runpath=no
11021   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11022   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11023   hardcode_into_libs=yes
11024   ;;
11025
11026 # No shared lib support for Linux oldld, aout, or coff.
11027 linux*oldld* | linux*aout* | linux*coff*)
11028   dynamic_linker=no
11029   ;;
11030
11031 # This must be glibc/ELF.
11032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11033   version_type=linux # correct to gnu/linux during the next big refactor
11034   need_lib_prefix=no
11035   need_version=no
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037   soname_spec='${libname}${release}${shared_ext}$major'
11038   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11039   shlibpath_var=LD_LIBRARY_PATH
11040   shlibpath_overrides_runpath=no
11041
11042   # Some binutils ld are patched to set DT_RUNPATH
11043   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11044   $as_echo_n "(cached) " >&6
11045 else
11046   lt_cv_shlibpath_overrides_runpath=no
11047     save_LDFLAGS=$LDFLAGS
11048     save_libdir=$libdir
11049     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11050          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11051     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11052 /* end confdefs.h.  */
11053
11054 int
11055 main ()
11056 {
11057
11058   ;
11059   return 0;
11060 }
11061 _ACEOF
11062 if ac_fn_c_try_link "$LINENO"; then :
11063   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11064   lt_cv_shlibpath_overrides_runpath=yes
11065 fi
11066 fi
11067 rm -f core conftest.err conftest.$ac_objext \
11068     conftest$ac_exeext conftest.$ac_ext
11069     LDFLAGS=$save_LDFLAGS
11070     libdir=$save_libdir
11071
11072 fi
11073
11074   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11075
11076   # This implies no fast_install, which is unacceptable.
11077   # Some rework will be needed to allow for fast_install
11078   # before this can be enabled.
11079   hardcode_into_libs=yes
11080
11081   # Add ABI-specific directories to the system library path.
11082   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11083
11084   # Append ld.so.conf contents to the search path
11085   if test -f /etc/ld.so.conf; then
11086     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' ' '`
11087     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11088
11089   fi
11090
11091   # We used to test for /lib/ld.so.1 and disable shared libraries on
11092   # powerpc, because MkLinux only supported shared libraries with the
11093   # GNU dynamic linker.  Since this was broken with cross compilers,
11094   # most powerpc-linux boxes support dynamic linking these days and
11095   # people can always --disable-shared, the test was removed, and we
11096   # assume the GNU/Linux dynamic linker is in use.
11097   dynamic_linker='GNU/Linux ld.so'
11098   ;;
11099
11100 netbsd*)
11101   version_type=sunos
11102   need_lib_prefix=no
11103   need_version=no
11104   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11105     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11106     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107     dynamic_linker='NetBSD (a.out) ld.so'
11108   else
11109     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11110     soname_spec='${libname}${release}${shared_ext}$major'
11111     dynamic_linker='NetBSD ld.elf_so'
11112   fi
11113   shlibpath_var=LD_LIBRARY_PATH
11114   shlibpath_overrides_runpath=yes
11115   hardcode_into_libs=yes
11116   ;;
11117
11118 newsos6)
11119   version_type=linux # correct to gnu/linux during the next big refactor
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121   shlibpath_var=LD_LIBRARY_PATH
11122   shlibpath_overrides_runpath=yes
11123   ;;
11124
11125 *nto* | *qnx*)
11126   version_type=qnx
11127   need_lib_prefix=no
11128   need_version=no
11129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11130   soname_spec='${libname}${release}${shared_ext}$major'
11131   shlibpath_var=LD_LIBRARY_PATH
11132   shlibpath_overrides_runpath=no
11133   hardcode_into_libs=yes
11134   dynamic_linker='ldqnx.so'
11135   ;;
11136
11137 openbsd*)
11138   version_type=sunos
11139   sys_lib_dlsearch_path_spec="/usr/lib"
11140   need_lib_prefix=no
11141   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11142   case $host_os in
11143     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11144     *)                          need_version=no  ;;
11145   esac
11146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11147   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11148   shlibpath_var=LD_LIBRARY_PATH
11149   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11150     case $host_os in
11151       openbsd2.[89] | openbsd2.[89].*)
11152         shlibpath_overrides_runpath=no
11153         ;;
11154       *)
11155         shlibpath_overrides_runpath=yes
11156         ;;
11157       esac
11158   else
11159     shlibpath_overrides_runpath=yes
11160   fi
11161   ;;
11162
11163 os2*)
11164   libname_spec='$name'
11165   shrext_cmds=".dll"
11166   need_lib_prefix=no
11167   library_names_spec='$libname${shared_ext} $libname.a'
11168   dynamic_linker='OS/2 ld.exe'
11169   shlibpath_var=LIBPATH
11170   ;;
11171
11172 osf3* | osf4* | osf5*)
11173   version_type=osf
11174   need_lib_prefix=no
11175   need_version=no
11176   soname_spec='${libname}${release}${shared_ext}$major'
11177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11178   shlibpath_var=LD_LIBRARY_PATH
11179   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11180   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11181   ;;
11182
11183 rdos*)
11184   dynamic_linker=no
11185   ;;
11186
11187 solaris*)
11188   version_type=linux # correct to gnu/linux during the next big refactor
11189   need_lib_prefix=no
11190   need_version=no
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192   soname_spec='${libname}${release}${shared_ext}$major'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   shlibpath_overrides_runpath=yes
11195   hardcode_into_libs=yes
11196   # ldd complains unless libraries are executable
11197   postinstall_cmds='chmod +x $lib'
11198   ;;
11199
11200 sunos4*)
11201   version_type=sunos
11202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   shlibpath_overrides_runpath=yes
11206   if test "$with_gnu_ld" = yes; then
11207     need_lib_prefix=no
11208   fi
11209   need_version=yes
11210   ;;
11211
11212 sysv4 | sysv4.3*)
11213   version_type=linux # correct to gnu/linux during the next big refactor
11214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215   soname_spec='${libname}${release}${shared_ext}$major'
11216   shlibpath_var=LD_LIBRARY_PATH
11217   case $host_vendor in
11218     sni)
11219       shlibpath_overrides_runpath=no
11220       need_lib_prefix=no
11221       runpath_var=LD_RUN_PATH
11222       ;;
11223     siemens)
11224       need_lib_prefix=no
11225       ;;
11226     motorola)
11227       need_lib_prefix=no
11228       need_version=no
11229       shlibpath_overrides_runpath=no
11230       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11231       ;;
11232   esac
11233   ;;
11234
11235 sysv4*MP*)
11236   if test -d /usr/nec ;then
11237     version_type=linux # correct to gnu/linux during the next big refactor
11238     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11239     soname_spec='$libname${shared_ext}.$major'
11240     shlibpath_var=LD_LIBRARY_PATH
11241   fi
11242   ;;
11243
11244 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11245   version_type=freebsd-elf
11246   need_lib_prefix=no
11247   need_version=no
11248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11249   soname_spec='${libname}${release}${shared_ext}$major'
11250   shlibpath_var=LD_LIBRARY_PATH
11251   shlibpath_overrides_runpath=yes
11252   hardcode_into_libs=yes
11253   if test "$with_gnu_ld" = yes; then
11254     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11255   else
11256     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11257     case $host_os in
11258       sco3.2v5*)
11259         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11260         ;;
11261     esac
11262   fi
11263   sys_lib_dlsearch_path_spec='/usr/lib'
11264   ;;
11265
11266 tpf*)
11267   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11268   version_type=linux # correct to gnu/linux during the next big refactor
11269   need_lib_prefix=no
11270   need_version=no
11271   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11272   shlibpath_var=LD_LIBRARY_PATH
11273   shlibpath_overrides_runpath=no
11274   hardcode_into_libs=yes
11275   ;;
11276
11277 uts4*)
11278   version_type=linux # correct to gnu/linux during the next big refactor
11279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11280   soname_spec='${libname}${release}${shared_ext}$major'
11281   shlibpath_var=LD_LIBRARY_PATH
11282   ;;
11283
11284 *)
11285   dynamic_linker=no
11286   ;;
11287 esac
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11289 $as_echo "$dynamic_linker" >&6; }
11290 test "$dynamic_linker" = no && can_build_shared=no
11291
11292 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11293 if test "$GCC" = yes; then
11294   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11295 fi
11296
11297 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11298   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11299 fi
11300 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11301   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11302 fi
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
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11396 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11397 hardcode_action=
11398 if test -n "$hardcode_libdir_flag_spec" ||
11399    test -n "$runpath_var" ||
11400    test "X$hardcode_automatic" = "Xyes" ; then
11401
11402   # We can hardcode non-existent directories.
11403   if test "$hardcode_direct" != no &&
11404      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11405      # have to relink, otherwise we might link with an installed library
11406      # when we should be linking with a yet-to-be-installed one
11407      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11408      test "$hardcode_minus_L" != no; then
11409     # Linking always hardcodes the temporary library directory.
11410     hardcode_action=relink
11411   else
11412     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11413     hardcode_action=immediate
11414   fi
11415 else
11416   # We cannot hardcode anything, or else we can only hardcode existing
11417   # directories.
11418   hardcode_action=unsupported
11419 fi
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11421 $as_echo "$hardcode_action" >&6; }
11422
11423 if test "$hardcode_action" = relink ||
11424    test "$inherit_rpath" = yes; then
11425   # Fast installation is not supported
11426   enable_fast_install=no
11427 elif test "$shlibpath_overrides_runpath" = yes ||
11428      test "$enable_shared" = no; then
11429   # Fast installation is not necessary
11430   enable_fast_install=needless
11431 fi
11432
11433
11434
11435
11436
11437
11438   if test "x$enable_dlopen" != xyes; then
11439   enable_dlopen=unknown
11440   enable_dlopen_self=unknown
11441   enable_dlopen_self_static=unknown
11442 else
11443   lt_cv_dlopen=no
11444   lt_cv_dlopen_libs=
11445
11446   case $host_os in
11447   beos*)
11448     lt_cv_dlopen="load_add_on"
11449     lt_cv_dlopen_libs=
11450     lt_cv_dlopen_self=yes
11451     ;;
11452
11453   mingw* | pw32* | cegcc*)
11454     lt_cv_dlopen="LoadLibrary"
11455     lt_cv_dlopen_libs=
11456     ;;
11457
11458   cygwin*)
11459     lt_cv_dlopen="dlopen"
11460     lt_cv_dlopen_libs=
11461     ;;
11462
11463   darwin*)
11464   # if libdl is installed we need to link against it
11465     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11466 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11467 if ${ac_cv_lib_dl_dlopen+:} false; then :
11468   $as_echo_n "(cached) " >&6
11469 else
11470   ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-ldl  $LIBS"
11472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h.  */
11474
11475 /* Override any GCC internal prototype to avoid an error.
11476    Use char because int might match the return type of a GCC
11477    builtin and then its argument prototype would still apply.  */
11478 #ifdef __cplusplus
11479 extern "C"
11480 #endif
11481 char dlopen ();
11482 int
11483 main ()
11484 {
11485 return dlopen ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 if ac_fn_c_try_link "$LINENO"; then :
11491   ac_cv_lib_dl_dlopen=yes
11492 else
11493   ac_cv_lib_dl_dlopen=no
11494 fi
11495 rm -f core conftest.err conftest.$ac_objext \
11496     conftest$ac_exeext conftest.$ac_ext
11497 LIBS=$ac_check_lib_save_LIBS
11498 fi
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11500 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11501 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11502   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11503 else
11504
11505     lt_cv_dlopen="dyld"
11506     lt_cv_dlopen_libs=
11507     lt_cv_dlopen_self=yes
11508
11509 fi
11510
11511     ;;
11512
11513   *)
11514     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11515 if test "x$ac_cv_func_shl_load" = xyes; then :
11516   lt_cv_dlopen="shl_load"
11517 else
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11519 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11520 if ${ac_cv_lib_dld_shl_load+:} false; then :
11521   $as_echo_n "(cached) " >&6
11522 else
11523   ac_check_lib_save_LIBS=$LIBS
11524 LIBS="-ldld  $LIBS"
11525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11526 /* end confdefs.h.  */
11527
11528 /* Override any GCC internal prototype to avoid an error.
11529    Use char because int might match the return type of a GCC
11530    builtin and then its argument prototype would still apply.  */
11531 #ifdef __cplusplus
11532 extern "C"
11533 #endif
11534 char shl_load ();
11535 int
11536 main ()
11537 {
11538 return shl_load ();
11539   ;
11540   return 0;
11541 }
11542 _ACEOF
11543 if ac_fn_c_try_link "$LINENO"; then :
11544   ac_cv_lib_dld_shl_load=yes
11545 else
11546   ac_cv_lib_dld_shl_load=no
11547 fi
11548 rm -f core conftest.err conftest.$ac_objext \
11549     conftest$ac_exeext conftest.$ac_ext
11550 LIBS=$ac_check_lib_save_LIBS
11551 fi
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11553 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11554 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11555   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11556 else
11557   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11558 if test "x$ac_cv_func_dlopen" = xyes; then :
11559   lt_cv_dlopen="dlopen"
11560 else
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11562 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11563 if ${ac_cv_lib_dl_dlopen+:} false; then :
11564   $as_echo_n "(cached) " >&6
11565 else
11566   ac_check_lib_save_LIBS=$LIBS
11567 LIBS="-ldl  $LIBS"
11568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11569 /* end confdefs.h.  */
11570
11571 /* Override any GCC internal prototype to avoid an error.
11572    Use char because int might match the return type of a GCC
11573    builtin and then its argument prototype would still apply.  */
11574 #ifdef __cplusplus
11575 extern "C"
11576 #endif
11577 char dlopen ();
11578 int
11579 main ()
11580 {
11581 return dlopen ();
11582   ;
11583   return 0;
11584 }
11585 _ACEOF
11586 if ac_fn_c_try_link "$LINENO"; then :
11587   ac_cv_lib_dl_dlopen=yes
11588 else
11589   ac_cv_lib_dl_dlopen=no
11590 fi
11591 rm -f core conftest.err conftest.$ac_objext \
11592     conftest$ac_exeext conftest.$ac_ext
11593 LIBS=$ac_check_lib_save_LIBS
11594 fi
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11596 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11597 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11598   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11599 else
11600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11601 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11602 if ${ac_cv_lib_svld_dlopen+:} false; then :
11603   $as_echo_n "(cached) " >&6
11604 else
11605   ac_check_lib_save_LIBS=$LIBS
11606 LIBS="-lsvld  $LIBS"
11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h.  */
11609
11610 /* Override any GCC internal prototype to avoid an error.
11611    Use char because int might match the return type of a GCC
11612    builtin and then its argument prototype would still apply.  */
11613 #ifdef __cplusplus
11614 extern "C"
11615 #endif
11616 char dlopen ();
11617 int
11618 main ()
11619 {
11620 return dlopen ();
11621   ;
11622   return 0;
11623 }
11624 _ACEOF
11625 if ac_fn_c_try_link "$LINENO"; then :
11626   ac_cv_lib_svld_dlopen=yes
11627 else
11628   ac_cv_lib_svld_dlopen=no
11629 fi
11630 rm -f core conftest.err conftest.$ac_objext \
11631     conftest$ac_exeext conftest.$ac_ext
11632 LIBS=$ac_check_lib_save_LIBS
11633 fi
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11635 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11636 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11637   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11638 else
11639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11640 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11641 if ${ac_cv_lib_dld_dld_link+:} false; then :
11642   $as_echo_n "(cached) " >&6
11643 else
11644   ac_check_lib_save_LIBS=$LIBS
11645 LIBS="-ldld  $LIBS"
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h.  */
11648
11649 /* Override any GCC internal prototype to avoid an error.
11650    Use char because int might match the return type of a GCC
11651    builtin and then its argument prototype would still apply.  */
11652 #ifdef __cplusplus
11653 extern "C"
11654 #endif
11655 char dld_link ();
11656 int
11657 main ()
11658 {
11659 return dld_link ();
11660   ;
11661   return 0;
11662 }
11663 _ACEOF
11664 if ac_fn_c_try_link "$LINENO"; then :
11665   ac_cv_lib_dld_dld_link=yes
11666 else
11667   ac_cv_lib_dld_dld_link=no
11668 fi
11669 rm -f core conftest.err conftest.$ac_objext \
11670     conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11672 fi
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11674 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11675 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11676   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11677 fi
11678
11679
11680 fi
11681
11682
11683 fi
11684
11685
11686 fi
11687
11688
11689 fi
11690
11691
11692 fi
11693
11694     ;;
11695   esac
11696
11697   if test "x$lt_cv_dlopen" != xno; then
11698     enable_dlopen=yes
11699   else
11700     enable_dlopen=no
11701   fi
11702
11703   case $lt_cv_dlopen in
11704   dlopen)
11705     save_CPPFLAGS="$CPPFLAGS"
11706     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11707
11708     save_LDFLAGS="$LDFLAGS"
11709     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11710
11711     save_LIBS="$LIBS"
11712     LIBS="$lt_cv_dlopen_libs $LIBS"
11713
11714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11715 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11716 if ${lt_cv_dlopen_self+:} false; then :
11717   $as_echo_n "(cached) " >&6
11718 else
11719           if test "$cross_compiling" = yes; then :
11720   lt_cv_dlopen_self=cross
11721 else
11722   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11723   lt_status=$lt_dlunknown
11724   cat > conftest.$ac_ext <<_LT_EOF
11725 #line $LINENO "configure"
11726 #include "confdefs.h"
11727
11728 #if HAVE_DLFCN_H
11729 #include <dlfcn.h>
11730 #endif
11731
11732 #include <stdio.h>
11733
11734 #ifdef RTLD_GLOBAL
11735 #  define LT_DLGLOBAL           RTLD_GLOBAL
11736 #else
11737 #  ifdef DL_GLOBAL
11738 #    define LT_DLGLOBAL         DL_GLOBAL
11739 #  else
11740 #    define LT_DLGLOBAL         0
11741 #  endif
11742 #endif
11743
11744 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11745    find out it does not work in some platform. */
11746 #ifndef LT_DLLAZY_OR_NOW
11747 #  ifdef RTLD_LAZY
11748 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11749 #  else
11750 #    ifdef DL_LAZY
11751 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11752 #    else
11753 #      ifdef RTLD_NOW
11754 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11755 #      else
11756 #        ifdef DL_NOW
11757 #          define LT_DLLAZY_OR_NOW      DL_NOW
11758 #        else
11759 #          define LT_DLLAZY_OR_NOW      0
11760 #        endif
11761 #      endif
11762 #    endif
11763 #  endif
11764 #endif
11765
11766 /* When -fvisbility=hidden is used, assume the code has been annotated
11767    correspondingly for the symbols needed.  */
11768 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11769 int fnord () __attribute__((visibility("default")));
11770 #endif
11771
11772 int fnord () { return 42; }
11773 int main ()
11774 {
11775   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11776   int status = $lt_dlunknown;
11777
11778   if (self)
11779     {
11780       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11781       else
11782         {
11783           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11784           else puts (dlerror ());
11785         }
11786       /* dlclose (self); */
11787     }
11788   else
11789     puts (dlerror ());
11790
11791   return status;
11792 }
11793 _LT_EOF
11794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11795   (eval $ac_link) 2>&5
11796   ac_status=$?
11797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11798   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11799     (./conftest; exit; ) >&5 2>/dev/null
11800     lt_status=$?
11801     case x$lt_status in
11802       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11803       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11804       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11805     esac
11806   else :
11807     # compilation failed
11808     lt_cv_dlopen_self=no
11809   fi
11810 fi
11811 rm -fr conftest*
11812
11813
11814 fi
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11816 $as_echo "$lt_cv_dlopen_self" >&6; }
11817
11818     if test "x$lt_cv_dlopen_self" = xyes; then
11819       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11820       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11821 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11822 if ${lt_cv_dlopen_self_static+:} false; then :
11823   $as_echo_n "(cached) " >&6
11824 else
11825           if test "$cross_compiling" = yes; then :
11826   lt_cv_dlopen_self_static=cross
11827 else
11828   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11829   lt_status=$lt_dlunknown
11830   cat > conftest.$ac_ext <<_LT_EOF
11831 #line $LINENO "configure"
11832 #include "confdefs.h"
11833
11834 #if HAVE_DLFCN_H
11835 #include <dlfcn.h>
11836 #endif
11837
11838 #include <stdio.h>
11839
11840 #ifdef RTLD_GLOBAL
11841 #  define LT_DLGLOBAL           RTLD_GLOBAL
11842 #else
11843 #  ifdef DL_GLOBAL
11844 #    define LT_DLGLOBAL         DL_GLOBAL
11845 #  else
11846 #    define LT_DLGLOBAL         0
11847 #  endif
11848 #endif
11849
11850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11851    find out it does not work in some platform. */
11852 #ifndef LT_DLLAZY_OR_NOW
11853 #  ifdef RTLD_LAZY
11854 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11855 #  else
11856 #    ifdef DL_LAZY
11857 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11858 #    else
11859 #      ifdef RTLD_NOW
11860 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11861 #      else
11862 #        ifdef DL_NOW
11863 #          define LT_DLLAZY_OR_NOW      DL_NOW
11864 #        else
11865 #          define LT_DLLAZY_OR_NOW      0
11866 #        endif
11867 #      endif
11868 #    endif
11869 #  endif
11870 #endif
11871
11872 /* When -fvisbility=hidden is used, assume the code has been annotated
11873    correspondingly for the symbols needed.  */
11874 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11875 int fnord () __attribute__((visibility("default")));
11876 #endif
11877
11878 int fnord () { return 42; }
11879 int main ()
11880 {
11881   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11882   int status = $lt_dlunknown;
11883
11884   if (self)
11885     {
11886       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11887       else
11888         {
11889           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11890           else puts (dlerror ());
11891         }
11892       /* dlclose (self); */
11893     }
11894   else
11895     puts (dlerror ());
11896
11897   return status;
11898 }
11899 _LT_EOF
11900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11901   (eval $ac_link) 2>&5
11902   ac_status=$?
11903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11905     (./conftest; exit; ) >&5 2>/dev/null
11906     lt_status=$?
11907     case x$lt_status in
11908       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11909       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11910       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11911     esac
11912   else :
11913     # compilation failed
11914     lt_cv_dlopen_self_static=no
11915   fi
11916 fi
11917 rm -fr conftest*
11918
11919
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11922 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11923     fi
11924
11925     CPPFLAGS="$save_CPPFLAGS"
11926     LDFLAGS="$save_LDFLAGS"
11927     LIBS="$save_LIBS"
11928     ;;
11929   esac
11930
11931   case $lt_cv_dlopen_self in
11932   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11933   *) enable_dlopen_self=unknown ;;
11934   esac
11935
11936   case $lt_cv_dlopen_self_static in
11937   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11938   *) enable_dlopen_self_static=unknown ;;
11939   esac
11940 fi
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958 striplib=
11959 old_striplib=
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11961 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11962 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11963   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11964   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11966 $as_echo "yes" >&6; }
11967 else
11968 # FIXME - insert some real tests, host_os isn't really good enough
11969   case $host_os in
11970   darwin*)
11971     if test -n "$STRIP" ; then
11972       striplib="$STRIP -x"
11973       old_striplib="$STRIP -S"
11974       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11975 $as_echo "yes" >&6; }
11976     else
11977       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11978 $as_echo "no" >&6; }
11979     fi
11980     ;;
11981   *)
11982     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11983 $as_echo "no" >&6; }
11984     ;;
11985   esac
11986 fi
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999   # Report which library types will actually be built
12000   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12001 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12003 $as_echo "$can_build_shared" >&6; }
12004
12005   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12006 $as_echo_n "checking whether to build shared libraries... " >&6; }
12007   test "$can_build_shared" = "no" && enable_shared=no
12008
12009   # On AIX, shared libraries and static libraries use the same namespace, and
12010   # are all built from PIC.
12011   case $host_os in
12012   aix3*)
12013     test "$enable_shared" = yes && enable_static=no
12014     if test -n "$RANLIB"; then
12015       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12016       postinstall_cmds='$RANLIB $lib'
12017     fi
12018     ;;
12019
12020   aix[4-9]*)
12021     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12022       test "$enable_shared" = yes && enable_static=no
12023     fi
12024     ;;
12025   esac
12026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12027 $as_echo "$enable_shared" >&6; }
12028
12029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12030 $as_echo_n "checking whether to build static libraries... " >&6; }
12031   # Make sure either enable_shared or enable_static is yes.
12032   test "$enable_shared" = yes || enable_static=yes
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12034 $as_echo "$enable_static" >&6; }
12035
12036
12037
12038
12039 fi
12040 ac_ext=c
12041 ac_cpp='$CPP $CPPFLAGS'
12042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12045
12046 CC="$lt_save_CC"
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062         ac_config_commands="$ac_config_commands libtool"
12063
12064
12065
12066
12067 # Only expand once:
12068
12069
12070
12071
12072 # Test for 64-bit build.
12073 # The cast to long int works around a bug in the HP C Compiler
12074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12076 # This bug is HP SR number 8606223364.
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
12078 $as_echo_n "checking size of size_t... " >&6; }
12079 if ${ac_cv_sizeof_size_t+:} false; then :
12080   $as_echo_n "(cached) " >&6
12081 else
12082   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
12083
12084 else
12085   if test "$ac_cv_type_size_t" = yes; then
12086      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12088 as_fn_error 77 "cannot compute sizeof (size_t)
12089 See \`config.log' for more details" "$LINENO" 5; }
12090    else
12091      ac_cv_sizeof_size_t=0
12092    fi
12093 fi
12094
12095 fi
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12097 $as_echo "$ac_cv_sizeof_size_t" >&6; }
12098
12099
12100
12101 cat >>confdefs.h <<_ACEOF
12102 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
12103 _ACEOF
12104
12105
12106
12107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
12108 $as_echo_n "checking for C compiler vendor... " >&6; }
12109 if ${ax_cv_c_compiler_vendor+:} false; then :
12110   $as_echo_n "(cached) " >&6
12111 else
12112   # note: don't check for gcc first since some other compilers define __GNUC__
12113   vendors="intel:     __ICC,__ECC,__INTEL_COMPILER
12114            ibm:       __xlc__,__xlC__,__IBMC__,__IBMCPP__
12115            pathscale: __PATHCC__,__PATHSCALE__
12116            clang:     __clang__
12117            gnu:       __GNUC__
12118            sun:       __SUNPRO_C,__SUNPRO_CC
12119            hp:        __HP_cc,__HP_aCC
12120            dec:       __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
12121            borland:   __BORLANDC__,__TURBOC__
12122            comeau:    __COMO__
12123            cray:      _CRAYC
12124            kai:       __KCC
12125            lcc:       __LCC__
12126            sgi:       __sgi,sgi
12127            microsoft: _MSC_VER
12128            metrowerks: __MWERKS__
12129            watcom:    __WATCOMC__
12130            portland:  __PGI
12131            unknown:   UNKNOWN"
12132   for ventest in $vendors; do
12133     case $ventest in
12134       *:) vendor=$ventest; continue ;;
12135       *)  vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
12136     esac
12137     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 /* end confdefs.h.  */
12139
12140 int
12141 main ()
12142 {
12143
12144       #if !($vencpp)
12145         thisisanerror;
12146       #endif
12147
12148   ;
12149   return 0;
12150 }
12151 _ACEOF
12152 if ac_fn_c_try_compile "$LINENO"; then :
12153   break
12154 fi
12155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12156   done
12157   ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
12158
12159 fi
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
12161 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
12162
12163
12164
12165
12166
12167
12168 # Check whether --enable-portable-binary was given.
12169 if test "${enable_portable_binary+set}" = set; then :
12170   enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
12171 else
12172   acx_maxopt_portable=no
12173 fi
12174
12175
12176 # Try to determine "good" native compiler flags if none specified via CFLAGS
12177 if test "$ac_test_CFLAGS" != "set"; then
12178   CFLAGS=""
12179   case $ax_cv_c_compiler_vendor in
12180     dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
12181          if test "x$acx_maxopt_portable" = xno; then
12182            CFLAGS="$CFLAGS -arch host"
12183          fi;;
12184
12185     sun) CFLAGS="-native -fast -xO5 -dalign"
12186          if test "x$acx_maxopt_portable" = xyes; then
12187            CFLAGS="$CFLAGS -xarch=generic"
12188          fi;;
12189
12190     hp)  CFLAGS="+Oall +Optrs_ansi +DSnative"
12191          if test "x$acx_maxopt_portable" = xyes; then
12192            CFLAGS="$CFLAGS +DAportable"
12193          fi;;
12194
12195     ibm) if test "x$acx_maxopt_portable" = xno; then
12196            xlc_opt="-qarch=auto -qtune=auto"
12197          else
12198            xlc_opt="-qtune=auto"
12199          fi
12200          as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
12202 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
12203 if eval \${$as_CACHEVAR+:} false; then :
12204   $as_echo_n "(cached) " >&6
12205 else
12206
12207   ax_check_save_flags=$CFLAGS
12208   CFLAGS="$CFLAGS  $xlc_opt"
12209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h.  */
12211
12212 int
12213 main ()
12214 {
12215
12216   ;
12217   return 0;
12218 }
12219 _ACEOF
12220 if ac_fn_c_try_compile "$LINENO"; then :
12221   eval "$as_CACHEVAR=yes"
12222 else
12223   eval "$as_CACHEVAR=no"
12224 fi
12225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12226   CFLAGS=$ax_check_save_flags
12227 fi
12228 eval ac_res=\$$as_CACHEVAR
12229                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12230 $as_echo "$ac_res" >&6; }
12231 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12232   CFLAGS="-O3 -qansialias -w $xlc_opt"
12233 else
12234   CFLAGS="-O3 -qansialias -w"
12235                 echo "******************************************************"
12236                 echo "*  You seem to have the IBM  C compiler.  It is      *"
12237                 echo "*  recommended for best performance that you use:    *"
12238                 echo "*                                                    *"
12239                 echo "*    CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
12240                 echo "*                      ^^^        ^^^                *"
12241                 echo "*  where xxx is pwr2, pwr3, 604, or whatever kind of *"
12242                 echo "*  CPU you have.  (Set the CFLAGS environment var.   *"
12243                 echo "*  and re-run configure.)  For more info, man cc.    *"
12244                 echo "******************************************************"
12245 fi
12246
12247          ;;
12248
12249     intel) CFLAGS="-O3 -ansi_alias"
12250         if test "x$acx_maxopt_portable" = xno; then
12251           icc_archflag=unknown
12252           icc_flags=""
12253           case $host_cpu in
12254             i686*|x86_64*)
12255               # icc accepts gcc assembly syntax, so these should work:
12256
12257 ac_ext=c
12258 ac_cpp='$CPP $CPPFLAGS'
12259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12264 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12265 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12266   $as_echo_n "(cached) " >&6
12267 else
12268   if test "$cross_compiling" = yes; then :
12269   ax_cv_gcc_x86_cpuid_0=unknown
12270 else
12271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h.  */
12273 #include <stdio.h>
12274 int
12275 main ()
12276 {
12277
12278      int op = 0, eax, ebx, ecx, edx;
12279      FILE *f;
12280       __asm__("cpuid"
12281         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12282         : "a" (op));
12283      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12284      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12285      fclose(f);
12286      return 0;
12287
12288   ;
12289   return 0;
12290 }
12291 _ACEOF
12292 if ac_fn_c_try_run "$LINENO"; then :
12293   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12294 else
12295   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12296 fi
12297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12298   conftest.$ac_objext conftest.beam conftest.$ac_ext
12299 fi
12300
12301 fi
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12303 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12304 ac_ext=c
12305 ac_cpp='$CPP $CPPFLAGS'
12306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12309
12310
12311
12312 ac_ext=c
12313 ac_cpp='$CPP $CPPFLAGS'
12314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12317
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12319 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12320 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12321   $as_echo_n "(cached) " >&6
12322 else
12323   if test "$cross_compiling" = yes; then :
12324   ax_cv_gcc_x86_cpuid_1=unknown
12325 else
12326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327 /* end confdefs.h.  */
12328 #include <stdio.h>
12329 int
12330 main ()
12331 {
12332
12333      int op = 1, eax, ebx, ecx, edx;
12334      FILE *f;
12335       __asm__("cpuid"
12336         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12337         : "a" (op));
12338      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12339      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12340      fclose(f);
12341      return 0;
12342
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 if ac_fn_c_try_run "$LINENO"; then :
12348   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12349 else
12350   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12351 fi
12352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12353   conftest.$ac_objext conftest.beam conftest.$ac_ext
12354 fi
12355
12356 fi
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12358 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12359 ac_ext=c
12360 ac_cpp='$CPP $CPPFLAGS'
12361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12364
12365
12366               case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
12367                 *:756e6547:*:*) # Intel
12368                   case $ax_cv_gcc_x86_cpuid_1 in
12369                     *6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
12370                     *f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
12371                     *f??:*:*:*) icc_flags="-xN -xW -xK";;
12372                   esac ;;
12373               esac ;;
12374           esac
12375           if test "x$icc_flags" != x; then
12376             for flag in $icc_flags; do
12377               as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12379 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12380 if eval \${$as_CACHEVAR+:} false; then :
12381   $as_echo_n "(cached) " >&6
12382 else
12383
12384   ax_check_save_flags=$CFLAGS
12385   CFLAGS="$CFLAGS  $flag"
12386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h.  */
12388
12389 int
12390 main ()
12391 {
12392
12393   ;
12394   return 0;
12395 }
12396 _ACEOF
12397 if ac_fn_c_try_compile "$LINENO"; then :
12398   eval "$as_CACHEVAR=yes"
12399 else
12400   eval "$as_CACHEVAR=no"
12401 fi
12402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12403   CFLAGS=$ax_check_save_flags
12404 fi
12405 eval ac_res=\$$as_CACHEVAR
12406                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12407 $as_echo "$ac_res" >&6; }
12408 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12409   icc_archflag=$flag; break
12410 else
12411   :
12412 fi
12413
12414             done
12415           fi
12416           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
12417 $as_echo_n "checking for icc architecture flag... " >&6; }
12418           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
12419 $as_echo "$icc_archflag" >&6; }
12420           if test "x$icc_archflag" != xunknown; then
12421             CFLAGS="$CFLAGS $icc_archflag"
12422           fi
12423         fi
12424         ;;
12425
12426     gnu)
12427      # default optimization flags for gcc on all systems
12428      CFLAGS="-O3 -fomit-frame-pointer"
12429
12430      # -malign-double for x86 systems
12431      # LIBFFI -- DON'T DO THIS - CHANGES ABI
12432      # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
12433
12434      #  -fstrict-aliasing for gcc-2.95+
12435      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
12436 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
12437 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
12438   $as_echo_n "(cached) " >&6
12439 else
12440
12441   ax_check_save_flags=$CFLAGS
12442   CFLAGS="$CFLAGS  -fstrict-aliasing"
12443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h.  */
12445
12446 int
12447 main ()
12448 {
12449
12450   ;
12451   return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"; then :
12455   ax_cv_check_cflags___fstrict_aliasing=yes
12456 else
12457   ax_cv_check_cflags___fstrict_aliasing=no
12458 fi
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460   CFLAGS=$ax_check_save_flags
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
12463 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
12464 if test x"$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
12465   CFLAGS="$CFLAGS -fstrict-aliasing"
12466 else
12467   :
12468 fi
12469
12470
12471      # note that we enable "unsafe" fp optimization with other compilers, too
12472      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
12473 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
12474 if ${ax_cv_check_cflags___ffast_math+:} false; then :
12475   $as_echo_n "(cached) " >&6
12476 else
12477
12478   ax_check_save_flags=$CFLAGS
12479   CFLAGS="$CFLAGS  -ffast-math"
12480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12481 /* end confdefs.h.  */
12482
12483 int
12484 main ()
12485 {
12486
12487   ;
12488   return 0;
12489 }
12490 _ACEOF
12491 if ac_fn_c_try_compile "$LINENO"; then :
12492   ax_cv_check_cflags___ffast_math=yes
12493 else
12494   ax_cv_check_cflags___ffast_math=no
12495 fi
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12497   CFLAGS=$ax_check_save_flags
12498 fi
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
12500 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
12501 if test x"$ax_cv_check_cflags___ffast_math" = xyes; then :
12502   CFLAGS="$CFLAGS -ffast-math"
12503 else
12504   :
12505 fi
12506
12507
12508
12509
12510
12511
12512 # Check whether --with-gcc-arch was given.
12513 if test "${with_gcc_arch+set}" = set; then :
12514   withval=$with_gcc_arch; ax_gcc_arch=$withval
12515 else
12516   ax_gcc_arch=yes
12517 fi
12518
12519
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12521 $as_echo_n "checking for gcc architecture flag... " >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
12523 $as_echo "" >&6; }
12524 if ${ax_cv_gcc_archflag+:} false; then :
12525   $as_echo_n "(cached) " >&6
12526 else
12527
12528 ax_cv_gcc_archflag="unknown"
12529
12530 if test "$GCC" = yes; then
12531
12532 if test "x$ax_gcc_arch" = xyes; then
12533 ax_gcc_arch=""
12534 if test "$cross_compiling" = no; then
12535 case $host_cpu in
12536   i[3456]86*|x86_64*) # use cpuid codes
12537
12538 ac_ext=c
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
12545 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
12546 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
12547   $as_echo_n "(cached) " >&6
12548 else
12549   if test "$cross_compiling" = yes; then :
12550   ax_cv_gcc_x86_cpuid_0=unknown
12551 else
12552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12553 /* end confdefs.h.  */
12554 #include <stdio.h>
12555 int
12556 main ()
12557 {
12558
12559      int op = 0, eax, ebx, ecx, edx;
12560      FILE *f;
12561       __asm__("cpuid"
12562         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12563         : "a" (op));
12564      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12565      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12566      fclose(f);
12567      return 0;
12568
12569   ;
12570   return 0;
12571 }
12572 _ACEOF
12573 if ac_fn_c_try_run "$LINENO"; then :
12574   ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
12575 else
12576   ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
12577 fi
12578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12579   conftest.$ac_objext conftest.beam conftest.$ac_ext
12580 fi
12581
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12584 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12585 ac_ext=c
12586 ac_cpp='$CPP $CPPFLAGS'
12587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12590
12591
12592
12593 ac_ext=c
12594 ac_cpp='$CPP $CPPFLAGS'
12595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12598
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12600 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12601 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12602   $as_echo_n "(cached) " >&6
12603 else
12604   if test "$cross_compiling" = yes; then :
12605   ax_cv_gcc_x86_cpuid_1=unknown
12606 else
12607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12608 /* end confdefs.h.  */
12609 #include <stdio.h>
12610 int
12611 main ()
12612 {
12613
12614      int op = 1, eax, ebx, ecx, edx;
12615      FILE *f;
12616       __asm__("cpuid"
12617         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12618         : "a" (op));
12619      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12620      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12621      fclose(f);
12622      return 0;
12623
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_run "$LINENO"; then :
12629   ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12630 else
12631   ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12632 fi
12633 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12634   conftest.$ac_objext conftest.beam conftest.$ac_ext
12635 fi
12636
12637 fi
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12639 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12640 ac_ext=c
12641 ac_cpp='$CPP $CPPFLAGS'
12642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12645
12646
12647      case $ax_cv_gcc_x86_cpuid_0 in
12648        *:756e6547:*:*) # Intel
12649           case $ax_cv_gcc_x86_cpuid_1 in
12650             *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12651             *5??:*:*:*) ax_gcc_arch=pentium ;;
12652             *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12653             *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12654             *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12655             *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12656             *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12657             *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
12658             *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
12659             *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
12660             *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
12661             *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
12662             *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12663             *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
12664             ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
12665                 case $host_cpu in
12666                   x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12667                   *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12668                 esac ;;
12669             ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12670           esac ;;
12671        *:68747541:*:*) # AMD
12672           case $ax_cv_gcc_x86_cpuid_1 in
12673             *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12674             *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12675             *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12676             *60?:*:*:*) ax_gcc_arch=k7 ;;
12677             *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12678             *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12679             *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12680             *6[68a]?:*:*:*)
12681
12682 ac_ext=c
12683 ac_cpp='$CPP $CPPFLAGS'
12684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12687
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12689 $as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12690 if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12691   $as_echo_n "(cached) " >&6
12692 else
12693   if test "$cross_compiling" = yes; then :
12694   ax_cv_gcc_x86_cpuid_0x80000006=unknown
12695 else
12696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12697 /* end confdefs.h.  */
12698 #include <stdio.h>
12699 int
12700 main ()
12701 {
12702
12703      int op = 0x80000006, eax, ebx, ecx, edx;
12704      FILE *f;
12705       __asm__("cpuid"
12706         : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12707         : "a" (op));
12708      f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12709      fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12710      fclose(f);
12711      return 0;
12712
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_c_try_run "$LINENO"; then :
12718   ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12719 else
12720   ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12721 fi
12722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12723   conftest.$ac_objext conftest.beam conftest.$ac_ext
12724 fi
12725
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12728 $as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12729 ac_ext=c
12730 ac_cpp='$CPP $CPPFLAGS'
12731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12734
12735  # L2 cache size
12736                case $ax_cv_gcc_x86_cpuid_0x80000006 in
12737                  *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12738                         ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12739                  *) ax_gcc_arch="athlon-4 athlon k7" ;;
12740                esac ;;
12741             ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12742             ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12743             ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12744             ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
12745             ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
12746             ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
12747             *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
12748           esac ;;
12749         *:746e6543:*:*) # IDT
12750            case $ax_cv_gcc_x86_cpuid_1 in
12751              *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12752              *58?:*:*:*) ax_gcc_arch=winchip2 ;;
12753              *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12754              *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12755            esac ;;
12756      esac
12757      if test x"$ax_gcc_arch" = x; then # fallback
12758         case $host_cpu in
12759           i586*) ax_gcc_arch=pentium ;;
12760           i686*) ax_gcc_arch=pentiumpro ;;
12761         esac
12762      fi
12763      ;;
12764
12765   sparc*)
12766      # Extract the first word of "prtdiag", so it can be a program name with args.
12767 set dummy prtdiag; ac_word=$2
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12769 $as_echo_n "checking for $ac_word... " >&6; }
12770 if ${ac_cv_path_PRTDIAG+:} false; then :
12771   $as_echo_n "(cached) " >&6
12772 else
12773   case $PRTDIAG in
12774   [\\/]* | ?:[\\/]*)
12775   ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12776   ;;
12777   *)
12778   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12780 for as_dir in $as_dummy
12781 do
12782   IFS=$as_save_IFS
12783   test -z "$as_dir" && as_dir=.
12784     for ac_exec_ext in '' $ac_executable_extensions; do
12785   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12786     ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12788     break 2
12789   fi
12790 done
12791   done
12792 IFS=$as_save_IFS
12793
12794   test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12795   ;;
12796 esac
12797 fi
12798 PRTDIAG=$ac_cv_path_PRTDIAG
12799 if test -n "$PRTDIAG"; then
12800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12801 $as_echo "$PRTDIAG" >&6; }
12802 else
12803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12805 fi
12806
12807
12808      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`
12809      cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12810      case $cputype in
12811          *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12812          *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12813          *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12814          *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12815          *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12816          *cypress*) ax_gcc_arch=cypress ;;
12817      esac ;;
12818
12819   alphaev5) ax_gcc_arch=ev5 ;;
12820   alphaev56) ax_gcc_arch=ev56 ;;
12821   alphapca56) ax_gcc_arch="pca56 ev56" ;;
12822   alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12823   alphaev6) ax_gcc_arch=ev6 ;;
12824   alphaev67) ax_gcc_arch=ev67 ;;
12825   alphaev68) ax_gcc_arch="ev68 ev67" ;;
12826   alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12827   alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12828   alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12829
12830   powerpc*)
12831      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`
12832      cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12833      case $cputype in
12834        *750*) ax_gcc_arch="750 G3" ;;
12835        *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12836        *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12837        *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12838        *970*) ax_gcc_arch="970 G5 power4";;
12839        *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12840        *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12841        603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12842        *) ax_gcc_arch=$cputype ;;
12843      esac
12844      ax_gcc_arch="$ax_gcc_arch powerpc"
12845      ;;
12846 esac
12847 fi # not cross-compiling
12848 fi # guess arch
12849
12850 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12851 for arch in $ax_gcc_arch; do
12852   if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12853     flags="-mtune=$arch"
12854     # -mcpu=$arch and m$arch generate nonportable code on every arch except
12855     # x86.  And some other arches (e.g. Alpha) don't accept -mtune.  Grrr.
12856     case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12857   else
12858     flags="-march=$arch -mcpu=$arch -m$arch"
12859   fi
12860   for flag in $flags; do
12861     as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12863 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12864 if eval \${$as_CACHEVAR+:} false; then :
12865   $as_echo_n "(cached) " >&6
12866 else
12867
12868   ax_check_save_flags=$CFLAGS
12869   CFLAGS="$CFLAGS  $flag"
12870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h.  */
12872
12873 int
12874 main ()
12875 {
12876
12877   ;
12878   return 0;
12879 }
12880 _ACEOF
12881 if ac_fn_c_try_compile "$LINENO"; then :
12882   eval "$as_CACHEVAR=yes"
12883 else
12884   eval "$as_CACHEVAR=no"
12885 fi
12886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12887   CFLAGS=$ax_check_save_flags
12888 fi
12889 eval ac_res=\$$as_CACHEVAR
12890                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12891 $as_echo "$ac_res" >&6; }
12892 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12893   ax_cv_gcc_archflag=$flag; break
12894 else
12895   :
12896 fi
12897
12898   done
12899   test "x$ax_cv_gcc_archflag" = xunknown || break
12900 done
12901 fi
12902
12903 fi # $GCC=yes
12904
12905 fi
12906
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12908 $as_echo_n "checking for gcc architecture flag... " >&6; }
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12910 $as_echo "$ax_cv_gcc_archflag" >&6; }
12911 if test "x$ax_cv_gcc_archflag" = xunknown; then
12912   :
12913 else
12914   CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12915 fi
12916
12917      ;;
12918   esac
12919
12920   if test -z "$CFLAGS"; then
12921         echo ""
12922         echo "********************************************************"
12923         echo "* WARNING: Don't know the best CFLAGS for this system  *"
12924         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12925         echo "* (otherwise, a default of CFLAGS=-O3 will be used)    *"
12926         echo "********************************************************"
12927         echo ""
12928         CFLAGS="-O3"
12929   fi
12930
12931   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12933 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12934 if eval \${$as_CACHEVAR+:} false; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937
12938   ax_check_save_flags=$CFLAGS
12939   CFLAGS="$CFLAGS  $CFLAGS"
12940   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12941 /* end confdefs.h.  */
12942
12943 int
12944 main ()
12945 {
12946
12947   ;
12948   return 0;
12949 }
12950 _ACEOF
12951 if ac_fn_c_try_compile "$LINENO"; then :
12952   eval "$as_CACHEVAR=yes"
12953 else
12954   eval "$as_CACHEVAR=no"
12955 fi
12956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12957   CFLAGS=$ax_check_save_flags
12958 fi
12959 eval ac_res=\$$as_CACHEVAR
12960                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12961 $as_echo "$ac_res" >&6; }
12962 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
12963   :
12964 else
12965
12966         echo ""
12967         echo "********************************************************"
12968         echo "* WARNING: The guessed CFLAGS don't seem to work with  *"
12969         echo "* your compiler.                                       *"
12970         echo "* Use ./configure CFLAGS=... to specify your own flags *"
12971         echo "********************************************************"
12972         echo ""
12973         CFLAGS=""
12974
12975 fi
12976
12977
12978 fi
12979
12980 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
12981 # compiler.
12982 if test "$ax_cv_c_compiler_vendor" != "sun"; then
12983   if ${CFLAGS+:} false; then :
12984   case " $CFLAGS " in
12985     *"  "*)
12986       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
12987   (: CFLAGS already contains ) 2>&5
12988   ac_status=$?
12989   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12990   test $ac_status = 0; }
12991       ;;
12992     *)
12993       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
12994   (: CFLAGS="$CFLAGS ") 2>&5
12995   ac_status=$?
12996   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997   test $ac_status = 0; }
12998       CFLAGS="$CFLAGS "
12999       ;;
13000    esac
13001 else
13002   CFLAGS=""
13003 fi
13004
13005 ac_ext=c
13006 ac_cpp='$CPP $CPPFLAGS'
13007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13010
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
13012 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
13013 if ${ac_cv_cflags_warn_all+:} false; then :
13014   $as_echo_n "(cached) " >&6
13015 else
13016   ac_cv_cflags_warn_all="no, unknown"
13017 ac_save_CFLAGS="$CFLAGS"
13018 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"    #
13019 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
13020    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h.  */
13022
13023 int
13024 main ()
13025 {
13026
13027   ;
13028   return 0;
13029 }
13030 _ACEOF
13031 if ac_fn_c_try_compile "$LINENO"; then :
13032   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
13033 fi
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 done
13036 CFLAGS="$ac_save_CFLAGS"
13037
13038 fi
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
13040 $as_echo "$ac_cv_cflags_warn_all" >&6; }
13041
13042 case ".$ac_cv_cflags_warn_all" in
13043      .ok|.ok,*)  ;;
13044    .|.no|.no,*)  ;;
13045    *) if ${CFLAGS+:} false; then :
13046   case " $CFLAGS " in
13047     *" $ac_cv_cflags_warn_all "*)
13048       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
13049   (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
13050   ac_status=$?
13051   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052   test $ac_status = 0; }
13053       ;;
13054     *)
13055       { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
13056   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
13057   ac_status=$?
13058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059   test $ac_status = 0; }
13060       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
13061       ;;
13062    esac
13063 else
13064   CFLAGS="$ac_cv_cflags_warn_all"
13065 fi
13066  ;;
13067 esac
13068
13069 ac_ext=c
13070 ac_cpp='$CPP $CPPFLAGS'
13071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13074
13075
13076 fi
13077
13078 if test "x$GCC" = "xyes"; then
13079   CFLAGS="$CFLAGS -fexceptions"
13080   touch local.exp
13081 else
13082   cat > local.exp <<EOF
13083 set CC_FOR_TARGET "$CC"
13084 EOF
13085 fi
13086
13087
13088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
13089 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
13090     # Check whether --enable-maintainer-mode was given.
13091 if test "${enable_maintainer_mode+set}" = set; then :
13092   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
13093 else
13094   USE_MAINTAINER_MODE=no
13095 fi
13096
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
13098 $as_echo "$USE_MAINTAINER_MODE" >&6; }
13099    if test $USE_MAINTAINER_MODE = yes; then
13100   MAINTAINER_MODE_TRUE=
13101   MAINTAINER_MODE_FALSE='#'
13102 else
13103   MAINTAINER_MODE_TRUE='#'
13104   MAINTAINER_MODE_FALSE=
13105 fi
13106
13107   MAINT=$MAINTAINER_MODE_TRUE
13108
13109
13110
13111 for ac_header in sys/mman.h
13112 do :
13113   ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13114 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13115   cat >>confdefs.h <<_ACEOF
13116 #define HAVE_SYS_MMAN_H 1
13117 _ACEOF
13118
13119 fi
13120
13121 done
13122
13123 for ac_func in mmap
13124 do :
13125   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13126 if test "x$ac_cv_func_mmap" = xyes; then :
13127   cat >>confdefs.h <<_ACEOF
13128 #define HAVE_MMAP 1
13129 _ACEOF
13130
13131 fi
13132 done
13133
13134
13135 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
13136 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
13137   libffi_header_sys_mman_h=yes
13138 else
13139   libffi_header_sys_mman_h=no
13140 fi
13141
13142
13143 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13144 if test "x$ac_cv_func_mmap" = xyes; then :
13145   libffi_func_mmap=yes
13146 else
13147   libffi_func_mmap=no
13148 fi
13149
13150 if test "$libffi_header_sys_mman_h" != yes \
13151  || test "$libffi_func_mmap" != yes; then
13152    ac_cv_func_mmap_file=no
13153    ac_cv_func_mmap_dev_zero=no
13154    ac_cv_func_mmap_anon=no
13155 else
13156    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
13157 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
13158 if ${ac_cv_func_mmap_file+:} false; then :
13159   $as_echo_n "(cached) " >&6
13160 else
13161   # Add a system to this blacklist if
13162    # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
13163    # memory area containing the same data that you'd get if you applied
13164    # read() to the same fd.  The only system known to have a problem here
13165    # is VMS, where text files have record structure.
13166    case "$host_os" in
13167      vms* | ultrix*)
13168         ac_cv_func_mmap_file=no ;;
13169      *)
13170         ac_cv_func_mmap_file=yes;;
13171    esac
13172 fi
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
13174 $as_echo "$ac_cv_func_mmap_file" >&6; }
13175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
13176 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
13177 if ${ac_cv_func_mmap_dev_zero+:} false; then :
13178   $as_echo_n "(cached) " >&6
13179 else
13180   # Add a system to this blacklist if it has mmap() but /dev/zero
13181    # does not exist, or if mmapping /dev/zero does not give anonymous
13182    # zeroed pages with both the following properties:
13183    # 1. If you map N consecutive pages in with one call, and then
13184    #    unmap any subset of those pages, the pages that were not
13185    #    explicitly unmapped remain accessible.
13186    # 2. If you map two adjacent blocks of memory and then unmap them
13187    #    both at once, they must both go away.
13188    # Systems known to be in this category are Windows (all variants),
13189    # VMS, and Darwin.
13190    case "$host_os" in
13191      vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
13192         ac_cv_func_mmap_dev_zero=no ;;
13193      *)
13194         ac_cv_func_mmap_dev_zero=yes;;
13195    esac
13196 fi
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
13198 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
13199
13200    # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
13201    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
13202 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
13203 if ${ac_cv_decl_map_anon+:} false; then :
13204   $as_echo_n "(cached) " >&6
13205 else
13206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h.  */
13208 #include <sys/types.h>
13209 #include <sys/mman.h>
13210 #include <unistd.h>
13211
13212 #ifndef MAP_ANONYMOUS
13213 #define MAP_ANONYMOUS MAP_ANON
13214 #endif
13215
13216 int
13217 main ()
13218 {
13219 int n = MAP_ANONYMOUS;
13220   ;
13221   return 0;
13222 }
13223 _ACEOF
13224 if ac_fn_c_try_compile "$LINENO"; then :
13225   ac_cv_decl_map_anon=yes
13226 else
13227   ac_cv_decl_map_anon=no
13228 fi
13229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13230 fi
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
13232 $as_echo "$ac_cv_decl_map_anon" >&6; }
13233
13234    if test $ac_cv_decl_map_anon = no; then
13235      ac_cv_func_mmap_anon=no
13236    else
13237      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
13238 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
13239 if ${ac_cv_func_mmap_anon+:} false; then :
13240   $as_echo_n "(cached) " >&6
13241 else
13242   # Add a system to this blacklist if it has mmap() and MAP_ANON or
13243    # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
13244    # doesn't give anonymous zeroed pages with the same properties listed
13245    # above for use of /dev/zero.
13246    # Systems known to be in this category are Windows, VMS, and SCO Unix.
13247    case "$host_os" in
13248      vms* | cygwin* | pe | mingw* | sco* | udk* )
13249         ac_cv_func_mmap_anon=no ;;
13250      *)
13251         ac_cv_func_mmap_anon=yes;;
13252    esac
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
13255 $as_echo "$ac_cv_func_mmap_anon" >&6; }
13256    fi
13257 fi
13258
13259 if test $ac_cv_func_mmap_file = yes; then
13260
13261 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
13262
13263 fi
13264 if test $ac_cv_func_mmap_dev_zero = yes; then
13265
13266 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
13267
13268 fi
13269 if test $ac_cv_func_mmap_anon = yes; then
13270
13271 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
13272
13273 fi
13274
13275
13276  if test -d $srcdir/testsuite; then
13277   TESTSUBDIR_TRUE=
13278   TESTSUBDIR_FALSE='#'
13279 else
13280   TESTSUBDIR_TRUE='#'
13281   TESTSUBDIR_FALSE=
13282 fi
13283
13284
13285 TARGETDIR="unknown"
13286 case "$host" in
13287   aarch64*-*-*)
13288         TARGET=AARCH64; TARGETDIR=aarch64
13289         ;;
13290
13291   alpha*-*-*)
13292         TARGET=ALPHA; TARGETDIR=alpha;
13293         # Support 128-bit long double, changeable via command-line switch.
13294         HAVE_LONG_DOUBLE='defined(__LONG_DOUBLE_128__)'
13295         ;;
13296
13297   arm*-*-*)
13298         TARGET=ARM; TARGETDIR=arm
13299         ;;
13300
13301   amd64-*-freebsd* | amd64-*-openbsd*)
13302         TARGET=X86_64; TARGETDIR=x86
13303         ;;
13304
13305   amd64-*-freebsd*)
13306         TARGET=X86_64; TARGETDIR=x86
13307         ;;
13308
13309   amd64-*-freebsd*)
13310         TARGET=X86_64; TARGETDIR=x86
13311         ;;
13312
13313   avr32*-*-*)
13314         TARGET=AVR32; TARGETDIR=avr32
13315         ;;
13316
13317   bfin*)
13318         TARGET=BFIN; TARGETDIR=bfin
13319         ;;
13320
13321   cris-*-*)
13322         TARGET=LIBFFI_CRIS; TARGETDIR=cris
13323         ;;
13324
13325   frv-*-*)
13326         TARGET=FRV; TARGETDIR=frv
13327         ;;
13328
13329   hppa*-*-linux* | parisc*-*-linux* | hppa*-*-openbsd*)
13330         TARGET=PA_LINUX; TARGETDIR=pa
13331         ;;
13332   hppa*64-*-hpux*)
13333         TARGET=PA64_HPUX; TARGETDIR=pa
13334         ;;
13335   hppa*-*-hpux*)
13336         TARGET=PA_HPUX; TARGETDIR=pa
13337         ;;
13338
13339   i?86-*-freebsd* | i?86-*-openbsd*)
13340         TARGET=X86_FREEBSD; TARGETDIR=x86
13341         ;;
13342   i?86-win32* | i?86-*-cygwin* | i?86-*-mingw* | i?86-*-os2* | i?86-*-interix*)
13343         TARGET=X86_WIN32; TARGETDIR=x86
13344         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13345         # We must also check with_cross_host to decide if this is a native
13346         # or cross-build and select where to install dlls appropriately.
13347         if test -n "$with_cross_host" &&
13348            test x"$with_cross_host" != x"no"; then
13349           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13350         else
13351           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13352         fi
13353         ;;
13354   i?86-*-darwin*)
13355         TARGET=X86_DARWIN; TARGETDIR=x86
13356         ;;
13357   i?86-*-solaris2.1[0-9]*)
13358         TARGETDIR=x86
13359         if test $ac_cv_sizeof_size_t = 4; then
13360           TARGET=X86;
13361         else
13362           TARGET=X86_64;
13363         fi
13364         ;;
13365
13366   i?86-*-* | x86_64-*-*)
13367         TARGETDIR=x86
13368         if test $ac_cv_sizeof_size_t = 4; then
13369           TARGET=X86;
13370         else
13371           TARGET=X86_64;
13372         fi
13373         ;;
13374
13375   ia64*-*-*)
13376         TARGET=IA64; TARGETDIR=ia64
13377         ;;
13378
13379   m32r*-*-*)
13380         TARGET=M32R; TARGETDIR=m32r
13381         ;;
13382
13383   m68k-*-*)
13384         TARGET=M68K; TARGETDIR=m68k
13385         ;;
13386
13387   mips-sgi-irix5.* | mips-sgi-irix6.* | mips*-*-rtems*)
13388         TARGET=MIPS; TARGETDIR=mips
13389         ;;
13390   mips*-*-linux* | mips*-*-openbsd*)
13391         # Support 128-bit long double for NewABI.
13392         HAVE_LONG_DOUBLE='defined(__mips64)'
13393         TARGET=MIPS; TARGETDIR=mips
13394         ;;
13395
13396   powerpc*-*-linux* | powerpc-*-sysv*)
13397         TARGET=POWERPC; TARGETDIR=powerpc
13398         ;;
13399   powerpc-*-amigaos*)
13400         TARGET=POWERPC; TARGETDIR=powerpc
13401         ;;
13402   powerpc-*-beos*)
13403         TARGET=POWERPC; TARGETDIR=powerpc
13404         ;;
13405   powerpc-*-darwin* | powerpc64-*-darwin*)
13406         TARGET=POWERPC_DARWIN; TARGETDIR=powerpc
13407         ;;
13408   powerpc-*-aix* | rs6000-*-aix*)
13409         TARGET=POWERPC_AIX; TARGETDIR=powerpc
13410         ;;
13411   powerpc-*-freebsd* | powerpc-*-openbsd*)
13412         TARGET=POWERPC_FREEBSD; TARGETDIR=powerpc
13413         ;;
13414   powerpc64-*-freebsd*)
13415         TARGET=POWERPC; TARGETDIR=powerpc
13416         ;;
13417   powerpc*-*-rtems*)
13418         TARGET=POWERPC; TARGETDIR=powerpc
13419         ;;
13420
13421   s390-*-* | s390x-*-*)
13422         TARGET=S390; TARGETDIR=s390
13423         ;;
13424
13425   sh-*-* | sh[34]*-*-*)
13426         TARGET=SH; TARGETDIR=sh
13427         ;;
13428   sh64-*-* | sh5*-*-*)
13429         TARGET=SH64; TARGETDIR=sh64
13430         ;;
13431
13432   sparc*-*-*)
13433         TARGET=SPARC; TARGETDIR=sparc
13434         ;;
13435
13436   tile*-*)
13437         TARGET=TILE; TARGETDIR=tile
13438         ;;
13439
13440   x86_64-*-darwin*)
13441         TARGET=X86_DARWIN; TARGETDIR=x86
13442         ;;
13443
13444   x86_64-*-cygwin* | x86_64-*-mingw*)
13445         TARGET=X86_WIN64; TARGETDIR=x86
13446         # All mingw/cygwin/win32 builds require -no-undefined for sharedlib.
13447         # We must also check with_cross_host to decide if this is a native
13448         # or cross-build and select where to install dlls appropriately.
13449         if test -n "$with_cross_host" &&
13450            test x"$with_cross_host" != x"no"; then
13451           AM_LTLDFLAGS='-no-undefined -bindir "$(toolexeclibdir)"';
13452         else
13453           AM_LTLDFLAGS='-no-undefined -bindir "$(bindir)"';
13454         fi
13455         ;;
13456
13457   xtensa*-*)
13458         TARGET=XTENSA; TARGETDIR=xtensa
13459         ;;
13460
13461 esac
13462
13463
13464
13465
13466 if test $TARGETDIR = unknown; then
13467   as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
13468 fi
13469
13470  if test x$TARGET = xMIPS; then
13471   MIPS_TRUE=
13472   MIPS_FALSE='#'
13473 else
13474   MIPS_TRUE='#'
13475   MIPS_FALSE=
13476 fi
13477
13478  if test x$TARGET = xBFIN; then
13479   BFIN_TRUE=
13480   BFIN_FALSE='#'
13481 else
13482   BFIN_TRUE='#'
13483   BFIN_FALSE=
13484 fi
13485
13486  if test x$TARGET = xSPARC; then
13487   SPARC_TRUE=
13488   SPARC_FALSE='#'
13489 else
13490   SPARC_TRUE='#'
13491   SPARC_FALSE=
13492 fi
13493
13494  if test x$TARGET = xX86; then
13495   X86_TRUE=
13496   X86_FALSE='#'
13497 else
13498   X86_TRUE='#'
13499   X86_FALSE=
13500 fi
13501
13502  if test x$TARGET = xX86_FREEBSD; then
13503   X86_FREEBSD_TRUE=
13504   X86_FREEBSD_FALSE='#'
13505 else
13506   X86_FREEBSD_TRUE='#'
13507   X86_FREEBSD_FALSE=
13508 fi
13509
13510  if test x$TARGET = xX86_WIN32; then
13511   X86_WIN32_TRUE=
13512   X86_WIN32_FALSE='#'
13513 else
13514   X86_WIN32_TRUE='#'
13515   X86_WIN32_FALSE=
13516 fi
13517
13518  if test x$TARGET = xX86_WIN64; then
13519   X86_WIN64_TRUE=
13520   X86_WIN64_FALSE='#'
13521 else
13522   X86_WIN64_TRUE='#'
13523   X86_WIN64_FALSE=
13524 fi
13525
13526  if test x$TARGET = xX86_DARWIN; then
13527   X86_DARWIN_TRUE=
13528   X86_DARWIN_FALSE='#'
13529 else
13530   X86_DARWIN_TRUE='#'
13531   X86_DARWIN_FALSE=
13532 fi
13533
13534  if test x$TARGET = xALPHA; then
13535   ALPHA_TRUE=
13536   ALPHA_FALSE='#'
13537 else
13538   ALPHA_TRUE='#'
13539   ALPHA_FALSE=
13540 fi
13541
13542  if test x$TARGET = xIA64; then
13543   IA64_TRUE=
13544   IA64_FALSE='#'
13545 else
13546   IA64_TRUE='#'
13547   IA64_FALSE=
13548 fi
13549
13550  if test x$TARGET = xM32R; then
13551   M32R_TRUE=
13552   M32R_FALSE='#'
13553 else
13554   M32R_TRUE='#'
13555   M32R_FALSE=
13556 fi
13557
13558  if test x$TARGET = xM68K; then
13559   M68K_TRUE=
13560   M68K_FALSE='#'
13561 else
13562   M68K_TRUE='#'
13563   M68K_FALSE=
13564 fi
13565
13566  if test x$TARGET = xMOXIE; then
13567   MOXIE_TRUE=
13568   MOXIE_FALSE='#'
13569 else
13570   MOXIE_TRUE='#'
13571   MOXIE_FALSE=
13572 fi
13573
13574  if test x$TARGET = xPOWERPC; then
13575   POWERPC_TRUE=
13576   POWERPC_FALSE='#'
13577 else
13578   POWERPC_TRUE='#'
13579   POWERPC_FALSE=
13580 fi
13581
13582  if test x$TARGET = xPOWERPC_AIX; then
13583   POWERPC_AIX_TRUE=
13584   POWERPC_AIX_FALSE='#'
13585 else
13586   POWERPC_AIX_TRUE='#'
13587   POWERPC_AIX_FALSE=
13588 fi
13589
13590  if test x$TARGET = xPOWERPC_DARWIN; then
13591   POWERPC_DARWIN_TRUE=
13592   POWERPC_DARWIN_FALSE='#'
13593 else
13594   POWERPC_DARWIN_TRUE='#'
13595   POWERPC_DARWIN_FALSE=
13596 fi
13597
13598  if test x$TARGET = xPOWERPC_FREEBSD; then
13599   POWERPC_FREEBSD_TRUE=
13600   POWERPC_FREEBSD_FALSE='#'
13601 else
13602   POWERPC_FREEBSD_TRUE='#'
13603   POWERPC_FREEBSD_FALSE=
13604 fi
13605
13606  if test x$TARGET = xAARCH64; then
13607   AARCH64_TRUE=
13608   AARCH64_FALSE='#'
13609 else
13610   AARCH64_TRUE='#'
13611   AARCH64_FALSE=
13612 fi
13613
13614  if test x$TARGET = xARM; then
13615   ARM_TRUE=
13616   ARM_FALSE='#'
13617 else
13618   ARM_TRUE='#'
13619   ARM_FALSE=
13620 fi
13621
13622  if test x$TARGET = xAVR32; then
13623   AVR32_TRUE=
13624   AVR32_FALSE='#'
13625 else
13626   AVR32_TRUE='#'
13627   AVR32_FALSE=
13628 fi
13629
13630  if test x$TARGET = xLIBFFI_CRIS; then
13631   LIBFFI_CRIS_TRUE=
13632   LIBFFI_CRIS_FALSE='#'
13633 else
13634   LIBFFI_CRIS_TRUE='#'
13635   LIBFFI_CRIS_FALSE=
13636 fi
13637
13638  if test x$TARGET = xFRV; then
13639   FRV_TRUE=
13640   FRV_FALSE='#'
13641 else
13642   FRV_TRUE='#'
13643   FRV_FALSE=
13644 fi
13645
13646  if test x$TARGET = xS390; then
13647   S390_TRUE=
13648   S390_FALSE='#'
13649 else
13650   S390_TRUE='#'
13651   S390_FALSE=
13652 fi
13653
13654  if test x$TARGET = xX86_64; then
13655   X86_64_TRUE=
13656   X86_64_FALSE='#'
13657 else
13658   X86_64_TRUE='#'
13659   X86_64_FALSE=
13660 fi
13661
13662  if test x$TARGET = xSH; then
13663   SH_TRUE=
13664   SH_FALSE='#'
13665 else
13666   SH_TRUE='#'
13667   SH_FALSE=
13668 fi
13669
13670  if test x$TARGET = xSH64; then
13671   SH64_TRUE=
13672   SH64_FALSE='#'
13673 else
13674   SH64_TRUE='#'
13675   SH64_FALSE=
13676 fi
13677
13678  if test x$TARGET = xPA_LINUX; then
13679   PA_LINUX_TRUE=
13680   PA_LINUX_FALSE='#'
13681 else
13682   PA_LINUX_TRUE='#'
13683   PA_LINUX_FALSE=
13684 fi
13685
13686  if test x$TARGET = xPA_HPUX; then
13687   PA_HPUX_TRUE=
13688   PA_HPUX_FALSE='#'
13689 else
13690   PA_HPUX_TRUE='#'
13691   PA_HPUX_FALSE=
13692 fi
13693
13694  if test x$TARGET = xPA64_HPUX; then
13695   PA64_HPUX_TRUE=
13696   PA64_HPUX_FALSE='#'
13697 else
13698   PA64_HPUX_TRUE='#'
13699   PA64_HPUX_FALSE=
13700 fi
13701
13702  if test x$TARGET = xTILE; then
13703   TILE_TRUE=
13704   TILE_FALSE='#'
13705 else
13706   TILE_TRUE='#'
13707   TILE_FALSE=
13708 fi
13709
13710  if test x$TARGET = xXTENSA; then
13711   XTENSA_TRUE=
13712   XTENSA_FALSE='#'
13713 else
13714   XTENSA_TRUE='#'
13715   XTENSA_FALSE=
13716 fi
13717
13718
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13720 $as_echo_n "checking for ANSI C header files... " >&6; }
13721 if ${ac_cv_header_stdc+:} false; then :
13722   $as_echo_n "(cached) " >&6
13723 else
13724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13725 /* end confdefs.h.  */
13726 #include <stdlib.h>
13727 #include <stdarg.h>
13728 #include <string.h>
13729 #include <float.h>
13730
13731 int
13732 main ()
13733 {
13734
13735   ;
13736   return 0;
13737 }
13738 _ACEOF
13739 if ac_fn_c_try_compile "$LINENO"; then :
13740   ac_cv_header_stdc=yes
13741 else
13742   ac_cv_header_stdc=no
13743 fi
13744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13745
13746 if test $ac_cv_header_stdc = yes; then
13747   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h.  */
13750 #include <string.h>
13751
13752 _ACEOF
13753 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13754   $EGREP "memchr" >/dev/null 2>&1; then :
13755
13756 else
13757   ac_cv_header_stdc=no
13758 fi
13759 rm -f conftest*
13760
13761 fi
13762
13763 if test $ac_cv_header_stdc = yes; then
13764   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13765   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13766 /* end confdefs.h.  */
13767 #include <stdlib.h>
13768
13769 _ACEOF
13770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13771   $EGREP "free" >/dev/null 2>&1; then :
13772
13773 else
13774   ac_cv_header_stdc=no
13775 fi
13776 rm -f conftest*
13777
13778 fi
13779
13780 if test $ac_cv_header_stdc = yes; then
13781   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13782   if test "$cross_compiling" = yes; then :
13783   :
13784 else
13785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h.  */
13787 #include <ctype.h>
13788 #include <stdlib.h>
13789 #if ((' ' & 0x0FF) == 0x020)
13790 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13791 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13792 #else
13793 # define ISLOWER(c) \
13794                    (('a' <= (c) && (c) <= 'i') \
13795                      || ('j' <= (c) && (c) <= 'r') \
13796                      || ('s' <= (c) && (c) <= 'z'))
13797 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13798 #endif
13799
13800 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13801 int
13802 main ()
13803 {
13804   int i;
13805   for (i = 0; i < 256; i++)
13806     if (XOR (islower (i), ISLOWER (i))
13807         || toupper (i) != TOUPPER (i))
13808       return 2;
13809   return 0;
13810 }
13811 _ACEOF
13812 if ac_fn_c_try_run "$LINENO"; then :
13813
13814 else
13815   ac_cv_header_stdc=no
13816 fi
13817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13818   conftest.$ac_objext conftest.beam conftest.$ac_ext
13819 fi
13820
13821 fi
13822 fi
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13824 $as_echo "$ac_cv_header_stdc" >&6; }
13825 if test $ac_cv_header_stdc = yes; then
13826
13827 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13828
13829 fi
13830
13831 for ac_func in memcpy
13832 do :
13833   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
13834 if test "x$ac_cv_func_memcpy" = xyes; then :
13835   cat >>confdefs.h <<_ACEOF
13836 #define HAVE_MEMCPY 1
13837 _ACEOF
13838
13839 fi
13840 done
13841
13842 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13843 if test "x$ac_cv_type_size_t" = xyes; then :
13844
13845 else
13846
13847 cat >>confdefs.h <<_ACEOF
13848 #define size_t unsigned int
13849 _ACEOF
13850
13851 fi
13852
13853 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13854 # for constant arguments.  Useless!
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13856 $as_echo_n "checking for working alloca.h... " >&6; }
13857 if ${ac_cv_working_alloca_h+:} false; then :
13858   $as_echo_n "(cached) " >&6
13859 else
13860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h.  */
13862 #include <alloca.h>
13863 int
13864 main ()
13865 {
13866 char *p = (char *) alloca (2 * sizeof (int));
13867                           if (p) return 0;
13868   ;
13869   return 0;
13870 }
13871 _ACEOF
13872 if ac_fn_c_try_link "$LINENO"; then :
13873   ac_cv_working_alloca_h=yes
13874 else
13875   ac_cv_working_alloca_h=no
13876 fi
13877 rm -f core conftest.err conftest.$ac_objext \
13878     conftest$ac_exeext conftest.$ac_ext
13879 fi
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13881 $as_echo "$ac_cv_working_alloca_h" >&6; }
13882 if test $ac_cv_working_alloca_h = yes; then
13883
13884 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13885
13886 fi
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13889 $as_echo_n "checking for alloca... " >&6; }
13890 if ${ac_cv_func_alloca_works+:} false; then :
13891   $as_echo_n "(cached) " >&6
13892 else
13893   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h.  */
13895 #ifdef __GNUC__
13896 # define alloca __builtin_alloca
13897 #else
13898 # ifdef _MSC_VER
13899 #  include <malloc.h>
13900 #  define alloca _alloca
13901 # else
13902 #  ifdef HAVE_ALLOCA_H
13903 #   include <alloca.h>
13904 #  else
13905 #   ifdef _AIX
13906  #pragma alloca
13907 #   else
13908 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13909 void *alloca (size_t);
13910 #    endif
13911 #   endif
13912 #  endif
13913 # endif
13914 #endif
13915
13916 int
13917 main ()
13918 {
13919 char *p = (char *) alloca (1);
13920                                     if (p) return 0;
13921   ;
13922   return 0;
13923 }
13924 _ACEOF
13925 if ac_fn_c_try_link "$LINENO"; then :
13926   ac_cv_func_alloca_works=yes
13927 else
13928   ac_cv_func_alloca_works=no
13929 fi
13930 rm -f core conftest.err conftest.$ac_objext \
13931     conftest$ac_exeext conftest.$ac_ext
13932 fi
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13934 $as_echo "$ac_cv_func_alloca_works" >&6; }
13935
13936 if test $ac_cv_func_alloca_works = yes; then
13937
13938 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13939
13940 else
13941   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13942 # that cause trouble.  Some versions do not even contain alloca or
13943 # contain a buggy version.  If you still want to use their alloca,
13944 # use ar to extract alloca.o from them instead of compiling alloca.c.
13945
13946 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13947
13948 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13949
13950
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13952 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13953 if ${ac_cv_os_cray+:} false; then :
13954   $as_echo_n "(cached) " >&6
13955 else
13956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13957 /* end confdefs.h.  */
13958 #if defined CRAY && ! defined CRAY2
13959 webecray
13960 #else
13961 wenotbecray
13962 #endif
13963
13964 _ACEOF
13965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13966   $EGREP "webecray" >/dev/null 2>&1; then :
13967   ac_cv_os_cray=yes
13968 else
13969   ac_cv_os_cray=no
13970 fi
13971 rm -f conftest*
13972
13973 fi
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13975 $as_echo "$ac_cv_os_cray" >&6; }
13976 if test $ac_cv_os_cray = yes; then
13977   for ac_func in _getb67 GETB67 getb67; do
13978     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13981
13982 cat >>confdefs.h <<_ACEOF
13983 #define CRAY_STACKSEG_END $ac_func
13984 _ACEOF
13985
13986     break
13987 fi
13988
13989   done
13990 fi
13991
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13993 $as_echo_n "checking stack direction for C alloca... " >&6; }
13994 if ${ac_cv_c_stack_direction+:} false; then :
13995   $as_echo_n "(cached) " >&6
13996 else
13997   if test "$cross_compiling" = yes; then :
13998   ac_cv_c_stack_direction=0
13999 else
14000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h.  */
14002 $ac_includes_default
14003 int
14004 find_stack_direction (int *addr, int depth)
14005 {
14006   int dir, dummy = 0;
14007   if (! addr)
14008     addr = &dummy;
14009   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
14010   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
14011   return dir + dummy;
14012 }
14013
14014 int
14015 main (int argc, char **argv)
14016 {
14017   return find_stack_direction (0, argc + !argv + 20) < 0;
14018 }
14019 _ACEOF
14020 if ac_fn_c_try_run "$LINENO"; then :
14021   ac_cv_c_stack_direction=1
14022 else
14023   ac_cv_c_stack_direction=-1
14024 fi
14025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14026   conftest.$ac_objext conftest.beam conftest.$ac_ext
14027 fi
14028
14029 fi
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
14031 $as_echo "$ac_cv_c_stack_direction" >&6; }
14032 cat >>confdefs.h <<_ACEOF
14033 #define STACK_DIRECTION $ac_cv_c_stack_direction
14034 _ACEOF
14035
14036
14037 fi
14038
14039
14040 # The cast to long int works around a bug in the HP C Compiler
14041 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14042 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14043 # This bug is HP SR number 8606223364.
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
14045 $as_echo_n "checking size of double... " >&6; }
14046 if ${ac_cv_sizeof_double+:} false; then :
14047   $as_echo_n "(cached) " >&6
14048 else
14049   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double"        "$ac_includes_default"; then :
14050
14051 else
14052   if test "$ac_cv_type_double" = yes; then
14053      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14055 as_fn_error 77 "cannot compute sizeof (double)
14056 See \`config.log' for more details" "$LINENO" 5; }
14057    else
14058      ac_cv_sizeof_double=0
14059    fi
14060 fi
14061
14062 fi
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
14064 $as_echo "$ac_cv_sizeof_double" >&6; }
14065
14066
14067
14068 cat >>confdefs.h <<_ACEOF
14069 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
14070 _ACEOF
14071
14072
14073 # The cast to long int works around a bug in the HP C Compiler
14074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14076 # This bug is HP SR number 8606223364.
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
14078 $as_echo_n "checking size of long double... " >&6; }
14079 if ${ac_cv_sizeof_long_double+:} false; then :
14080   $as_echo_n "(cached) " >&6
14081 else
14082   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double"        "$ac_includes_default"; then :
14083
14084 else
14085   if test "$ac_cv_type_long_double" = yes; then
14086      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14087 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14088 as_fn_error 77 "cannot compute sizeof (long double)
14089 See \`config.log' for more details" "$LINENO" 5; }
14090    else
14091      ac_cv_sizeof_long_double=0
14092    fi
14093 fi
14094
14095 fi
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
14097 $as_echo "$ac_cv_sizeof_long_double" >&6; }
14098
14099
14100
14101 cat >>confdefs.h <<_ACEOF
14102 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
14103 _ACEOF
14104
14105
14106
14107 # Also AC_SUBST this variable for ffi.h.
14108 if test -z "$HAVE_LONG_DOUBLE"; then
14109   HAVE_LONG_DOUBLE=0
14110   if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
14111     if test $ac_cv_sizeof_long_double != 0; then
14112       HAVE_LONG_DOUBLE=1
14113
14114 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
14115
14116     fi
14117   fi
14118 fi
14119
14120
14121  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14122 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14123 if ${ac_cv_c_bigendian+:} false; then :
14124   $as_echo_n "(cached) " >&6
14125 else
14126   ac_cv_c_bigendian=unknown
14127     # See if we're dealing with a universal compiler.
14128     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14129 /* end confdefs.h.  */
14130 #ifndef __APPLE_CC__
14131                not a universal capable compiler
14132              #endif
14133              typedef int dummy;
14134
14135 _ACEOF
14136 if ac_fn_c_try_compile "$LINENO"; then :
14137
14138         # Check for potential -arch flags.  It is not universal unless
14139         # there are at least two -arch flags with different values.
14140         ac_arch=
14141         ac_prev=
14142         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14143          if test -n "$ac_prev"; then
14144            case $ac_word in
14145              i?86 | x86_64 | ppc | ppc64)
14146                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14147                  ac_arch=$ac_word
14148                else
14149                  ac_cv_c_bigendian=universal
14150                  break
14151                fi
14152                ;;
14153            esac
14154            ac_prev=
14155          elif test "x$ac_word" = "x-arch"; then
14156            ac_prev=arch
14157          fi
14158        done
14159 fi
14160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14161     if test $ac_cv_c_bigendian = unknown; then
14162       # See if sys/param.h defines the BYTE_ORDER macro.
14163       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14164 /* end confdefs.h.  */
14165 #include <sys/types.h>
14166              #include <sys/param.h>
14167
14168 int
14169 main ()
14170 {
14171 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14172                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14173                      && LITTLE_ENDIAN)
14174               bogus endian macros
14175              #endif
14176
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 if ac_fn_c_try_compile "$LINENO"; then :
14182   # It does; now see whether it defined to BIG_ENDIAN or not.
14183          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14184 /* end confdefs.h.  */
14185 #include <sys/types.h>
14186                 #include <sys/param.h>
14187
14188 int
14189 main ()
14190 {
14191 #if BYTE_ORDER != BIG_ENDIAN
14192                  not big endian
14193                 #endif
14194
14195   ;
14196   return 0;
14197 }
14198 _ACEOF
14199 if ac_fn_c_try_compile "$LINENO"; then :
14200   ac_cv_c_bigendian=yes
14201 else
14202   ac_cv_c_bigendian=no
14203 fi
14204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14205 fi
14206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14207     fi
14208     if test $ac_cv_c_bigendian = unknown; then
14209       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14210       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h.  */
14212 #include <limits.h>
14213
14214 int
14215 main ()
14216 {
14217 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14218               bogus endian macros
14219              #endif
14220
14221   ;
14222   return 0;
14223 }
14224 _ACEOF
14225 if ac_fn_c_try_compile "$LINENO"; then :
14226   # It does; now see whether it defined to _BIG_ENDIAN or not.
14227          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h.  */
14229 #include <limits.h>
14230
14231 int
14232 main ()
14233 {
14234 #ifndef _BIG_ENDIAN
14235                  not big endian
14236                 #endif
14237
14238   ;
14239   return 0;
14240 }
14241 _ACEOF
14242 if ac_fn_c_try_compile "$LINENO"; then :
14243   ac_cv_c_bigendian=yes
14244 else
14245   ac_cv_c_bigendian=no
14246 fi
14247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14248 fi
14249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14250     fi
14251     if test $ac_cv_c_bigendian = unknown; then
14252       # Compile a test program.
14253       if test "$cross_compiling" = yes; then :
14254   # Try to guess by grepping values from an object file.
14255          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h.  */
14257 short int ascii_mm[] =
14258                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14259                 short int ascii_ii[] =
14260                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14261                 int use_ascii (int i) {
14262                   return ascii_mm[i] + ascii_ii[i];
14263                 }
14264                 short int ebcdic_ii[] =
14265                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14266                 short int ebcdic_mm[] =
14267                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14268                 int use_ebcdic (int i) {
14269                   return ebcdic_mm[i] + ebcdic_ii[i];
14270                 }
14271                 extern int foo;
14272
14273 int
14274 main ()
14275 {
14276 return use_ascii (foo) == use_ebcdic (foo);
14277   ;
14278   return 0;
14279 }
14280 _ACEOF
14281 if ac_fn_c_try_compile "$LINENO"; then :
14282   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14283               ac_cv_c_bigendian=yes
14284             fi
14285             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14286               if test "$ac_cv_c_bigendian" = unknown; then
14287                 ac_cv_c_bigendian=no
14288               else
14289                 # finding both strings is unlikely to happen, but who knows?
14290                 ac_cv_c_bigendian=unknown
14291               fi
14292             fi
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 else
14296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14297 /* end confdefs.h.  */
14298 $ac_includes_default
14299 int
14300 main ()
14301 {
14302
14303              /* Are we little or big endian?  From Harbison&Steele.  */
14304              union
14305              {
14306                long int l;
14307                char c[sizeof (long int)];
14308              } u;
14309              u.l = 1;
14310              return u.c[sizeof (long int) - 1] == 1;
14311
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 if ac_fn_c_try_run "$LINENO"; then :
14317   ac_cv_c_bigendian=no
14318 else
14319   ac_cv_c_bigendian=yes
14320 fi
14321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14322   conftest.$ac_objext conftest.beam conftest.$ac_ext
14323 fi
14324
14325     fi
14326 fi
14327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14328 $as_echo "$ac_cv_c_bigendian" >&6; }
14329  case $ac_cv_c_bigendian in #(
14330    yes)
14331      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14332 ;; #(
14333    no)
14334       ;; #(
14335    universal)
14336
14337 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14338
14339      ;; #(
14340    *)
14341      as_fn_error $? "unknown endianness
14342  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14343  esac
14344
14345
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
14347 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
14348 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
14349   $as_echo_n "(cached) " >&6
14350 else
14351
14352     gcc_cv_as_cfi_pseudo_op=unknown
14353     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14354 /* end confdefs.h.  */
14355 asm (".cfi_startproc\n\t.cfi_endproc");
14356 int
14357 main ()
14358 {
14359
14360   ;
14361   return 0;
14362 }
14363 _ACEOF
14364 if ac_fn_c_try_compile "$LINENO"; then :
14365   gcc_cv_as_cfi_pseudo_op=yes
14366 else
14367   gcc_cv_as_cfi_pseudo_op=no
14368 fi
14369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14370
14371 fi
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
14373 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
14374  if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
14375
14376 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
14377
14378  fi
14379
14380
14381 if test x$TARGET = xSPARC; then
14382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
14383 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
14384 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
14385   $as_echo_n "(cached) " >&6
14386 else
14387
14388         save_CFLAGS="$CFLAGS"
14389         save_LDFLAGS="$LDFLAGS"
14390         CFLAGS="$CFLAGS -fpic"
14391         LDFLAGS="$LDFLAGS -shared"
14392         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14393 /* end confdefs.h.  */
14394 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
14395 int
14396 main ()
14397 {
14398
14399   ;
14400   return 0;
14401 }
14402 _ACEOF
14403 if ac_fn_c_try_link "$LINENO"; then :
14404   libffi_cv_as_sparc_ua_pcrel=yes
14405 else
14406   libffi_cv_as_sparc_ua_pcrel=no
14407 fi
14408 rm -f core conftest.err conftest.$ac_objext \
14409     conftest$ac_exeext conftest.$ac_ext
14410         CFLAGS="$save_CFLAGS"
14411         LDFLAGS="$save_LDFLAGS"
14412 fi
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
14414 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
14415     if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
14416
14417 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
14418
14419     fi
14420
14421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
14422 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
14423 if ${libffi_cv_as_register_pseudo_op+:} false; then :
14424   $as_echo_n "(cached) " >&6
14425 else
14426
14427        libffi_cv_as_register_pseudo_op=unknown
14428        # Check if we have .register
14429        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14430 /* end confdefs.h.  */
14431 asm (".register %g2, #scratch");
14432 int
14433 main ()
14434 {
14435
14436   ;
14437   return 0;
14438 }
14439 _ACEOF
14440 if ac_fn_c_try_compile "$LINENO"; then :
14441   libffi_cv_as_register_pseudo_op=yes
14442 else
14443   libffi_cv_as_register_pseudo_op=no
14444 fi
14445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14446
14447 fi
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
14449 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
14450     if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
14451
14452 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
14453
14454     fi
14455 fi
14456
14457 if test x$TARGET = xX86 || test x$TARGET = xX86_WIN32 || test x$TARGET = xX86_64; then
14458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
14459 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
14460 if ${libffi_cv_as_x86_pcrel+:} false; then :
14461   $as_echo_n "(cached) " >&6
14462 else
14463
14464         libffi_cv_as_x86_pcrel=no
14465         echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
14466         if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
14467             libffi_cv_as_x86_pcrel=yes
14468         fi
14469
14470 fi
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
14472 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
14473     if test "x$libffi_cv_as_x86_pcrel" = xyes; then
14474
14475 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
14476
14477     fi
14478
14479     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .ascii pseudo-op support" >&5
14480 $as_echo_n "checking assembler .ascii pseudo-op support... " >&6; }
14481 if ${libffi_cv_as_ascii_pseudo_op+:} false; then :
14482   $as_echo_n "(cached) " >&6
14483 else
14484
14485        libffi_cv_as_ascii_pseudo_op=unknown
14486        # Check if we have .ascii
14487        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h.  */
14489 asm (".ascii \\"string\\"");
14490 int
14491 main ()
14492 {
14493
14494   ;
14495   return 0;
14496 }
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499   libffi_cv_as_ascii_pseudo_op=yes
14500 else
14501   libffi_cv_as_ascii_pseudo_op=no
14502 fi
14503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14504
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_ascii_pseudo_op" >&5
14507 $as_echo "$libffi_cv_as_ascii_pseudo_op" >&6; }
14508     if test "x$libffi_cv_as_ascii_pseudo_op" = xyes; then
14509
14510 $as_echo "#define HAVE_AS_ASCII_PSEUDO_OP 1" >>confdefs.h
14511
14512     fi
14513
14514     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .string pseudo-op support" >&5
14515 $as_echo_n "checking assembler .string pseudo-op support... " >&6; }
14516 if ${libffi_cv_as_string_pseudo_op+:} false; then :
14517   $as_echo_n "(cached) " >&6
14518 else
14519
14520        libffi_cv_as_string_pseudo_op=unknown
14521        # Check if we have .string
14522        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h.  */
14524 asm (".string \\"string\\"");
14525 int
14526 main ()
14527 {
14528
14529   ;
14530   return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"; then :
14534   libffi_cv_as_string_pseudo_op=yes
14535 else
14536   libffi_cv_as_string_pseudo_op=no
14537 fi
14538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14539
14540 fi
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_string_pseudo_op" >&5
14542 $as_echo "$libffi_cv_as_string_pseudo_op" >&6; }
14543     if test "x$libffi_cv_as_string_pseudo_op" = xyes; then
14544
14545 $as_echo "#define HAVE_AS_STRING_PSEUDO_OP 1" >>confdefs.h
14546
14547     fi
14548 fi
14549
14550 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
14551 # Check whether --enable-pax_emutramp was given.
14552 if test "${enable_pax_emutramp+set}" = set; then :
14553   enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
14554
14555 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
14556
14557   fi
14558 fi
14559
14560
14561 if test x$TARGET = xX86_WIN64; then
14562     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
14563 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
14564 if ${lt_cv_sys_symbol_underscore+:} false; then :
14565   $as_echo_n "(cached) " >&6
14566 else
14567   lt_cv_sys_symbol_underscore=no
14568   cat > conftest.$ac_ext <<_LT_EOF
14569 void nm_test_func(){}
14570 int main(){nm_test_func;return 0;}
14571 _LT_EOF
14572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14573   (eval $ac_compile) 2>&5
14574   ac_status=$?
14575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14576   test $ac_status = 0; }; then
14577     # Now try to grab the symbols.
14578     ac_nlist=conftest.nm
14579     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
14580   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
14581   ac_status=$?
14582   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14583   test $ac_status = 0; } && test -s "$ac_nlist"; then
14584       # See whether the symbols have a leading underscore.
14585       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
14586         lt_cv_sys_symbol_underscore=yes
14587       else
14588         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
14589           :
14590         else
14591           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
14592         fi
14593       fi
14594     else
14595       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
14596     fi
14597   else
14598     echo "configure: failed program was:" >&5
14599     cat conftest.c >&5
14600   fi
14601   rm -rf conftest*
14602
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
14605 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
14606   sys_symbol_underscore=$lt_cv_sys_symbol_underscore
14607
14608
14609     if test "x$sys_symbol_underscore" = xyes; then
14610
14611 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
14612
14613     fi
14614 fi
14615
14616 FFI_EXEC_TRAMPOLINE_TABLE=0
14617 case "$target" in
14618      *arm*-apple-darwin*)
14619        FFI_EXEC_TRAMPOLINE_TABLE=1
14620
14621 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
14622
14623      ;;
14624      *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
14625
14626 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
14627
14628      ;;
14629 esac
14630  if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
14631   FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
14632   FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
14633 else
14634   FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
14635   FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
14636 fi
14637
14638
14639
14640 if test x$TARGET = xX86_64; then
14641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports unwind section type" >&5
14642 $as_echo_n "checking assembler supports unwind section type... " >&6; }
14643 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
14644   $as_echo_n "(cached) " >&6
14645 else
14646
14647         libffi_cv_as_x86_64_unwind_section_type=yes
14648         echo '.section .eh_frame,"a",@unwind' > conftest.s
14649         if $CC $CFLAGS -c conftest.s 2>&1 | grep -i warning > /dev/null; then
14650             libffi_cv_as_x86_64_unwind_section_type=no
14651         fi
14652
14653 fi
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
14655 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
14656     if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
14657
14658 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
14659
14660     fi
14661 fi
14662
14663 if test "x$GCC" = "xyes"; then
14664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
14665 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
14666 if ${libffi_cv_ro_eh_frame+:} false; then :
14667   $as_echo_n "(cached) " >&6
14668 else
14669
14670         libffi_cv_ro_eh_frame=no
14671         echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
14672         if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
14673             objdump -h conftest.o > conftest.dump 2>&1
14674             libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
14675             libffi_test_line=`expr $libffi_eh_frame_line + 1`p
14676             sed -n $libffi_test_line conftest.dump > conftest.line
14677             if grep READONLY conftest.line > /dev/null; then
14678                 libffi_cv_ro_eh_frame=yes
14679             fi
14680         fi
14681         rm -f conftest.*
14682
14683 fi
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
14685 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
14686   if test "x$libffi_cv_ro_eh_frame" = xyes; then
14687
14688 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
14689
14690
14691 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
14692
14693   else
14694
14695 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
14696
14697   fi
14698
14699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
14700 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
14701 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
14702   $as_echo_n "(cached) " >&6
14703 else
14704
14705         echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1  ; }' > conftest.c
14706         libffi_cv_hidden_visibility_attribute=no
14707         if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
14708   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14709   (eval $ac_try) 2>&5
14710   ac_status=$?
14711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14712   test $ac_status = 0; }; }; then
14713             if grep '\.hidden.*foo' conftest.s >/dev/null; then
14714                 libffi_cv_hidden_visibility_attribute=yes
14715             fi
14716         fi
14717         rm -f conftest.*
14718
14719 fi
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
14721 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
14722   if test $libffi_cv_hidden_visibility_attribute = yes; then
14723
14724 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
14725
14726   fi
14727 fi
14728
14729
14730
14731
14732
14733
14734
14735
14736 # Check whether --enable-debug was given.
14737 if test "${enable_debug+set}" = set; then :
14738   enableval=$enable_debug; if test "$enable_debug" = "yes"; then
14739
14740 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
14741
14742   fi
14743 fi
14744
14745  if test "$enable_debug" = "yes"; then
14746   FFI_DEBUG_TRUE=
14747   FFI_DEBUG_FALSE='#'
14748 else
14749   FFI_DEBUG_TRUE='#'
14750   FFI_DEBUG_FALSE=
14751 fi
14752
14753
14754 # Check whether --enable-structs was given.
14755 if test "${enable_structs+set}" = set; then :
14756   enableval=$enable_structs; if test "$enable_structs" = "no"; then
14757
14758 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
14759
14760   fi
14761 fi
14762
14763  if test "$enable_debug" = "yes"; then
14764   FFI_DEBUG_TRUE=
14765   FFI_DEBUG_FALSE='#'
14766 else
14767   FFI_DEBUG_TRUE='#'
14768   FFI_DEBUG_FALSE=
14769 fi
14770
14771
14772 # Check whether --enable-raw-api was given.
14773 if test "${enable_raw_api+set}" = set; then :
14774   enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
14775
14776 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
14777
14778   fi
14779 fi
14780
14781
14782 # Check whether --enable-purify-safety was given.
14783 if test "${enable_purify_safety+set}" = set; then :
14784   enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
14785
14786 $as_echo "#define USING_PURIFY 1" >>confdefs.h
14787
14788   fi
14789 fi
14790
14791
14792 # These variables are only ever used when we cross-build to X86_WIN32.
14793 # And we only support this with GCC, so...
14794 if test x"$GCC" != x"no"; then
14795   if test -n "$with_cross_host" &&
14796      test x"$with_cross_host" != x"no"; then
14797     toolexecdir='$(exec_prefix)/$(target_alias)'
14798     toolexeclibdir='$(toolexecdir)/lib'
14799   else
14800     toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
14801     toolexeclibdir='$(libdir)'
14802   fi
14803   multi_os_directory=`$CC -print-multi-os-directory`
14804   case $multi_os_directory in
14805     .) ;; # Avoid trailing /.
14806     *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
14807   esac
14808
14809
14810 fi
14811
14812 ac_config_commands="$ac_config_commands include"
14813
14814 ac_config_commands="$ac_config_commands src"
14815
14816
14817 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
14818
14819
14820 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
14821
14822
14823 cat >confcache <<\_ACEOF
14824 # This file is a shell script that caches the results of configure
14825 # tests run on this system so they can be shared between configure
14826 # scripts and configure runs, see configure's option --config-cache.
14827 # It is not useful on other systems.  If it contains results you don't
14828 # want to keep, you may remove or edit it.
14829 #
14830 # config.status only pays attention to the cache file if you give it
14831 # the --recheck option to rerun configure.
14832 #
14833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14835 # following values.
14836
14837 _ACEOF
14838
14839 # The following way of writing the cache mishandles newlines in values,
14840 # but we know of no workaround that is simple, portable, and efficient.
14841 # So, we kill variables containing newlines.
14842 # Ultrix sh set writes to stderr and can't be redirected directly,
14843 # and sets the high bit in the cache file unless we assign to the vars.
14844 (
14845   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14846     eval ac_val=\$$ac_var
14847     case $ac_val in #(
14848     *${as_nl}*)
14849       case $ac_var in #(
14850       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14852       esac
14853       case $ac_var in #(
14854       _ | IFS | as_nl) ;; #(
14855       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14856       *) { eval $ac_var=; unset $ac_var;} ;;
14857       esac ;;
14858     esac
14859   done
14860
14861   (set) 2>&1 |
14862     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14863     *${as_nl}ac_space=\ *)
14864       # `set' does not quote correctly, so add quotes: double-quote
14865       # substitution turns \\\\ into \\, and sed turns \\ into \.
14866       sed -n \
14867         "s/'/'\\\\''/g;
14868           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14869       ;; #(
14870     *)
14871       # `set' quotes correctly as required by POSIX, so do not add quotes.
14872       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14873       ;;
14874     esac |
14875     sort
14876 ) |
14877   sed '
14878      /^ac_cv_env_/b end
14879      t clear
14880      :clear
14881      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14882      t end
14883      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14884      :end' >>confcache
14885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14886   if test -w "$cache_file"; then
14887     if test "x$cache_file" != "x/dev/null"; then
14888       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14889 $as_echo "$as_me: updating cache $cache_file" >&6;}
14890       if test ! -f "$cache_file" || test -h "$cache_file"; then
14891         cat confcache >"$cache_file"
14892       else
14893         case $cache_file in #(
14894         */* | ?:*)
14895           mv -f confcache "$cache_file"$$ &&
14896           mv -f "$cache_file"$$ "$cache_file" ;; #(
14897         *)
14898           mv -f confcache "$cache_file" ;;
14899         esac
14900       fi
14901     fi
14902   else
14903     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14905   fi
14906 fi
14907 rm -f confcache
14908
14909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14910 # Let make expand exec_prefix.
14911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14912
14913 DEFS=-DHAVE_CONFIG_H
14914
14915 ac_libobjs=
14916 ac_ltlibobjs=
14917 U=
14918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14919   # 1. Remove the extension, and $U if already installed.
14920   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14921   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14922   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14923   #    will be set to the directory where LIBOBJS objects are built.
14924   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14925   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14926 done
14927 LIBOBJS=$ac_libobjs
14928
14929 LTLIBOBJS=$ac_ltlibobjs
14930
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14933 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14934    if test -n "$am_sleep_pid"; then
14935      # Hide warnings about reused PIDs.
14936      wait $am_sleep_pid 2>/dev/null
14937    fi
14938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14939 $as_echo "done" >&6; }
14940  if test -n "$EXEEXT"; then
14941   am__EXEEXT_TRUE=
14942   am__EXEEXT_FALSE='#'
14943 else
14944   am__EXEEXT_TRUE='#'
14945   am__EXEEXT_FALSE=
14946 fi
14947
14948 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14949   as_fn_error $? "conditional \"AMDEP\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951 fi
14952 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14953   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955 fi
14956 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
14957   as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 fi
14960 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14961   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 fi
14964 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
14965   as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 fi
14968 if test -z "${MIPS_TRUE}" && test -z "${MIPS_FALSE}"; then
14969   as_fn_error $? "conditional \"MIPS\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -z "${BFIN_TRUE}" && test -z "${BFIN_FALSE}"; then
14973   as_fn_error $? "conditional \"BFIN\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 fi
14976 if test -z "${SPARC_TRUE}" && test -z "${SPARC_FALSE}"; then
14977   as_fn_error $? "conditional \"SPARC\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980 if test -z "${X86_TRUE}" && test -z "${X86_FALSE}"; then
14981   as_fn_error $? "conditional \"X86\" was never defined.
14982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14983 fi
14984 if test -z "${X86_FREEBSD_TRUE}" && test -z "${X86_FREEBSD_FALSE}"; then
14985   as_fn_error $? "conditional \"X86_FREEBSD\" was never defined.
14986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14987 fi
14988 if test -z "${X86_WIN32_TRUE}" && test -z "${X86_WIN32_FALSE}"; then
14989   as_fn_error $? "conditional \"X86_WIN32\" was never defined.
14990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14991 fi
14992 if test -z "${X86_WIN64_TRUE}" && test -z "${X86_WIN64_FALSE}"; then
14993   as_fn_error $? "conditional \"X86_WIN64\" was never defined.
14994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14995 fi
14996 if test -z "${X86_DARWIN_TRUE}" && test -z "${X86_DARWIN_FALSE}"; then
14997   as_fn_error $? "conditional \"X86_DARWIN\" was never defined.
14998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14999 fi
15000 if test -z "${ALPHA_TRUE}" && test -z "${ALPHA_FALSE}"; then
15001   as_fn_error $? "conditional \"ALPHA\" was never defined.
15002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15003 fi
15004 if test -z "${IA64_TRUE}" && test -z "${IA64_FALSE}"; then
15005   as_fn_error $? "conditional \"IA64\" was never defined.
15006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15007 fi
15008 if test -z "${M32R_TRUE}" && test -z "${M32R_FALSE}"; then
15009   as_fn_error $? "conditional \"M32R\" was never defined.
15010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15011 fi
15012 if test -z "${M68K_TRUE}" && test -z "${M68K_FALSE}"; then
15013   as_fn_error $? "conditional \"M68K\" was never defined.
15014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15015 fi
15016 if test -z "${MOXIE_TRUE}" && test -z "${MOXIE_FALSE}"; then
15017   as_fn_error $? "conditional \"MOXIE\" was never defined.
15018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15019 fi
15020 if test -z "${POWERPC_TRUE}" && test -z "${POWERPC_FALSE}"; then
15021   as_fn_error $? "conditional \"POWERPC\" was never defined.
15022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15023 fi
15024 if test -z "${POWERPC_AIX_TRUE}" && test -z "${POWERPC_AIX_FALSE}"; then
15025   as_fn_error $? "conditional \"POWERPC_AIX\" was never defined.
15026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15027 fi
15028 if test -z "${POWERPC_DARWIN_TRUE}" && test -z "${POWERPC_DARWIN_FALSE}"; then
15029   as_fn_error $? "conditional \"POWERPC_DARWIN\" was never defined.
15030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15031 fi
15032 if test -z "${POWERPC_FREEBSD_TRUE}" && test -z "${POWERPC_FREEBSD_FALSE}"; then
15033   as_fn_error $? "conditional \"POWERPC_FREEBSD\" was never defined.
15034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15035 fi
15036 if test -z "${AARCH64_TRUE}" && test -z "${AARCH64_FALSE}"; then
15037   as_fn_error $? "conditional \"AARCH64\" was never defined.
15038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15039 fi
15040 if test -z "${ARM_TRUE}" && test -z "${ARM_FALSE}"; then
15041   as_fn_error $? "conditional \"ARM\" was never defined.
15042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15043 fi
15044 if test -z "${AVR32_TRUE}" && test -z "${AVR32_FALSE}"; then
15045   as_fn_error $? "conditional \"AVR32\" was never defined.
15046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15047 fi
15048 if test -z "${LIBFFI_CRIS_TRUE}" && test -z "${LIBFFI_CRIS_FALSE}"; then
15049   as_fn_error $? "conditional \"LIBFFI_CRIS\" was never defined.
15050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15051 fi
15052 if test -z "${FRV_TRUE}" && test -z "${FRV_FALSE}"; then
15053   as_fn_error $? "conditional \"FRV\" was never defined.
15054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15055 fi
15056 if test -z "${S390_TRUE}" && test -z "${S390_FALSE}"; then
15057   as_fn_error $? "conditional \"S390\" was never defined.
15058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15059 fi
15060 if test -z "${X86_64_TRUE}" && test -z "${X86_64_FALSE}"; then
15061   as_fn_error $? "conditional \"X86_64\" was never defined.
15062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15063 fi
15064 if test -z "${SH_TRUE}" && test -z "${SH_FALSE}"; then
15065   as_fn_error $? "conditional \"SH\" was never defined.
15066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15067 fi
15068 if test -z "${SH64_TRUE}" && test -z "${SH64_FALSE}"; then
15069   as_fn_error $? "conditional \"SH64\" was never defined.
15070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15071 fi
15072 if test -z "${PA_LINUX_TRUE}" && test -z "${PA_LINUX_FALSE}"; then
15073   as_fn_error $? "conditional \"PA_LINUX\" was never defined.
15074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15075 fi
15076 if test -z "${PA_HPUX_TRUE}" && test -z "${PA_HPUX_FALSE}"; then
15077   as_fn_error $? "conditional \"PA_HPUX\" was never defined.
15078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15079 fi
15080 if test -z "${PA64_HPUX_TRUE}" && test -z "${PA64_HPUX_FALSE}"; then
15081   as_fn_error $? "conditional \"PA64_HPUX\" was never defined.
15082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15083 fi
15084 if test -z "${TILE_TRUE}" && test -z "${TILE_FALSE}"; then
15085   as_fn_error $? "conditional \"TILE\" was never defined.
15086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15087 fi
15088 if test -z "${XTENSA_TRUE}" && test -z "${XTENSA_FALSE}"; then
15089   as_fn_error $? "conditional \"XTENSA\" was never defined.
15090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15091 fi
15092
15093 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
15094   as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
15095 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15096 fi
15097 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15098   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15099 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15100 fi
15101 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
15102   as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
15103 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15104 fi
15105
15106 : "${CONFIG_STATUS=./config.status}"
15107 ac_write_fail=0
15108 ac_clean_files_save=$ac_clean_files
15109 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15111 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15112 as_write_fail=0
15113 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15114 #! $SHELL
15115 # Generated by $as_me.
15116 # Run this file to recreate the current configuration.
15117 # Compiler output produced by configure, useful for debugging
15118 # configure, is in config.log if it exists.
15119
15120 debug=false
15121 ac_cs_recheck=false
15122 ac_cs_silent=false
15123
15124 SHELL=\${CONFIG_SHELL-$SHELL}
15125 export SHELL
15126 _ASEOF
15127 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15128 ## -------------------- ##
15129 ## M4sh Initialization. ##
15130 ## -------------------- ##
15131
15132 # Be more Bourne compatible
15133 DUALCASE=1; export DUALCASE # for MKS sh
15134 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15135   emulate sh
15136   NULLCMD=:
15137   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15138   # is contrary to our usage.  Disable this feature.
15139   alias -g '${1+"$@"}'='"$@"'
15140   setopt NO_GLOB_SUBST
15141 else
15142   case `(set -o) 2>/dev/null` in #(
15143   *posix*) :
15144     set -o posix ;; #(
15145   *) :
15146      ;;
15147 esac
15148 fi
15149
15150
15151 as_nl='
15152 '
15153 export as_nl
15154 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15155 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15156 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15158 # Prefer a ksh shell builtin over an external printf program on Solaris,
15159 # but without wasting forks for bash or zsh.
15160 if test -z "$BASH_VERSION$ZSH_VERSION" \
15161     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15162   as_echo='print -r --'
15163   as_echo_n='print -rn --'
15164 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15165   as_echo='printf %s\n'
15166   as_echo_n='printf %s'
15167 else
15168   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15169     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15170     as_echo_n='/usr/ucb/echo -n'
15171   else
15172     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15173     as_echo_n_body='eval
15174       arg=$1;
15175       case $arg in #(
15176       *"$as_nl"*)
15177         expr "X$arg" : "X\\(.*\\)$as_nl";
15178         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15179       esac;
15180       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15181     '
15182     export as_echo_n_body
15183     as_echo_n='sh -c $as_echo_n_body as_echo'
15184   fi
15185   export as_echo_body
15186   as_echo='sh -c $as_echo_body as_echo'
15187 fi
15188
15189 # The user is always right.
15190 if test "${PATH_SEPARATOR+set}" != set; then
15191   PATH_SEPARATOR=:
15192   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15193     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15194       PATH_SEPARATOR=';'
15195   }
15196 fi
15197
15198
15199 # IFS
15200 # We need space, tab and new line, in precisely that order.  Quoting is
15201 # there to prevent editors from complaining about space-tab.
15202 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15203 # splitting by setting IFS to empty value.)
15204 IFS=" ""        $as_nl"
15205
15206 # Find who we are.  Look in the path if we contain no directory separator.
15207 as_myself=
15208 case $0 in #((
15209   *[\\/]* ) as_myself=$0 ;;
15210   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15211 for as_dir in $PATH
15212 do
15213   IFS=$as_save_IFS
15214   test -z "$as_dir" && as_dir=.
15215     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15216   done
15217 IFS=$as_save_IFS
15218
15219      ;;
15220 esac
15221 # We did not find ourselves, most probably we were run as `sh COMMAND'
15222 # in which case we are not to be found in the path.
15223 if test "x$as_myself" = x; then
15224   as_myself=$0
15225 fi
15226 if test ! -f "$as_myself"; then
15227   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15228   exit 1
15229 fi
15230
15231 # Unset variables that we do not need and which cause bugs (e.g. in
15232 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15233 # suppresses any "Segmentation fault" message there.  '((' could
15234 # trigger a bug in pdksh 5.2.14.
15235 for as_var in BASH_ENV ENV MAIL MAILPATH
15236 do eval test x\${$as_var+set} = xset \
15237   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15238 done
15239 PS1='$ '
15240 PS2='> '
15241 PS4='+ '
15242
15243 # NLS nuisances.
15244 LC_ALL=C
15245 export LC_ALL
15246 LANGUAGE=C
15247 export LANGUAGE
15248
15249 # CDPATH.
15250 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15251
15252
15253 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15254 # ----------------------------------------
15255 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15256 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15257 # script with STATUS, using 1 if that was 0.
15258 as_fn_error ()
15259 {
15260   as_status=$1; test $as_status -eq 0 && as_status=1
15261   if test "$4"; then
15262     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15263     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15264   fi
15265   $as_echo "$as_me: error: $2" >&2
15266   as_fn_exit $as_status
15267 } # as_fn_error
15268
15269
15270 # as_fn_set_status STATUS
15271 # -----------------------
15272 # Set $? to STATUS, without forking.
15273 as_fn_set_status ()
15274 {
15275   return $1
15276 } # as_fn_set_status
15277
15278 # as_fn_exit STATUS
15279 # -----------------
15280 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15281 as_fn_exit ()
15282 {
15283   set +e
15284   as_fn_set_status $1
15285   exit $1
15286 } # as_fn_exit
15287
15288 # as_fn_unset VAR
15289 # ---------------
15290 # Portably unset VAR.
15291 as_fn_unset ()
15292 {
15293   { eval $1=; unset $1;}
15294 }
15295 as_unset=as_fn_unset
15296 # as_fn_append VAR VALUE
15297 # ----------------------
15298 # Append the text in VALUE to the end of the definition contained in VAR. Take
15299 # advantage of any shell optimizations that allow amortized linear growth over
15300 # repeated appends, instead of the typical quadratic growth present in naive
15301 # implementations.
15302 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15303   eval 'as_fn_append ()
15304   {
15305     eval $1+=\$2
15306   }'
15307 else
15308   as_fn_append ()
15309   {
15310     eval $1=\$$1\$2
15311   }
15312 fi # as_fn_append
15313
15314 # as_fn_arith ARG...
15315 # ------------------
15316 # Perform arithmetic evaluation on the ARGs, and store the result in the
15317 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15318 # must be portable across $(()) and expr.
15319 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15320   eval 'as_fn_arith ()
15321   {
15322     as_val=$(( $* ))
15323   }'
15324 else
15325   as_fn_arith ()
15326   {
15327     as_val=`expr "$@" || test $? -eq 1`
15328   }
15329 fi # as_fn_arith
15330
15331
15332 if expr a : '\(a\)' >/dev/null 2>&1 &&
15333    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15334   as_expr=expr
15335 else
15336   as_expr=false
15337 fi
15338
15339 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15340   as_basename=basename
15341 else
15342   as_basename=false
15343 fi
15344
15345 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15346   as_dirname=dirname
15347 else
15348   as_dirname=false
15349 fi
15350
15351 as_me=`$as_basename -- "$0" ||
15352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15353          X"$0" : 'X\(//\)$' \| \
15354          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15355 $as_echo X/"$0" |
15356     sed '/^.*\/\([^/][^/]*\)\/*$/{
15357             s//\1/
15358             q
15359           }
15360           /^X\/\(\/\/\)$/{
15361             s//\1/
15362             q
15363           }
15364           /^X\/\(\/\).*/{
15365             s//\1/
15366             q
15367           }
15368           s/.*/./; q'`
15369
15370 # Avoid depending upon Character Ranges.
15371 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15372 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15373 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15374 as_cr_digits='0123456789'
15375 as_cr_alnum=$as_cr_Letters$as_cr_digits
15376
15377 ECHO_C= ECHO_N= ECHO_T=
15378 case `echo -n x` in #(((((
15379 -n*)
15380   case `echo 'xy\c'` in
15381   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15382   xy)  ECHO_C='\c';;
15383   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15384        ECHO_T=' ';;
15385   esac;;
15386 *)
15387   ECHO_N='-n';;
15388 esac
15389
15390 rm -f conf$$ conf$$.exe conf$$.file
15391 if test -d conf$$.dir; then
15392   rm -f conf$$.dir/conf$$.file
15393 else
15394   rm -f conf$$.dir
15395   mkdir conf$$.dir 2>/dev/null
15396 fi
15397 if (echo >conf$$.file) 2>/dev/null; then
15398   if ln -s conf$$.file conf$$ 2>/dev/null; then
15399     as_ln_s='ln -s'
15400     # ... but there are two gotchas:
15401     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15402     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15403     # In both cases, we have to default to `cp -pR'.
15404     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15405       as_ln_s='cp -pR'
15406   elif ln conf$$.file conf$$ 2>/dev/null; then
15407     as_ln_s=ln
15408   else
15409     as_ln_s='cp -pR'
15410   fi
15411 else
15412   as_ln_s='cp -pR'
15413 fi
15414 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15415 rmdir conf$$.dir 2>/dev/null
15416
15417
15418 # as_fn_mkdir_p
15419 # -------------
15420 # Create "$as_dir" as a directory, including parents if necessary.
15421 as_fn_mkdir_p ()
15422 {
15423
15424   case $as_dir in #(
15425   -*) as_dir=./$as_dir;;
15426   esac
15427   test -d "$as_dir" || eval $as_mkdir_p || {
15428     as_dirs=
15429     while :; do
15430       case $as_dir in #(
15431       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15432       *) as_qdir=$as_dir;;
15433       esac
15434       as_dirs="'$as_qdir' $as_dirs"
15435       as_dir=`$as_dirname -- "$as_dir" ||
15436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15437          X"$as_dir" : 'X\(//\)[^/]' \| \
15438          X"$as_dir" : 'X\(//\)$' \| \
15439          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15440 $as_echo X"$as_dir" |
15441     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15442             s//\1/
15443             q
15444           }
15445           /^X\(\/\/\)[^/].*/{
15446             s//\1/
15447             q
15448           }
15449           /^X\(\/\/\)$/{
15450             s//\1/
15451             q
15452           }
15453           /^X\(\/\).*/{
15454             s//\1/
15455             q
15456           }
15457           s/.*/./; q'`
15458       test -d "$as_dir" && break
15459     done
15460     test -z "$as_dirs" || eval "mkdir $as_dirs"
15461   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15462
15463
15464 } # as_fn_mkdir_p
15465 if mkdir -p . 2>/dev/null; then
15466   as_mkdir_p='mkdir -p "$as_dir"'
15467 else
15468   test -d ./-p && rmdir ./-p
15469   as_mkdir_p=false
15470 fi
15471
15472
15473 # as_fn_executable_p FILE
15474 # -----------------------
15475 # Test if FILE is an executable regular file.
15476 as_fn_executable_p ()
15477 {
15478   test -f "$1" && test -x "$1"
15479 } # as_fn_executable_p
15480 as_test_x='test -x'
15481 as_executable_p=as_fn_executable_p
15482
15483 # Sed expression to map a string onto a valid CPP name.
15484 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15485
15486 # Sed expression to map a string onto a valid variable name.
15487 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15488
15489
15490 exec 6>&1
15491 ## ----------------------------------- ##
15492 ## Main body of $CONFIG_STATUS script. ##
15493 ## ----------------------------------- ##
15494 _ASEOF
15495 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15496
15497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15498 # Save the log message, to keep $0 and so on meaningful, and to
15499 # report actual input values of CONFIG_FILES etc. instead of their
15500 # values after options handling.
15501 ac_log="
15502 This file was extended by libffi $as_me 3.0.12-rc0, which was
15503 generated by GNU Autoconf 2.69.  Invocation command line was
15504
15505   CONFIG_FILES    = $CONFIG_FILES
15506   CONFIG_HEADERS  = $CONFIG_HEADERS
15507   CONFIG_LINKS    = $CONFIG_LINKS
15508   CONFIG_COMMANDS = $CONFIG_COMMANDS
15509   $ $0 $@
15510
15511 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15512 "
15513
15514 _ACEOF
15515
15516 case $ac_config_files in *"
15517 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15518 esac
15519
15520 case $ac_config_headers in *"
15521 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15522 esac
15523
15524
15525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15526 # Files that config.status was made for.
15527 config_files="$ac_config_files"
15528 config_headers="$ac_config_headers"
15529 config_links="$ac_config_links"
15530 config_commands="$ac_config_commands"
15531
15532 _ACEOF
15533
15534 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15535 ac_cs_usage="\
15536 \`$as_me' instantiates files and other configuration actions
15537 from templates according to the current configuration.  Unless the files
15538 and actions are specified as TAGs, all are instantiated by default.
15539
15540 Usage: $0 [OPTION]... [TAG]...
15541
15542   -h, --help       print this help, then exit
15543   -V, --version    print version number and configuration settings, then exit
15544       --config     print configuration, then exit
15545   -q, --quiet, --silent
15546                    do not print progress messages
15547   -d, --debug      don't remove temporary files
15548       --recheck    update $as_me by reconfiguring in the same conditions
15549       --file=FILE[:TEMPLATE]
15550                    instantiate the configuration file FILE
15551       --header=FILE[:TEMPLATE]
15552                    instantiate the configuration header FILE
15553
15554 Configuration files:
15555 $config_files
15556
15557 Configuration headers:
15558 $config_headers
15559
15560 Configuration links:
15561 $config_links
15562
15563 Configuration commands:
15564 $config_commands
15565
15566 Report bugs to <http://gcc.gnu.org/bugs.html>."
15567
15568 _ACEOF
15569 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15570 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15571 ac_cs_version="\\
15572 libffi config.status 3.0.12-rc0
15573 configured by $0, generated by GNU Autoconf 2.69,
15574   with options \\"\$ac_cs_config\\"
15575
15576 Copyright (C) 2012 Free Software Foundation, Inc.
15577 This config.status script is free software; the Free Software Foundation
15578 gives unlimited permission to copy, distribute and modify it."
15579
15580 ac_pwd='$ac_pwd'
15581 srcdir='$srcdir'
15582 INSTALL='$INSTALL'
15583 MKDIR_P='$MKDIR_P'
15584 AWK='$AWK'
15585 test -n "\$AWK" || AWK=awk
15586 _ACEOF
15587
15588 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15589 # The default lists apply if the user does not specify any file.
15590 ac_need_defaults=:
15591 while test $# != 0
15592 do
15593   case $1 in
15594   --*=?*)
15595     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15596     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15597     ac_shift=:
15598     ;;
15599   --*=)
15600     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15601     ac_optarg=
15602     ac_shift=:
15603     ;;
15604   *)
15605     ac_option=$1
15606     ac_optarg=$2
15607     ac_shift=shift
15608     ;;
15609   esac
15610
15611   case $ac_option in
15612   # Handling of the options.
15613   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15614     ac_cs_recheck=: ;;
15615   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15616     $as_echo "$ac_cs_version"; exit ;;
15617   --config | --confi | --conf | --con | --co | --c )
15618     $as_echo "$ac_cs_config"; exit ;;
15619   --debug | --debu | --deb | --de | --d | -d )
15620     debug=: ;;
15621   --file | --fil | --fi | --f )
15622     $ac_shift
15623     case $ac_optarg in
15624     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15625     '') as_fn_error $? "missing file argument" ;;
15626     esac
15627     as_fn_append CONFIG_FILES " '$ac_optarg'"
15628     ac_need_defaults=false;;
15629   --header | --heade | --head | --hea )
15630     $ac_shift
15631     case $ac_optarg in
15632     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15633     esac
15634     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15635     ac_need_defaults=false;;
15636   --he | --h)
15637     # Conflict between --help and --header
15638     as_fn_error $? "ambiguous option: \`$1'
15639 Try \`$0 --help' for more information.";;
15640   --help | --hel | -h )
15641     $as_echo "$ac_cs_usage"; exit ;;
15642   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15643   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15644     ac_cs_silent=: ;;
15645
15646   # This is an error.
15647   -*) as_fn_error $? "unrecognized option: \`$1'
15648 Try \`$0 --help' for more information." ;;
15649
15650   *) as_fn_append ac_config_targets " $1"
15651      ac_need_defaults=false ;;
15652
15653   esac
15654   shift
15655 done
15656
15657 ac_configure_extra_args=
15658
15659 if $ac_cs_silent; then
15660   exec 6>/dev/null
15661   ac_configure_extra_args="$ac_configure_extra_args --silent"
15662 fi
15663
15664 _ACEOF
15665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15666 if \$ac_cs_recheck; then
15667   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15668   shift
15669   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15670   CONFIG_SHELL='$SHELL'
15671   export CONFIG_SHELL
15672   exec "\$@"
15673 fi
15674
15675 _ACEOF
15676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15677 exec 5>>config.log
15678 {
15679   echo
15680   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15681 ## Running $as_me. ##
15682 _ASBOX
15683   $as_echo "$ac_log"
15684 } >&5
15685
15686 _ACEOF
15687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15688 #
15689 # INIT-COMMANDS
15690 #
15691 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
15692 ax_enable_builddir_host="$HOST"                        # $HOST / $host
15693 ax_enable_builddir_version="$VERSION"                  # $VERSION
15694 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
15695 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
15696 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
15697 ax_enable_builddir="$ax_enable_builddir"               # $SUB
15698
15699 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15700
15701
15702 # The HP-UX ksh and POSIX shell print the target directory to stdout
15703 # if CDPATH is set.
15704 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15705
15706 sed_quote_subst='$sed_quote_subst'
15707 double_quote_subst='$double_quote_subst'
15708 delay_variable_subst='$delay_variable_subst'
15709 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15710 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15711 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15712 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15713 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15714 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15715 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15716 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15717 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15718 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15719 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15720 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15721 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15722 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15723 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15724 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15725 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15726 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15727 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15728 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15729 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15730 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15731 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15732 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15733 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15734 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15735 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15736 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15737 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15738 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15739 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15740 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15741 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15742 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15743 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15744 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15745 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15746 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15747 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15748 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15749 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15750 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15751 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15752 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15753 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15754 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15755 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15756 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15757 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15758 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15759 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15760 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15761 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15762 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15763 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15764 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15765 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"`'
15766 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15767 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15768 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15769 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15770 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15771 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15772 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15773 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15774 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15775 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15776 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15777 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15778 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15779 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15780 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15781 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15782 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15783 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15784 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15785 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15786 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15787 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15788 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15789 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15790 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15791 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15792 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15793 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15794 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15795 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15796 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15797 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15798 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15799 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15800 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15801 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15802 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15803 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15804 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15805 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15806 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15807 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15808 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15809 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15810 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15811 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15812 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15813 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15814 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15815 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15816 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15817 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15818 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15819 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15820 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15821 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15822 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15823 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15824 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15825 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15826 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15827 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15828 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15829 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15830 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15831 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15832 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15833 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15834 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15835 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15836 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15837 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15838 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15839
15840 LTCC='$LTCC'
15841 LTCFLAGS='$LTCFLAGS'
15842 compiler='$compiler_DEFAULT'
15843
15844 # A function that is used when there is no print builtin or printf.
15845 func_fallback_echo ()
15846 {
15847   eval 'cat <<_LTECHO_EOF
15848 \$1
15849 _LTECHO_EOF'
15850 }
15851
15852 # Quote evaled strings.
15853 for var in SHELL \
15854 ECHO \
15855 PATH_SEPARATOR \
15856 SED \
15857 GREP \
15858 EGREP \
15859 FGREP \
15860 LD \
15861 NM \
15862 LN_S \
15863 lt_SP2NL \
15864 lt_NL2SP \
15865 reload_flag \
15866 OBJDUMP \
15867 deplibs_check_method \
15868 file_magic_cmd \
15869 file_magic_glob \
15870 want_nocaseglob \
15871 DLLTOOL \
15872 sharedlib_from_linklib_cmd \
15873 AR \
15874 AR_FLAGS \
15875 archiver_list_spec \
15876 STRIP \
15877 RANLIB \
15878 CC \
15879 CFLAGS \
15880 compiler \
15881 lt_cv_sys_global_symbol_pipe \
15882 lt_cv_sys_global_symbol_to_cdecl \
15883 lt_cv_sys_global_symbol_to_c_name_address \
15884 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15885 nm_file_list_spec \
15886 lt_prog_compiler_no_builtin_flag \
15887 lt_prog_compiler_pic \
15888 lt_prog_compiler_wl \
15889 lt_prog_compiler_static \
15890 lt_cv_prog_compiler_c_o \
15891 need_locks \
15892 MANIFEST_TOOL \
15893 DSYMUTIL \
15894 NMEDIT \
15895 LIPO \
15896 OTOOL \
15897 OTOOL64 \
15898 shrext_cmds \
15899 export_dynamic_flag_spec \
15900 whole_archive_flag_spec \
15901 compiler_needs_object \
15902 with_gnu_ld \
15903 allow_undefined_flag \
15904 no_undefined_flag \
15905 hardcode_libdir_flag_spec \
15906 hardcode_libdir_separator \
15907 exclude_expsyms \
15908 include_expsyms \
15909 file_list_spec \
15910 variables_saved_for_relink \
15911 libname_spec \
15912 library_names_spec \
15913 soname_spec \
15914 install_override_mode \
15915 finish_eval \
15916 old_striplib \
15917 striplib; do
15918     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15919     *[\\\\\\\`\\"\\\$]*)
15920       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15921       ;;
15922     *)
15923       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15924       ;;
15925     esac
15926 done
15927
15928 # Double-quote double-evaled strings.
15929 for var in reload_cmds \
15930 old_postinstall_cmds \
15931 old_postuninstall_cmds \
15932 old_archive_cmds \
15933 extract_expsyms_cmds \
15934 old_archive_from_new_cmds \
15935 old_archive_from_expsyms_cmds \
15936 archive_cmds \
15937 archive_expsym_cmds \
15938 module_cmds \
15939 module_expsym_cmds \
15940 export_symbols_cmds \
15941 prelink_cmds \
15942 postlink_cmds \
15943 postinstall_cmds \
15944 postuninstall_cmds \
15945 finish_cmds \
15946 sys_lib_search_path_spec \
15947 sys_lib_dlsearch_path_spec; do
15948     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15949     *[\\\\\\\`\\"\\\$]*)
15950       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15951       ;;
15952     *)
15953       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15954       ;;
15955     esac
15956 done
15957
15958 ac_aux_dir='$ac_aux_dir'
15959 xsi_shell='$xsi_shell'
15960 lt_shell_append='$lt_shell_append'
15961
15962 # See if we are running on zsh, and set the options which allow our
15963 # commands through without removal of \ escapes INIT.
15964 if test -n "\${ZSH_VERSION+set}" ; then
15965    setopt NO_GLOB_SUBST
15966 fi
15967
15968
15969     PACKAGE='$PACKAGE'
15970     VERSION='$VERSION'
15971     TIMESTAMP='$TIMESTAMP'
15972     RM='$RM'
15973     ofile='$ofile'
15974
15975
15976
15977 TARGETDIR="$TARGETDIR"
15978
15979 _ACEOF
15980
15981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15982
15983 # Handling of arguments.
15984 for ac_config_target in $ac_config_targets
15985 do
15986   case $ac_config_target in
15987     "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
15988     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
15989     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15990     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15991     "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
15992     "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
15993     "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
15994     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
15995     "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
15996     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15997     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
15998     "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
15999     "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
16000
16001   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16002   esac
16003 done
16004
16005
16006 # If the user did not use the arguments to specify the items to instantiate,
16007 # then the envvar interface is used.  Set only those that are not.
16008 # We use the long form for the default assignment because of an extremely
16009 # bizarre bug on SunOS 4.1.3.
16010 if $ac_need_defaults; then
16011   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16012   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16013   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
16014   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16015 fi
16016
16017 # Have a temporary directory for convenience.  Make it in the build tree
16018 # simply because there is no reason against having it here, and in addition,
16019 # creating and moving files from /tmp can sometimes cause problems.
16020 # Hook for its removal unless debugging.
16021 # Note that there is a small window in which the directory will not be cleaned:
16022 # after its creation but before its name has been assigned to `$tmp'.
16023 $debug ||
16024 {
16025   tmp= ac_tmp=
16026   trap 'exit_status=$?
16027   : "${ac_tmp:=$tmp}"
16028   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16029 ' 0
16030   trap 'as_fn_exit 1' 1 2 13 15
16031 }
16032 # Create a (secure) tmp directory for tmp files.
16033
16034 {
16035   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16036   test -d "$tmp"
16037 }  ||
16038 {
16039   tmp=./conf$$-$RANDOM
16040   (umask 077 && mkdir "$tmp")
16041 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16042 ac_tmp=$tmp
16043
16044 # Set up the scripts for CONFIG_FILES section.
16045 # No need to generate them if there are no CONFIG_FILES.
16046 # This happens for instance with `./config.status config.h'.
16047 if test -n "$CONFIG_FILES"; then
16048
16049
16050 ac_cr=`echo X | tr X '\015'`
16051 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16052 # But we know of no other shell where ac_cr would be empty at this
16053 # point, so we can use a bashism as a fallback.
16054 if test "x$ac_cr" = x; then
16055   eval ac_cr=\$\'\\r\'
16056 fi
16057 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16058 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16059   ac_cs_awk_cr='\\r'
16060 else
16061   ac_cs_awk_cr=$ac_cr
16062 fi
16063
16064 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16065 _ACEOF
16066
16067
16068 {
16069   echo "cat >conf$$subs.awk <<_ACEOF" &&
16070   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16071   echo "_ACEOF"
16072 } >conf$$subs.sh ||
16073   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16074 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16075 ac_delim='%!_!# '
16076 for ac_last_try in false false false false false :; do
16077   . ./conf$$subs.sh ||
16078     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16079
16080   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16081   if test $ac_delim_n = $ac_delim_num; then
16082     break
16083   elif $ac_last_try; then
16084     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16085   else
16086     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16087   fi
16088 done
16089 rm -f conf$$subs.sh
16090
16091 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16092 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16093 _ACEOF
16094 sed -n '
16095 h
16096 s/^/S["/; s/!.*/"]=/
16097 p
16098 g
16099 s/^[^!]*!//
16100 :repl
16101 t repl
16102 s/'"$ac_delim"'$//
16103 t delim
16104 :nl
16105 h
16106 s/\(.\{148\}\)..*/\1/
16107 t more1
16108 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16109 p
16110 n
16111 b repl
16112 :more1
16113 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16114 p
16115 g
16116 s/.\{148\}//
16117 t nl
16118 :delim
16119 h
16120 s/\(.\{148\}\)..*/\1/
16121 t more2
16122 s/["\\]/\\&/g; s/^/"/; s/$/"/
16123 p
16124 b
16125 :more2
16126 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16127 p
16128 g
16129 s/.\{148\}//
16130 t delim
16131 ' <conf$$subs.awk | sed '
16132 /^[^""]/{
16133   N
16134   s/\n//
16135 }
16136 ' >>$CONFIG_STATUS || ac_write_fail=1
16137 rm -f conf$$subs.awk
16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16139 _ACAWK
16140 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16141   for (key in S) S_is_set[key] = 1
16142   FS = "\a"
16143
16144 }
16145 {
16146   line = $ 0
16147   nfields = split(line, field, "@")
16148   substed = 0
16149   len = length(field[1])
16150   for (i = 2; i < nfields; i++) {
16151     key = field[i]
16152     keylen = length(key)
16153     if (S_is_set[key]) {
16154       value = S[key]
16155       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16156       len += length(value) + length(field[++i])
16157       substed = 1
16158     } else
16159       len += 1 + keylen
16160   }
16161
16162   print line
16163 }
16164
16165 _ACAWK
16166 _ACEOF
16167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16168 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16169   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16170 else
16171   cat
16172 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16173   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16174 _ACEOF
16175
16176 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16177 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16178 # trailing colons and then remove the whole line if VPATH becomes empty
16179 # (actually we leave an empty line to preserve line numbers).
16180 if test "x$srcdir" = x.; then
16181   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16182 h
16183 s///
16184 s/^/:/
16185 s/[      ]*$/:/
16186 s/:\$(srcdir):/:/g
16187 s/:\${srcdir}:/:/g
16188 s/:@srcdir@:/:/g
16189 s/^:*//
16190 s/:*$//
16191 x
16192 s/\(=[   ]*\).*/\1/
16193 G
16194 s/\n//
16195 s/^[^=]*=[       ]*$//
16196 }'
16197 fi
16198
16199 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16200 fi # test -n "$CONFIG_FILES"
16201
16202 # Set up the scripts for CONFIG_HEADERS section.
16203 # No need to generate them if there are no CONFIG_HEADERS.
16204 # This happens for instance with `./config.status Makefile'.
16205 if test -n "$CONFIG_HEADERS"; then
16206 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16207 BEGIN {
16208 _ACEOF
16209
16210 # Transform confdefs.h into an awk script `defines.awk', embedded as
16211 # here-document in config.status, that substitutes the proper values into
16212 # config.h.in to produce config.h.
16213
16214 # Create a delimiter string that does not exist in confdefs.h, to ease
16215 # handling of long lines.
16216 ac_delim='%!_!# '
16217 for ac_last_try in false false :; do
16218   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16219   if test -z "$ac_tt"; then
16220     break
16221   elif $ac_last_try; then
16222     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16223   else
16224     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16225   fi
16226 done
16227
16228 # For the awk script, D is an array of macro values keyed by name,
16229 # likewise P contains macro parameters if any.  Preserve backslash
16230 # newline sequences.
16231
16232 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16233 sed -n '
16234 s/.\{148\}/&'"$ac_delim"'/g
16235 t rset
16236 :rset
16237 s/^[     ]*#[    ]*define[       ][      ]*/ /
16238 t def
16239 d
16240 :def
16241 s/\\$//
16242 t bsnl
16243 s/["\\]/\\&/g
16244 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16245 D["\1"]=" \3"/p
16246 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16247 d
16248 :bsnl
16249 s/["\\]/\\&/g
16250 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16251 D["\1"]=" \3\\\\\\n"\\/p
16252 t cont
16253 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16254 t cont
16255 d
16256 :cont
16257 n
16258 s/.\{148\}/&'"$ac_delim"'/g
16259 t clear
16260 :clear
16261 s/\\$//
16262 t bsnlc
16263 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16264 d
16265 :bsnlc
16266 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16267 b cont
16268 ' <confdefs.h | sed '
16269 s/'"$ac_delim"'/"\\\
16270 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16271
16272 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16273   for (key in D) D_is_set[key] = 1
16274   FS = "\a"
16275 }
16276 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16277   line = \$ 0
16278   split(line, arg, " ")
16279   if (arg[1] == "#") {
16280     defundef = arg[2]
16281     mac1 = arg[3]
16282   } else {
16283     defundef = substr(arg[1], 2)
16284     mac1 = arg[2]
16285   }
16286   split(mac1, mac2, "(") #)
16287   macro = mac2[1]
16288   prefix = substr(line, 1, index(line, defundef) - 1)
16289   if (D_is_set[macro]) {
16290     # Preserve the white space surrounding the "#".
16291     print prefix "define", macro P[macro] D[macro]
16292     next
16293   } else {
16294     # Replace #undef with comments.  This is necessary, for example,
16295     # in the case of _POSIX_SOURCE, which is predefined and required
16296     # on some systems where configure will not decide to define it.
16297     if (defundef == "undef") {
16298       print "/*", prefix defundef, macro, "*/"
16299       next
16300     }
16301   }
16302 }
16303 { print }
16304 _ACAWK
16305 _ACEOF
16306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16307   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16308 fi # test -n "$CONFIG_HEADERS"
16309
16310
16311 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
16312 shift
16313 for ac_tag
16314 do
16315   case $ac_tag in
16316   :[FHLC]) ac_mode=$ac_tag; continue;;
16317   esac
16318   case $ac_mode$ac_tag in
16319   :[FHL]*:*);;
16320   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16321   :[FH]-) ac_tag=-:-;;
16322   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16323   esac
16324   ac_save_IFS=$IFS
16325   IFS=:
16326   set x $ac_tag
16327   IFS=$ac_save_IFS
16328   shift
16329   ac_file=$1
16330   shift
16331
16332   case $ac_mode in
16333   :L) ac_source=$1;;
16334   :[FH])
16335     ac_file_inputs=
16336     for ac_f
16337     do
16338       case $ac_f in
16339       -) ac_f="$ac_tmp/stdin";;
16340       *) # Look for the file first in the build tree, then in the source tree
16341          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16342          # because $ac_f cannot contain `:'.
16343          test -f "$ac_f" ||
16344            case $ac_f in
16345            [\\/$]*) false;;
16346            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16347            esac ||
16348            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16349       esac
16350       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16351       as_fn_append ac_file_inputs " '$ac_f'"
16352     done
16353
16354     # Let's still pretend it is `configure' which instantiates (i.e., don't
16355     # use $as_me), people would be surprised to read:
16356     #    /* config.h.  Generated by config.status.  */
16357     configure_input='Generated from '`
16358           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16359         `' by configure.'
16360     if test x"$ac_file" != x-; then
16361       configure_input="$ac_file.  $configure_input"
16362       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16363 $as_echo "$as_me: creating $ac_file" >&6;}
16364     fi
16365     # Neutralize special characters interpreted by sed in replacement strings.
16366     case $configure_input in #(
16367     *\&* | *\|* | *\\* )
16368        ac_sed_conf_input=`$as_echo "$configure_input" |
16369        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16370     *) ac_sed_conf_input=$configure_input;;
16371     esac
16372
16373     case $ac_tag in
16374     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16375       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16376     esac
16377     ;;
16378   esac
16379
16380   ac_dir=`$as_dirname -- "$ac_file" ||
16381 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16382          X"$ac_file" : 'X\(//\)[^/]' \| \
16383          X"$ac_file" : 'X\(//\)$' \| \
16384          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16385 $as_echo X"$ac_file" |
16386     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16387             s//\1/
16388             q
16389           }
16390           /^X\(\/\/\)[^/].*/{
16391             s//\1/
16392             q
16393           }
16394           /^X\(\/\/\)$/{
16395             s//\1/
16396             q
16397           }
16398           /^X\(\/\).*/{
16399             s//\1/
16400             q
16401           }
16402           s/.*/./; q'`
16403   as_dir="$ac_dir"; as_fn_mkdir_p
16404   ac_builddir=.
16405
16406 case "$ac_dir" in
16407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16408 *)
16409   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16410   # A ".." for each directory in $ac_dir_suffix.
16411   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16412   case $ac_top_builddir_sub in
16413   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16414   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16415   esac ;;
16416 esac
16417 ac_abs_top_builddir=$ac_pwd
16418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16419 # for backward compatibility:
16420 ac_top_builddir=$ac_top_build_prefix
16421
16422 case $srcdir in
16423   .)  # We are building in place.
16424     ac_srcdir=.
16425     ac_top_srcdir=$ac_top_builddir_sub
16426     ac_abs_top_srcdir=$ac_pwd ;;
16427   [\\/]* | ?:[\\/]* )  # Absolute name.
16428     ac_srcdir=$srcdir$ac_dir_suffix;
16429     ac_top_srcdir=$srcdir
16430     ac_abs_top_srcdir=$srcdir ;;
16431   *) # Relative name.
16432     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16433     ac_top_srcdir=$ac_top_build_prefix$srcdir
16434     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16435 esac
16436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16437
16438
16439   case $ac_mode in
16440   :F)
16441   #
16442   # CONFIG_FILE
16443   #
16444
16445   case $INSTALL in
16446   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16447   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16448   esac
16449   ac_MKDIR_P=$MKDIR_P
16450   case $MKDIR_P in
16451   [\\/$]* | ?:[\\/]* ) ;;
16452   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16453   esac
16454 _ACEOF
16455
16456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16457 # If the template does not know about datarootdir, expand it.
16458 # FIXME: This hack should be removed a few years after 2.60.
16459 ac_datarootdir_hack=; ac_datarootdir_seen=
16460 ac_sed_dataroot='
16461 /datarootdir/ {
16462   p
16463   q
16464 }
16465 /@datadir@/p
16466 /@docdir@/p
16467 /@infodir@/p
16468 /@localedir@/p
16469 /@mandir@/p'
16470 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16471 *datarootdir*) ac_datarootdir_seen=yes;;
16472 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16473   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16474 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16475 _ACEOF
16476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16477   ac_datarootdir_hack='
16478   s&@datadir@&$datadir&g
16479   s&@docdir@&$docdir&g
16480   s&@infodir@&$infodir&g
16481   s&@localedir@&$localedir&g
16482   s&@mandir@&$mandir&g
16483   s&\\\${datarootdir}&$datarootdir&g' ;;
16484 esac
16485 _ACEOF
16486
16487 # Neutralize VPATH when `$srcdir' = `.'.
16488 # Shell code in configure.ac might set extrasub.
16489 # FIXME: do we really want to maintain this feature?
16490 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16491 ac_sed_extra="$ac_vpsub
16492 $extrasub
16493 _ACEOF
16494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16495 :t
16496 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16497 s|@configure_input@|$ac_sed_conf_input|;t t
16498 s&@top_builddir@&$ac_top_builddir_sub&;t t
16499 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16500 s&@srcdir@&$ac_srcdir&;t t
16501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16502 s&@top_srcdir@&$ac_top_srcdir&;t t
16503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16504 s&@builddir@&$ac_builddir&;t t
16505 s&@abs_builddir@&$ac_abs_builddir&;t t
16506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16507 s&@INSTALL@&$ac_INSTALL&;t t
16508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16509 $ac_datarootdir_hack
16510 "
16511 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16512   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16513
16514 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16515   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16516   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16517       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16518   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16519 which seems to be undefined.  Please make sure it is defined" >&5
16520 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16521 which seems to be undefined.  Please make sure it is defined" >&2;}
16522
16523   rm -f "$ac_tmp/stdin"
16524   case $ac_file in
16525   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16526   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16527   esac \
16528   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16529  ;;
16530   :H)
16531   #
16532   # CONFIG_HEADER
16533   #
16534   if test x"$ac_file" != x-; then
16535     {
16536       $as_echo "/* $configure_input  */" \
16537       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16538     } >"$ac_tmp/config.h" \
16539       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16540     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16541       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16542 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16543     else
16544       rm -f "$ac_file"
16545       mv "$ac_tmp/config.h" "$ac_file" \
16546         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16547     fi
16548   else
16549     $as_echo "/* $configure_input  */" \
16550       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16551       || as_fn_error $? "could not create -" "$LINENO" 5
16552   fi
16553 # Compute "$ac_file"'s index in $config_headers.
16554 _am_arg="$ac_file"
16555 _am_stamp_count=1
16556 for _am_header in $config_headers :; do
16557   case $_am_header in
16558     $_am_arg | $_am_arg:* )
16559       break ;;
16560     * )
16561       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16562   esac
16563 done
16564 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16565 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16566          X"$_am_arg" : 'X\(//\)[^/]' \| \
16567          X"$_am_arg" : 'X\(//\)$' \| \
16568          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16569 $as_echo X"$_am_arg" |
16570     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16571             s//\1/
16572             q
16573           }
16574           /^X\(\/\/\)[^/].*/{
16575             s//\1/
16576             q
16577           }
16578           /^X\(\/\/\)$/{
16579             s//\1/
16580             q
16581           }
16582           /^X\(\/\).*/{
16583             s//\1/
16584             q
16585           }
16586           s/.*/./; q'`/stamp-h$_am_stamp_count
16587  ;;
16588   :L)
16589   #
16590   # CONFIG_LINK
16591   #
16592
16593   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16594     :
16595   else
16596     # Prefer the file from the source tree if names are identical.
16597     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16598       ac_source=$srcdir/$ac_source
16599     fi
16600
16601     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16602 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16603
16604     if test ! -r "$ac_source"; then
16605       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
16606     fi
16607     rm -f "$ac_file"
16608
16609     # Try a relative symlink, then a hard link, then a copy.
16610     case $ac_source in
16611     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16612         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16613     esac
16614     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16615       ln "$ac_source" "$ac_file" 2>/dev/null ||
16616       cp -p "$ac_source" "$ac_file" ||
16617       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16618   fi
16619  ;;
16620   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16621 $as_echo "$as_me: executing $ac_file commands" >&6;}
16622  ;;
16623   esac
16624
16625
16626   case $ac_file$ac_mode in
16627     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
16628   if test ".$ax_enable_builddir" = ".." ; then
16629     if test -f "$top_srcdir/Makefile" ; then
16630       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
16631 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
16632     else
16633       { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
16634 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
16635     fi
16636   else
16637     if test -f "$ac_top_srcdir/Makefile" ; then
16638       a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
16639       test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
16640     fi
16641     if test -f "$ac_top_srcdir/Makefile" ; then
16642         echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
16643         echo "  @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
16644       eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
16645       if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
16646       then rm $ac_top_srcdir/Makefile ; fi
16647       cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~      ## DEBUGGING
16648     fi
16649     if test ! -f "$ac_top_srcdir/Makefile" ; then
16650       { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
16651 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
16652       x='`' ; cat >$tmp/conftemp.sed <<_EOF
16653 /^\$/n
16654 x
16655 /^\$/bS
16656 x
16657 /\\\\\$/{H;d;}
16658 {H;s/.*//;x;}
16659 bM
16660 :S
16661 x
16662 /\\\\\$/{h;d;}
16663 {h;s/.*//;x;}
16664 :M
16665 s/\\(\\n\\)     /\\1 /g
16666 /^      /d
16667 /^[      ]*[\\#]/d
16668 /^VPATH *=/d
16669 s/^srcdir *=.*/srcdir = ./
16670 s/^top_srcdir *=.*/top_srcdir = ./
16671 /[:=]/!d
16672 /^\\./d
16673 / = /b
16674 / .= /b
16675 /:/!b
16676 s/:.*/:/
16677 s/ /  /g
16678 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
16679 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
16680 s/  / /g
16681 /^all all-all[ :]/i\\
16682 all-configured : all-all
16683 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
16684 /-all-all/d
16685 a\\
16686         @ HOST="\$(HOST)\" \\\\\\
16687         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16688         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16689         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16690         ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
16691         ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
16692         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16693         ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
16694         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16695         ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
16696 /dist-all *:/a\\
16697         @ HOST="\$(HOST)\" \\\\\\
16698         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16699         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16700         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16701         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
16702         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16703         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16704         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16705         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
16706         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16707 /dist-[a-zA-Z0-9]*-all *:/a\\
16708         @ HOST="\$(HOST)\" \\\\\\
16709         ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
16710         ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
16711         ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
16712         ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
16713         ; if test "\$\$found" -eq "0" ; then : \\\\\\
16714         ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
16715         ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16716         ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
16717         ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
16718 /distclean-all *:/a\\
16719         @ HOST="\$(HOST)\" \\\\\\
16720         ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
16721         ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
16722         ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
16723         ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
16724         ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
16725         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16726         ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
16727         ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
16728         ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
16729         ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
16730         ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
16731 _EOF
16732       cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
16733       $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
16734       if test -f "$ac_top_srcdir/Makefile.mk" ; then
16735         { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
16736 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
16737         cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
16738       fi ; xxxx="####"
16739       echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
16740       # sanity check
16741       if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
16742         { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
16743 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
16744         $ax_enable_builddir_sed -e '/^@ HOST=/s/^/      /' -e '/^; /s/^/        /' $ac_top_srcdir/Makefile \
16745           >$ac_top_srcdir/Makefile~
16746         (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
16747       fi
16748     else
16749       xxxx="\\#\\#\\#\\#"
16750       # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
16751       echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
16752       $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
16753         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~"         ## DEBUGGING
16754         cp "$tmp/mkfile.tmp"   "$ac_top_srcdir/makefiles.out~"         ## DEBUGGING
16755       if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
16756         { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
16757 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
16758         rm "$tmp/mkfile.tmp"
16759       else
16760         { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
16761 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
16762         mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
16763       fi
16764     fi
16765     { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
16766 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
16767     xxxx="####"
16768     echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
16769   fi
16770  ;;
16771     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16772   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16773   # are listed without --file.  Let's play safe and only enable the eval
16774   # if we detect the quoting.
16775   case $CONFIG_FILES in
16776   *\'*) eval set x "$CONFIG_FILES" ;;
16777   *)   set x $CONFIG_FILES ;;
16778   esac
16779   shift
16780   for mf
16781   do
16782     # Strip MF so we end up with the name of the file.
16783     mf=`echo "$mf" | sed -e 's/:.*$//'`
16784     # Check whether this is an Automake generated Makefile or not.
16785     # We used to match only the files named 'Makefile.in', but
16786     # some people rename them; so instead we look at the file content.
16787     # Grep'ing the first line is not enough: some people post-process
16788     # each Makefile.in and add a new line on top of each file to say so.
16789     # Grep'ing the whole file is not good either: AIX grep has a line
16790     # limit of 2048, but all sed's we know have understand at least 4000.
16791     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16792       dirpart=`$as_dirname -- "$mf" ||
16793 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16794          X"$mf" : 'X\(//\)[^/]' \| \
16795          X"$mf" : 'X\(//\)$' \| \
16796          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16797 $as_echo X"$mf" |
16798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16799             s//\1/
16800             q
16801           }
16802           /^X\(\/\/\)[^/].*/{
16803             s//\1/
16804             q
16805           }
16806           /^X\(\/\/\)$/{
16807             s//\1/
16808             q
16809           }
16810           /^X\(\/\).*/{
16811             s//\1/
16812             q
16813           }
16814           s/.*/./; q'`
16815     else
16816       continue
16817     fi
16818     # Extract the definition of DEPDIR, am__include, and am__quote
16819     # from the Makefile without running 'make'.
16820     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16821     test -z "$DEPDIR" && continue
16822     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16823     test -z "am__include" && continue
16824     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16825     # Find all dependency output files, they are included files with
16826     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16827     # simplest approach to changing $(DEPDIR) to its actual value in the
16828     # expansion.
16829     for file in `sed -n "
16830       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16831          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16832       # Make sure the directory exists.
16833       test -f "$dirpart/$file" && continue
16834       fdir=`$as_dirname -- "$file" ||
16835 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16836          X"$file" : 'X\(//\)[^/]' \| \
16837          X"$file" : 'X\(//\)$' \| \
16838          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16839 $as_echo X"$file" |
16840     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16841             s//\1/
16842             q
16843           }
16844           /^X\(\/\/\)[^/].*/{
16845             s//\1/
16846             q
16847           }
16848           /^X\(\/\/\)$/{
16849             s//\1/
16850             q
16851           }
16852           /^X\(\/\).*/{
16853             s//\1/
16854             q
16855           }
16856           s/.*/./; q'`
16857       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16858       # echo "creating $dirpart/$file"
16859       echo '# dummy' > "$dirpart/$file"
16860     done
16861   done
16862 }
16863  ;;
16864     "libtool":C)
16865
16866     # See if we are running on zsh, and set the options which allow our
16867     # commands through without removal of \ escapes.
16868     if test -n "${ZSH_VERSION+set}" ; then
16869       setopt NO_GLOB_SUBST
16870     fi
16871
16872     cfgfile="${ofile}T"
16873     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16874     $RM "$cfgfile"
16875
16876     cat <<_LT_EOF >> "$cfgfile"
16877 #! $SHELL
16878
16879 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16880 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16881 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16882 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16883 #
16884 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16885 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16886 #                 Foundation, Inc.
16887 #   Written by Gordon Matzigkeit, 1996
16888 #
16889 #   This file is part of GNU Libtool.
16890 #
16891 # GNU Libtool is free software; you can redistribute it and/or
16892 # modify it under the terms of the GNU General Public License as
16893 # published by the Free Software Foundation; either version 2 of
16894 # the License, or (at your option) any later version.
16895 #
16896 # As a special exception to the GNU General Public License,
16897 # if you distribute this file as part of a program or library that
16898 # is built using GNU Libtool, you may include this file under the
16899 # same distribution terms that you use for the rest of that program.
16900 #
16901 # GNU Libtool is distributed in the hope that it will be useful,
16902 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16903 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16904 # GNU General Public License for more details.
16905 #
16906 # You should have received a copy of the GNU General Public License
16907 # along with GNU Libtool; see the file COPYING.  If not, a copy
16908 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16909 # obtained by writing to the Free Software Foundation, Inc.,
16910 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16911
16912
16913 # The names of the tagged configurations supported by this script.
16914 available_tags=""
16915
16916 # ### BEGIN LIBTOOL CONFIG
16917
16918 # Which release of libtool.m4 was used?
16919 macro_version=$macro_version
16920 macro_revision=$macro_revision
16921
16922 # Whether or not to build shared libraries.
16923 build_libtool_libs=$enable_shared
16924
16925 # Whether or not to build static libraries.
16926 build_old_libs=$enable_static
16927
16928 # What type of objects to build.
16929 pic_mode=$pic_mode
16930
16931 # Whether or not to optimize for fast installation.
16932 fast_install=$enable_fast_install
16933
16934 # Shell to use when invoking shell scripts.
16935 SHELL=$lt_SHELL
16936
16937 # An echo program that protects backslashes.
16938 ECHO=$lt_ECHO
16939
16940 # The PATH separator for the build system.
16941 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16942
16943 # The host system.
16944 host_alias=$host_alias
16945 host=$host
16946 host_os=$host_os
16947
16948 # The build system.
16949 build_alias=$build_alias
16950 build=$build
16951 build_os=$build_os
16952
16953 # A sed program that does not truncate output.
16954 SED=$lt_SED
16955
16956 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16957 Xsed="\$SED -e 1s/^X//"
16958
16959 # A grep program that handles long lines.
16960 GREP=$lt_GREP
16961
16962 # An ERE matcher.
16963 EGREP=$lt_EGREP
16964
16965 # A literal string matcher.
16966 FGREP=$lt_FGREP
16967
16968 # A BSD- or MS-compatible name lister.
16969 NM=$lt_NM
16970
16971 # Whether we need soft or hard links.
16972 LN_S=$lt_LN_S
16973
16974 # What is the maximum length of a command?
16975 max_cmd_len=$max_cmd_len
16976
16977 # Object file suffix (normally "o").
16978 objext=$ac_objext
16979
16980 # Executable file suffix (normally "").
16981 exeext=$exeext
16982
16983 # whether the shell understands "unset".
16984 lt_unset=$lt_unset
16985
16986 # turn spaces into newlines.
16987 SP2NL=$lt_lt_SP2NL
16988
16989 # turn newlines into spaces.
16990 NL2SP=$lt_lt_NL2SP
16991
16992 # convert \$build file names to \$host format.
16993 to_host_file_cmd=$lt_cv_to_host_file_cmd
16994
16995 # convert \$build files to toolchain format.
16996 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16997
16998 # An object symbol dumper.
16999 OBJDUMP=$lt_OBJDUMP
17000
17001 # Method to check whether dependent libraries are shared objects.
17002 deplibs_check_method=$lt_deplibs_check_method
17003
17004 # Command to use when deplibs_check_method = "file_magic".
17005 file_magic_cmd=$lt_file_magic_cmd
17006
17007 # How to find potential files when deplibs_check_method = "file_magic".
17008 file_magic_glob=$lt_file_magic_glob
17009
17010 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17011 want_nocaseglob=$lt_want_nocaseglob
17012
17013 # DLL creation program.
17014 DLLTOOL=$lt_DLLTOOL
17015
17016 # Command to associate shared and link libraries.
17017 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17018
17019 # The archiver.
17020 AR=$lt_AR
17021
17022 # Flags to create an archive.
17023 AR_FLAGS=$lt_AR_FLAGS
17024
17025 # How to feed a file listing to the archiver.
17026 archiver_list_spec=$lt_archiver_list_spec
17027
17028 # A symbol stripping program.
17029 STRIP=$lt_STRIP
17030
17031 # Commands used to install an old-style archive.
17032 RANLIB=$lt_RANLIB
17033 old_postinstall_cmds=$lt_old_postinstall_cmds
17034 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17035
17036 # Whether to use a lock for old archive extraction.
17037 lock_old_archive_extraction=$lock_old_archive_extraction
17038
17039 # A C compiler.
17040 LTCC=$lt_CC
17041
17042 # LTCC compiler flags.
17043 LTCFLAGS=$lt_CFLAGS
17044
17045 # Take the output of nm and produce a listing of raw symbols and C names.
17046 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17047
17048 # Transform the output of nm in a proper C declaration.
17049 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17050
17051 # Transform the output of nm in a C name address pair.
17052 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17053
17054 # Transform the output of nm in a C name address pair when lib prefix is needed.
17055 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17056
17057 # Specify filename containing input files for \$NM.
17058 nm_file_list_spec=$lt_nm_file_list_spec
17059
17060 # The root where to search for dependent libraries,and in which our libraries should be installed.
17061 lt_sysroot=$lt_sysroot
17062
17063 # The name of the directory that contains temporary libtool files.
17064 objdir=$objdir
17065
17066 # Used to examine libraries when file_magic_cmd begins with "file".
17067 MAGIC_CMD=$MAGIC_CMD
17068
17069 # Must we lock files when doing compilation?
17070 need_locks=$lt_need_locks
17071
17072 # Manifest tool.
17073 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17074
17075 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17076 DSYMUTIL=$lt_DSYMUTIL
17077
17078 # Tool to change global to local symbols on Mac OS X.
17079 NMEDIT=$lt_NMEDIT
17080
17081 # Tool to manipulate fat objects and archives on Mac OS X.
17082 LIPO=$lt_LIPO
17083
17084 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17085 OTOOL=$lt_OTOOL
17086
17087 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17088 OTOOL64=$lt_OTOOL64
17089
17090 # Old archive suffix (normally "a").
17091 libext=$libext
17092
17093 # Shared library suffix (normally ".so").
17094 shrext_cmds=$lt_shrext_cmds
17095
17096 # The commands to extract the exported symbol list from a shared archive.
17097 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17098
17099 # Variables whose values should be saved in libtool wrapper scripts and
17100 # restored at link time.
17101 variables_saved_for_relink=$lt_variables_saved_for_relink
17102
17103 # Do we need the "lib" prefix for modules?
17104 need_lib_prefix=$need_lib_prefix
17105
17106 # Do we need a version for libraries?
17107 need_version=$need_version
17108
17109 # Library versioning type.
17110 version_type=$version_type
17111
17112 # Shared library runtime path variable.
17113 runpath_var=$runpath_var
17114
17115 # Shared library path variable.
17116 shlibpath_var=$shlibpath_var
17117
17118 # Is shlibpath searched before the hard-coded library search path?
17119 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17120
17121 # Format of library name prefix.
17122 libname_spec=$lt_libname_spec
17123
17124 # List of archive names.  First name is the real one, the rest are links.
17125 # The last name is the one that the linker finds with -lNAME
17126 library_names_spec=$lt_library_names_spec
17127
17128 # The coded name of the library, if different from the real name.
17129 soname_spec=$lt_soname_spec
17130
17131 # Permission mode override for installation of shared libraries.
17132 install_override_mode=$lt_install_override_mode
17133
17134 # Command to use after installation of a shared archive.
17135 postinstall_cmds=$lt_postinstall_cmds
17136
17137 # Command to use after uninstallation of a shared archive.
17138 postuninstall_cmds=$lt_postuninstall_cmds
17139
17140 # Commands used to finish a libtool library installation in a directory.
17141 finish_cmds=$lt_finish_cmds
17142
17143 # As "finish_cmds", except a single script fragment to be evaled but
17144 # not shown.
17145 finish_eval=$lt_finish_eval
17146
17147 # Whether we should hardcode library paths into libraries.
17148 hardcode_into_libs=$hardcode_into_libs
17149
17150 # Compile-time system search path for libraries.
17151 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17152
17153 # Run-time system search path for libraries.
17154 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17155
17156 # Whether dlopen is supported.
17157 dlopen_support=$enable_dlopen
17158
17159 # Whether dlopen of programs is supported.
17160 dlopen_self=$enable_dlopen_self
17161
17162 # Whether dlopen of statically linked programs is supported.
17163 dlopen_self_static=$enable_dlopen_self_static
17164
17165 # Commands to strip libraries.
17166 old_striplib=$lt_old_striplib
17167 striplib=$lt_striplib
17168
17169
17170 # The linker used to build libraries.
17171 LD=$lt_LD
17172
17173 # How to create reloadable object files.
17174 reload_flag=$lt_reload_flag
17175 reload_cmds=$lt_reload_cmds
17176
17177 # Commands used to build an old-style archive.
17178 old_archive_cmds=$lt_old_archive_cmds
17179
17180 # A language specific compiler.
17181 CC=$lt_compiler
17182
17183 # Is the compiler the GNU compiler?
17184 with_gcc=$GCC
17185
17186 # Compiler flag to turn off builtin functions.
17187 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17188
17189 # Additional compiler flags for building library objects.
17190 pic_flag=$lt_lt_prog_compiler_pic
17191
17192 # How to pass a linker flag through the compiler.
17193 wl=$lt_lt_prog_compiler_wl
17194
17195 # Compiler flag to prevent dynamic linking.
17196 link_static_flag=$lt_lt_prog_compiler_static
17197
17198 # Does compiler simultaneously support -c and -o options?
17199 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17200
17201 # Whether or not to add -lc for building shared libraries.
17202 build_libtool_need_lc=$archive_cmds_need_lc
17203
17204 # Whether or not to disallow shared libs when runtime libs are static.
17205 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17206
17207 # Compiler flag to allow reflexive dlopens.
17208 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17209
17210 # Compiler flag to generate shared objects directly from archives.
17211 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17212
17213 # Whether the compiler copes with passing no objects directly.
17214 compiler_needs_object=$lt_compiler_needs_object
17215
17216 # Create an old-style archive from a shared archive.
17217 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17218
17219 # Create a temporary old-style archive to link instead of a shared archive.
17220 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17221
17222 # Commands used to build a shared archive.
17223 archive_cmds=$lt_archive_cmds
17224 archive_expsym_cmds=$lt_archive_expsym_cmds
17225
17226 # Commands used to build a loadable module if different from building
17227 # a shared archive.
17228 module_cmds=$lt_module_cmds
17229 module_expsym_cmds=$lt_module_expsym_cmds
17230
17231 # Whether we are building with GNU ld or not.
17232 with_gnu_ld=$lt_with_gnu_ld
17233
17234 # Flag that allows shared libraries with undefined symbols to be built.
17235 allow_undefined_flag=$lt_allow_undefined_flag
17236
17237 # Flag that enforces no undefined symbols.
17238 no_undefined_flag=$lt_no_undefined_flag
17239
17240 # Flag to hardcode \$libdir into a binary during linking.
17241 # This must work even if \$libdir does not exist
17242 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17243
17244 # Whether we need a single "-rpath" flag with a separated argument.
17245 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17246
17247 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17248 # DIR into the resulting binary.
17249 hardcode_direct=$hardcode_direct
17250
17251 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17252 # DIR into the resulting binary and the resulting library dependency is
17253 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17254 # library is relocated.
17255 hardcode_direct_absolute=$hardcode_direct_absolute
17256
17257 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17258 # into the resulting binary.
17259 hardcode_minus_L=$hardcode_minus_L
17260
17261 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17262 # into the resulting binary.
17263 hardcode_shlibpath_var=$hardcode_shlibpath_var
17264
17265 # Set to "yes" if building a shared library automatically hardcodes DIR
17266 # into the library and all subsequent libraries and executables linked
17267 # against it.
17268 hardcode_automatic=$hardcode_automatic
17269
17270 # Set to yes if linker adds runtime paths of dependent libraries
17271 # to runtime path list.
17272 inherit_rpath=$inherit_rpath
17273
17274 # Whether libtool must link a program against all its dependency libraries.
17275 link_all_deplibs=$link_all_deplibs
17276
17277 # Set to "yes" if exported symbols are required.
17278 always_export_symbols=$always_export_symbols
17279
17280 # The commands to list exported symbols.
17281 export_symbols_cmds=$lt_export_symbols_cmds
17282
17283 # Symbols that should not be listed in the preloaded symbols.
17284 exclude_expsyms=$lt_exclude_expsyms
17285
17286 # Symbols that must always be exported.
17287 include_expsyms=$lt_include_expsyms
17288
17289 # Commands necessary for linking programs (against libraries) with templates.
17290 prelink_cmds=$lt_prelink_cmds
17291
17292 # Commands necessary for finishing linking programs.
17293 postlink_cmds=$lt_postlink_cmds
17294
17295 # Specify filename containing input files.
17296 file_list_spec=$lt_file_list_spec
17297
17298 # How to hardcode a shared library path into an executable.
17299 hardcode_action=$hardcode_action
17300
17301 # ### END LIBTOOL CONFIG
17302
17303 _LT_EOF
17304
17305   case $host_os in
17306   aix3*)
17307     cat <<\_LT_EOF >> "$cfgfile"
17308 # AIX sometimes has problems with the GCC collect2 program.  For some
17309 # reason, if we set the COLLECT_NAMES environment variable, the problems
17310 # vanish in a puff of smoke.
17311 if test "X${COLLECT_NAMES+set}" != Xset; then
17312   COLLECT_NAMES=
17313   export COLLECT_NAMES
17314 fi
17315 _LT_EOF
17316     ;;
17317   esac
17318
17319
17320 ltmain="$ac_aux_dir/ltmain.sh"
17321
17322
17323   # We use sed instead of cat because bash on DJGPP gets confused if
17324   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17325   # text mode, it properly converts lines to CR/LF.  This bash problem
17326   # is reportedly fixed, but why not run on old versions too?
17327   sed '$q' "$ltmain" >> "$cfgfile" \
17328      || (rm -f "$cfgfile"; exit 1)
17329
17330   if test x"$xsi_shell" = xyes; then
17331   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17332 func_dirname ()\
17333 {\
17334 \    case ${1} in\
17335 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17336 \      *  ) func_dirname_result="${3}" ;;\
17337 \    esac\
17338 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17339   && mv -f "$cfgfile.tmp" "$cfgfile" \
17340     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17341 test 0 -eq $? || _lt_function_replace_fail=:
17342
17343
17344   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17345 func_basename ()\
17346 {\
17347 \    func_basename_result="${1##*/}"\
17348 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17349   && mv -f "$cfgfile.tmp" "$cfgfile" \
17350     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17351 test 0 -eq $? || _lt_function_replace_fail=:
17352
17353
17354   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17355 func_dirname_and_basename ()\
17356 {\
17357 \    case ${1} in\
17358 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17359 \      *  ) func_dirname_result="${3}" ;;\
17360 \    esac\
17361 \    func_basename_result="${1##*/}"\
17362 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17363   && mv -f "$cfgfile.tmp" "$cfgfile" \
17364     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17365 test 0 -eq $? || _lt_function_replace_fail=:
17366
17367
17368   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17369 func_stripname ()\
17370 {\
17371 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17372 \    # positional parameters, so assign one to ordinary parameter first.\
17373 \    func_stripname_result=${3}\
17374 \    func_stripname_result=${func_stripname_result#"${1}"}\
17375 \    func_stripname_result=${func_stripname_result%"${2}"}\
17376 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17377   && mv -f "$cfgfile.tmp" "$cfgfile" \
17378     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17379 test 0 -eq $? || _lt_function_replace_fail=:
17380
17381
17382   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17383 func_split_long_opt ()\
17384 {\
17385 \    func_split_long_opt_name=${1%%=*}\
17386 \    func_split_long_opt_arg=${1#*=}\
17387 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17388   && mv -f "$cfgfile.tmp" "$cfgfile" \
17389     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17390 test 0 -eq $? || _lt_function_replace_fail=:
17391
17392
17393   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17394 func_split_short_opt ()\
17395 {\
17396 \    func_split_short_opt_arg=${1#??}\
17397 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17398 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17399   && mv -f "$cfgfile.tmp" "$cfgfile" \
17400     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17401 test 0 -eq $? || _lt_function_replace_fail=:
17402
17403
17404   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17405 func_lo2o ()\
17406 {\
17407 \    case ${1} in\
17408 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17409 \      *)    func_lo2o_result=${1} ;;\
17410 \    esac\
17411 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17412   && mv -f "$cfgfile.tmp" "$cfgfile" \
17413     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17414 test 0 -eq $? || _lt_function_replace_fail=:
17415
17416
17417   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17418 func_xform ()\
17419 {\
17420     func_xform_result=${1%.*}.lo\
17421 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17422   && mv -f "$cfgfile.tmp" "$cfgfile" \
17423     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17424 test 0 -eq $? || _lt_function_replace_fail=:
17425
17426
17427   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17428 func_arith ()\
17429 {\
17430     func_arith_result=$(( $* ))\
17431 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17432   && mv -f "$cfgfile.tmp" "$cfgfile" \
17433     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17434 test 0 -eq $? || _lt_function_replace_fail=:
17435
17436
17437   sed -e '/^func_len ()$/,/^} # func_len /c\
17438 func_len ()\
17439 {\
17440     func_len_result=${#1}\
17441 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17442   && mv -f "$cfgfile.tmp" "$cfgfile" \
17443     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17444 test 0 -eq $? || _lt_function_replace_fail=:
17445
17446 fi
17447
17448 if test x"$lt_shell_append" = xyes; then
17449   sed -e '/^func_append ()$/,/^} # func_append /c\
17450 func_append ()\
17451 {\
17452     eval "${1}+=\\${2}"\
17453 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17454   && mv -f "$cfgfile.tmp" "$cfgfile" \
17455     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17456 test 0 -eq $? || _lt_function_replace_fail=:
17457
17458
17459   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17460 func_append_quoted ()\
17461 {\
17462 \    func_quote_for_eval "${2}"\
17463 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17464 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17465   && mv -f "$cfgfile.tmp" "$cfgfile" \
17466     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17467 test 0 -eq $? || _lt_function_replace_fail=:
17468
17469
17470   # Save a `func_append' function call where possible by direct use of '+='
17471   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17472     && mv -f "$cfgfile.tmp" "$cfgfile" \
17473       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17474   test 0 -eq $? || _lt_function_replace_fail=:
17475 else
17476   # Save a `func_append' function call even when '+=' is not available
17477   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17478     && mv -f "$cfgfile.tmp" "$cfgfile" \
17479       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17480   test 0 -eq $? || _lt_function_replace_fail=:
17481 fi
17482
17483 if test x"$_lt_function_replace_fail" = x":"; then
17484   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17485 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17486 fi
17487
17488
17489    mv -f "$cfgfile" "$ofile" ||
17490     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17491   chmod +x "$ofile"
17492
17493  ;;
17494     "include":C) test -d include || mkdir include ;;
17495     "src":C)
17496 test -d src || mkdir src
17497 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
17498  ;;
17499
17500   esac
17501 done # for ac_tag
17502
17503
17504 as_fn_exit 0
17505 _ACEOF
17506 ac_clean_files=$ac_clean_files_save
17507
17508 test $ac_write_fail = 0 ||
17509   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17510
17511
17512 # configure is writing to config.log, and then calls config.status.
17513 # config.status does its own redirection, appending to config.log.
17514 # Unfortunately, on DOS this fails, as config.log is still kept open
17515 # by configure, so config.status won't be able to write to it; its
17516 # output is simply discarded.  So we exec the FD to /dev/null,
17517 # effectively closing config.log, so it can be properly (re)opened and
17518 # appended to by config.status.  When coming back to configure, we
17519 # need to make the FD available again.
17520 if test "$no_create" != yes; then
17521   ac_cs_success=:
17522   ac_config_status_args=
17523   test "$silent" = yes &&
17524     ac_config_status_args="$ac_config_status_args --quiet"
17525   exec 5>/dev/null
17526   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17527   exec 5>>config.log
17528   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17529   # would make configure fail if this is the last instruction.
17530   $ac_cs_success || as_fn_exit 1
17531 fi
17532 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17533   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17534 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17535 fi
17536